How to make entity deal custom damage to the player only

Started by Kadeee1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity deal custom damage to the player only

Hello, 
I am making a boss-like mob to my mod and I am trying to make it summon like waves of monsters. So I want to make a punishment type system for when you fail a wave you get dealt a certain amount of damage. The entity itself would deal the custom amount of damage but I made it so the entity doesn't attack and only summons monsters. 

Everything I have tried has either damaged the entity that is running the procedure or just doesn't work. I am not sure how to start this at all and I need help on this.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if  event/target entity is…
Tue, 12/19/2023 - 02:13

if  event/target entity is subtype of player deal damage
that should deal damage to players only no need for custom damage types if u dont want them