register("command", () => {
ChatLib.chat("&a=== ENTITY DEBUG START ===")
let entities = World.getAllEntities()
for (let entity of entities) {
try {
let name = ChatLib.removeFormatting(entity.getName())
if (name && name.length > 0) {
ChatLib.chat(name)
}
} catch (e) {}
}
ChatLib.chat("&a=== ENTITY DEBUG END ===")
}).setName("debugmine")