Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = 13
- peripheral.find("modem", rednet.open)
- while true do
- sleep(0.1)
- local pos.x, pos.y, pos.z = 394, 74, 53
- local vel.x, vel.y, vel.z = 0, 0, 0
- pos.x = math.floor(pos.x * 100 + 0.5) / 100
- pos.y = math.floor(pos.y * 100 + 0.5) / 100
- pos.z = math.floor(pos.z * 100 + 0.5) / 100
- vel.x = math.floor(vel.x * 100 + 0.5) / 100
- vel.y = math.floor(vel.y * 100 + 0.5) / 100
- vel.z = math.floor(vel.z * 100 + 0.5) / 100
- poss = pos.x .." ".. pos.y .." ".. pos.z
- vels = vel.x .." ".. vel.y .." ".. vel.z
- mes = poss .. "\n" .. vels
- print(mes)
- rednet.send(id, mes)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement