Killing a villager while it offers a Totem of Undying uses the totem and removes it from its hand
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far away from the player/loses focus on them.
Steps to Reproduce
- Place a command block and a lever next to it, and in the command block, paste in the command:
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f} - Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
- Punch the villager while holding the emerald in your main hand.
Observed Results
The totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Expected Results
The villager does not consume/use a totem if offering/holding one or immediately shows the totem in its hand again.
Additional Notes
Related to MC-255829.
Linked Issues
- Unresolved
Viradex- 6
- 2
- Confirmed
Low
- Platform
- Trading
- trade
1.20.6 - 25w06a
1.20.6 24w18a 24w19b 24w20a 24w21b 1.21-pre1 1.21-pre2 1.21-pre3 1.21-pre4 1.21-rc1 1.21 24w33a 1.21.1-rc1 1.21.1 24w34a 24w35a 24w36a 24w37a 24w38a 24w39a 24w40a 1.21.2-pre1 1.21.2-pre2 1.21.2-pre3 1.21.2-pre4 1.21.2-pre5 1.21.2-rc1 1.21.2-rc2 1.21.2 24w44a 1.21.3 24w45a 24w46a 1.21.4-pre1 1.21.4-pre2 1.21.4-pre3 1.21.4-rc1 1.21.4-rc3 1.21.4 25w02a 25w03a 25w04a 25w05a 25w06a
Created Issue:
Killing a villager while it is offering a Totem of Undying uses the totem and does not display anything in its hand
The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If the villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If
thevillager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place down a lectern as a jobsite block and mark its coordinates using the 'Targeted Block' coordinates in the F3 debug screen.
Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1 ~ {Brain: {memories: {"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian", level: 1, type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade. (If it does not, make sure that the job site block coordinates are correct in the command.)
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place
down a lectern as a jobsite block and mark its coordinates usingthe'TargetedBlock' coordinatesin theF3 debug screen.Place a command block and a lever next to it, and in the command block, paste in the command below. Replace the <X>, <Y> and <Z> text near the start of the command with the block coordinates of the lectern you took down earlier, respectively. Also, if you are in a dimension other than the Overworld, change that in the jobsite block memory.
/summon minecraft:villager ~ ~1~ {Brain: {memories:{"minecraft:job_site": {value: {pos: [I; <X>, <Y>, <Z>], dimension: "minecraft:overworld"}}}}, Health: 20.0f, OnGround: 1b, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"},buy: {count: 1, id: "minecraft:emerald"},priceMultiplier: 0.05f}]}, VillagerData: {profession: "minecraft:librarian",level: 1,type: "minecraft:plains"}}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
(If it does not, make sure that the job site block coordinates are correct in the command.)Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only way (I found) to make it show again is to close and re-open the world.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829, however, it is not a duplicate of that issue, as that issue has been fixed, and it is related to the fact that the villager trades air after the totem is used, which is not what this bug report is about.The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).
relates to
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance. The totem can also show back up if the villager walks far enough away from the player/loses focus on them, as Jiingy stated.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance. The totem can also show back up if the villager walks far enough away from the player/loses focus on them, as Jiingy stated.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance. The totem can also show back up if the villager walks far enough away from the player/loses focus on them, as [Mod] Jiingy stated.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance. The totem can also show back up if the villager walks far enough away from the player/loses focus on them, as [Mod] Jiingy stated.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 trueNow, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).
Killing a villager while itisofferinga Totem of Undying uses the totem anddoes not display anything inits handKilling a villager while it offers a Totem of Undying uses the totem and removes it from its hand
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:20.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Run the command below to be able to trigger the totem of undying in one hit:
/effect give @s minecraft:strength 60 9 true
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways (I found) to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829(fixed issue).
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~ ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways
(I found)to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.Additional Notes
Related to
MC-255829(fixed issue).The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
How to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829.
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
Howto ReproducePlace a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829.The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far enough away from the player/loses focus on them.
It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
Steps to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Additional Notes
Related to
MC-255829.
The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far
enoughaway from the player/loses focus on them.It would be expected that the villager does not consume/use a totem if offering/holding one, or immediately shows the totem in its hand again.
Steps to Reproduce
Place a command block and a lever next to it, and in the command block, paste in the command below.
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
Now, while holding emeralds in your main hand, punch the villager. Note how the totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.Additional Notes
Related to
MC-255829.The Bug
If a villager trades a totem of undying, and the player holds the item used to buy it and kills it while it offers the totem in its main hand, the totem is consumed and revives the villager. However, when continuing to hold the item needed to buy the totem, the totem does not appear in the villager's main hand again (even after switching your offer and trading with the villager), unless the world is reloaded or the villager is unloaded by going out of its simulation distance.
[Mod] Jiingy has also stated in their comment that the totem can additionally show up again if the villager walks far away from the player/loses focus on them.
Steps to Reproduce
- Place a command block and a lever next to it, and in the command block, paste in the command:
/summon minecraft:villager ~ ~1 ~ {VillagerData: {profession: "minecraft:librarian", level: 2, type: "minecraft:plains"}, Offers: {Recipes: [{maxUses: 12, sell: {count: 1, id: "minecraft:totem_of_undying"}, buy: {count: 1, id: "minecraft:emerald"}, priceMultiplier: 0.05f}]}, Health:1.0f}- Once the command has been pasted in, flick the lever. A villager should spawn on the top of the command block. Verify that it has the totem of undying trade.
- Punch the villager while holding the emerald in your main hand.
Observed Results
The totem is consumed and disappears from the villager's hand.
If you try to switch inventory slots from and back to the totem, the villager will not show another totem in its hand. It does not show the totem again even after trading with it. The only ways to make it show again is to close and re-open the world, or unload the villager and reload it by going out of its simulation distance.
Expected Results
The villager does not consume/use a totem if offering/holding one or immediately shows the totem in its hand again.
Additional Notes
Related to
MC-255829.
Can confirm. The totem can alo show back up if the villager walks far enough away from the player/loses focus on them.
It may be because the villager is holding the item while offering it to you, thus killing it would result in it being used.