Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public void saplings(HarvestDropsEvent event) {
- if (event.block instanceof BlockLeaves || event.block instanceof BlockLeavesBase) {
- if (event.world.rand.nextInt(10) < 1) {
- event.drops.add(new ItemStack(Items.iron_ingot));
- }
- }
- }
Advertisement