PHP: public function onPlace(\pocketmine\event\block\BlockPlaceEvent $e){ $b = $e->getBlock(); $tile = $b->getLevel()->getTile(new \pocketmine\math\Vector3($b->x, $b->y, $b->z)); if($tile instanceof \pocketmine\tile\Chest){ $id = 1; $damage = 0; $count = 64; $tile->getInventory()->addItem(\pocketmine\item\Item::get($id, $damage, $count); }}
try the give command Code: /give jasonwynn10 chest 1 {display:{Name:"§rSuspicious Chest"},BlockEntityTag:{Items:[{id:7,Count:64,Slot:0,display:{Name:"FEEL THE POWER!"}}]}}