feat(informer): 🚸 add more detail to entity info
This commit is contained in:
parent
984c9490c3
commit
186d6ac3d2
|
@ -126,7 +126,9 @@ function entity(name = bot.nearestEntity()) {
|
|||
quiet || bot.chat("no entity")
|
||||
return entity
|
||||
}
|
||||
let info = [entity.type, entity.username || entity.name]
|
||||
entity?.position && bot.lookAt(entity.position)
|
||||
let info = [(entity.entityType && entity.entityType + ":" || "") + (entity.type === "object" ? entity.kind : entity.type)]
|
||||
info.push(entity.username || entity.name)
|
||||
// TODO various info depending on the type of entity; player, villager, etc
|
||||
if (entity.metadata) info.push("len: " + entity.metadata.length)
|
||||
quiet || bot.chat(info.join("; "))
|
||||
|
|
Loading…
Reference in New Issue
Block a user