register("command", function () {
ChatLib.chat("=== ENTITY DEBUG START ===")
let entities = World.getAllEntities()
entities.forEach(entity => {
try {
let name = ChatLib.removeFormatting(entity.getName())
if (name && name.trim() !== "") {
ChatLib.chat(name)
}
} catch (e) {}
})
ChatLib.chat("=== ENTITY DEBUG END ===")
}).setName("debugmine")