This thread can explain it https://forums.pmmp.io/threads/adapting-old-code-using-compoundtags-since-api-3-0-0-alpha12.5975/
Pocket Monster Magical Parent
Oh no setCustomName is available in the class Item. So $item must be instanceof Item Exemple $id = 4; // The id of the item $item =...
$level must be an instanceof Level and not a string # i think you want to get players in a level with a level name so $level =...
We can't make it in a main we don't know what plugins you use. Kyd gived the code for change the gamemode. Edit the plugin of microbattles and add...
Thanks
Yes you can but i think it will be spaaming the console if they are lot of entity
#$level instanceof Level foreach($level->getEntities() as $entity){ $entity->getId(); //Store it if you want }...
Yes just that not the block class
If you dont know there are "[PHP ]" And Send the code entirelly maybe you didt register the Event Or Your "Sign" is an instance of...
Send the code... And i just gived you an idea i didnt gave you the code
Depends of what event are you using.... $block is a block....... If you want to know what is block i think you did not try to search how to get...
The Sign is A tile so make a little search in pmmp files and you can see...
Go mp i will explain it to you we cant talk in french here
I think using timer(task) will be good
I think you have a code who you dont understand. You are getting an effect by his name so why are you using amplifier?? In you array //getEffect...
Using packet like InventoryMenu $pk2 = new InventoryContentPacket; $pk2->windowId = WindowTypes::MINECART_CHEST; $pk2->items =...
I think this topic is the same of https://forums.pmmp.io/threads/how-to-open-double-chest-on-command.5027/ Exemple of double chest inventory...
he can create a config to store if the player is able to build and break And to check if he can in event public function onPlace(BlockPlaceEvent...
I think you could post it in plugin request not in devlopment.
Separate names with a comma.