This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
someone can pass me or say a method for removing objects released?
for example by killing a mob, not loose anything
ModPE only please
function modTick() //triggers 20 times per second
{
for(ent in Entity.getAll()) //gets all entitys
if (Entity.getEntityTypeId(ent) == EntityType.ITEM) //if the ent is a item
Entity.remove(ent); //remove ent
}
I think that will work.
https://github.com/Connor4898/ModPE-Docs/wiki/
someone can pass me or say a method for removing objects released?
for example by killing a mob, not loose anything
ModPE only please
function modTick() //triggers 20 times per second
{
for(ent in Entity.getAll()) //gets all entitys
{
if (Entity.getEntityTypeId(ent) == EntityType.ITEM) //if the ent is a item
{
Entity.remove(ent); //remove ent
}
}
}
I think that will work.
https://github.com/Connor4898/ModPE-Docs/wiki/