I'm new to skript and I don't really know much so if this question is stupid, that's why.
I want to set a block at a certain set location to a gold block, but only if the block is air. I tried to search online and I looked in the documentation, but to no success. This is the code I currently have, but its getting a bunch of errors. Please help!
I want to set a block at a certain set location to a gold block, but only if the block is air. I tried to search online and I looked in the documentation, but to no success. This is the code I currently have, but its getting a bunch of errors. Please help!
code_language.skript:
variables:
{XValue} = 0
{YValue} = 0
{ZValue} = 0
command /test <player>:
description: wip
trigger:
set {XValue} to the argument's x-coordinate
set {YValue} to the argument's y-coordinate
set {ZValue} to the argument's z-coordinate
if block at location at {XValue}, {YValue}, {ZValue} is air:
set block at location at {XValue}, {YValue}, {ZValue} to gold_block
else:
message "&cError" to argument