#unable to create custom tools

3 messages · Page 1 of 1 (latest)

tropic herald
#

i can't basically coping https://fabricmc.net/wiki/tutorial:tools
public static ToolItem POTATO_PICKAXE = new PickaxeItem(PotatoToolMaterial.INSTANCE, 1, -2.8F, new FabricItemSettings());
Cannot resolve symbol 'FabricItemSettings'

idk any java but just help me :D

versed crag
#

For 1.21 it would be as folows:

public static ToolItem POTATO_PICKAXE = new PickaxeItem(PotatoToolMaterial.INSTANCE, new Item.Settings());

The other variables (e.g. 1.0f and 2.8f are part of the tool material)

tropic herald