I need help with my procedure code again...

Started by GeoMetri on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with my procedure code again...
If Slot 2 = "Ice" and Get NBT tag "Liquid" <= 15000
	Remove 1 item from Slot 2
	NBT tag "Liquid" += 1
Return Text ("Liquid: " + NBT tag "Liquid")

The Value doesn't update yet still deletes all the ice.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, It deletes all the ice…
Sat, 07/20/2024 - 11:10

Well, It deletes all the ice, and then doesen't update because you don't have ice anymore, you wrote Liquid+=1 inside the if that checks if you have ice

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But the NBT isn't updated…
Sat, 07/20/2024 - 11:15

But the NBT isn't updated when the ice gets removed

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And the GUI glitches
Sat, 07/20/2024 - 11:17

And the GUI glitches

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What value does It have…
Sat, 07/20/2024 - 11:18

What value does It have After the ice gets removed?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The text shows 0 and The GUI…
Sat, 07/20/2024 - 11:20

The text shows 0 and The GUI in slot 2 doesn't show the ice but I can grab it.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed it
Sat, 07/20/2024 - 11:32

I fixed it

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright 
Sat, 07/20/2024 - 12:43

Alright