Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drops.add(new ItemStack(Material.NETHER_WARTS));
- @EventHandler
- public void onBreakLiscie(final BlockBreakEvent e) {
- final Player p = e.getPlayer();
- final Block b = e.getBlock();
- if (e.getBlock().equals(Material.LEAVES) && e.getBlock().equals(Material.LEAVES_2) && RandomUtil.getChance(80.0)) {
- ChatUtil.sendMessage(p, "&7Wylosowales jablko!");
- ChatUtil.giveItems(p, new ItemStack(Material.APPLE));
- return;
- //code by esvalde //hycore.pl
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement