Skip to content

SculkChargeParticle 5.46.0 ​

class · pocketmine\world\particle\SculkChargeParticle · source

Implements Particle

Sculk charge moving through sculk spread by a sculk catalyst (LevelEvent SculkCharge, 2037), or popping when the charge runs out (SculkChargePop, 2038). Neither is in BedrockProtocol's LevelEvent list.

The data is encoded like Java's level event 3006: (particle count << 6) | faces, the faces being the sculk vein faces the charge sits on (bit per face in Bedrock multi_face_direction_bits order: down, up, south, west, north, east), 0 for a full sculk block.

Constants ​

LEVEL_EVENT_SCULK_CHARGE ​

php
public const LEVEL_EVENT_SCULK_CHARGE = 2037

LEVEL_EVENT_SCULK_CHARGE_POP ​

php
public const LEVEL_EVENT_SCULK_CHARGE_POP = 2038

Methods ​

__construct() ​

php
public function __construct(int $count, int $faces = 0, bool $pop = false)

encode() ​

php
public function encode(\pocketmine\math\Vector3 $pos) : array

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.