Whenever a reactor blows or a nuke explodes and you are nearby you get Hunger effect for 10 minutes, which can be easily removed by drinking vanilla milk.
Is that intended?
[Bug?] Nuclear Poisoning can be easily removed.
-
-
"package net.minecraft.src;
public class ItemBucketMilk extends Item
{
public ItemBucketMilk(int par1)
{
super(par1);
this.setMaxStackSize(1);
this.setTabToDisplayOn(CreativeTabs.tabMisc);
}public ItemStack onFoodEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if (!par3EntityPlayer.capabilities.isCreativeMode)
{
--par1ItemStack.stackSize;
}if (!par2World.isRemote)
{
par3EntityPlayer.clearActivePotions();
}return par1ItemStack.stackSize <= 0 ? new ItemStack(Item.bucketEmpty) : par1ItemStack;
}/**
* How long it takes to use or consume an item
*/
public int getMaxItemUseDuration(ItemStack par1ItemStack)
{
return 32;
}/**
* returns the action that specifies what animation to play when the items is being used
*/
public EnumAction getItemUseAction(ItemStack par1ItemStack)
{
return EnumAction.drink;
}/**
* Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
*/
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack));
return par1ItemStack;
}
}"No forge hook for this.
-
No forge hook for this.
I think Pahimar is submitting one to the Forge for EE3, so the redwater poison isn't easily removed. He and LexManos were on his stream a few days ago working on it.
-
it's actually 1line fix for this, and this fix not related to baseclass modification, you allowed to replace item-block classes with reflector, if anyone interesting i will provide viable code for vanilla, for bukkit it looks like https://github.com/xGhOsTkiLLeRx/BlocksOnGlass (not my code but it work in vanilla well)
-
Well... nukes apply hungre... and milk can fix hungre... I don't see the issue there.
Keep in mind not everyone has milk at hand when getting nuked