Best way to have an item that converts blocks into a variant of said block?

Started by wheatttt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Best way to have an item that converts blocks into a variant of said block?

Currently, I have a tool that changes some specific blocks into their variants when you right click them. As of now, this works in a way that feels just a little bad, which is a long chain of if statements checking that the blockstate is a specific one, then playing the break effect, and replacing the block, like so:

 

 

This is annoying and time consuming to set up, but I can't think of any other way to do this. any ideas?