robocyclone

Error Testing

Dec 29th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. local success, idtable = turtle.inspectDown()
  2. if success and idtable.name == "minecraft:chest" then
  3.     print("success")
  4. else
  5.     error("need chest below turtle!")
  6. end
Advertisement
Add Comment
Please, Sign In to add comment