Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open a custom inventory

Comments in 'Plugin Development' started by MyNameIsTriXz, Dec 18, 2015.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Is there a way to open a custom inventory (not the player one), in which i could add items who are interacting when I touch them? How am I doing it?
  2. Mat
    Offline

    Mat Active Member Plugin Developer

    Joined:
    Jun 15, 2014
    Posts:
    179
    Plugins:
    1
    Minecraft User:
    matcracker
    Yes, use inventory API. Check on documentation
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    if you already have the inventory, just do $player->addWindow($inventory);
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Try constructing a new PlayerInventory and sendContents to the player.
  5. yuri
    Offline

    yuri New Member

    Joined:
    May 20, 2015
    Posts:
    35
    Minecraft User:
    yodaylay22
    You might have an example of how the code would be for me to understand better?
  6. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    This thread was from 11 months ago. Don't bump threads.

Share This Page

Advertisement