how to pull entities to a another entities

Started by WELLOTHEHERO on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Oct 2020
Points:
685

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
how to pull entities to a another entities

I have set a mob (tortos) and I want the mob to attract other mobs around it when it dies. (actually I want it to pull all mobs but I didn't know how to choose it) this procedure
From a video of NorthWestTrees, I couldn't adapt it to my mod. how will I do.
Even in the procedure, I couldn't understand exactly what was going on. What does the last if do part do? What is yaw and pitch?

img:https://imgur.com/a/Wuti6w3