[SOLVED]Item that makes mobs passive

Started by Lord Makishi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED]Item that makes mobs passive
Fri, 02/03/2023 - 22:43 (edited)

As the title suggests i am trying to create an item that makes mobs passive/friendly to the player when right clicked with. Could anyone help me with this?

Thanks in advance!

Edited by Lord Makishi on Fri, 02/03/2023 - 22:43
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make it tame-able
Fri, 02/03/2023 - 20:14

Make it tame-able

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bo-Katan22 yeah but i also…
Fri, 02/03/2023 - 20:25

Bo-Katan22 yeah but i also want this to work on vanilla mc mobs... 

I just want to remove their aggresion towards the player.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Piglins... Try and borrow…
Fri, 02/03/2023 - 20:43

Piglins... Try and borrow their code?

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I hope it's possible  
Fri, 02/03/2023 - 20:43

I hope it's possible

 

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It‘s fine I already got my…
Fri, 02/03/2023 - 22:42

It‘s fine I already got my solution. I used the /team command! :}

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, great! Actually, can you…
Sat, 02/04/2023 - 16:54

Oh, great! Actually, can you tell me how?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do beleive, putting…
Mon, 02/20/2023 - 19:57

I do beleive, putting something like; 

check if there is a team called "mobc"

if not create one

under the whenplayerjoinsworld trigger then inside of that C Mob's Whenentityspawned trigger add /join blah blah team. would be enough.

 

You can add a player to the team while the item is in players hand and remove it when player doesnt holds it. Or, after the player eats a "certain thing/food" he joins that team permanently and becomes friendly with that mob.

The rest is up to your creativity.