StoneDrop

Discussion in 'Plugin Development' started by 6zero, Aug 25, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    6zero

    I want to make plugin in which items would fall out of stone and i dont know to what to do to make items fall off the stone randomly
     
  2. Offline

    CraftCreeper6

    @6zero
    world.dropItemNaturally(location, itemstack)
     
  3. Offline

    6zero

    I know but i dont know how to pick random item form 3 items, for example i have diamond, iron, coal and i want to diamond have 3% percent chance for drop
     
    Last edited by a moderator: Aug 25, 2019
  4. Offline

    CraftCreeper6

  5. Offline

    Kars

    PHP:
    Random random = new Random();
    int randomNumber random.nextInt(100);
     
Thread Status:
Not open for further replies.

Share This Page