So am working on this code that would basically spawn items / shulkers every so often the dragon egg is placed
on place of dragon egg:
set artificial intelligence of shulker to false
send "started"
set {_status} to "on"
if {_status} is "on":
if player is in "world_the_end":
wait 1 seconds
chance of 80%:
drop 1 End Stone
chance of 80%:
drop 1 Chorus Plant
wait 1 seconds
chance of 50%:
spawn 1 shulker
on mine of dragon egg:
set {_status} to "off"
if {_status} is "off":
if player is in "world_the_end":
send "Stopped"
So I want {_status} to turn off and on the loop so that it would continue the loop until the status would change to off, in this case when the dragon egg is mined and on when placed. I would appreciate if someone could help me out with this
on place of dragon egg:
set artificial intelligence of shulker to false
send "started"
set {_status} to "on"
if {_status} is "on":
if player is in "world_the_end":
wait 1 seconds
chance of 80%:
drop 1 End Stone
chance of 80%:
drop 1 Chorus Plant
wait 1 seconds
chance of 50%:
spawn 1 shulker
on mine of dragon egg:
set {_status} to "off"
if {_status} is "off":
if player is in "world_the_end":
send "Stopped"
So I want {_status} to turn off and on the loop so that it would continue the loop until the status would change to off, in this case when the dragon egg is mined and on when placed. I would appreciate if someone could help me out with this