Advertisement
imBEheAR

asdasd

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