need help with procedure loops

Started by JamminNun on

Topic category: Mod design feedback

Active 3 years ago
Joined Nov 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
need help with procedure loops

Long story short, I'm trying to make that when you hold a sertain item in off-hand, you will regen 1 hp every 3 seconds. BUT, I'm runing into proplems with making it actually loop. Could someone help with fixing my procedure?

 

This procedure is put into that sertain items InInventoryTick trigger.

Active 1 year ago
Joined Nov 2021
Points:
565

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
this may not be a solution…
Sun, 11/28/2021 - 10:16

this may not be a solution to the problem but you should use the wait procedure block for an actual delay.
1 tick = 1/20 second

20 ticks = 1 second

Active 3 years ago
Joined Nov 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
But how would it loop then?…
Fri, 12/03/2021 - 15:43

But how would it loop then? I'm trying to loop it, not just do it once

Active 2 years ago
Joined Aug 2015
Points:
739

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
Ever gained a solution to…
Sun, 03/20/2022 - 06:54

Ever gained a solution to this? Been having trouble myself and had trouble finding answered on the internet.

Active 2 years ago
Joined Mar 2022
Points:
504

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Comment me if you still need…
Mon, 07/04/2022 - 08:58

Comment me if you still need the tutorial I found it

Active 1 year ago
Joined Feb 2020
Points:
716

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
Could you tell me how you…
Sun, 08/14/2022 - 12:54

Could you tell me how you did it? :)

 

Active 2 years ago
Joined Mar 2022
Points:
464

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
I need a tutorial pls
Sun, 10/02/2022 - 13:45

I need a tutorial pls