invalid return block

Started by The_Shade_Lord_ on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
invalid return block

for some reason, it won't let me use a return block here.
this is gonna be used for a overlay, to show the player's fuel amount on a jetpack.

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would suggest making a…
Fri, 12/02/2022 - 16:03

I would suggest making a procedure that detects whether the player is wearing a jetpack and displays the overlay if they are, and another separate procedure to display the fuel amount on said overlay. I believe that the return block has to be the last block in the entire procedure, and cannot be in an if statement.