GenuineSounds

Untitled

Sep 12th, 2014
369
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. @SubscribeEvent
  2. public void saplings(HarvestDropsEvent event) {
  3.     if (event.block instanceof BlockLeaves || event.block instanceof BlockLeavesBase) {
  4.         if (event.world.rand.nextInt(10) < 1) {
  5.             event.drops.add(new ItemStack(Items.iron_ingot));
  6.         }
  7.     }
  8. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment