Skip to content

1.18.2 How do I get the {killer_item} to display the actual item name? #3389

@TomLewis

Description

@TomLewis

Are you using MySQL?

Yes

Are you using a proxy?

Yes - Velocity

Question

Been pulling my hair out again, I fixed all my pvp death messages not working due to the upgrade not fixing the death.rs variables that changed! took me a while but found out {killer} was changed to {killer_name} with no fallback, so it just failed all PvP messages.

Now ive got another issue; I previously had a custom variable [killer_item] (Square brackets pay attention) that was a custom varaible but None of my custom variables are working any more at all for some reason.

This was it;
https://gist.github.com/TomLewis/147d14be73906f87f1200237ccfc8b7b

Ive tried the other built in ones from the generated fresh configs, super simple stuff like
just tested with a basic one /chc info variables GodsDead [ping] not even working, neither is;
/chc info variables GodsDead [player_has_nick] where I changed it to message from format.

Nothing is working with custom varaibles.

idealy I dont have to use a custom variable for something so simple, that should be a built in varaible we have {killer_item} which isnt even listed on the docs? https://docs.mineacademy.org/chatcontrol/variables.html
absolutly insane I found that by mistake, so i dont know if theres a varient of this that actually displays the items name that did the killing.

Example death message;

group entity-attack-by-pvp-diamond-sword

require killer player
require killer item DIAMOND_SWORD
message: 
- &4&l⚔ PvP &c{player} &rwas killed by &a{killer_name}&r's &f{killer_item}&r!

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions