#explode block skript

1 messages ยท Page 1 of 1 (latest)

digital trench
#
on block explode end stone:
    cancel event```

Anyone has better idea how I can make this work? I tryed everything but it's not working.
#

even this:

on block break:
    if world of event-location is "spawn_the_end":
        if block is end stone:
            if cause of event is explosion:
                cancel event```
but stil nothing
#

@grand light

#

you know anything that can help?

obtuse nest
#

i think on explode you can like loop exploded blocks and stop certain blocks breaking

digital trench
#

thanks i will check it

digital trench
#

tryed this

#

no errors and is not working

#

idk what to do

#

send_code ๐Ÿ™ ๐Ÿ˜ญ

obtuse nest
#

is this ai?

digital trench
#

no

digital trench
#

it is from offcial example

obtuse nest
#

whats the top part?

digital trench
#

what do you mean?

obtuse nest
#

remove the cancel event and the top part

digital trench
#

done

#

tested

#

not working

obtuse nest
digital trench
#

on explode:
loop exploded blocks:
if loop-block is end stone:
remove loop-block from exploded blocks

obtuse nest
#

try sending exploded blocks after

#

..

digital trench
#

wait im trying something else

digital trench
#

so @obtuse nest

on block explode:
    cancel event```
this is working but
if i add this:

on block explode:
if block is end stone:
cancel event```
is not working

#

do i need to loop it?

obtuse nest
#

add indent before cancel event

#

@digital trench

digital trench
#

on witch one

#

the one with endstone

#

or the first one

digital trench
#

i think

obtuse nest
#

it needs to cancel event IF endstone

#

an indent is a tab

#

like
on click:
give player stone

#

only happns when player clicks so theres a tab

digital trench
#

oh

#

i think i understand it now

#
on block explode:
    if block is end stone:
        cancel event
#

like this?

obtuse nest
#

ye

digital trench
#

still not working skullcry

obtuse nest
#

add broadcast event block after to see if its actually activating

obtuse nest
#

it will work

digital trench
#

from here on block explode: broadcast "please break" if block is end stone: broadcast "did u explode yet" cancel event only please break it broadcasting

obtuse nest
#

replace block with past event-block

#

good debugging ๐Ÿ‘

digital trench
#

thanks ! >3

#

it says

#

it dosent have a past state

#

Oh my days

#

I made

#

it owrk

#

work

#

god damn it

#

it doesnt need past event block

#

@obtuse nest

#
on block explode:
    broadcast "checking block: %block%"
    if block is end stone:
        broadcast "this was end stone, cancelling!"
        cancel event
#

from this

#

it was checking the air

#

so i need to add
if block is not end stone:

#

so it will check the end stone

#

fk

#

im dumb

#

its on all the blocks

#

not only end stone

obtuse nest
#

i think on block explode is the tnt

digital trench
#

its

#

bed

#

in the end

#

the explosion

obtuse nest
#

yeah i think youll need to loop all exploded blocks

#

on explode

#

try sending all exploded blocks on explode

digital trench
#
on block explode:
        broadcast "Explosion detected in End at %event-location%"
        loop exploded blocks:
            broadcast "Block to explode: %loop-block%"
            if loop-block is end stone:
                broadcast "Protecting End Stone!"
                remove loop-block from exploded blocks
#

is this good?

obtuse nest
#

ye

#

does it just return air

digital trench
#

on explosion:
broadcast "Explosion detected in End at %event-location%"
loop exploded blocks:
broadcast "Block to explode: %loop-block%"
if loop-block is end stone:
broadcast "Protecting End Stone!"
remove loop-block from exploded blocks

#

i cant say on on block explode

#

but no broadcast here

obtuse nest
#

really? try on explode

#

im getting home in 15 ill be able to help better then

digital trench
digital trench
#

yo @obtuse nest are you here?

slender imp
#

did you try on explode:?