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 modding (Java Edition)

Last seen on 02:43, 2. May 2023
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.

Last seen on 00:42, 10. Oct 2023
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

Last seen on 23:15, 23. Jan 2024
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