diff --git a/lib/plugins/command.js b/lib/plugins/command.js index 7ef7d78..aeffc24 100644 --- a/lib/plugins/command.js +++ b/lib/plugins/command.js @@ -351,6 +351,8 @@ function command(username, message) { break; } break + // TODO move look (and maybe find) to informer plugin? + case "look": case "lookat": // const coords = v(message_parts.splice(1)) switch (message_parts.length) { @@ -369,13 +371,12 @@ function command(username, message) { case "this": // TODO lookat the block the user is looking at + // Currently looks player position if (player) { - bot.lookAt((new v.Vec3(0, 1, 0)).add(player.position)) - todo() + bot.lookAt(player.position) } else { cfg.quiet || bot.chat("can't see you") } - break; break default: const aPlayer = bot.players[message_parts[2]] ? bot.players[message_parts[2]].entity : null