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

Ender Chest Code

Comments in 'Plugin Development' started by MichaelM04, Jan 17, 2016.

  1. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    I'm trying to make a ender chest plugin (access a chest from anywhere by command)not sure if this is possible but if so I need help with part of the code
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Isn't there already a Plugin for this? Either use that one or look its source
    KubixQ and HotFireyDeath like this.
  3. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    There is but its really old before .phar
  4. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    I need it to just be a regular chest inv but it can be accessed by command
  5. Bluplayz
    Offline

    Bluplayz Active Member

    Joined:
    Aug 20, 2015
    Posts:
    74
    Minecraft User:
    Bluplayz
    then create a chest/tile at a position of the map and give foreach enderchest a other ID and the ID == Chest's X or Z Coordinate

    and open it xD
  6. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    How would I do this?(I prefer code) I'm still new with plugins just started 3 weeks ago
  7. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
  8. MichaelM04
    Offline

    MichaelM04 Active Member Plugin Developer

    Joined:
    Nov 12, 2015
    Posts:
    213
    Plugins:
    1
    Minecraft User:
    Michael
    Again old and already found this
  9. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    PHP:
    $this->chest = new ChestInventory(Tile::CreateTile("Chest",$level->getChunk(>> 40>> 4),new Compound("VirtualChest", [
                    new 
    Enum("Items", []),
                    new 
    String("id""Chest"),
                    new 
    Int("x"0),
                    new 
    Int("y"0),
                    new 
    Int("z"0)
                ])));
    $player->addWindow($this->chest);//open inventory to player
    PocketKiller and Vaivez66 like this.
  10. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    See the plugin called "NetherChest".
  11. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    Really, if you did actually start 3 weeks ago, you shouldn't start with something complicated like this.

Share This Page

Advertisement