invisible items in workbenck (1.12.2)

Discussion in 'Plugin Development' started by atesin, Sep 23, 2017.

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

    atesin

    hi... i wrote a recipes plugin, user friendly and with many original features -> https://dev.bukkit.org/projects/recipe-search

    it worked perfect, but with 1.12.2 release recipes drawn in workbenck are made of invisible items... the curious thing is furnace recipes are shown ok

    please download and try it with different bukkit versions (maybe you will like it) and see what i am talking about ... source included (gpl v3)
     
  2. Offline

    Minesuchtiiii

    I just have the exact same problem atm and don't know how to fix it, it's just really annoying.. if anyone knows how to make the items visible this would be really appreciated!

    Having problem with stuff like:
    Code:
                                Inventory craft5 = Bukkit.createInventory(null, InventoryType.WORKBENCH);
                                craft5.setItem(1, new ItemStack(Material.SLIME_BALL));
                                craft5.setItem(3, new ItemStack(Material.SLIME_BALL));
                                craft5.setItem(7, new ItemStack(Material.SLIME_BALL));
                                craft5.setItem(9, new ItemStack(Material.SLIME_BALL));
                                craft5.setItem(2, new ItemStack(Material.BONE));
                                craft5.setItem(4, new ItemStack(Material.BONE));
                                craft5.setItem(6, new ItemStack(Material.BONE));
                                craft5.setItem(8, new ItemStack(Material.BONE));
                                craft5.setItem(5, new ItemStack(Material.BOW));
                               
                                p.openInventory(craft5);
     
  3. Offline

    atesin

    any news abour this? .. i forgot to mention, until unnecessary i tried Player.inventoryUpdate() already
     
  4. Offline

    atesin

    does anybody have some update about this?
     
  5. Offline

    Minesuchtiiii

    I still have the problem
     
  6. Offline

    VictoryShot

    First off, I would not start at setItem(1,2,3,4,5,6...) you have to start at 0,1,2,3,4,5..etc
     
  7. Offline

    atesin

    and second? ... do you (or anybody please) have some magic trick to fix the exposed issue?
     
  8. Offline

    Minesuchtiiii

    As the inventory type is "WORKBENCH" you have to start at slot 1, because slot 0 ist the result slot in the workbench
     
  9. Offline

    atesin

    thanks Minesuchtiii to support me and clarify

    ... i don't want to lose focus so the starting question still remains
     
  10. Offline

    atesin

    any update about this?
     
Thread Status:
Not open for further replies.

Share This Page