Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local s = sensor.wrap("top")
- while true do
- if redstone.getInput("back") == true then
- if s.getTargetDetails("anthonybreda").IsPlayer == true then
- if s.get TargetDetails("anthonybreda").Position.Y == -1 then
- term.write("OK")
- end
- end
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement