Wax removal-like effect #1643
Replies: 2 comments
-
Doing it exactly the way minecraft does it is not straightforward. But you can still do it yourself by implementing the Block.onUse() method for your block. The usual pattern is:
You get the itemStack to test if it is an axe using |
Beta Was this translation helpful? Give feedback.
-
If you want to do the same thing for something that is not your block, you will need to register this callback: |
Beta Was this translation helpful? Give feedback.
-
How would I go about creating a block that when it is right-clicked by a player with an axe, the block is replaced with a different block? (Similar to the way one removes wax from copper blocks)
Beta Was this translation helpful? Give feedback.
All reactions