Solved Can't replace a block in a time event in a Minecraft 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 community!

    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!

KripPlayz

Member
Jun 10, 2023
2
0
1
So im trying to make some blocks dissapear when the time in a world hits 18:00, but for some reason it says that "There's no location in an at time event" as an error code. Can someone help me with this?


Code:
at 18:00 in world "ab":
    set {_v} to vector 133, 5, 74
    set block {_v} to air in world "ab"

I also tried setting the block to air like:

Code:
execute console command "/setblock 133 5 74 air"

While this worked without an error, it didn't break the block which i said it to and i think it's because i didn't include in what world it will do, but i don't know how to add that.
 
Last edited:
So im trying to make some blocks dissapear when the time in a world hits 18:00, but for some reason it says that "There's no location in an at time event" as an error code. Can someone help me with this?


Code:
at 18:00 in world "ab":
    set {_v} to vector 133, 5, 74
    set block {_v} to air in world "ab"

I also tried setting the block to air like:

Code:
execute console command "/setblock 133 5 74 air"

While this worked without an error, it didn't break the block which i said it to and i think it's because i didn't include in what world it will do, but i don't know how to add that.
Code:
set {_world} to world "ab"
set {_loc} to location 133, 5, 74 in {_world}
set block at {_loc} to air
 
Code:
set {_world} to world "ab"
set {_loc} to location 133, 5, 74 in {_world}
set block at {_loc} to air


nvm i fixed it, i used the location function but thx


Code:
at 18:00 in world "ab":
    set block at location(133, 5, 74, world "ab") to air