Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = peripheral.wrap("left")
- while true do
- sleep(4)
- x, y, z, blockID, blockMeta, blockResistance = l.getFirstHit()
- if (x ~= -1) and (blockResistance ~= -1) then
- print ("Hit: (" .. x .. "; " .. y .. "; " .. z .. ") ID: " .. blockID .. ". Resistance: " .. blockResistance)
- else
- print ("No hits.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment