6-5 村の鉱夫たち
解説動画
※回答のブロックIDは236→237、35→41が正しいです。
解答コード
player.onChat("6-5", function () {
while (agent.inspect(AgentInspection.Block, DOWN) != 152) {
agent.move(FORWARD, 1);
}
while (agent.inspect(AgentInspection.Block, DOWN) != 133) {
agent.move(RIGHT, 1);
}
while (agent.inspect(AgentInspection.Block, DOWN) != 22) {
agent.move(FORWARD, 1);
}
while (agent.inspect(AgentInspection.Block, DOWN) != 57) {
agent.move(RIGHT, 1);
}
agent.turn(RIGHT_TURN);
agent.place(FORWARD);
});