call procedures...

Started by pepsi on

Topic category: Help with MCreator software

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
call procedures...

heres my code:
https://imgur.com/a/QDOJx6P
the game crashes when the wait until random 6000-12000 ticks happens

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I slightly changed the code…
Mon, 10/20/2025 - 10:58

I slightly changed the code today but it probably wont make much of a difference and this was the crash report because the same thing happened:
https://pastebin.com/w5D2a0U4

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ohhh, with the medication i…
Mon, 10/20/2025 - 21:55

ohhh, with the medication i added i want it to wait 6000-12000 ticks then send the popup and give the status effects then once that is done it loops then it loops again and again forever, how would i do this? I cant just use on tick update as the wait will continously be activated because it doesnt wait for the script to be finished before it starts again

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not totally sure exactly…
Tue, 10/21/2025 - 00:28

I'm not totally sure exactly what you want here, but you need variable, something like "timer," that gets set to a random number (or integer) 6000-12000. Every tick (using another procedure set to run on tick update), set this number to itself minus 1.  So, then have your procedure check if that number is equal to 0 and only run if that's the case. From there, set the variable to 6000-12000 again and it'll repeat.

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok 8BitBunnie, i have no…
Tue, 10/21/2025 - 05:30

ok 8BitBunnie, i have no idea why i didnt try this, -_- it came up in none of the tutorials i watched for loops in mcreator ill see if it works.

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i simplified the code on…
Tue, 10/21/2025 - 08:20

i simplified the code on what should work acording to 8BitBunnie but it just doesnt activate?! heres my code:
https://imgur.com/a/Wu2X2Ge