Solved what's wrong in this code?

Discussion in 'Plugin Development' started by Urag, Mar 30, 2016.

Thread Status:
Not open for further replies.
  1. Offline


    what's wrong in this code?
  2. Offline


    setIngredient requires a Material not an ItemStack

    After looking at docs you can use either Material or MaterialData

    so, just use pokeballzombie.getData()
    Last edited: Mar 30, 2016
    Urag likes this.
  3. Offline


    Thank you! :)
  4. Offline

    bwfcwalshy Retired Staff

    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.
  5. Offline


    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().
  6. Offline


    1. Don't use letters for recipes.
    2. "p" is not even in the recipe.
    3. You're thinking of "setResult"
  7. Offline

    bwfcwalshy Retired Staff

    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.
Thread Status:
Not open for further replies.

Share This Page