37 if($item instanceof
Shears && in_array($face,
Facing::HORIZONTAL, true)){
38 $item->applyDamage(1);
39 $world = $this->position->getWorld();
40 $world->setBlock($this->position, VanillaBlocks::CARVED_PUMPKIN()->setFacing($face));
41 $world->dropItem($this->position->add(0.5, 0.5, 0.5), VanillaItems::PUMPKIN_SEEDS()->setCount(1));