Solved How to set Workbench Inventory Title?

Discussion in 'Plugin Development' started by Korotaxx, Mar 16, 2020.

  1. Offline

    Korotaxx

    I'm currently working on a plugin for SkyBlock, where you can craft items you couldn't usually obtain. In the plugin I have a lot of custom crafting recipes and therefore want to make a recipe book/command. I want to use the workbench inventory for the displaying of the recipes but cannot find a way to distinguish between the normal workbench inventory and the recipe inventory. The simplest way would be to check for the name of the inventory, but I can't find a way to set the title of a workbench inventory. Is there a way to set a custom title for workbench inventories? If yes, how? If no, is there another way to distinguish between the two inventories?
     
  2. Offline

    Machine Maker

    When you create the inventory (Bukkit.createInventory), there is an argument to set a custom title.
     
  3. Offline

    Korotaxx

    Ok. ty :D
     

Share This Page