How to make a procedure that makes all of the nearby enderman's attack target the player (NOT RESOLVED)

Started by chezballs on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined May 2025
Points:
22

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
How to make a procedure that makes all of the nearby enderman's attack target the player (NOT RESOLVED)
Sun, 05/18/2025 - 21:16 (edited)

I need to make a procedure that for when a block is broken by a player, all nearby enderman will attack the player or target entity. I can only find a block that can identify the nearest entity, but reusing the code multiple times doesn't work because the same mob will always be the closest. Any help is appriciated. I can show pictures if needed.

Edited by chezballs on Sun, 05/18/2025 - 21:16
Active 3 months ago
Joined May 2025
Points:
22

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Maybe a way to exclude the…
Sun, 05/18/2025 - 21:10

Maybe a way to exclude the closest mob from the search could work, but I don't know how. This might be in the wrong section too, so sorry.

Active 2 days ago
Joined Feb 2024
Points:
261

User statistics:

  • Modifications: 5
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 93
"For each entity as entity…
Thu, 07/10/2025 - 12:36

"For each entity as entity iterator in square of (Ex. 80)".

If the iterator entity is an enderman set attack target (of entityiterator) the player