Is there any way to add a 1tick delay inside the while loop in mcreator?

Started by wkshysub_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way to add a 1tick delay inside the while loop in mcreator?

Is there any way to add a 1tick delay inside the while loop in mcreator?
Otherwise the world side crashes!
I've looked at the tutorial, but the information is outdated and a bit confusing, so an explanation would be appreciated!

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can't because a while…
Tue, 01/28/2025 - 11:03

You can't because a while loop Is fully executed in only 1 tick

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the reply anyway,…
Tue, 01/28/2025 - 11:40

Thanks for the reply anyway, but if there is no way to do it, it would ruin the plans for the mod I'm working on!
I want to create a block that ties a block to a gui and produces a round stone once every 20 seconds!
 

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use nbt tags to make loops,…
Tue, 01/28/2025 - 13:07

Use nbt tags to make loops, like in this example: https://imgur.com/ysXgzQK you only need to change a few things to make it work with your block instead of the player