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. what's wrong in this code?
    [​IMG]
     
  2. Offline

    WolfMage1

    setIngredient requires a Material not an ItemStack

    EDIT:
    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. 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.
     
  4. Offline

    WolfMage1

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

    Zombie_Striker

    @Urag
    1. Don't use letters for recipes.
    2. "p" is not even in the recipe.
    3. You're thinking of "setResult"
     
  6. 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