Hey, I was looking online to find how to set an NBT Tag on a block. I couldn't really find any resources, so here I am. My plan is to make some sort of LuckyBlock plugin which starts a timer to auto-break the lucky block once a player places a block that has a certain NBT tag on. I've noticed that custom names on a placed block seem to reset after the placement. That's why I was looking for another way
Here is it PHP: use pocketmine\metadata\MetadataValue;use pocketmine\block\Block;Block::setMetadata(string $metadataKey, MetadataValue $newMetadataValue);Block::getMetadata(string $metadataKey);Block::hasMetadata(string $metadataKey); // returns boolBlock::removeMetadata(string $metadataKey, Plugin $owningPlugin);