34 use StaticSupportTrait;
36 private function canBeSupportedAt(
Block $block) :
bool{
37 $supportBlock = $block->
getSide(Facing::DOWN);
39 $supportBlock->hasTypeTag(BlockTypeTags::DIRT) ||
40 $supportBlock->hasTypeTag(BlockTypeTags::MUD) ||
41 match($supportBlock->getTypeId()){
42 BlockTypeIds::NETHERRACK,
43 BlockTypeIds::SOUL_SAND,
44 BlockTypeIds::SOUL_SOIL =>
true,
53 $entity->getEffects()->add(
new EffectInstance(VanillaEffects::WITHER(), 40));