top of page

@Override     public void onEnable() {         Bukkit.addRecipe(getAxeRecipe());              }          @Override     public void onDisable() {              }          public ShapedRecipe getAxeRecipe() {                  ItemStack item = new ItemStack(Material.NETHERITE_AXE);         ItemMeta meta = item.getItemMeta();                  meta.setDisplayName(ChatColor.GOLD + "Axe of Golems");         meta.addEnchant(Enchantment.DIG_SPEED, 2, true);         meta.addEnchant(Enchantment.LOOT_BONUS_BLOCKS, 4, true);         meta.addEnchant(Enchantment.MENDING, 1, true);                  item.setItemMeta(meta);                                NamespacedKey key = new NamespacedKey(this, "Axe_of_Golems");          ShapedRecipe recipe = new ShapedRecipe(key, item);          recipe.shape("II", " SI", " S ");          recipe.setIngredient('I', Material.IRON_BLOCK);     recipe.setIngredient('S', Material.STICK);          return recipe;          }      }

bottom of page