Skip to content

DragonBreathCloud 5.46.0 ​

class · pocketmine\entity\object\DragonBreathCloud · source

Extends AreaEffectCloud
Implements NeverSavedWithChunkEntity

The purple cloud of dragon's breath left by a dragon fireball or the breath of a perched dragon: Instant Damage II (like a lingering potion of Harming II, at the cloud's half strength) to the mobs inside, every second; the dragon is immune to it (magic damage). Bedrock dragon_fireball.json: radius 6, dragonbreath particles, reapplied every second. Not saved with the chunk.

Constants ​

DURATION ​

php
public const DURATION = 600

Approximation: Bedrock's "duration": 120 unit is unclear; Java's cloud lasts 30 s.

RADIUS ​

php
public const RADIUS = 6.0

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Location $location, ?\pocketmine\nbt\tag\CompoundTag $nbt = null, float $radius = self::RADIUS, int $duration = self::DURATION)

canSaveWithChunk() ​

php
public function canSaveWithChunk() : bool

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

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