How to make a spawned creature automatically tame

Started by Ball-van on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 months ago
Joined Apr 2021
Points:
816

User statistics:

  • Modifications: 0
  • Forum topics: 46
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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
Active 2 years ago
Joined Aug 2021
Points:
565

User statistics:

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

Active 3 weeks ago
Joined Jul 2021
Points:
694

User statistics:

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

thanks you're a life saver

Active 3 weeks ago
Joined Jan 2018
Points:
741

User statistics:

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