Procedure damage ingnores armor

Started by a guy called l… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure damage ingnores armor

I made a procedure that deals 8 points of damage of type GENERIC

I have a problem and is that i get 4 hearts of damage if i have a full netherite armor, and 4 hearts of damage if I dont have any armor

Some solution?

 

sorry for my bad english

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If get armour of event >=…
Tue, 10/12/2021 - 13:41

If get armour of event >= number then deal 8 damage to event

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I dont understand, you can…
Tue, 10/12/2021 - 15:34

I dont understand, you can upload a image?

I think in Deal 8 - get armour of entity target damage to entity target but if my armor is more that 8, it will not deal damage / heal me (I am not sure)

Wait, I think a procedure that can help

If get armor of event entity target ≤ 8 do

Deal 8 - get armour of event entity target to event entity target

if not

Deal 1 damage to event entity target

This will prevent that the mob dont deal damage if i have more that 8 armor, I think

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's what I told you Use…
Tue, 10/12/2021 - 16:10

That's what I told you

Use block armour value and do as you wish