Help! Procedure not working! (solved)

Started by RolerGames on

Topic category: Help with modding (Java Edition)

Last seen on 23:59, 31. Aug 2021
Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help! Procedure not working! (solved)
Fri, 06/05/2020 - 10:33 (edited)

This issue was solved!


(Note: this is a procedure for a command)


What's working?

https://imgur.com/i5q6Pf3

https://imgur.com/M7xkcTV

https://imgur.com/48ibcak

https://imgur.com/pvrKtI2


What's not working?

https://imgur.com/qRkQ5KF


When I type the command and the local:custom_command_1 variables value as parameter with index 0 which I set inside Minecraft before (the part where you set the variables is working normally) it doesn't output anything (no command executed and no message).

Command examples:

/gv set 1 ab minecraft:acacia_button (this one works)

/gv ab (this one doesn't work)


I don't understand where I made the error, can someone help?


Download full procedure here:

https://drive.google.com/file/d/1JVHqbRRcEbSBeDTK5cQtUhKsIOEe584I/view?usp=sharing


Edited by RolerGames on Fri, 06/05/2020 - 10:33
Last seen on 23:59, 31. Aug 2021
Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to solve the issue…
Fri, 06/05/2020 - 10:25

I managed to solve the issue!

How?

I replaced all (exept Local: local_give_stack_value) the local variables with global variables.

Even though I fixed it, I still don't understand why was that causing the error, is it a MCreator code bug or are local variables working only under the same IF logic operation and not the whole procedure (which wouldn't make any sense because the variable Local: local_give_stack_value is working under the whole procedure)?

 

Last seen on 21:21, 23. Mar 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, I noticed that too, it…
Wed, 03/06/2024 - 20:45

Yes, I noticed that too, it's very strange and if you don't have good results with global variables you can use NBT tags