Solved Creative Menu Selection

Discussion in 'Plugin Development' started by gustebeast, May 8, 2013.

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

    gustebeast

    Is the following possible either using the standard bukkit API or some packet shenanigans? If so, how would you do it?

    I know it is possible to open up a standard double chest, crafting, or smelting window for a player. You can then put items in these displays and have a plugin do something when the items are clicked. Many plugins have been using this to make selection menus. I want to know if there is any way to open up a creative menu for a player. This would be great for any plugin that requires a user to select an item "what item do you want to buy?". I have heard yes' and no's from different people, so it would be nice to get a definite answer to this.
     
  2. Offline

    caseif

    I remember reading that it was impossible to display the creative menu due to the way MC handles it, but I could be mistaken.
     
  3. Offline

    gustebeast

    Perhapse the client wont accept the menu unless the player is in creative mode?
     
  4. Offline

    caseif

    If I recall correctly, the post said it wasn't possible, period.
     
  5. Offline

    gustebeast

    This moves my assumption more in the "no" direction, but I still have no definite answer. Does any else perhapse know for sure?
     
  6. Offline

    skyrimfan1

    Unless you create a fake one, no.
     
  7. Offline

    ZeusAllMighty11

    I say no, but you could always create a regular inventory with the max possible slots, and have the very bottom left and very bottom right corners be items which would 'scroll' through the pages, to the next or previous, which would display more items
     
  8. Offline

    gustebeast

    Thats a good answer. Solved.
     
  9. Offline

    MisterErwin

    There's already a library:
    ItemMenu
     
  10. Offline

    JPG2000

    gustebeast AngryNerd you can always just create a double chest with theese items (you could have a next page item that opens up a new chest) although the scripting would be hard.
     
  11. Offline

    caseif

    Do you even resurrect?
     
  12. Offline

    JPG2000

  13. Offline

    Paper

    Resurrect = to Lift, or raise something;

    basically he's saying, do you even lift?
     
    AngryNerd likes this.
  14. Offline

    gustebeast

    I thought resurrect meant to bring something back to life. In this case, the thread.
     
  15. Offline

    caseif

    gustebeast has got it. But, Paper, that's a clever conclusion to draw. (Get it? Because you're Paper?)
     
  16. Offline

    Paper

  17. Offline

    JPG2000

    gustebeast Well, my ressurectness comes alive...again!

    After spending a couple months actually learning bukkit and java, I came back to this issue.

    Gus, to awnser your question, it is not possible. Not with packets. Unless the inventory click event will count the creative one as a valid inventory, or unless bukkit extends

    But, you could mimic it, very close. With scroll buttons and etc. witch isn't hard at all.
     
  18. Offline

    Plo124

    I'm keen to find out how bukkit handles containers like Brewing stands and Furnaces, and if its possible for plugins to open them
     
Thread Status:
Not open for further replies.

Share This Page