projectile still exists after hitting entity

Started by slavchik on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
projectile still exists after hitting entity

so I made several projectiles and they work fine in survival, but as soon as I hit an immortal entity or shoot myself in the creative, the projectile starts to get stuck in me and starts calling the procedure a lot of times (number of fps speed) and how do I fix it? I've tried despawn event entity but it just bugs the hell out of game i need to remove projectile after it hits entity just once

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the triggers tab of the…
Sun, 07/28/2024 - 12:26

in the triggers tab of the projectile make a procedure for the trigger "projectile hits living entity" and in the procedure just put the block despawn immediate source entity

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yea i did it but it turns…
Sun, 07/28/2024 - 18:50

yea i did it but it turns another bug 
the block i made is despawn(sourse entity) but it despawns the player not the projectile

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes, that's what happens…
Sun, 07/28/2024 - 19:03

yes, that's what happens using "source entity" you need to use "immediate source entity"

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you i appreciate your…
Thu, 08/01/2024 - 16:53

thank you i appreciate your help. you saved my silly mod

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Thu, 08/01/2024 - 17:36

You're welcome