How to make an entity not attack at the player when the player is wearing specific armor?

Started by bOANOCNON on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity not attack at the player when the player is wearing specific armor?

I am trying a procedure where when the player is wearing a specific armor, no bees will "sting" or attack the player. However I'd like it if the bees would still follow the player and be angry (the bees' texture changing to the red eyes texture). I am stuck on this because the bee is a vanilla mob and I cannot change it's AI.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
global trigger: on attack…
Sat, 04/29/2023 - 22:50

global trigger: on attack

source entity is sub type of bee

event/target entity is sub type of player

get item in armor slot (armor slot number) for event/target entity = (item)

cancel event

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you send an image of…
Tue, 01/23/2024 - 14:15

Can you send an image of this procedure? I just started trying modding in mcreator and I don't understand what the "source" or other elements look like, and I don't know how to connect it all, what is needed in if and what is needed in do