Making Oak Planks and Logs placed by players vanish every 5 secs

  • 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
Idk how to do this,
I have tried this:

on place of planks:0:
add location of event-block to {locations::*}
on place of oak log:
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

How Do I add particles as the blocks are being gone, and how can I toggle it.?
 
Last edited:
You could have a variable set to true or false to toggle your particles, and have them play before your block gets set to air, if I understand what you want to do correctly. I personally prefer SkDragon for particles so thats what this example uses.
code_language.skript:
loop {locations::*}:
    if {do_particles} is true:
        drawDot count 5, particle "blockcrack", material redstone block, XYZ 0, 0, 0, center %loop-value%, visibleRange 320, pulseDelay 0, keepFor 10 ticks
    set block at loop-value to air
And a command that toggles the true/false of the variable would work just fine:
code_language.skript:
command /toggle:
    trigger:
        if {do_particles} is not set:
            set {do_particles} to true
        if {do_particles} is true:
            set {do_particles} to false
            send "particles toggled off"
            stop
        if {do_particles} is false:
            set {do_particles} to true
            send " particles toggles on"
 
Status
Not open for further replies.