How do I make weapon and if you right click you ignore next hit only from MELEE attacks for 2 seconds and get strength?

Started by BeePlay on

Topic category: Help with MCreator software

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make weapon and if you right click you ignore next hit only from MELEE attacks for 2 seconds and get strength?

Doing weapon that can "Parry" attacks. If you get any damage that is from entity (not from potion effects or damage that is not entity based), you ignore it and get strength effect for couple of seconds. I don't really know how to do that but I wonder if someone does

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can also try using the …
Thu, 07/10/2025 - 06:42

You can also try using the "Resistance V" effect for 2 seconds (40 ticks)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is the most obvious…
Thu, 07/10/2025 - 07:56

This is the most obvious reply lol.

I am asking if I can apply Strength effect on player after player got hit when Resistance is active.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a procedure and use…
Thu, 07/10/2025 - 11:13

Create a procedure and use the global trigger "Entity is attacked". Inside check if the entity is the player and if it has the "Resistnz" effect (if you want to make it even more precise also use an NBT variable given when the player obtained the "Resistence" effect) and finally give the "Strenght" effect (if you add the NBT variable set it to "false").