# 練習問題答え
正解のコードの例は下のとおり
import mcpi.minecraft as minecraft import time mc = minecraft.Minecraft.create() for _ in range(10): time.sleep(3) pos = mc.player.getPos() mc.postToChat(pos)
正解のコードの例は下のとおり
import mcpi.minecraft as minecraft import time mc = minecraft.Minecraft.create() x, y, z = mc.player.getPos() for _ in range(100): time.sleep(1) mc.setBlock(x, y + 100, z + 1, 13)