Answers for "minecraft remove broken tile entity from world"

1

spigot remove every entity

//Get all entities
Bukkit.getWorld("world").getEntities().forEach(entity -> {

            //Check if entity isnt a player
            if(!(entity instanceof Player))
                entity.remove();

});
Posted by: Guest on December-08-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language