[SOLVED]Item that makes mobs passive

Started by Lord Makishi on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2021
Points:
744

User statistics:

  • Modifications: 0
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
[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
Active 3 months ago
Joined Aug 2022
Points:
634

User statistics:

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

Make it tame-able

Active 2 years ago
Joined Mar 2021
Points:
744

User statistics:

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

Active 3 months ago
Joined Aug 2022
Points:
634

User statistics:

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

Piglins... Try and borrow their code?

Active 3 months ago
Joined Aug 2022
Points:
634

User statistics:

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

I hope it's possible

 

Active 2 years ago
Joined Mar 2021
Points:
744

User statistics:

  • Modifications: 0
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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! :}

Active 3 months ago
Joined Aug 2022
Points:
634

User statistics:

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

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

Active 1 year ago
Joined Oct 2021
Points:
491

User statistics:

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

Active 3 months ago
Joined May 2023
Points:
226

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
can you show a pic of this…
Tue, 12/24/2024 - 17:19

can you show a pic of this procedure?