Advertisement
tahg

Untitled

Aug 31st, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Turtles would have a new hidden ItemStack that stores the currently equipped tool.
  2. Tools would use the same render code as when being rendered by a player.
  3.  
  4. boolean turtle.equip() -- equips/swaps the item at the current slot, fails if not equipable
  5. boolean turtle.dequip() -- removes the tool to the current slot (if empty)
  6. boolean turtle.canUse() -- also canUseUp, canUseDown true if the equipped tool is appropriate
  7.  
  8. boolean turtle.compareToName(name, [size]) -- true if the selected slot matches the name and if size ~= nil, the current stack size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement