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 revisionBoth sides next revision
tutorial:tools [2020/07/20 08:53] shedanieltutorial: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>
  
tutorial/tools.txt · Last modified: 2023/09/07 05:32 by drakonkinst