Shot by my own pet

Started by Reclused1 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Dec 2023
Points:
145

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Shot by my own pet

So i've been working on a tamed ranged entity, but one slight issue atm. If it's attacking another mob I can get shot instead if i'm in front of the mob doing melee. Does anyone have a procedure to prevent damage to the player on accident?

Active 9 hours ago
Joined Nov 2019
Points:
880

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 336
make the projectile check if…
Wed, 01/24/2024 - 23:00

make the projectile check if the target is the owner, and cancel the event/make it do no damage