Registry a lazuli:custom_tool component in game.
lazuli:custom_tool
You can use CustomToolComponent.registry method to registry it.
The following code can be used to registry this component:
CustomToolComponent.registry(); Copy
CustomToolComponent.registry();
After registied it, add following code your item JSON file:
"minecraft:custom_components": ["lazuli:custom_tool"] Copy
"minecraft:custom_components": ["lazuli:custom_tool"]
Static
Registry a
lazuli:custom_toolcomponent in game.You can use CustomToolComponent.registry method to registry it.
The following code can be used to registry this component:
After registied it, add following code your item JSON file:
Remarks
Registry a
lazuli:custom_toolcomponent in game.