Procedures -- waiting and cross-tick

Started by zxin on Mon, 08/13/2018 - 01:31

Topic category: Help with MCreator's application

Last seen on 13:36, 25. Sep 2018
Joined Feb 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Procedures -- waiting and cross-tick
Mon, 08/13/2018 - 01:31

Hey, I'm still a total noob with procedures. I was wondering how I might have one re-occur every tick until a certain condition is fulfilled. (In my case, I'd like a block to damage the player whilst they attack it until they stop doing so.) The problem is, I'm not sure how to make a loop that waits one tick, or comes back to the procedure later. I know how to make a loop, but that will just lock the game up for the specified number of ticks.

If anyone knows how this works a little better than I do, I'd really appreciate some help.

Cheers,

~zxin

Last seen on 13:42, 24. Aug 2018
Joined Oct 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Make an item or some kind of…
Wed, 08/15/2018 - 17:59

Make an item or some kind of block e.t.c and go to the tick event and add the procedure. I don't think you can add them to run constantly without a block or item tho.

Last seen on 13:36, 25. Sep 2018
Joined Feb 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hmm. Might have to open a…
Thu, 08/16/2018 - 02:31

Hmm. Might have to open a feature suggestion about an extra global event.