projectile exploding on command

Started by thijs_films on

Topic category: Help with MCreator software

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
projectile exploding on command

I am working on a Ranged weapon where you can remote detonate the projectile when shifting at any moment.
i tried things out with the "while projectile flying tick" but nothing has worked so far. does anyone else have an idea?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The while-projectile-flying…
Fri, 10/13/2023 - 15:56

The while-projectile-flying tick should probably work, just make sure to check if the source entity, (the one that fired it), is sneaking. If this isn't working for some reason, you could also make a procedure on player tick that checks if they're sneaking, and, if they are, explodes and despawns all entities of that type in an entity-iterator radius.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for the late reply, I…
Sun, 10/15/2023 - 08:07

sorry for the late reply, I was sick.
but i tried it out and it worked! thank you verry much for helping!