Posted January 22, 201312 yr i have been working on making a custom api for my mod to add spells to the game, they are being added like enchantments so everyone can make custom spells. I am pretty close from what i think but i am stuck because i can't get the size of a stack. my first try Error: needs me to change getItemStack to static //how enchantments do it but has it in the Item class instead public boolean isItemWand(ItemStack par1ItemStack) { return Item.getItemStackLimit() == 1; } second try Error: needs me to change getItemStack to static public boolean isItemWand(ItemStack par1ItemStack) { if(Item.getItemStackLimit() == 1) { return true; } } third try Error: needs me to change the visiblity to public public boolean isItemWand(ItemStack par1ItemStack) { if(Item.maxStackSize == 1) { return true; } } Creator of Jobo's ModLoader If I helped you could you please click the thank you button and applaud my karma.
January 22, 201312 yr Have you tried ItemStack.stackSize ? "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
January 22, 201312 yr Author thanks that worked i can't believe i didn't think of that. Creator of Jobo's ModLoader If I helped you could you please click the thank you button and applaud my karma.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.