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

Started by WatermelonFrogy on

Topic category: Help with Minecraft modding (Java Edition)

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!

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)

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.

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.

 

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

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?

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?

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

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?"

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

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