User Tools

Site Tools


tutorial:blockstate

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:blockstate [2019/11/14 11:14] fudgetutorial:blockstate [2019/11/14 11:19] fudge
Line 39: Line 39:
 Now, to set the property we need to call   Now, to set the property we need to call  
  
-''world.setBlockState(<block-position>, <block-instance>.getDefaultState().with(<property-name>, <new-value>)'':  +''world.setBlockState()'':  
            
 (Replace ''MyBlocks.MY_BLOCK_INSTANCE'' with your block's instance) (Replace ''MyBlocks.MY_BLOCK_INSTANCE'' with your block's instance)
tutorial/blockstate.txt · Last modified: 2023/11/18 08:13 by solidblock