-
-
Notifications
You must be signed in to change notification settings - Fork 23
Datapack Behaviours
Since 4.0.0, modpack developers can customize even more aspects of Additional Additions with behaviours. Behaviours currently can customize tool and armor stats.
What are behaviours? Those are json files that you'll need to write. Where do they go? In a datapack.
Structure of an example datapack that modifies the stats of gilded netherite chestplate
All behaviours go in data/additionaladditions/behaviour
folder of your datapack.
Those behaviours go in a subfolder named with the material name of the armor/tool material you want to customize.
For example, if you want to modify the stats of gilded netherite, create a folder called gilded_netherite
inside the behaviour folder.
For example, if you want to modify the stats of rose gold, create a folder called rose_gold
inside the behaviour folder.
Here are some properties:
Property Name | Applies to | Description | Value type |
---|---|---|---|
durability |
Everything | Changes the item's durability | Integer |
defense |
Armor | Changes the armor item's defense/protection | Integer |
toughness |
Armor | Changes the armor item's toughness | Float |
knockback_resistance |
Armor | Changes the armor item's knockback resistance | Float |
attack_damage |
Tools/Sword | Changes the item's attack damage | Float |
attack_speed |
Tools/Sword | Changes the item's attack speed | Float |
mining_speed |
Tools | Changes the item's mining speed | Float |
Those properties go into the json behaviour file you created.
Speaking of files, you'll also need names of them! Right, here they are
Behaviour/File Name | Applies To | Type (above table) |
---|---|---|
helmet |
Helmets | Armor |
chestplate |
Chestplates | Armor |
leggings |
Leggings | Armor |
boots |
Boots | Armor |
sword |
Swords | Sword |
axe |
Axes | Tools |
pickaxe |
Pickaxes | Tools |
shovel |
Shovels | Tools |
hoe |
Hoes | Tools |
In short:
- In the behaviour folder, create a subfolder named with the material name you want to customize
- Pick behaviour file name of the item you want to customize from the second table, and create it with the .json extension
- Add some properties you want to customize from the first table, you'll need to know at least some json to do this!
- Datapack should be ready!
- Home
- Items
- Armor and Tools
- Blocks
- Enchantments
- Music Discs
- Foods
- Behaviours (for modpack devs)