Started by
Generic2635
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to add a block into my mod that acts similarly to snow, but I have no idea how to make it stack onto itself without using a debug stick. I have the blockstates already defined, I just need help with how to change them. So far I am trying to do this with procedures, however I have close to no idea what I'm doing. Please help.
On block right clicked. Get item in main hand = your custom snow layer block. If so remove 1 item from mainhand, add 1 to block integer which switches the blockstate to the next one.
Use actionResultType in order to stop the players hand swinging when right clicking the block with anything other than your custom snow layer block. Return result PASS for when you want the hand to swing, and FAIL when you don't. Put result FAIL at the bottom of the procedure also.