Set block not workk with yml.

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

MrBlooble

Member
Dec 14, 2017
11
0
1
Hi reader, I created this script but the variable block does not work! The versione of server is: 1.17.1

Code:
on script load:
    load yaml "plugins/Skript/scripts/Block/block.yml" as "config"

command /setb:
    trigger:
        loop yaml node keys "blocks" from "config":
            set {_btype} to skript-yaml value "blocks.%loop-node%.type" of "config"
            set {_posX} to skript-yaml value "blocks.%loop-node%.pos.x" of "config"
            set {_posY} to skript-yaml value "blocks.%loop-node%.pos.y" of "config"
            set {_posZ} to skript-yaml value "blocks.%loop-node%.pos.z" of "config"
            set block at location at {_posX} , {_posY} , {_posZ} in world "world" to {_btype}
            send "%{_btype}% %{_posX}% %{_posY}% %{_posZ}%" to executor
[doublepost=1637201624,1637201500][/doublepost]I'm sorry for my english!
 
Status
Not open for further replies.