Right clicking on a tamed wolf, ocelot or parrot causes it to sit / stand up and uses item
The bug
Right clicking on a tamed wolf, ocelot or parrot while holding an item makes the wolf, ocelot or parrot sit / stand up and uses the item.
How to reproduce
- Tame a wolf, ocelot or parrot
- Right click it while holding an item with right click action, for example a fishing rod
→ The pet will sit but you also used the item you are holding
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The methods net.minecraft.entity.passive.EntityWolf.processInteract(EntityPlayer, EnumHand) and net.minecraft.entity.passive.EntityOcelot.processInteract(EntityPlayer, EnumHand) both don't return true when the wolf or ocelot sits or stands up.
Important:
- To not break the spawn egg and breeding behavior the methods should probably first call net.minecraft.entity.passive.EntityAnimal.processInteract(EntityPlayer, EnumHand).
- To not break name tag behavior the methods should probably call net.minecraft.item.Item.itemInteractionForEntity(ItemStack, EntityPlayer, EntityLivingBase, EnumHand).
Created Issue:
Right clicking on a tamed wolf with a spawn egg causes it to sit / stand up
Relates to:
When you right click with a spawn egg on a tamed wolf, it will sit / stand up. This is different to the normal behaviour, because for example right clicking on a villager does not open the trading GUI and right clicking on a horse does not make you mount it.
Relates to:
When you right click with a spawn egg on a tamed wolf,
it will sit/ stand up. This is different to the normal behaviour, because for example right clicking on a villager does not open the trading GUI and right clicking on a horse does not make you mount it.Relates to:
When you right click with a spawn egg on a tamed wolf, a tamed baby wolf will spawn but the wolf will also sit down / stand up. This is different to the normal behaviour, because for example right clicking on a villager does not open the trading GUI and right clicking on a horse does not make you mount it.
Relates to:
When you right click with a spawn egg on a tamed wolf, a tamed baby wolf will spawn but the wolf will also sit down / stand up. This is different to the normal behaviour, because for example right clicking on a villager does not open the trading GUI and right clicking on a horse does not make you mount it.
relates to
Right clicking on a tamed wolfwith a spawn eggcauses it to sit / stand upRight clicking on a tamed wolf or ocelot causes it to sit / stand up and uses item
When you right click
with a spawn egg on a tamed wolf, a tamed baby wolfwill spawn but thewolf will also sit down / stand up. This is different to the normal behaviour, because for example right clicking on a villager does not open the trading GUI and right clicking on a horse does not make you mount it.The bug
When you right click on a tamed wolf or ocelot while holding an item makes the wolf or ocelot sit / stand up and uses the item.
How to reproduce
- Tame a wolf or ocelot
- Right click it while holding an item with right click action, for example a fishing rod
→ The wolf or ocelot will sit but you also used the item you are holdingCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The methods net.minecraft.entity.passive.EntityWolf.processInteract(EntityPlayer, EnumHand) and net.minecraft.entity.passive.EntityOcelot.processInteract(EntityPlayer, EnumHand) both don't return true when the wolf or ocelot sits or stands up.
Important:
- To not break the spawn egg and breeding behavior the methods should probably first call net.minecraft.entity.passive.EntityAnimal.processInteract(EntityPlayer, EnumHand).
- To not break name tag behavior the methods should probably call net.minecraft.item.Item.itemInteractionForEntity(ItemStack, EntityPlayer, EntityLivingBase, EnumHand).
Right clicking on a tamed wolforocelot causes it to sit / stand up and uses itemRight clicking on a tamed wolf, ocelot or parrot causes it to sit / stand up and uses item
The bug
When you right click on a tamed wolforocelot while holding an item makes the wolforocelot sit / stand up and uses the item.How to reproduce
- Tame a wolf
orocelot- Right click it while holding an item with right click action, for example a fishing rod
→ Thewolf or ocelot will sit but you also used the item you are holdingCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The methods net.minecraft.entity.passive.EntityWolf.processInteract(EntityPlayer, EnumHand) and net.minecraft.entity.passive.EntityOcelot.processInteract(EntityPlayer, EnumHand) both don't return true when the wolf or ocelot sits or stands up.
Important:
- To not break the spawn egg and breeding behavior the methods should probably first call net.minecraft.entity.passive.EntityAnimal.processInteract(EntityPlayer, EnumHand).
- To not break name tag behavior the methods should probably call net.minecraft.item.Item.itemInteractionForEntity(ItemStack, EntityPlayer, EntityLivingBase, EnumHand).
The bug
Right clicking on a tamed wolf, ocelot or parrot while holding an item makes the wolf, ocelot or parrot sit / stand up and uses the item.
How to reproduce
- Tame a wolf, ocelot or parrot
- Right click it while holding an item with right click action, for example a fishing rod
→ The pet will sit but you also used the item you are holdingCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The methods net.minecraft.entity.passive.EntityWolf.processInteract(EntityPlayer, EnumHand) and net.minecraft.entity.passive.EntityOcelot.processInteract(EntityPlayer, EnumHand) both don't return true when the wolf or ocelot sits or stands up.
Important:
- To not break the spawn egg and breeding behavior the methods should probably first call net.minecraft.entity.passive.EntityAnimal.processInteract(EntityPlayer, EnumHand).
- To not break name tag behavior the methods should probably call net.minecraft.item.Item.itemInteractionForEntity(ItemStack, EntityPlayer, EntityLivingBase, EnumHand).
is duplicated by
Nevermind, duplicate of MC-93841, couldn't find anything in my first couple searches before creating this issue
Can confirm.
Still persists in 1.10
Affects 1.14 and 1.14.1 Pre-Release 1
Affects 1.14.1
Looks fixed to me in 19w42a, can someone double check?
I believe this was fixed in 19w37a with the hand animation changes