Discussion in 'Plugin Development' started by Urag, Mar 30, 2016.
what's wrong in this code?
setIngredient requires a Material not an ItemStack
After looking at docs you can use either Material or MaterialData
so, just use pokeballzombie.getData()
You can't have ItemStacks in recipes, yes it sucks. You can make your own crafting table type thing using blocks like dispensers though. Look at @mrCookieSlime's Slimefun for a perfect example of this.
After looking at docs I found there's 2 kinds of setIngredient.
1 using Material
and the other using Material data. so if you've made a custom item (I'm guessing) you can just use item.getData().
Don't use letters for recipes.
"p" is not even in the recipe.
You're thinking of "setResult"
Yeah, I've tried this before but it still doesn't work very well. If I recall correctly it still doesn't really work for itemstacks.
Separate names with a comma.