Run a /blockdata command in a specific world

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

Daniel Greer

Member
Dec 11, 2020
18
2
3
I've found sources in other threads on this platform that show to use:
Code:
                    add 1 to {player.deaths::%victim%}
                    set {_loc} to location(0, 0, 0, world of victim, 0, 90)
                    set block at {_loc} to command block
                    add "{Command:""/blockdata -158 67 75 {Text1:""{\""text\"":\""R.I.P\""}"",Text2:""{\""text\"":\""%victim%\""}"",Text3:""{\""text\"":\""\""}"",Text4:""{\""text\"":\""DIED %{player.deaths::%victim%}% TIMES\""}""}""}" to nbt of block at {_loc}
                    set x-coordinate of {_loc} to (x-coordinate of {_loc} - 1)
                    set block at {_loc} to redstone block
                    wait 1 tick
                    set block at {_loc} to air

But it gives me an error of "Unknown event or condition" at line 5
Please get to this fast, I want to make this work. Apparently it works for others when they tried adding the NBT command "/summon pig ~ ~1 ~"

I have SkStuff which I was told was needed for the code at line 5
 
Last edited:
Status
Not open for further replies.