palmerjj01

Code

Oct 11th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @Override
  2. protected void onFoodEaten(ItemStack item, World world, EntityPlayer player){
  3. {
  4. super.onFoodEaten(item, world, player);
  5. if(!world.isRemote){
  6. player.dropItem(Items.emerald, 1);
  7. MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(player.getDisplayName() + " successfully completed the 'Poop Eating Challenge' and was rewarded an emerald!!"));
Advertisement
Add Comment
Please, Sign In to add comment