Custom ToolType (Ver. 2) - gisellevonbingen-Minecraft/MineColonies_Tweaks GitHub Wiki
This page is for version >= 1.20.1-2.35.
Please See Legacy Page if version is 1.19.2 or < 1.20.1-2.35.
Custom ToolType
can be declare at json file.
This will add a new tool for Citizen's work.
Config file path is 'config/minecolonies_tweaks-custom_tools.json'
.
You can declare custom tool data as Json Object in Json Array.
config/minecolonies_tweaks-custom_tools.json
[
{
"name": "carrot",
"defaultLevel": 3
},
{
"name": "leather",
"autoLevelType": "VANILLA_ARMOR",
"defaultLevel": 1
}
]
Tool Level Tag is skipped in this example.
Each Json Object in Root Array will be Custom ToolType.
Need RESTART client/server instance when config changed.
Also should client/server must have same data.
No. | Key | Skippable | Desc. |
---|---|---|---|
1 | name | X | Should be consist of only lowercase alphabet and number and . ([a-z0-9]) also can't duplicated with existing tool types. |
2 | autoLevelType | O | Set method of how to define tool's level automatically. If skipped, will be 'NONE' See AutoLevelType fore more detail |
3 | durabilityBase | O | Uses for autoLevelType is DURABILITY_BASE
|
4 | defaultLevel | O | Set default tool level If skipped, items not defined tool level are can't be used. |
5 | translationKey | O | if skipped, will be minecolonies_tweaks.custom_tooltype.TOOL_NAME
|
No. | Name | Desc. |
---|---|---|
1 | NONE | Should define Tool Level Tag to each items manually |
2 | VANILLA_ARMOR | Follow item's Armor level If item is not armor, tool level will follow defaultLevel
|
3 | VANILLA_TOOL | Follow item's mining level If item does not have tier, will level will follow defaultLevel
|
4 | DURABILITY_BASE | Tool level is item's durability / durabilityBase If item is not damageable, tool level is 5 MineColonies's Shield Tool type is works like this. |
Tool Level Tag can override AutoLevelType
Name | Usage | AutoLevelType |
---|---|---|
none | None | NONE, Level is always be -1 |
pickaxe | Pickaxes | VANILLA_TOOL |
shovel | Shovels | VANILLA_TOOL |
axe | Axes | VANILLA_TOOL |
hoe | Hoes | VANILLA_TOOL |
sword | Swords | Base on item's mining level(tier) |
bow | Bows | DURABILITY_BASE |
rod | Fishing Rods | DURABILITY_BASE |
shears | Shears | DURABILITY_BASE |
shield | Shields | DURABILITY_BASE |
helmet | Helmets | VANILLA_ARMOR |
leggings | Leggings | VANILLA_ARMOR |
chestplate | Chestplates | VANILLA_ARMOR |
boots | Boots | VANILLA_ARMOR |
flintandsteel | Flint and steels | DURABILITY_BASE |
See here