Skip to content

Instantly share code, notes, and snippets.

@PJZ9n
Created May 27, 2020 20:38
Show Gist options
  • Save PJZ9n/092c5cc16c42fb0296442d315d171a0f to your computer and use it in GitHub Desktop.
Save PJZ9n/092c5cc16c42fb0296442d315d171a0f to your computer and use it in GitHub Desktop.
アイテムをドロップさせる
<?php
/** @var \pocketmine\level\Level $level */
$pos = new Vector3(1, 2, 3);
$item = ItemFactory::get(Item::STONE);
$level->dropItem($pos, $item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment