Procedure not working properly.

Started by retroPacifist on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Oct 2019
Points:
760

User statistics:

  • Modifications: 1
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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

Active 2 years ago
Joined Feb 2020
Points:
650

User statistics:

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

I think this thread might have the info you need.

Active 7 months ago
Joined Nov 2019
Points:
701

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 45
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 :)

Active 1 month ago
Joined Apr 2014
Points:
1166

User statistics:

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

I recommend to replace variables with NBT variable 

Active 2 months ago
Joined Sep 2018
Points:
1021

User statistics:

  • Modifications: 3
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 146
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.