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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Problem with skull's skin

Discussion in 'Skript' started by MarceLOL, May 1, 2020.

Thread Status:
Not open for further replies.
  1. MarceLOL

    MarceLOL Member

    Joined:
    May 1, 2020
    Messages:
    2
    Likes Received:
    0
    I'm creating my first server, so I don't have any experience with skripts, I'd like a little of help here:

    It's a script for placing skull+fence when a player dies, just like in uhc games.
    The script:
    Code (Text):
    1. on death of player:
    2.     set block at location of victim to nether brick fence
    3.     set block at location 1 meter above location of victim to victim's skull
    The skript works well, it generates a head on a fence, but with Steve's skin. see here

    I would like to see the skin, any ideas?

    Regards,

    Marcelo
    --- Double Post Merged, May 2, 2020, Original Post Date: May 1, 2020 ---
    Okay so I got this, it works, but head generates only in overworld. Is there a way to put an argument of victim's world in /fill?

    Code (Text):
    1. on death of player:
    2.     set {_location} to victim's location
    3.     set {_x} to round down x coord of {_location}
    4.     set {_y} to round down y coord of {_location}
    5.     set {_y} to round down {_y} +1
    6.     set {_z} to round down z coord of {_location}
    7.     #set {_location2} to location {_x}, {_y}, {_z} in world of victim
    8.     set block at location of victim to nether brick fence
    9.     execute console command "/fill %{_x}% %{_y}% %{_z}% %{_x}% %{_y}% %{_z}% minecraft:player_head{Owner:{Name:%victim%}}"
     
    #1 MarceLOL, May 2, 2020
    Last edited: May 2, 2020
  2. Jimsk

    Jimsk Member

    Joined:
    Mar 13, 2020
    Messages:
    21
    Likes Received:
    1
    Whats the name of the world you are using? If its an external world then you could try:

    Code (Text):
    1. set {_location2} to location at {_x}, {_y}, {_z} in world "name of your world"
     
  3. MarceLOL

    MarceLOL Member

    Joined:
    May 1, 2020
    Messages:
    2
    Likes Received:
    0
    Thanks for replying, but I don't use _location2 (it's commented). The problem is that console doesn't know in which world has to make the /fill, so it always makes it in overworld...

    The 1st script works but always appears Steve's head.
    The 2nd script works but the head appears only in overworld (because it uses /fill for the head)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...