bump
The recipe is already created: if (getConfig().getInt("DiamondHelmet.diamond") != 0) { ShapelessRecipe recipe5 = new ShapelessRecipe(new...
Any idea what method is called that would allow me to set the result? [Edit] Maybe PrepareItemCraftEvent? but the setResult method isn't an item...
Yep, getServer().getPluginManager().registerEvents(this, this); is in my onEnable method [Note] onCraftItemEvent is in the main class along with...
How do I properly set the result of a recipe in the crafting table? The code I wrote doesn't seem to work. @EventHandler public void...
andf54 Here is the stack trace: 14:05:55 [WARNING] Failed to handle packet: java.lang.NullPointerException java.lang.NullPointerException...
andf54 Okay so my code is cleaned up a bit now thanks to your suggestions but now I'm receiving a null pointer exception. Here is what I've got:...
Right. That makes a lot of sense. If item.equals(Material.IRON_HELMET) it would be looking for a helmet at full durability. uses / max would be a...
Wouldn't that give me the the percent durability used rather than what is left? ex. uses = 25; max = 166; 100 * 25/166 = 15 [Edit] Oh...
I am attempting to make an item return an amount of ingots depending on it's durability. This method seems to work but only if the durability is...
Wrong forum. This should be posted in plugin requests.
Oh! I didn't realize I needed to caste the numbers.. Thank you! :)
I am attempting to make a recipe which yields a specific wood type but I can't figure out how to set the damage value in an item stack. for...
ItemRegress Version: v1.1 Check out ItemRegress on BukkitDev!
You don't need to make it as a method. Have you tried simply putting the code in the onEnable()?
ShapelessRecipe recipe = new ShapelessRecipe(new ItemStack(Material.<output material>, <int>)); recipe.addIngredient(Material.<input material>);...
getServer().addRecipe(recipe); should be getServer().addRecipe(mossycobble);
Nope :(. I kinda figured it wouldn't do much since it's already in the main class. I re-wrote the config file it works fine now. Thanks for all...
Unfortunately that didn't work. I have no idea why it's setting the variable to null...
I gave it a go. It needs true in it for the boolean else the recipe isn't added I tried this: if(getConfig().getBoolean("LeatherHelmet.enabled",...
Separate names with a comma.