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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
maybe like this?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.
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
try remove the chance condition and test again.Ok ty :d
[doublepost=1490420536,1490420216][/doublepost]The explosive doesn't seem to work and i downloaded umbaska and no problems shown in game
It didn't work aswelltry remove the chance condition and test again.
well try with skqueryIt didn't work aswell
on explode:
wait 1 tick
loop exploded blocks:
set loop-block to air
It didn't workwell try with skquery
should like this
code_language.skript:on explode: wait 1 tick loop exploded blocks: set loop-block to air
No I'm not getting any errors
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
Wow thx it worked but is there a way to make it with like health for it to be broken in like X amount of tnt's?
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
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
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