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)

Active 1 year ago
Joined Oct 2021
Points:
479

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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.

Active 1 year ago
Joined Mar 2020
Points:
1525

User statistics:

  • Modifications: 7
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 1325
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

Active 1 year ago
Joined Jan 2024
Points:
87

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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