Solved How to toggle this?

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

JustADev

Well-Known Member
Apr 8, 2017
379
9
18
How do I make a toggle gui for this?
So that if staff want to build they can called /buildmode

on place of planks:0:
add location of event-block to {locations::*}
on place of oak log:
add location of event-block to {locations::*}
on place of water:
add location of event-block to {locations::*}
on place of fire:
add location of event-block to {locations::*}

command /regen:
trigger:
wait 1 tick
loop {locations::*}:
set block at loop-value to air

every 5 seconds:
make console execute command "regen"
stop

Second question, how do i make the blocks disappear only 5 seconds AFTER the player has placed them instead of every 5 secs.
 
This should do it :emoji_slight_smile: for your number 2
Code:
On block place:
    If event-block is YourBlock:
        Wait 5 seconds
        Set event-block to air
 
Status
Not open for further replies.