tutorial:blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:blocks [2020/03/30 17:35] – [Creating a Block class] liach | tutorial:blocks [2020/04/16 01:09] – Added required .INSTANCE to BlockRenderLayerMap example and added the example block name. darthjake | ||
---|---|---|---|
Line 99: | Line 99: | ||
==== Adding a block loot table ==== | ==== Adding a block loot table ==== | ||
- | The block must have a loot table for any items to drop when the block is broken. Assuming you have created an item for your block and registered it using the same name as the block, the following file will produce regular block drops '' | + | The block must have a loot table for any items to drop when the block is broken. Assuming you have created an item for your block and registered it using the same name as the block, the following file will produce regular block drops '' |
<code JavaScript src/ | <code JavaScript src/ | ||
Line 142: | Line 142: | ||
If you want your block to be transparent, | If you want your block to be transparent, | ||
<code java> | <code java> | ||
- | BlockRenderLayerMap.putBlock(/* your block */, RenderLayer.getTranslucent()); | + | BlockRenderLayerMap.INSTANCE.putBlock(EXAMPLE_BLOCK, RenderLayer.getTranslucent()); |
</ | </ | ||
tutorial/blocks.txt · Last modified: 2024/04/15 01:52 by solidblock