Mobs using melee weapons don't have a renamed weapon show up in a player death message
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>
What actually happened was...:
The death message was <player name> was slain by <name of mob>
Steps to Reproduce:
1. Enter this command into a command block and activate it:
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}
2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]
An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
Code analysis by Marcono1234 can be found in this comment.
Environment
Windows 7
- Fixed
Cavinator 1
- 6
- 6
- Confirmed
- (Unassigned)
- chat death death-message item-renaming mob weapon
1.8 - 1.13.1
1.8 1.8.1 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 15w31c 15w32c 15w33b 15w33c 15w34a 15w34b 15w34c 15w34d 15w36b 15w36c 15w41b 15w47c 15w49a 15w49b 1.8.9 15w50a 15w51a 15w51b 16w02a 16w03a 16w04a 16w05b 16w06a 16w07a 16w07b 1.9-pre1 1.9-pre2 1.9-pre3 1.9-pre4 1.9 1.9.1-pre1 1.9.1-pre2 1.9.1-pre3 1.9.2 16w14a 16w15a 16w15b 1.9.3-pre1 1.9.3-pre2 1.9.3-pre3 1.9.4 1.10 1.10.2 16w38a 16w39a 1.13.1- 18w01a
Created Issue:
Mobs using weapons don't have a renamed weapon show up in a player death message
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
{Name:This Sword,Lore:[This is a test!]}
1. Enter this command into a command block and activate it:
/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:}},{},{},{},{}]}
2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
{Name:Renamed Bow,Lore:[This is also a test!]}
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:}},{},{},{},{}]}
Environment
Windows 7
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
{Name:This Sword,Lore:[This is a test!]}
1. Enter this command into a command block and activate it:
/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:}},{},{},{},{}]}
2.Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
{Name:Renamed Bow,Lore:[This is also a test!]}
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:}},{},{},{},{}]}
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}
Mobs using melee weapons don't have a renamed weapon show up in a player death message
A comment with security level 'global-moderators' was removed.
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}Use this command if using a 1.9 snapshot:
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}Use this command if using a 1.9 snapshot:
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}Or this command in 1.9:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}Use this command if using a 1.9 snapshot:
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}Or this command in 1.9:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:Zombie test dummy,Equipment:[{id:minecraft:diamond_sword,tag:{display:{Name:This Sword,Lore:[This is a test!]}}},{},{},{},{}]}Use this command if using a 1.9 snapshot:
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:Renamed Skeleton,Equipment:[{id:minecraft:bow,tag:{display:{Name:Renamed Bow,Lore:[This is also a test!]}}},{},{},{},{}]}Or this command in 1.9:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
Code analysis by Marcono1234 can be found in this comment.
Code analysis: https://bugs.mojang.com/browse/MC-76740?focusedCommentId=284951&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-284951
If a mob wielding a renamed weapon kills you, it's renamed weapon doesn't show in the death message.
What I expected to happen was...:
If any mob wielding a melee weapon (i.e. not a bow) that is renamed is spawned, and if you let the mob kill you, it should say: <player name> was slain by <name of mob> using <name of weapon>What actually happened was...:
The death message was <player name> was slain by <name of mob>Steps to Reproduce:
1. Enter this command into a command block and activate it:/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}2. Switch to survival or adventure and let the Zombie kill you.
3. The death message says: <player name> was slain by Zombie test dummy, as seen in Screenshot 1. But it should actually say <player name> was slain by Zombie test dummy using [This Sword]An additional detail here is that if a Skeleton kills you with a renamed bow the death message works just fine, as seen in Screenshot 2. Test it with this command:
/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}
Code analysis by Marcono1234 can be found in this comment.
Code analysis: https://bugs.mojang.com/browse/MC-76740?focusedCommentId=284951&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-284951


Confirmed for
Please link to this comment in the description
The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.
The reason is that the death message is created in this way:
Because there is only death.attack.player.item but not death.attack.mob.item it uses the default death message when a mob kills a player using a melee weapon.
And please update the provided commands because the tags changed in the latest snapshots
/summon Zombie ~ ~1 ~ {CustomName:"Zombie test dummy",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"This Sword",Lore:["This is a test!"]}}},{}]}/summon Skeleton ~ ~1 ~ {CustomName:"Renamed Skeleton",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"Renamed Bow",Lore:["This is also a test!"]}}},{}]}Confirmed for 1.13.1. The current message is <player> was slain by Zombie using [Diamond Sword].
Fixed in 18w01a, which added death.attack.mob.item. Note that 18w01a also changed mob names and item display names (but not lore) to use JSON text, but will only refuse to spawn the mob if the mob name is invalid JSON. If the item name is invalid JSON (
MC-123807), you will get "[Diamond Sword]" in chat, which presumably is what happened to Kraif./summon zombie ~ ~1 ~ {CustomName:"{\"text\":\"Zombie test dummy\"}",HandItems:[{id:"minecraft:diamond_sword",Count:1b,tag:{display:{Name:"{\"text\":\"This Sword\"}",Lore:["This is a test!"]}}},{}]}/summon skeleton ~ ~1 ~ {CustomName:"{\"text\":\"Renamed Skeleton\"}",HandItems:[{id:"minecraft:bow",Count:1b,tag:{display:{Name:"{\"text\":\"Renamed Bow\"}",Lore:["This is also a test!"]}}},{}]}