Skip to content

Instantly share code, notes, and snippets.

Created November 8, 2013 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8801abbff03c4f0e36b5 to your computer and use it in GitHub Desktop.
Save anonymous/8801abbff03c4f0e36b5 to your computer and use it in GitHub Desktop.
package jonas.myMod;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class ItemPotatoSkewer extends ItemFood {
public ItemPotatoSkewer(int par1, int par2, float par3, boolean par4)
{
super(par1, par2, par3, par4);
}
public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
super.onEaten(par1ItemStack, par2World, par3EntityPlayer);
return new ItemStack(Item.stick);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment