Advertisement
Win4Win

test5

Dec 20th, 2022 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local sensor = peripheral.wrap("back")
  2.  
  3. while 1 do
  4. os.setComputerLabel(TurtleName)
  5. for Key, Value in pairs(sensor.sense()) do
  6. local Meta = sensor.getMetaByID(Value.id)
  7. if not Meta or not Meta.food then
  8.  
  9. else
  10. print(Meta.displayName)
  11. print(Meta.x)
  12. print(Meta.y)
  13. print(Meta.z)
  14. sleep(2)
  15. for k,v in pairs(Meta.potionEffects) do
  16. print(k)
  17. print(v)
  18. end
  19. end
  20. end
  21. os.sleep(5)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement