DragonBreathCloud 5.46.0
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 = 600Approximation: Bedrock's "duration": 120 unit is unclear; Java's cloud lasts 30 s.
RADIUS
php
public const RADIUS = 6.0Methods
__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() : boolsyncNetworkData() protected
php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void