1

This question already has an answer here:

I'm trying to make a place where nether mobs are friends but I don't know how to. How do I make a mob friendly? (I'm making the map in Creative mode.)

marked as duplicate by Virusbomb, Timmy Jim, Schism, dly, JohnoBoy Aug 15 '18 at 14:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • That sounds like the opposite of what they're trying to accomplish... – Shadur Aug 15 '18 at 14:20
2

You can achieve friendly effect by setting base of generic.followRange attribute of a hostile mob to 0. However doing so will completely disable targetting & tracking ability of a said mob. For example, here's the command to summon friendly blaze using this method:

/summon Blaze ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:0}]}

  • You can change the follow range, but I would like some way to make the mob hostile to other mobs as well. Like how snowmen and blazes hate each other. Make it passive to you, and you now have a creeper pet! I have no clue if this is possible, but if you could stick the wolf code in a zombie, that would be great. – user151259 Jun 15 '16 at 16:01
  • @user151259 I think that's possible with scoreboard teams, unfortunately my connection is poor where I am now, so you'll have to search it up yourself. – QbsidianH20 Jun 15 '16 at 17:03
-2

I'm sorry but the only way to do this is by using a mod, you can't do that in normal minecraft without being constantly on creative mode. I recommend you using a mod called Single Player Commands (Link on the bottom). There just use the command "mobdamage" (without quotation marks).

Mod link on the minecraft forum: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272348-single-player-commands-v4-9-official-download-spc

Example:

Not the answer you're looking for? Browse other questions tagged or ask your own question.