Solved Bedrock breaker

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

First: 5
After: 4

But when it got to 0 they didn't got removed
[doublepost=1490480543,1490480493][/doublepost]it showed

First: 5
After: 4

But when it got to 0 they didn't got removed
 
it showed

First: 5
After: 4

But when it got to 0 they didn't got removed
[doublepost=1490480543,1490480493][/doublepost]it showed

First: 5
After: 4

But when it got to 0 they didn't got removed

code_language.skript:
on explosion:
    if blast radius of event-entity is greater than or equal to 1:
        loop all blocks in radius 1 of event-entity:
            if loop-block is bedrock:
                if {health::%location of loop-block%::%loop-block%} isn't set:
                    set {health::%location of loop-block%::%loop-block%} to 5
                broadcast "First: %{health::%location of loop-block%::%loop-block%}%"
                remove 1 from {health::%location of loop-block%::%loop-block%}
                broadcast "After: %{health::%location of loop-block%::%loop-block%}%"
                if {health::%location of loop-block%::%loop-block%} is 0:
                    set block at {health::%location of loop-block%} to air
 
now sends the same messages and it breaks the block as swell but it only breaks one block at a time
 
now sends the same messages and it breaks the block as swell but it only breaks one block at a time

code_language.skript:
on explosion:
    if blast radius of event-entity is greater than or equal to 1:
        loop all blocks in radius 1 of event-entity:
            if loop-block is bedrock:
                if {health::%location of loop-block%::%loop-block%} isn't set:
                    set {health::%location of loop-block%::%loop-block%} to 5
                broadcast "First: %{health::%location of loop-block%::%loop-block%}%"
                remove 1 from {health::%location of loop-block%::%loop-block%}
                broadcast "After: %{health::%location of loop-block%::%loop-block%}%"
            if {health::%location of loop-block%::%loop-block%} is 0:
                set block at {health::%location of loop-block%} to air
 
Status
Not open for further replies.