Silent Block Place help.

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

zaaaaak

VIP
Aug 8, 2017
8
0
1
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.
 
Status
Not open for further replies.