temporary projectiles

Started by JaoHall on

Topic category: Help with modding (Java Edition)

Last seen on 07:53, 26. Aug 2024
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
temporary projectiles

I'm trying to make a projectile that after a set amount of time (≈5) will despawn, how could I do this?

Last seen on 13:04, 5. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On projectile flying tick…
Tue, 07/30/2024 - 14:46

On projectile flying tick:
Wait 100 ticks then on server-side do:
Despawn event/target entity

 

Last seen on 22:49, 8. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Projectiles are referred to…
Tue, 07/30/2024 - 19:49

Projectiles are referred to as 'Immediate Source Entity', @kamensh4ik is correct, but you have to use the [Immediate source entity] block within the despawn block.