Solved Dropping skull

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

  • 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.

Williambriggs

Member
Jan 13, 2019
10
0
0
I am trying to make it so when you kill the cow it clears its drops and drops a skull named Cow head. I have the clear drops part working but it never drops a skull.

Code:
on death:
    if victim is a cow:
        set {head::cow} to a skeleton skull named "&4Cow Head" with lore "Sell me!"
        clear drops
        drop {head::cow} at event-location
 
first of all, theres no reason to set the item as a variable, and then drop the variable, just drop the item

second, you can drop a cow head (makes it nicer) and third, you need to drop it at the location of the victim
code_language.skript:
on death:
    if victim is a cow:
        clear drops
        drop 1 of skull of "MHF_Cow" parsed as offline player named "&4Cow Head" with lore "Sell me!" at location of victim
 
Last edited:
first of all, theres no reason to set the item as a variable, and then drop the variable, just drop the item

second, you can drop a cow head (makes it nicer) and third, you need to drop it at the location of the victim
code_language.skript:
on death:
    if victim is a cow:
        clear drops
        drop 1 of skull of "MHF_Cow" parsed as offline player named "&4Cow Head" with lore "Sell me!" at location of victim

Thank you! Also that still drops a skeleton head just letting you know
 
Thank you! Also that still drops a skeleton head just letting you know
I tested this one 1.13.2 and it seems to work fine, drops a cow skull.

SOMETIMES the first time your server loads that SKIN, it might not load, therefor drops a skeleton skull or a player head, but after a few times it should work.

Which version of Skript and Spigot are you using?
 
I tested this one 1.13.2 and it seems to work fine, drops a cow skull.

SOMETIMES the first time your server loads that SKIN, it might not load, therefor drops a skeleton skull or a player head, but after a few times it should work.

Which version of Skript and Spigot are you using?

It was because i didn't have the most recent version of skript. Thank you!
 
Status
Not open for further replies.