#Mining server Event Block no work

1 messages · Page 1 of 1 (latest)

violet lake
#
  • you should use else if statements instead of repeating your cancel event effect, e.g. (psuedocode)
if event-block is ...:

else if event-block is ...

else:
  cancel event
  • explain what's wrong with your multi-block code - what doesn't work? is the block not set back to its original type? is the condition not passing?
brisk quarry
#

the blocks stays as bedrock

#

i did put the else if instaed of consstant cancel events thank you

violet lake
#

when you call event-block after setting it to bedrock, the returned value will be bedrock
so you should set a local var to the block's type before changing it,

set {_block} to blockdata of event-block
(modify the block)
set block at event-block to {_block}

also note that you must set the var to get the blockdata or block type