Solved Cages help

Discussion in 'Development' started by A354-PH, Mar 5, 2019.

  1. A354-PH

    A354-PH Baby Zombie

    Messages:
    177
    GitHub:
    A354-PH
    How to make the cage look like this
    Screenshot_40.png
    By editing this code:
    PHP:
    $x $player->getX();
            
    $y $player->getY();
            
    $z $player->getZ();
            
    $l $player->getLevel();     
            
    $l->setBlock(new Vector3($x$y 1$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x$y 3$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x 1$y 2$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x$y 2$z 1), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x 1$y 2$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x$y 2$z 1), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x 1$y 0$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x$y 0$z 1), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x 1$y 0$z), Block::get(20), falsetrue);
            
    $l->setBlock(new Vector3($x$y 0$z 1), Block::get(20), falsetrue);
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,894
    GitHub:
    sof3
    Just edit the coords? This is too straightforward. What's your problem?
     
    Levi, Muqsit and Mr174 like this.
  3. Mr174

    Mr174 Slime

    Messages:
    92
    GitHub:
    Mr174
    Seems like it's already done maybe he doesn't know how to run it lol
     
  4. A354-PH

    A354-PH Baby Zombie

    Messages:
    177
    GitHub:
    A354-PH
    It was just a code given by my friend.
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,894
    GitHub:
    sof3
    Then try to understand it before copying it into your plugin. Otherwise it might have some secret backdoor on demand of some government... cough Huawei
     
    A354-PH likes this.
  6. Mr174

    Mr174 Slime

    Messages:
    92
    GitHub:
    Mr174
    they're watching us
     
  7. A354-PH

    A354-PH Baby Zombie

    Messages:
    177
    GitHub:
    A354-PH
    Ok...
     

Share This Page

  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.