Right-clicking creeper with flint and steel uses item in off-hand as well
The bug
When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.
How to reproduce
- Spawn a creeper
- Put flint and steel in your main-hand and another item with a right click action in your off-hand
- Right-click the creeper
- Note that the creeper was ignited but the item in your off-hand was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.
Created Issue:
Counter-intuitive secondary interaction behavior when items are present in main and of hand
When performing a secondary (right-click) interaction with entities, some unusual behavior occurs when both the main and off hands have an item. I've encountered two manifestations of this, which for simplicity are grouped into this one issue.
Flint and steel:
When holding a flint and steel in both hands, both itemstacks have their durability decreased when igniting a creeper. This issue does not occur when lighting a block on fire.
Steps to reproduce:
1. Spawn a creeper
2. Place a new flint and steel in each hand (each should have maximum/full durability).
3. Switch to Survival
4. Right-click the creeper
5. Note that both flint and steels lose durability - despite the interact animation only being played for the main hand.Nametag:
When a flint and steel is held in the main hand, and a nametag is held in the off hand, right-clicking an entity causes both to be used. This issue does not occur in the reverse scenario (nametag in the main hand, flint and steel in the off hand)
Steps to reproduce:
1. Switch to Creative
2. Summon two creepers
3. Name a nametag with an anvil, and place in in the main hand.
4. Place a flint and steel in the off hand.
5. Right-click the first creeper.
6. Note that the creeper is correctly named by the nametag, without being ignited by the flint and steel (the proper behavior).
7. Swap the main and off hands.
8. Right-click the second creeper.
9. Note that creeper is both given a name, and is ignited.
Counter-intuitive secondary interaction behavior when items are present in main and off hand
When performing a secondary (right-click) interaction with entities, some unusual behavior occurs when both the main and off hands have an item. I've encountered two manifestations of this, which for simplicity are grouped into this one issue.
Flint and steel:
When holding a flint and steel in both hands, both itemstacks have their durability decreased when igniting a creeper. This issue does not occur when lighting a block on fire.
Steps to reproduce:
1. Spawn a creeper
2. Place a new flint and steel in each hand (each should have maximum/full durability).
3. Switch to Survival
4. Right-click the creeper
5. Note that both flint and steels lose durability - despite the interact animation only being played for the main hand.Nametag:
When a flint and steel is held in the main hand, and a nametag is held in the off hand, right-clicking an entity causes both to be used. This issue does not occur in the reverse scenario (nametag in the main hand, flint and steel in the off hand)
Steps to reproduce:
1. Switch to Creative
2. Summon two creepers
3. Name a nametag with an anvil, and place in in the main hand.
4. Place a flint and steel in the off hand.
5. Right-click the first creeper.
6. Note that the creeper is correctly named by the nametag, without being ignited by the flint and steel (the proper behavior).
7. Swap the main and off hands.
8. Right-click the second creeper.
9. Note that creeper is both given a name, and is ignited.When performing a secondary (right-click) interaction with entities, some unusual behavior occurs when both the main and off hands have an item. I've encountered two manifestations of this, which for simplicity are grouped into this one issue.
Flint and steel:
============When holding a flint and steel in both hands, both itemstacks have their durability decreased when igniting a creeper. This issue does not occur when lighting a block on fire.
Steps to reproduce:
1. Spawn a creeper
2. Place a new flint and steel in each hand (each should have maximum/full durability).
3. Switch to Survival
4. Right-click the creeper
5. Note that both flint and steels lose durability - despite the interact animation only being played for the main hand.Nametag:
========When a flint and steel is held in the main hand, and a nametag is held in the off hand, right-clicking an entity causes both to be used. This issue does not occur in the reverse scenario (nametag in the main hand, flint and steel in the off hand)
Steps to reproduce:
1. Switch to Creative
2. Summon two creepers
3. Name a nametag with an anvil, and place in in the main hand.
4. Place a flint and steel in the off hand.
5. Right-click the first creeper.
6. Note that the creeper is correctly named by the nametag, without being ignited by the flint and steel (the proper behavior).
7. Swap the main and off hands.
8. Right-click the second creeper.
9. Note that creeper is both given a name, and is ignited.
When performing a secondary (right-click) interaction with entities, some unusual behavior occurs when both the main and off hands have an item. I've encountered two manifestations of this, which for simplicity are grouped into this one issue.
Flint and steel:
============When holding a flint and steel in both hands, both itemstacks have their durability decreased when igniting a creeper. This issue does not occur when lighting a block on fire.
Steps to reproduce:
1. Spawn a creeper
2. Place a new flint and steel in each hand (each should have maximum/full durability).
3. Switch to Survival
4. Right-click the creeper
5. Note that both flint and steels lose durability - despite the interact animation only being played for the main hand.Name tag:
========When a flint and steel is held in the main hand, and a name tag is held in the off hand, right-clicking an entity causes both to be used. This issue does not occur in the reverse scenario (name tag in the main hand, flint and steel in the off hand)
Steps to reproduce:
1. Switch to Creative
2. Summon two creepers
3. Name a name tag with an anvil, and place in in the main hand.
4. Place a flint and steel in the off hand.
5. Right-click the first creeper.
6. Note that the creeper is correctly named by the name tag, without being ignited by the flint and steel (the proper behavior).
7. Swap the main and off hands.
8. Right-click the second creeper.
9. Note that creeper is both given a name, and is ignited.
Counter-intuitive secondary interaction behavior when items are present in main andoffhandRight clicking creeper with flint and steel uses item in offhand as well
When
performing a secondary (right-click) interaction with entities, some unusual behavior occurs when both themainandoff hands have an item. I've encountered two manifestations of this, which for simplicity are grouped into this one issue.Flint and steel:
============When holding a flint and steel in both hands, both itemstacks have their durability decreased when igniting a creeper. This issue does not occur when lighting a block on fire.
Steps to reproduce:
1. Spawn a creeper
2. Place a new flint and steel in each hand (each should have maximum/full durability).
3. Switch to Survival
4. Right-click the creeper
5. Note that both flint and steels lose durability - despite the interact animation only being played for the main hand.Name tag:
========When a flint and steel is held in the main hand, and a name tag is held in the off hand, right-clicking an entity causes both to be used. This issue does not occur in the reverse scenario (name tag in the main hand, flint and steel in the off hand)
Steps to reproduce:
1. Switch to Creative
2. Summon two creepers3. Name a name tag with an anvil, and place in in the main hand.
4. Place a flint and steel in the off hand.
5. Right-click the first creeper.6. Note that the creeper is correctly named by the name tag, without being ignited by the flint and steel (the proper behavior).
7. Swap the main and off hands.
8. Right-click the second creeper.
9. Note that creeper is both given a name, and is ignited.The bug
When holding a flint and steel in your mainhand and another item with a right click action in your offhand, both items will be used when right clicking a creeper to ignite it.
Steps to reproduce
- Spawn a creeper
- Put flint and steel in your mainhand and another item with a right click action in your offhand
- Right-click the creeper
- Note that the creeper was ignited but the item in your offhand was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.
relates to
relates to
relates to
Right clicking creeper with flint and steel uses item in off-hand as well
The bug
When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.
Steps to reproduce
- Spawn a creeper
- Put flint and steel in your main-hand and another item with a right click action in your off-hand
- Right-click the creeper
- Note that the creeper was ignited but the item in your off-hand was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.
The bug
When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.
Stepsto reproduce
- Spawn a creeper
- Put flint and steel in your main-hand and another item with a right click action in your off-hand
- Right-click the creeper
- Note that the creeper was ignited but the item in your off-hand was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.
The bug
When holding a flint and steel in your main-hand and another item with a right click action in your off-hand, both items will be used when right clicking a creeper to ignite it.
How to reproduce
- Spawn a creeper
- Put flint and steel in your main-hand and another item with a right click action in your off-hand
- Right-click the creeper
- Note that the creeper was ignited but the item in your off-hand was used as well
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
For the client the method net.minecraft.entity.monster.EntityCreeper.processInteract(EntityPlayer, EnumHand) does not return when you right click a creeper with a flint and steel. Therefor it tries to use the item in the offhand instead.
Relates to
MC-88014The name tag part of the original description is caused by this underlying bug.
Can confirm for MC 1.12.1.
Confirmed for 1.13.1.
Cannot reproduce aince 19w37a.