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 revision Previous revision
tutorial:blocks [2020/04/15 22:32]
darthjake Fixed loot table directory
tutorial:blocks [2020/04/16 01:09] (current)
darthjake Added required .INSTANCE to BlockRenderLayerMap example and added the example block name.
Line 142: Line 142:
 If you want your block to be transparent,​ in your client mod initializer code, do: If you want your block to be transparent,​ in your client mod initializer code, do:
 <code java> <code java>
-    BlockRenderLayerMap.putBlock(/* your block */, RenderLayer.getTranslucent());​+    BlockRenderLayerMap.INSTANCE.putBlock(EXAMPLE_BLOCK, RenderLayer.getTranslucent());​
 </​code>​ </​code>​
  
tutorial/blocks.txt · Last modified: 2020/04/16 01:09 by darthjake