How to make directional block in minecraft 1.18.2 #2159
-
Hello, im trying to make a directional block for minecraft. here is my register block code :
here is my blockstate.json:
here is my block model.json:
and here is the item model.json:
Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
You need to set the properties for your block in its constructor. See for example the PillarBlock used for wood logs which uses the AXIS property. |
Beta Was this translation helpful? Give feedback.
-
You also need to add() your properties to the StateManager in the block's appendProperties(). |
Beta Was this translation helpful? Give feedback.
-
I fixed it! I just copied the AbstractFurnaceItem to my custom block classs! |
Beta Was this translation helpful? Give feedback.
I fixed it! I just copied the AbstractFurnaceItem to my custom block classs!