local reader = peripheral.find("blockReader")
os.startTimer(0.05)
while true do
local event = os.pullEvent()
if event == "timer" then
os.startTimer(0.1)
local NBT = reader.getBlockData()
--print("Looking at "..NBT)
print("Start")
print("Pitch = "..NBT.CannonPitch..", Yaw = "..NBT.CannonYaw)
elseif event == "key" then
print("exiting")
break
end
end
Reply chain from #40
7 replies not shown · View on Discord