I'm quite new to Skript. I may need spoon-feeding for this one. I'm trying to make a vanish skript and I need it so when a player is in the vanish mode and they place a block, it's silent.
I tried this but it still makes noise and the block doesn't appear.
on place:
if {hide.%player%} is true:
cancel event
set {_loc} to event-location
set {_block} to event-block
set block at {_loc} to {_block}
When I switch "set block at {_loc} to {_block}" to "set block above {_loc} to {_block}" the block is placed but above where I need it to be.
Can somebody help me with this or think of a better way to execute this? Please and thank you.
on left click:
if {hide.%player%} is true:
cancel event
set event-block to air
# message "place debug %{_loc}% %{_block}%"
That is what I have for breaking blocks and it works fine.
I tried this but it still makes noise and the block doesn't appear.
on place:
if {hide.%player%} is true:
cancel event
set {_loc} to event-location
set {_block} to event-block
set block at {_loc} to {_block}
When I switch "set block at {_loc} to {_block}" to "set block above {_loc} to {_block}" the block is placed but above where I need it to be.
Can somebody help me with this or think of a better way to execute this? Please and thank you.
on left click:
if {hide.%player%} is true:
cancel event
set event-block to air
# message "place debug %{_loc}% %{_block}%"
That is what I have for breaking blocks and it works fine.