Giving chests a bigger inventory

Discussion in 'Plugin Development' started by netherfoam, Jan 10, 2013.

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

    netherfoam

    Hi,

    Is it possible to give chests a bigger inventory? Say I have a single chest, is it possible to make it a 6*9 chest instead? And say I have a double chest... Can I turn that into (I know the UI bugs past 6*9, ignoring that) a 12*9 or 24*9 chest? Or is it not possible?
     
  2. Offline

    ImTheFool

    netherfoam likes this.
  3. Offline

    SnowGears

    Yes it is. When they click on a chest, cancel the event, and open your own custom inventory. Make sure to save these custom inventories and locations to a file or they will not save the players things. Its pretty easy but Im not sure how experienced you are with saving and loading things from files.
     
    netherfoam likes this.
  4. Offline

    skipperguy12

    You can make it as big as a double chest inventory. I don't thnk you can make it bigger than that, because it's not you defining size, you just send them a different inventory. If I really wanted, I can send a person a crafting GUI when they open a chest, but can I edit the size of the crafting? Nope.
     
    netherfoam likes this.
  5. Offline

    LegoPal92

    Is it possible to do this for a player's inventory as well?
     
  6. Offline

    bobacadodl

    Its 100% possible to do this. you can create any chest size as long as its a multiple of 9
    LegoPal92 no its not possible :( You might be able to let a player have multiple inventory "pages" though.
     
    MrBluebear3 likes this.
  7. Offline

    LegoPal92

    What if you were to cancel the inventoryOpenEvent and then load an inventory from a file(or mysql database) and open it like you would a double chest?
     
  8. Offline

    bobacadodl

    Well you can't create virtual player inventories... so you could open up a chest inventory for the player but then how would they equip armor/craft items?
     
  9. Offline

    william9518

    yes, you can...
    send a packet
    OFF TOPIC: i remember u from my server :p
     
    bobacadodl likes this.
  10. Offline

    LegoPal92

    you could let the event go through, then after they close their inventory, you could load the chest, but then again it could be easier just to have a virtual chest.
     
Thread Status:
Not open for further replies.

Share This Page