-
-
Save anonymous/d59c420d827ee09bfca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.drunksmanknife.harshnature; | |
import com.drunksmanknife.harshnature.init.HarshNatureItems; | |
import net.minecraft.init.Blocks; | |
import net.minecraft.init.Items; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.util.EnumChatFormatting; | |
import net.minecraftforge.event.world.BlockEvent; | |
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | |
public class HNEventHandler { | |
@SubscribeEvent | |
public void onBlockDropItems(BlockEvent.HarvestDropsEvent event) { | |
if (event.state.getBlock().equals(Blocks.leaves)) { | |
ItemStack stack = new ItemStack(HarshNatureItems.Twigs, 2); | |
event.drops.add(stack); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment