Am i missing something?

Discussion in 'Programming' started by Lucian, May 20, 2015.

  1. I've had this plugin for a bit now. I call it GodSwords. Its simple, just custom recipes that have enchants. Players on my server wanted me to expand the plugin with a Pickaxe as well. No big deal right? I write the new item, just like the other. But guess what! It doesnt work. Perhaps im blind and just missing a mistake, it most likely right in front of me, but anyone see why this segment isnt working?

    Code (Text):
    private void superpick() {
                    ItemStack superpick = new ItemStack(Material.DIAMOND_PICKAXE, 1);
                    ItemMeta meta = superpick.getItemMeta();
                    meta.setDisplayName(ChatColor.GREEN + getConfig().getString("PickName"));
                    meta.setLore(Arrays.asList ("Not even the dwarves are worthy"));
                    superpick.addUnsafeEnchantment(Enchantment.DIG_SPEED, 8);
                    superpick.addUnsafeEnchantment(Enchantment.DURABILITY, 4);
                    superpick.addUnsafeEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 4);
                    ShapedRecipe superpickaxe = new ShapedRecipe(superpick);
                            " % ",
                            " % ");
                    superpickaxe.setIngredient('@', Material.DIAMOND_BLOCK);
                    superpickaxe.setIngredient('%', Material.STICK);
                    superpickaxe.setIngredient('#', Material.GOLD_BLOCK);
  2. Is there any errors that print to console? Whats not working? I may be blind but I don't see anything wrong there.
  3. This is why debug messages exist.
    • Winner Winner x 1
  4. Yea theres no errors at all... No debug messages... Thats why Im confused. I've made many custom recipes like this, but this specific one is the only one not working... I have no clue whats going on.
  5. You make your own...
    • Agree Agree x 2
    • Winner Winner x 1
  6. I'm going to ask something really stupid, is superpick() even called? :p