Help on {_loc}

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

christianmv84

Active Member
Jul 20, 2017
50
0
0
59
code_language.skript:
command /eu:
    trigger:
        Set {_loc} to location -3, 61, 14 in world "Lobby"
        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}"

Does anyone know why when I put / eu does not put the head?
 
Setting a block to the item removes the NBT. Set the block, then add the nbt to the block.
 
Thanks!

But where are the coords and the world?
code_language.skript:
command /eu:
    trigger:
        set {_loc} to location -3, 61, 14 in world "Lobby"
        set block at {_loc} to player head #maybe player skull?
        add "your nbt" to nbt of block at {_loc}
That should do it, I'm not sure though as I haven't tested.
 
  • Like
Reactions: christianmv84
code_language.skript:
command /eu:
    trigger:
        set {_loc} to location -3, 61, 14 in world "Lobby"
        set block at {_loc} to player head #maybe player skull?
        add "your nbt" to nbt of block at {_loc}
That should do it, I'm not sure though as I haven't tested.

Ty tomorrow i go to try!
[doublepost=1513790504,1513733782][/doublepost]
Ty tomorrow i go to try!

code_language.skript:
command /eu:
    trigger:
        set {_loc} to location 0, 61, 0 in world "Lobby"
        set block at {_loc} to player head
        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
 
Status
Not open for further replies.