How to make a procedure to shoot multiple projectiles between ticks

Started by Cesitrox on

Topic category: Help with modding (Java Edition)

Last seen on 01:26, 5. Jul 2023
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a procedure to shoot multiple projectiles between ticks

Im trying to make so when pressing a certain key the player shoot 10 fireballs with 5 ticks between each one but trying to loop the "wait x ticks then on server-side do" doesn't seem to work. When testing the procedure it actually waits the 5 ticks but does not loop.

Last seen on 13:18, 31. Mar 2023
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
iirc the wait block…
Mon, 10/10/2022 - 08:15

iirc the wait block registers an event for x ticks later. what you have to do is increasing the x every time the loop runs. like
x=5

do this 10 times {

wait x ticks and do this {

"do something"

}

x=x+5

}

Last seen on 01:26, 5. Jul 2023
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you show me the…
Mon, 10/10/2022 - 20:01

Could you show me the procedure so I can understand it better?