Solved Enable drops of certain items on death

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
So , just do that:
code_language.skript:
on death of player:
    attacker is a player
    remove all drops from dropped items
    set {_head} to ("%victim%" parsed as offline player)'s skull
    drop {_head} named "&c%victim%'s Head" at victim's location
 
Nope, still doesnt drop the head, but gives me 0 errors when i reload it
 
yeah, all drops are cleared, just that the head doesnt drop at all
 
code_language.skript:
on death of player:
    attacker is a player
    victim is a player
    remove all drops from drops
    set {_head} to skull of "%victim%" parsed as offlineplayer
    drop {_head} named "&c%victim%'s Head" at event-location
 
I'll test now the code.
Still nope
I got this to work by dropping at the attacker instead
code_language.skript:
on death of player:
    attacker is a player
    victim is a player
    remove all drops from drops
    wait 1 second
    set {_head} to skull of "%victim%" parsed as offlineplayer
    drop {_head} named "&c%victim%'s Head" at attacker
might be a suitable work around if all else fails:emoji_slight_smile:
 
  • Like
Reactions: YoshYz
Status
Not open for further replies.