no taming pets

Started by RoguelikePaladin_ on Sun, 02/21/2021 - 15:41

Topic category: Help with modding (Java Edition)

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no taming pets
Sun, 02/21/2021 - 15:41

what i want is for when you right click with a sword it spawns a few pet enties taht charge at the nearest entity to attack. but for some reason the only way i can do that is if you right click them to tame similar to a wolf. does anyone know how to make them spawn serving you?

Last seen on 10:21, 14. Apr 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For each entity in a radius…
Sun, 02/21/2021 - 16:50

For each entity in a radius of 5 :

if entityiterator = wolf:

tame entityiterator by event/target entity