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 revision Previous revision
tutorial:items [2019/07/06 03:43]
liach [Registering an Item]
tutorial:items [2019/07/21 15:02] (current)
jamieswhiteshirt [Creating an Item class] itemGroup -> group
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.1562384594.txt.gz ยท Last modified: 2019/07/06 03:43 by liach