Started by
chezballs
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
"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