1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Spawn invisible Chest

Discussion in 'Development' started by McpeBooster, Mar 19, 2017.

  1. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    How? What exact code did you use? Does any part of it work?
     
  2. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    I have tried this here but unfortunately nothing happened
    PHP:
    $x = -219;
            
    $y 3;
            
    $z 124;
            
    $level $player->getLevel()->getFolderName();
            
            
    $eChest = new ChestInventory($player);

            
    $eChest->openAt(new Position($x$y$z$level));
     
  3. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    ChestInventory:: openAt() isn't a PMMP member function, as far as I can tell. If you read the rest of the thread, it only concerns opening chest inventories by spawning chests. The only method I can think of would be creating a Chest tile without setting it to a chest block. I'm not sure if that's possible though.
     
  4. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    He says it is possible :D
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    It just takes a little thinking out of the box and inside the blocks :D
     
    HimbeersaftLP and corytortoise like this.
  6. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Yes, take look at this plugin.. (Not my plugin)
     

    Attached Files:

  7. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
  8. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Kyd likes this.
  9. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    ok sorry
     
  10. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.