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 comminuty!

    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.

nicoxdry

Member
Mar 22, 2017
27
0
1
21
Ive been trying to make a skript where I'm able to break bedrock with Tnt and with a pickaxe with a certain but i haven't been able to so can someone help me please.
 
Ive been trying to make a skript where I'm able to break bedrock with Tnt and with a pickaxe with a certain but i haven't been able to so can someone help me please.
maybe like this?

code_language.skript:
on block damage:
    if event-block is bedrock:
        if player's tool is diamond pickaxe:
            set event-block to air
            give player bedrock

#need umbaska
on explosion:
    chance of 10%:
        remove bedrock from exploded blocks
 
Ok ty :d
[doublepost=1490420536,1490420216][/doublepost]The explosive doesn't seem to work and i downloaded umbaska and no problems shown in game
 
No I'm not getting any errors

Try something like that
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:
                set loop-block to air
    if blast radius of event-entity is greater than or equal to 2:
        loop all blocks in radius 2 of event-entity:
            if loop-block is bedrock:
                set loop-block to air
 
I don't really know how to write it with script but ill explain it.

Bedrock has 100 health
1 tnt removes 20 health
so 5 tnt hits will break the block
 
I don't really know how to write it with script but ill explain it.

Bedrock has 100 health
1 tnt removes 20 health
so 5 tnt hits will break the block
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
                remove 1 from {health::%location of loop-block%::%loop-block%}
                if {health::%location of loop-block%::%loop-block%} is 0:
                    set block at loop-block to air
 
ok, but doesn't seem to work i blew them up with 1 tnt
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 loop-block to air

Screen the output please.
 
Status
Not open for further replies.