i want to make entity deal % damage with my sword

Started by kinghosty on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i want to make entity deal % damage with my sword

hey i created a sword which deal 80% of target hp and it works perfecly fine when player uses it 

but after i gave it to zombie he doesnt do any % damage,

please help

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know the answer to…
Thu, 08/03/2023 - 13:50

I don't know the answer to your question, but I want to ask a counter question. How did you make the sword deal a certain percentage of health? This information would be useful to me.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try setting the…
Sun, 08/13/2023 - 20:31

you could try setting the damage of thes word to zero, then in the "when living entity is hit with tool" do "do damage [max health] / [10] * [8] type (Player_Hit)