(SOLVED) Is it possible to block a mob's attack (similar to a shield)?

Started by ImSeyo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) Is it possible to block a mob's attack (similar to a shield)?
Fri, 07/14/2023 - 17:37 (edited)

I made my mob, which should block attacks or projectiles with a chance. Is it possible to do this?

Edited by ImSeyo on Fri, 07/14/2023 - 17:37
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This will cancel the attack,…
Fri, 07/14/2023 - 09:01

CHEESE!

This will cancel the attack, not so much block it. Replace ABlockOfCheese with your entity

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also replace random > 0.5…
Fri, 07/14/2023 - 09:02

Also replace random > 0.5 with whatever ya want

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for saving my…
Fri, 07/14/2023 - 17:37

Thank you for saving my ideas for the second time! It works