HomeJavaModsAdvanced Datapack Mod
Advanced Datapack Mod
ModsJava

Advanced Datapack Mod

by XiaotianMC · on Modrinth

此mod旨在扩展数据包功能,目前处于早期开发阶段。 不要在正常游戏期间使用此模组。它可能会导致崩溃甚至坏档! This mod is designed to extend datapack functionality and is currently in early development. Do not…

⬇ Download on Modrinth
Advanced Datapack Mod — screenshot 1

Advanced Datapack Mod

This mod is designed to extend datapack functionality and is currently in early development. Do not use this mod during regular gameplay. It may cause crashes or even corrupt your world!

此mod旨在扩展数据包功能,目前处于早期开发阶段。 不要在正常游戏期间使用此模组。它可能会导致崩溃甚至坏档!

Installation

Make sure Minecraft has the Fabric Loader and Fabric API installed, then put this mod file in the mods folder

Features

This mod modifies Minecraft's datapack loading, bypassing registry restrictions and making it possible to hotload items, blocks, etc.You can do these things by using a datapack simply.

Features that may be added in the future

Bug Report

We apologize, we are currently preparing a channel for bug reports. If you encounter any bugs, please contact us via email(BilibiliXiaotian@outlook.com).

EnglishVersion of doc

Datapack Function Introduction

1. Item Expansion

2. Block Expansion (Under Development)

3. Commands

Datapack Format

To define an item, create a <item_name>.json file in the data/<namespace>/item directory of the datapack.

This is an example:

{
  "food": {
      "canAlwaysEat": true,
      "nutrition": 80,
      "saturation": 3.0,
      "effects": [
        ["minecraft:night_vision", 10, 1]
      ]
  },
  "tool": {
      "type": "axe",
      "level": "stone",
      "attackDamage": 999,
      "attackSpeed": 0.1,
      "durability": 1
  },
  "replace": "barrier"
}

Where food, tool, and replace are optional.

To define a block, create a <block_name>.json file in the data/<namespace>/block directory of the datapack.

This is an example:

{
  "hardness": 1.0,
  "resistance": 10.0,
  "lightLevel": 0,
  "replace": "minecraft:stone",
  "require_tool": true,
  "has_item": true,
  "replaceable": false
}

Where hardness, resistance, lightLevel, replace, require_tool, tool, and has_item are optional.

ADM API

ChineseVersion of doc-中文版文档

Datapack功能介绍

1. 物品扩展

2. 方块扩展(正在开发)

3. 命令

Datapack格式

在数据包的 data/<namespace>/item目录下新建<item_name>.json文件以定义物品。

这是一个示例

{
"food": {
    "canAlwaysEat": true,
    "nutrition": 80,
    "saturation": 3.0,
    "effects":[
      ["minecraft:night_vision",10,1]
    ]
},
"tool": {
    "type": "axe",
    "level": "stone",
    "attackDamage": 999,
    "attackSpeed": 0.1,
    "durability": 1
},
"replace": "barrier"  
}

undefined

其中foodtoolreplace是可选的。

在数据包的 data/<namespace>/block目录下新建<block_name>.json文件以定义方块。

这是一个示例

{
  "hardness": 1.0,
  "resistance": 10.0,
  "lightLevel": 0,
  "replace": "minecraft:stone",
  "require_tool": true,
  "has_item": true,
  "replaceable": false
}

其中hardnessresistancelightLevelreplacerequire_tooltoolhas_item是可选的。

ADM API

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more