projectile exploding on command

Started by thijs_films on

Topic category: Help with MCreator software

Active 10 months ago
Joined Apr 2021
Points:
600

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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?

Active 1 day ago
Joined May 2022
Points:
1254

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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.

Active 10 months ago
Joined Apr 2021
Points:
600

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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!