Solved Custom Crafting Table

Discussion in 'Plugin Development' started by ShotsMC, Oct 28, 2019.

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

    ShotsMC

    I don't know if this is the right thread to post in, if not then I will move it to the correct one, or if there is anything wrong.

    I am trying to create a custom crafting table like the one on Hypixel.

    I have created the inventory when clicking on a crafting table just fine but I have no clue how to see what item and how many are placed in the "crafting grid". Is there anyway to find this out, thanks.
     
  2. Offline

    wand555

    Maybe you could get each slot and check after each InventoryInteractEvent if the current items equal any recipe.
     
  3. Offline

    ShotsMC

    How would I do that? Just use .getSlot()?
     
  4. Offline

    wand555

    Depending on how you build your custom GUI, you can use .getRawSlot() to get the slot. I think the best way to approach this would be to make methods to get each slot (maybe put them in an array/arraylist) and then use that for checking the recipe.
     
Thread Status:
Not open for further replies.

Share This Page