Advertisement
AdventurousMR

Terminal Command

Jul 10th, 2022 (edited)
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. --Terminal Command Code--
  2.  
  3. function printUsage(type)
  4.     if type == "turtle" then
  5.         print("Usages:")
  6.         print("turtle get <item_name> (diamond) <amount>")
  7.         print("turtle craft <item_name> (white_bed) <amount>")
  8.     end
  9. end
  10.  
  11. local command = read()
  12.  
  13. if command then
  14.     if command == "turtle" then
  15.         printUsage(turtle)
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement