"Call procedure" block not working.

Started by TheGeekyGeekMC on

Topic category: Help with modding (Java Edition)

Last seen on 17:34, 28. Dec 2023
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Call procedure" block not working.

I am trying to make a "Monkey's Paw" item for my mod and one of the ways it "grants" wishes is by "spreading" blocks in an area.

 

Given the fact that the code for "spreading" blocks is the same and multiple "wishes" (currently wishing for diamonds and wishing for emeralds) have this effect, I decided to make another procedure for this. However, the procedure is not executing at all, as if the "Call procedure" block is being completely "ignored".

 

The code is executed when a button is clicked. The condition for wishing for "The ability to fly." works correctly, as does the one for "wishing" for anything else. This is the procedure for the click event:

The procedure for "granting wishes" in the "Monkey's Paw" GUI

This is the "SpreadBlocks" procedure that, for some reason, is being completely "ignored":

The "SpreadBlocks" procedure.

 

Can you please help me? How do I get the "Call procedure" block to actually work?