[SOLVED] How to stop the repeat loop

Started by Radek_Slayer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] How to stop the repeat loop
Sun, 07/09/2023 - 09:37 (edited)

i want the procedure to wait 20 ticks and add one "Percent" item to inventory then wait 20 ticks again and then add one "Percent" item to inventory again and like that multiple times but it just waits 20 ticks and it adds a lots of these "Percents" in an incredibly fast time.

 

can someone help me?

 

Edited by Radek_Slayer on Sun, 07/09/2023 - 09:37
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What this does is, every…
Wed, 07/05/2023 - 03:41

What this does is, every single tick, 20 ticks later, it will add an item to your inventory. I would suggest not making this "Item in hand" trigger, and instead, after the "Add 1 item to inventory" block, add a "Call procedure ..." block  (under Advanced) and setting the procedure in the block to be this procedure.

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it didn't work :( it didn't…
Wed, 07/05/2023 - 09:06

it didn't work :( it didn't add any Percents to my inventory when i held the Computer

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now you will need to start…
Wed, 07/05/2023 - 18:27

Now you will need to start off this loop somehow. Try setting this procedure to the trigger "When right clicked (entity pos.)"

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks! it worked :)
Sun, 07/09/2023 - 09:36

thanks! it worked :)