|
|
|
@ -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("; ")) |
|
|
|
|