How can I make the boss teleport to the player?

Started by Vladius120 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make the boss teleport to the player?

I have a boss and a condition. I want him to be able to teleport to the nearest player. How can this be done? If possible, attach a photo, please.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a procedure block…
Mon, 04/21/2025 - 22:45

There is a procedure block that says "For each entity as (entity iterator) at x y z in a square cube with size (4)". Change the 4 for a bigger number that you think would cover the reach of the enemy. 

Inside that block, you are going to put "Attempt to make (Event/target entity) find path and move to x y z with speed factor (1)", except that you are going to change the x y and z blocks for "X position of (Entity Iterator)" "Y position of (Entity Iterator)" and "Z position of (Entity Iterator)" respectively. Also change the speed if you want it to move faster. 

 

I think that should do the trick.