Started by
retroPacifist
on
Topic category: Help with Minecraft modding (Java Edition)
I've got a procedure that lets the player fill bottles from a block. The filling works fine and as intended, however the block *SHOULD* change after filling from it 5 times. Instead, it just stays the same. Anyone know what's wrong with the code?
I think this thread might have the info you need.
I don't have that much experience with procedures but I would use NBT number tags for your block. If this doesn't work you can create a procedure like this: When [block] placed, set [NBT number tag] of block to 0. I hope this helps you :)
Local variables exist only for the time of procedure being executed.
I recommend to replace variables with NBT variable
Use NBT variables or global variables. Local variables get reset each time they are called.