isTransparent() === false and $face > 1 and $blockReplace->isSolid() === false){ $faces = [ 2 => 1, 3 => 3, 4 => 0, 5 => 2, ]; $motives = [ // Motive Width Height ["Kebab", 1, 1], ["Aztec", 1, 1], ["Alban", 1, 1], ["Aztec2", 1, 1], ["Bomb", 1, 1], ["Plant", 1, 1], ["Wasteland", 1, 1], ["Wanderer", 1, 2], ["Graham", 1, 2], ["Pool", 2, 1], ["Courbet", 2, 1], ["Sunset", 2, 1], ["Sea", 2, 1], ["Creebet", 2, 1], ["Match", 2, 2], ["Bust", 2, 2], ["Stage", 2, 2], ["Void", 2, 2], ["SkullAndRoses", 2, 2], //array("Wither", 2, 2), ["Fighters", 4, 2], ["Skeleton", 4, 3], ["DonkeyKong", 4, 3], ["Pointer", 4, 4], ["Pigscene", 4, 4], ["Flaming Skull", 4, 4], ]; $motive = $motives[mt_rand(0, count($motives) - 1)]; $data = [ "x" => $blockClicked->x, "y" => $blockClicked->y, "z" => $blockClicked->z, "yaw" => $faces[$face] * 90, "Motive" => $motive[0], ]; //TODO //$e = $server->api->entity->add($level, ENTITY_OBJECT, OBJECT_PAINTING, $data); //$e->spawnToAll(); /*if(($player->gamemode & 0x01) === 0x00){ $player->removeItem(Item::get($this->getId(), $this->getDamage(), 1)); }*/ return true; } return false; } }