I cannot find the code for how pocketmine changes speed of the player when player collides with cobweb/lava. Can someone link it to me?
you could check if the player is in a cobweb by using PlayerMoveEvent. When they are stuck in a cobweb, adding speed to them should do what you want.
bruh please read the thread, then think, then send posts, thankh you, he said he want to know how pmmp change speed of player in lava & water
idk that, but iknow how change the speed of player with (Slowness effect) PHP: case Effect::SLOWNESS: $attr = $entity->getAttributeMap()->getAttribute(Attribute::MOVEMENT_SPEED); $attr->setValue($attr->getValue() * (1 - 0.15 * $instance->getEffectLevel()), true); break;