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.

Help on {_loc}

Discussion in 'Skript' started by christianmv84, Dec 19, 2017.

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

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Code (Skript):
    1. command /eu:
    2.     trigger:
    3.         Set {_loc} to location -3, 61, 14 in world "Lobby"
    4.         Set block at {_loc} to player head with custom nbt "{Owner:{Id:""fb81f77f-3a6b-45c7-96b5-6663a20ff754"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDBjZDcxZmJiYmJiNjZjN2JhZjc4ODFmNDE1YzY0ZmE4NGY2NTA0OTU4YTU3Y2NkYjg1ODkyNTI2NDdlYSJ9fX0=""}]}},SkullType:3,Rot:0}"
    5.  
    Does anyone know why when I put / eu does not put the head?
     
  2. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Setting a block to the item removes the NBT. Set the block, then add the nbt to the block.
     
    • Agree Agree x 1
  3. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    the person who helped me put it that way

    Could you give me an example in code, I would appreciate it
     
  4. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Code (Skript):
    1. set block at {_whatever} to player head #maybe player skull?
    2. add "your nbt" to nbt of block at {_whatever}
     
    • Like Like x 1
  5. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Thanks!

    But where are the coords and the world?
     
    #5 christianmv84, Dec 20, 2017
    Last edited: Dec 20, 2017
  6. Wardle

    Wardle Member

    Joined:
    May 15, 2017
    Messages:
    20
    Likes Received:
    2
    Code (Skript):
    1. command /eu:
    2.     trigger:
    3.         set {_loc} to location -3, 61, 14 in world "Lobby"
    4.         set block at {_loc} to player head #maybe player skull?
    5.         add "your nbt" to nbt of block at {_loc}
    That should do it, I'm not sure though as I haven't tested.
     
    • Like Like x 1
  7. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Ty tomorrow i go to try!
    --- Double Post Merged, Dec 20, 2017, Original Post Date: Dec 20, 2017 ---
    Code (Skript):
    1. command /eu:
    2.     trigger:
    3.         set {_loc} to location 0, 61, 0 in world "Lobby"
    4.         set block at {_loc} to player head
    5.         add "{Owner:{Id:""fb81f77f-3a6b-45c7-96b5-6663a20ff754"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDBjZDcxZmJiYmJiNjZjN2JhZjc4ODFmNDE1YzY0ZmE4NGY2NTA0OTU4YTU3Y2NkYjg1ODkyNTI2NDdlYSJ9fX0=""}]}},SkullType:3,Rot:0}" to nbt of block at {_loc}
    this code doesnt work, when i put /eu, the head does not get
     
Thread Status:
Not open for further replies.

Share This Page

Loading...