getSide(Facing::DOWN); return $supportBlock->hasTypeTag(BlockTypeTags::DIRT) || $supportBlock->hasTypeTag(BlockTypeTags::MUD) || match($supportBlock->getTypeId()){ BlockTypeIds::NETHERRACK, BlockTypeIds::SOUL_SAND, BlockTypeIds::SOUL_SOIL => true, default => false }; } public function hasEntityCollision() : bool{ return true; } public function onEntityInside(Entity $entity) : bool{ if($entity instanceof Living && !$entity->getEffects()->has(VanillaEffects::WITHER())){ $entity->getEffects()->add(new EffectInstance(VanillaEffects::WITHER(), 40)); } return true; } public function getFlameEncouragement() : int{ return 60; } public function getFlammability() : int{ return 100; } }