This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I want to know what Entity.getAll() does. I've seen it in some (very few) scripts but don't understand it's function, and couldn't find it in a Wiki or elsewhere.
Entity.getAll() puts all entitys in an array, you can use that like this:
var ents=Entity.getAll();
for(var i=0; i< ents.length; i++){
if(Entity.getEntityTypeId(ents[i])==33){
Entity.remove(ents[i]);
}
This removes all creepers.
I want to know what Entity.getAll() does. I've seen it in some (very few) scripts but don't understand it's function, and couldn't find it in a Wiki or elsewhere.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumEntity.getAll() puts all entitys in an array, you can use that like this:
var ents=Entity.getAll();
for(var i=0; i< ents.length; i++){
if(Entity.getEntityTypeId(ents[i])==33){
Entity.remove(ents[i]);
}
}
This removes all creepers.