Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemStack[] contents = getInventory().getContents();
- for (int i=2; i<contents.length; i++) {
- ItemStack stack = contents[i];
- if (stack != null) {
- getWorld().dropItemNaturally(getLocation(), contents[i]);
- getInventory().remove(contents[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment