User Tools

Site Tools


tutorial:items

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:items [2019/07/06 03:43] – [Registering an Item] liachtutorial:items [2019/07/21 15:02] – [Creating an Item class] itemGroup -> group jamieswhiteshirt
Line 98: Line 98:
 { {
     // an instance of our new item     // an instance of our new item
-    public static final FabricItem FABRIC_ITEM = new FabricItem(new Item.Settings().itemGroup(ItemGroup.MISC));+    public static final FabricItem FABRIC_ITEM = new FabricItem(new Item.Settings().group(ItemGroup.MISC));
     [...]     [...]
 } }
 </code> </code>
 If you did everything correctly, using the item should now play a sound. If you did everything correctly, using the item should now play a sound.
tutorial/items.txt · Last modified: 2024/04/20 08:05 by ryhon