Solved how to break block

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

Status
Not open for further replies.
how to break block at XYZ (coordinates)
This is a really simple one, have you tried looking at the docs?
Take a look at them and do some research on it. Once you have if you still have issues, post your code,version etc per the required help format.
 
yes i cant find
i tried "break" "air" "replace" ???
how do you find all these things
 
Use the location at expression to create the location from the coords then set the block at that location to air. If you don't know how to do that look at the docs like Wynnevir said
 
Still can't find it
why not just give me the effect or whatever its called?
 
Still can't find it
why not just give me the effect or whatever its called?
Donut gave you the effect. Set block at location to air. But researching is 90% of skripting. Giving you the precise answers here for something so simple is very counter productive to your goal of actually learning to skript
 
To be fair i guess the docs aren't super clear on how to set a block since its not its own effect (https://bensku.github.io/Skript/effects.html#EffChange). However there is an example provided there:
code_language.skript:
 set the block above the victim to lava
theres also plenty of examples on the forums and existing skripts.
 
thank you @Donut
and @Wynnevir for trying to help

and @Donut

i need to use variables in

code_language.skript:
set block at location({_rx::*},{_ry::*},{_rz::*}world "world") to air
but it says i can't.
i dont know what to do
 
It's probably possible to do it in one line but easier to just do something like this:
code_language.skript:
set {_loc} to location at {_x},{_y}, {_z} in world "world"
set block at {_loc} to air
 
Status
Not open for further replies.