in your onEnable line, it should look like this
public function onEnable(): void
setImmobile() is like cancelling playermoveevent. It prevents an entity from moving or falling. Tho you can still pass trhough the entity
Well he wanted to stop sand/gravel to fall. So i just made a code that automatically stops gravel/sand from falling when it appears
On the DataPacketReceiveEvent, handle the LoginPacket. There is a property named "protocol" in thee LoginPacket. Get it and save it somewhere,...
What do you mean by sloping ?(sorry im french) do you mean like the italic text when you setCustomName() on an item ?
You could create a chest inventory with blocked slots and cancel the transaction if the clicked slot is a blocked slot
Okay ! Im gonna start saturday, is it ok for you ?
Hey man, do you still need this plugin ? If yes i could make it for you ^^
Correction: i checked and theres an event, the way of doing could be (not tested):
//In your listener class
What you would do is setImmobile() on your entity. If you want it whenever an Falling Block entity spawns, you could make a task, loop trough all...
$player variable must be defined
You could make entites with invisble bedrock in them, make sure your entity has the exact same size of a normal block, put in your model etc and...
You could just set your value to true or false, and when getting it do
$value = (bool)$myConfig->get("MyValue");
No, you would have to get the language, and if the language is english, get your config for english and get "lang.text.example"
Yes, but your constant won't change values. And you can't redefine constants as they act like final static variables, for example
He wouldn't cause he only has an nbt tag right now, nothing is registered, no resource packs, nothing. So it won't work
Also to load items, you could see
'Nbt thing' as you say, is not in pocketmine. It is in the vendor folder. In github, its NBT repository.
/** @var pocketmine\Player $player*/
$count = 0;
foreach($player->getInventory()->getContents() as $item)
Separate names with a comma.