Advertisement
terriblysapphic

Untitled

Sep 5th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local can_pass, type = r.detect()
  2. if can_pass then
  3.   if type == "solid" -- if this is reached, we already know can_pass is true
  4.     print("Tree has grown") -- etc
  5.   else if type == "passable" then
  6.     print("hasn't grown yet") -- etc
  7.   end
  8. else
  9.   print("no sapling in place") -- etc
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement