help with nbt tag system

Started by Dio_Brando06 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with nbt tag system

so, i've been working on a mod to make meth(insert braking bad meme here), i setted some placeholders for the blocks and started coding the procedures.

my idea was that when you put the methylamine in the large tank thing and add iron you can start cooking, i settted a timer and found a way to tag the result of the cooking with his purity number. to do that i did that when the timer reach a certain number an nbt called step would increase by one, the player can stop the process at any time with a stop button and based on the nbt the purity increase, but, if the nbt is 0 the result will not be the cooced product but garbage (litteraly).

the problem is that when i check if it works, it doesn't matter what step i reached it always give you garbage , i tried everithing i know and i'm quite new to modding so i couldn't find a way to pass this.

if anyone could help please this is driving me mad. thanks in advance

https://www.mediafire.com/file/j2mnav1hf9wq43c/methlab.rar/file

this is my workspace the procedures where too big to screenshot