PHP: if($player->x == /*X position there */ and $player->y == /*Y position there*/ and $player->z == /*Z position there*/){/* * When the player is walking * on this position you have * set for X Y Z, it will give * to him/her the item you * set down of there */$player-getInventory()->addItem(Item::get(/*ID of the block or item*/, /*BONUS: You can set the damage of the item/block there*/);} It's messy code, yep. But I need to know if you want something on a specific terrain in a world to do a better code.
PHP: if($player->getLevel()->getName() == "/**spawn level name**/"){ $player->getInventory()->addItem(0, Item::get(378, 0, 1));} It's a little messy. But maybe try it