In violations with new posting requirements. Your question is not generic, but you didn't show any attempt to understand the problem at all. What I mean by attempt to understand the problem is that you should at least explain what you want? What is disable gravity? Any ideas how already?
I think by disable gravity, he means when you jump, you don't fall back down. As for an attempt, if he doesn't have any idea of how to do this, he can't really show an attempt in the first place.
I honestly don't know how you should do that. I guess setting invisible blocks under the player would work? Though, how would players get down again?
https://github.com/PocketMine/PocketMine-MP/blob/master/src/pocketmine/entity/Entity.php#L877-L901 https://github.com/PocketMine/Pocke...src/pocketmine/entity/Projectile.php#L99-L101
"An attempt to do this" can refer to a very basic attempt to analyze the problem. If you just go ahead and ask people how to do it without analyzing the problem first, you don't even know what you are asking yourself. This is not the problem of ability, but the problem of effort to complete a task.