Procedure not working properly.

Started by retroPacifist on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure not working properly.

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?

My code

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think this thread might…
Sat, 02/22/2020 - 01:50

I think this thread might have the info you need.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't have that much…
Sun, 02/23/2020 - 10:51

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 :)

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I recommend to replace…
Fri, 02/28/2020 - 21:15

I recommend to replace variables with NBT variable 

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use NBT variables or global…
Tue, 03/03/2020 - 22:14

Use NBT variables or global variables. Local variables get reset each time they are called.