Procedure not working properly.

Started by retroPacifist on Thu, 02/20/2020 - 19:58

Topic category: Help with modding

Last seen on 06:20, 4. Apr 2020
Joined Oct 2019
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Procedure not working properly.
Thu, 02/20/2020 - 19:58

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

0Upvote this forum topic
Last seen on 01:56, 22. Feb 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I think this thread might…
Sat, 02/22/2020 - 01:50

I think this thread might have the info you need.

0Upvote this forum topic
Last seen on 10:31, 4. Apr 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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 :)

0Upvote this forum topic
Last seen on 08:04, 6. Apr 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Local variables exist only…
Fri, 02/28/2020 - 18:26

Local variables exist only for the time of procedure being executed.

0Upvote this forum topic
Last seen on 01:33, 6. Apr 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
I recommend to replace…
Fri, 02/28/2020 - 21:15

I recommend to replace variables with NBT variable 

0Upvote this forum topic
Last seen on 02:34, 24. Mar 2020
Joined Sep 2018
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic