#find players near mob inside creaturespawnevent listener
1 messages · Page 1 of 1 (latest)
getNearbyEntities
thank you, how would I parse the collection?
or get the player from it?
how could I use a predicate in this situation?
Collection entitiesnearpig = zombifiedpiglin.getNearbyEntities(1000, 1000, 1000); code for getting nearby entities
Read the docs
how would I get the player object for the predicate?
after checking if it is a player how do I get the player object from the collection?
Loop over each element and it should be a player