Started by
Samuelchr_
on
Topic category: Help with Minecraft modding (Java Edition)
it just says "Entity iterator procedure block outside foreach statement"
I really need to be able to return a number from entity iterators so plz help me
Edited by Samuelchr_ on Wed, 09/18/2024 - 16:16
So you want to return a number eg the number of entities? If so make a local varibale, on entity iterator if (not) entity iterator = entity null then set local varibale to local variable + 1. That will count all entities in the entity iterator area. After looking at your procedure I have no idea what your trying to do. What is calling the procedure, the triggers show what information they can output.
You cant target entity iterator without calling for multiple entities using the entity iterator procedure.
thank you for your help