Despawn projectile after timer/distance

Started by Lynical on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Despawn projectile after timer/distance

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.

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Isn’t it so easy?
Tue, 05/25/2021 - 13:41

Isn’t it so easy?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean it seems easy enough…
Thu, 05/27/2021 - 11:18

I mean it seems easy enough except nothings been working

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Quite easy to do actually…
Wed, 06/02/2021 - 09:24

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