I need to make a percentage of actually getting this item, but not sure how to do it? help? ItemStack dpick10 = new ItemStack(Material.DIAMOND_PICKAXE, 1);; dpick10.addUnsafeEnchantment(Enchantment.DIG_SPEED, 10); PlayerInventory playerinv = player.getInventory(); playerinv.addItem(dpick10); player.closeInventory(); player.sendMessage(String.format("%sYou have recieved an %sEfficiency 10, %sDiamond Pickaxe!", ChatColor.GREEN, ChatColor.BLUE, ChatColor.GREEN)); FIXED: Now with my code, is there a way to make it so it has a chance to give something else? and is there a way to make it send a message if it didn't give the pickaxe?