temporary projectiles

Started by JaoHall on

Topic category: Help with Minecraft modding (Java Edition)

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?

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

 

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.