#Impact Triggered Projectile + adding new AI patterns and stuff.
1 messages · Page 1 of 1 (latest)
yeah this question in general is confusing
uh ok
I'm trying to make a projectile explode on impact and I've been trying to use a system that looks for mob deaths, but that hasn't been working for me, I also want to implement this projectile into a mob's attacks and am wondering how I could do that since im relatively new when it comes to datapacking.
I’m 90% sure this is possible with Datapacks, but Im not at my computer rn so I can’t help a ton
what kind of projectile is it? fully custom raycast or just an arrow or something?
like a fireball
What do you have so-far, are you using the fireball entity or are you doing your own fireball
im using the fireball entity
Detecting when you hit something can be done by having an entity (an empty block display for example) ride the fireball
If then the fireball hits something, the display entity doesn’t have any vehicle anymore and you can detect that using a predicate or execute on
Actually modifying the AI of mobs is not possible so you have to hack something together
What works best is really dependent on what your actual vision for the mob is