Crafting recipes only on crafting table

Discussion in 'Plugin Development' started by thebard88, May 17, 2017.

Thread Status:
Not open for further replies.
  1. Hello i'm trying to make a crafting recipe that you can only make on a crafting table as it only has two items here is the code...
    Code:
            ShapedRecipe Iron = new ShapedRecipe(ItemList.ironIngot);
            Iron.shape("XXX","ABX","XXX");
            Iron.setIngredient('A',Material.COAL);
            Iron.setIngredient('B',Material.IRON_ORE);
            Iron.setIngredient('X', Material.AIR);
            Bukkit.getServer().addRecipe(Iron);
    any help would be greatly appreciated!
     
  2. Online

    timtower Administrator Administrator Moderator

  3. @timtower even though all the slots are taken up it will still allow you to use the inventory crafting table.
     
  4. Online

    timtower Administrator Administrator Moderator

    @thebard88 Then why not put 1 item in the top left corner and the other one bottom right?
     
  5. @timtower surely there is way to keep the items where they are and not making it look stupid?
     
  6. Online

    timtower Administrator Administrator Moderator

    @thebard88 I do not know.
    Not sure how recipes are handled for this.
    There is a pre craft event, could cancel it if it is the 2*2 grid.
     
    Horsey likes this.
Thread Status:
Not open for further replies.

Share This Page