User Tools

Site Tools


tutorial:blocks

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:blocks [2019/06/17 19:01] – modid & simplicity refactoring draylartutorial:blocks [2019/08/03 22:38] – Added “next steps” fudge
Line 52: Line 52:
         [...]         [...]
                  
-        Registry.register(Registry.ITEM, new Identifier("tutorial", "example_block"), new BlockItem(EXAMPLE_BLOCK, new Item.Settings().itemGroup(ItemGroup.MISC)));+        Registry.register(Registry.ITEM, new Identifier("tutorial", "example_block"), new BlockItem(EXAMPLE_BLOCK, new Item.Settings().group(ItemGroup.MISC)));
     }     }
 } }
Line 159: Line 159:
  
 Your custom block should now be transparent! Your custom block should now be transparent!
 +==== Next Steps ====
 +[[tutorial:blockstate|Adding simple state to a block, like ints and booleans]]. 
 +
 +[[tutorial:blockentity|Giving blocks a block entity so they can have advanced state like inventories and classes]]. Also needed for many things like GUI and custom block rendering.
tutorial/blocks.txt · Last modified: 2024/04/15 01:52 by solidblock