Drop Exp Orbs

Discussion in 'Plugin Development' started by tom101_12, Mar 3, 2014.

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

    tom101_12

    Umm how do I make this drop exp?
    else if ((event.getBlock().getType().equals(Material.DIAMOND_ORE)))
    {
    event.getBlock().setType(Material.AIR);
    event.getBlock().getWorld().dropItemNaturally(event.getBlock().getLocation(), new ItemStack(Material.DIAMOND,4));
     
  2. Offline

    HungerCraftNL

    PHP:
    Player p;//Change this to your player.
     
    Location loc p.getLocation();
    World w p.getWorld();
     
    w.spawn(locExperienceOrb.class);
     
Thread Status:
Not open for further replies.

Share This Page