turt2live

Untitled

Dec 18th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. if(firstEmpty >= 0){
  2.     // There is an empty slot
  3.     if(playerItemInSlot1 != null && != air){
  4.         // They have something there
  5.         inventory.setItem(firstEmpty, playerItemInSlot1); // Move item
  6.     }
  7.     inventory.setItem(1, myItem); // Set the tool to slot 1
  8. }
Advertisement
Add Comment
Please, Sign In to add comment