How can i create block? I use: PHP: $block = new Position($p->entity->x, $p->entity->y, $p->entity->z, $level);$p->level->setBlock($block, BlockAPI::get(WOODEN_PLANKS, $this->meta), true, false, true); But this code is not working
needs to be a vector3 instead of postition. PHP: $block = BlockAPI::get($id, $meta);$pos = new Vector3($x,$y, $z);$level->setBlock($pos, $block);
You can find an id list here: https://gist.github.com/MinecrafterJPN/5269422 don't worry about meta, just leave it 0, it's only important for colours of wool So for wood the id is 17 and meta 0
plz example :3 how better to do? --- getBlock(new Vector3 ($block->x, $block->y, $block->z)); setBlock(AIR); (my reasoning) --- how can i get block and replace with air?