How to make a spawned creature automatically tame

Started by Ball-van on

Topic category: Help with modding (Java Edition)

Last seen on 18:29, 16. Mar 2024
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
Last seen on 07:36, 20. Apr 2023
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!

Last seen on 01:47, 20. Apr 2024
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