# Solved Cages help

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

1. ### A354-PHBaby Zombie

Messages:
146
GitHub:
A354-PH
How to make the cage look like this

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), false, true);        \$l->setBlock(new Vector3(\$x, \$y + 3, \$z), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x + 1, \$y + 2, \$z), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x, \$y + 2, \$z + 1), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x - 1, \$y + 2, \$z), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x, \$y + 2, \$z - 1), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x + 1, \$y - 0, \$z), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x, \$y - 0, \$z + 1), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x - 1, \$y - 0, \$z), Block::get(20), false, true);        \$l->setBlock(new Vector3(\$x, \$y - 0, \$z - 1), Block::get(20), false, true); ```

2. ### SOFeAdministratorStaff MemberPMMP TeamPoggit AdminNoobiest member in the PMMP Team

Messages:
1,796
GitHub:
sof3
Just edit the coords? This is too straightforward. What's your problem?

Levi, Muqsit and Mr174 like this.
3. ### Mr174Spider

Messages:
13
GitHub:
Mr174
Seems like it's already done maybe he doesn't know how to run it lol

4. ### A354-PHBaby Zombie

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

5. ### SOFeAdministratorStaff MemberPMMP TeamPoggit AdminNoobiest member in the PMMP Team

Messages:
1,796
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. ### Mr174Spider

Messages:
13
GitHub:
Mr174
they're watching us

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