Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Inventory inventory = Bukkit.createInventory(null, 54, "NAME");
- ItemStack orangeglass = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) 1);
- ItemMeta orangee = orangeglass.getItemMeta();
- orangee.setDisplayName("");
- orangeglass.setItemMeta(orangee);
- ItemStack yellowglass = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) 4);
- ItemMeta yelloww = yellowglass.getItemMeta();
- yelloww.setDisplayName("");
- yellowglass.setItemMeta(yelloww);
- ItemStack blackglass = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) 15);
- ItemMeta blackk = blackglass.getItemMeta();
- blackk.setDisplayName("");
- blackglass.setItemMeta(blackk);
- for (int slot = 0; slot < 53; slot++){
- if (slot == 0 || slot == 1 || slot == 9 || slot == 44 || slot == 52 || slot == 53){
- inventory.setItem(slot, orangeglass);
- continue;
- }
- if(slot == 7 || slot == 8 || slot == 17 || slot == 36 || slot == 45 || slot == 46){
- inventory.setItem(slot, yellowglass);
- continue;
- }
- if(slot == 10 || slot == 11 || slot == 12 || slot == 13 || slot == 14 || slot == 15 || slot == 16
- || slot == 19 || slot == 20 || slot == 21 || slot == 22 || slot == 23 || slot == 24 || slot == 25
- || slot == 28 || slot == 29 || slot == 30 || slot == 31 || slot == 23 || slot == 33 || slot == 34
- || slot == 37 || slot == 38 || slot == 39 || slot == 40 || slot == 41 || slot == 42 || slot == 43){
- inventory.setItem(slot, null);
- }
- inventory.setItem(slot, blackglass);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement