Please rephrase. To add an item to a player's inventory, the format is as such; PHP: /** @var Player $player */$player->getInventory()->addItem(Item::get(ID,META,COUNT);//Example? This is how you would add 3 diamond swords.$player->getInventory()->addItem(Item::get(276,0,3);//You can also use a variable for addItem() such as $item, but it must be defined correctly.
But I want to do metadata on a block. It exist a file named BlockMetadataStore How can I set metadata to a block which i can place.
Not really i only want to set something (name or id or something else) that i can check if it is exact this block .