Comparing exact block data with Procedures

Started by Tommy50377 on

Topic category: Help with MCreator software

Last seen on 04:14, 27. Oct 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Comparing exact block data with Procedures
Wed, 05/06/2020 - 19:29 (edited)

I'm currently trying to make an axe that cycles the wood type when you right click a plank. So like if you right clicked oak planks, it would change to spruce, spruce would change to birch, etc. The problem is I don't know how to make procedures detect the exact version of plank that I'm right clicking. Whenever I right click with the axe, no matter what type of plank it is, it always detects it as the first thing I've put in the if else (Image below) and runs the first if statement. I don't know how to make it able to detect the exact type of planks I'm right clicking.

First bit of the code, its repeated for all wood types, and the last one is just an if statement, not if else.

(If the image doesn't load, here is the URL https://imgur.com/a/GO8mO8G )

 

Edited by Tommy50377 on Wed, 05/06/2020 - 19:29