Advertisement
_Ziper_YT_

Untitled

Jun 11th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. id = 13
  2. peripheral.find("modem", rednet.open)
  3. while true do
  4. sleep(0.1)
  5. local pos.x, pos.y, pos.z = 394, 74, 53
  6. local vel.x, vel.y, vel.z = 0, 0, 0
  7.  
  8. pos.x = math.floor(pos.x * 100 + 0.5) / 100
  9. pos.y = math.floor(pos.y * 100 + 0.5) / 100
  10. pos.z = math.floor(pos.z * 100 + 0.5) / 100
  11. vel.x = math.floor(vel.x * 100 + 0.5) / 100
  12. vel.y = math.floor(vel.y * 100 + 0.5) / 100
  13. vel.z = math.floor(vel.z * 100 + 0.5) / 100
  14.  
  15. poss = pos.x .." ".. pos.y .." ".. pos.z
  16. vels = vel.x .." ".. vel.y .." ".. vel.z
  17. mes = poss .. "\n" .. vels
  18. print(mes)
  19.  
  20. rednet.send(id, mes)
  21. end
  22.  
  23.  
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement