Started by
Lynical
on
Topic category: Help with Minecraft modding (Java Edition)
I have a fireball projectile that gets launched through a keybind. I use the shoot projectile block to cast the fireball from a ranged item I made with the model. My only problem is I turned gravity off so if the fireball gets shot into the sky it gets stuck eventually. So I need a method to despawn it, but nothing I've tried has really worked so far.
Isn’t it so easy?
I mean it seems easy enough except nothings been working
Quite easy to do actually. What you wanna do is get a "wait #(<---- how long to wait to despawn bullet) ticks then on server-side do" block(it's in Flow control) then get a execute command at x,y,z. and put them together. In the execute command type "kill @e[type="mod_id":entitybullet"bullet name"=..1]. Reply to me if you need any further help. this was translated from google translate