Created
June 10, 2014 21:59
-
-
Save CAD97/0f67b8f95804a0bd2d90 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.cad97.spawnercraft; | |
import net.minecraft.block.BlockMobSpawner; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.entity.EntityList; | |
import net.minecraft.item.ItemStack; | |
import net.minecraftforge.event.entity.living.LivingDropsEvent; | |
import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; | |
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | |
public class EssenceDrop | |
{ | |
@SubscribeEvent | |
public void on(HarvestDropsEvent event) | |
{ | |
if (event.block instanceof BlockMobSpawner) | |
{ | |
event.drops.add(new ItemStack(SpawnerCraft.mobCage, 1)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment