#i cant figure dis out

1 messages · Page 1 of 1 (latest)

tropic portal
#

on explode:
cancel event

dawn cairn
#

yea that

tropic portal
#

variables/nbt

#

when spawning the tnt, give it a variable

#

and check for that

#

yes

#

so then?

#

no

#

a local variable may obly be used in a single event/command

#

it cant carry further

#

only*

#

list

#

list

gaunt vale
#

so instead of setting {_lst} you can add the entity to {_lst::*}, but the simplest way would be to add a tag to the nbt that says don’t explode or even just to assign a display name to the primed tnt entity that you can then check for

#

You need to differentiate regular tnt from the tnt you want to not destroy blocks

#

for example when you spawn the tnt you can set the display name to “&f”, then when it explodes you can check if the display name is “&f” and cancel the event

tropic portal
#

cancel event stops the damage

#

on damage:
if damage was caused by explosion:
cancel event

#

get creative

gaunt vale
#

after canceling the event create a fake explosion at the location

tropic portal
#

tell us what your problem is

tropic portal
#

make them