Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sides = {"right", "left", "bottom", "top", "front", "back"}
- function start()
- for k, side in pairs(sides) do
- if peripheral.isPresent(side) then
- if peripheral.getType(side) == "modem" then
- rednet.open(side)
- end
- end
- end
- local x, y, z = commands.getBlockPosition()
- local command = string.format("gps host %d %d %d", x, y, z)
- shell.run(command)
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement