Started by
qym
on
Topic category: Help with Minecraft modding (Java Edition)
I was wondering is there a way to limit the target to only one while using the "for each entity as entity iterator at XYZ square cube size"?it usually targets all the entity nearby but i want it to target only one just like the Minecraft command "limit"
Something like this? Might want to change the X Y Z to X position of event/target entity, but this procedure would do 1000 damage to only blazes near you. if you were surrounded with wither skeletons and magma slimes and blazes, it would only kill the blazes.
not like this i meant like the nearest entity but i want to make it able to target players too
Follow what the first guy said, just swap the "Entity iterator" tag in the "Deal damage" block to "Event/Target Entity" which should be the player depending on what is supposed to trigger this event in the first place.