How do i turn a vanilla hostile mob passive once given an item?

Started by WatermelonFrogy on

Topic category: Help with modding (Java Edition)

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i turn a vanilla hostile mob passive once given an item?

Hello!

I want to make a very simple mod that makes creepers friendly once given a flower.

How would i go about doing that?

Also if possible i'd like the flower you gave the creepy to appear on its head like the muddy pig fMuddy pig
Thanks in advance!

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
different entity. search…
Sat, 10/30/2021 - 16:45

different entity. search before posting (or code but I don't think you would want to deal with that)

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did search, i couldn't…
Sun, 10/31/2021 - 01:31

I did search, i couldn't find anything about it.

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i still have no idea what to…
Sun, 10/31/2021 - 01:31

i still have no idea what to do.

 

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a different entity and…
Sun, 10/31/2021 - 01:42

make a different entity and despawn the creeper and spawn the one with flower, something so simple that you can do by searching on different things

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes but how would i make the…
Sun, 10/31/2021 - 01:45

yes but how would i make the entity act the same as the creeper minus the explosions and following?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
AI
Sun, 10/31/2021 - 02:12

AI

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, what about the flower…
Sun, 10/31/2021 - 02:19

Okay, what about the flower on its head?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom model or texture bruh
Sun, 10/31/2021 - 02:49

Custom model or texture bruh

Last seen on 01:38, 14. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why are you being so rude…
Sun, 10/31/2021 - 02:59

Why are you being so rude and aggressive about this?
I'm new to all this and need help, you shouldn't be like "oh just do this how did you not know something so simple?"

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for rudeness but I…
Sun, 10/31/2021 - 03:08

sorry for rudeness but I already explained you 2 times

I suggest you check our…
Mon, 11/01/2021 - 09:29

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 21:45, 9. Mar 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Might have to spawn in a…
Sun, 11/21/2021 - 10:41

Might have to spawn in a different variant of the entity your trying to "tame" then in the AI click animal.

Procedure when right clicked:

If: item = "flower type"

Do: Spawn "flower creeper" at X Y Z   Add:  despawn target entity Optional: tame "Entity" by "Source Entity"

 

You might have to make those different variants of flower creepers by hand I don't think Mcreator has the ability to grab textures from files. Unless someone knows