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

Heads on fence posts won't place in nether

Discussion in 'Skript' started by Shadow, Feb 20, 2017.

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

    Shadow Member

    Joined:
    Feb 20, 2017
    Messages:
    2
    Likes Received:
    0
    Hai, I created a simple skript for UHC that places the head of a dead player on a fence post. It works perfectly fine in the overworld but in the nether only the fence post appears. Can anyone help me fix this? I've tried almost everything. Here's the skript:

    Code (Skript):
    1. on death of player:
    2.     if "%victim's world%" is "world":
    3.         set {_loc} to victim's location
    4.         set block at {_loc} to nether brick fence
    5.         set {_x} to victim's x-coordinate
    6.         set {_y} to (victim's y-coordinate+1)
    7.         set {_z} to victim's z-coordinate
    8.         command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 replace {ExtraType:%victim%,SkullType:3}"
    9.  
    10. on death of player:
    11.     if "%victim's world%" is "world_nether":
    12.         set {_loc} to victim's location
    13.         set block at {_loc} to nether brick fence
    14.         set {_x} to victim's x-coordinate
    15.         set {_y} to (victim's y-coordinate+1)
    16.         set {_z} to victim's z-coordinate
    17.         command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 replace {ExtraType:%victim%,SkullType:3}"
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Thats becouse THE console can't know what world you mean so iT Will place iT in THE overworld. I think your overworld is now full of heads xd. Fix setblock at {_loc} To a skull with custom nbt "nbt here"
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Can you tell me what exactly I need to write?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
     
Thread Status:
Not open for further replies.
Loading...