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)

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

Active 1 year ago
Joined Oct 2020
Points:
1616

User statistics:

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

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

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

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

i still have no idea what to do.

 

Active 1 year ago
Joined Oct 2020
Points:
1616

User statistics:

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

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

Active 1 year ago
Joined Oct 2020
Points:
1616

User statistics:

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

AI

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

Okay, what about the flower on its head?

Active 1 year ago
Joined Oct 2020
Points:
1616

User statistics:

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

Custom model or texture bruh

Active 3 years ago
Joined Oct 2021
Points:
562

User statistics:

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

Active 1 year ago
Joined Oct 2020
Points:
1616

User statistics:

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

Active 58 minutes ago
Joined Nov 2021
Points:
565

User statistics:

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