There are many ways out there to find the id of a slot you are looking for. This is the outcome of the little amount of code that goes into this : It puts the amount of items according the slot id This is just the raw code: Code:java for(int i = 0; i < 40; i++) {player.getInventory().setItem(i, new ItemStack(Material.STONE, i + 1));} The way I used this: Code:java public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player player = (Player) sender; if(cmd.getName().equalsIgnoreCase("is") || cmd.getName().equalsIgnoreCase("inventoryslots")) { player.getInventory().clear(); for(int i = 0; i < 40; i++) { player.getInventory().setItem(i, new ItemStack(Material.STONE, i + 1)); } } return false; }
CarPet Your armor ids are wrong, and you don't have the crafting slot ids. Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Edit: Actually all of them are wrong because as SmellyPenguin said, the first slot is 0, not 1.