How to make a spawned creature automatically tame

Started by Ball-van on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a spawned creature automatically tame
Wed, 08/11/2021 - 13:41 (edited)

Hello! I would like to know the network is there a way to make the spawned creature automatically tame without any action from the player's side. Thanks in advance to everyone who will respond to help.

Edited by Ball-van on Wed, 08/11/2021 - 13:41
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can spawn the entity…
Fri, 08/20/2021 - 21:36

You can spawn the entity using the "Spawn at x y z entity (pig)" block and using a procedure block that says "Tame <Event/target entity> by <Source entity>" changing "Event/target entity" to "Get nearest entity at x y z in square of 1 of type (pig)". Just like this: https://imgur.com/ZO3mlbg
Also make sure (if it's a custom entity) that it has this check box selected in the 'AI and goals' section: https://imgur.com/WCs8NRV

That worked for me spawning automatic tamed shadows from a magic staff. Hope it works!

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks you're a life saver
Fri, 06/03/2022 - 00:47

thanks you're a life saver

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
unfortunately, my Mcreator…
Fri, 12/13/2024 - 17:50

unfortunately, my Mcreator writes that the procedure cannot be used because there are not enough dependencies(((