1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Death messages with item name rather than item and item name

Discussion in 'Requests' started by ambaaaaaaaas, Feb 19, 2022.

  1. ambaaaaaaaas

    ambaaaaaaaas New Member

    Joined:
    Feb 19, 2022
    Messages:
    5
    Likes Received:
    0
    Category: Combat

    Suggested name: death.sk

    Spigot/Skript Version: 2.6 (1.17.1 please)

    What I want:
    I made a skript that shows a death message when someone dies to a player or a mob. but when i kill someone with a named item, says the item then the name.
    Example:
    upload_2022-2-19_20-44-50.png
    So what i need is so that it says the item name rather than the item and the name. And if it's possible to make it like hoverable and show the item, enchants & item name.

    Here's the skript btw:

    options:

    only victim: "&e%victim% &chas died!" and "&e%victim% &cmet their fate" and "&e%victim% &cpassed away strangely"

    victim and attacker: "&e%attacker% &ckilled &e%victim% &cusing &4%attacker's item name%" and "&e%attacker% &cDECAPITATED &e%victim% &cusing &4%attacker's %"

    on death:
    if attacker is not a player:
    set death message to random element out of {@only victim}
    else if attacker is a player:
    set death message to random element out of {@victim and attacker}



    When I'd like it by: Idk, whenever someone can do it lol
     

Share This Page

Loading...