'Tick' (time-related) Procedure Blocks

Started by Riftjaw on

Topic category: Feature requests and ideas for MCreator

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
'Tick' (time-related) Procedure Blocks

 A simple procedure addition that would be very useful would be 'tick' blocks. Blocks like: "Repeat for (number) ticks" and "Wait for (number) ticks".

 It's pretty self-explanatory. Just procedure blocks that will give customizable delay. Also, it might be helpful to have an option on these blocks to switch between ticks or seconds for time measurement.

I think it would be easy to implement and quite useful.

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, just thought I could add…
Wed, 10/23/2019 - 22:20

Hi, just thought I could add on to this since I found it a bit hard to do when trying the video's procedures on the player or entity. With the new update adding potions, you could make a new effect for a timer. Make a procedure stating "IF Entity has Potion Effect TIMER = False, DO Add Potion Effect TIMER With Duration [time in ticks] (20 ticks = 1 second)" Followed by all your custom stuff that happens after every x ticks in the DO bracket. Set the new potion effect to not have bottles, not render in GUI or inventory to limit the look on your game. Only problem with this is that a blank bar appears in you inventory when used on the player. Oh, and make the timer effect not deactivate with a milk bucket, forgot that when testing it out. Hope this helps. :)