User Tools

Site Tools


tutorial:tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:tools [2020/06/09 06:13] – Interface fix boogiemonster1o1tutorial:tools [2020/07/20 08:54] shedaniel
Line 131: Line 131:
 To make a pickaxe and axe, create objects of the subclasses. To make a pickaxe and axe, create objects of the subclasses.
 <code java> <code java>
-public static ToolItem POTATO_PICKAXE = new PickaxeSubclass(CustomToolMaterial.POTATO, 1, -2.8F, ItemGroup.TOOLS); +public static ToolItem POTATO_PICKAXE = new PickaxeSubclass(CustomToolMaterial.POTATO, 1, -2.8F, new Item.Settings().group(ItemGroup.TOOLS)); 
-public static ToolItem POTATO_AXE = new AxeSubclass(CustomToolMaterial.POTATO, 7.0F, -3.2F, ItemGroup.TOOLS);+public static ToolItem POTATO_AXE = new AxeSubclass(CustomToolMaterial.POTATO, 7.0F, -3.2F, new Item.Settings().group(ItemGroup.TOOLS));
 </code> </code>
  
Line 154: Line 154:
 </code> </code>
  
 +==== Making your tool work with non-vanilla blocks ====
 +
 +Visit the last section of https://fabricmc.net/wiki/tutorial:mining_levels
tutorial/tools.txt · Last modified: 2023/09/07 05:32 by drakonkinst