#Impact Triggered Projectile + adding new AI patterns and stuff.

1 messages · Page 1 of 1 (latest)

spiral zenith
#

Title.

#

This is probably mod content tbh

obtuse dew
#

@spiral zenith wdym

#

write the first question in more detail

lavish badger
#

yeah this question in general is confusing

spiral zenith
#

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.

azure quarry
#

I’m 90% sure this is possible with Datapacks, but Im not at my computer rn so I can’t help a ton

feral wharf
#

what kind of projectile is it? fully custom raycast or just an arrow or something?

spiral zenith
#

like a fireball

feral wharf
#

What do you have so-far, are you using the fireball entity or are you doing your own fireball

spiral zenith
#

im using the fireball entity

feral wharf
#

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