Procedure not working properly.

Started by retroPacifist on

Topic category: Help with modding (Java Edition)

Last seen on 02:19, 22. Feb 2021
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

Last seen on 20:35, 13. Jun 2023
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.

Last seen on 00:33, 7. Nov 2021
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 :)

Last seen on 03:03, 6. Feb 2024
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 

Last seen on 00:53, 14. Mar 2024
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.