Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function arenareset():
- loop {arena1::loc::*}:
- set {_loc} to first element out of {arena1::loc::*} #Holt die Location des Blocks aus der Liste
- remove {_loc} from {arena1::loc::*}
- set {_block} to first element out of {arena1::loc::block::*} #Holt den Block aus der Liste
- remove {_block} from {arena1::loc::block::*}
- set {_block} to {_block} parsed as item #Wichtig!
- set block at {_loc} to {_block}
- clear {arena1::*}
- on block break:
- "%region at event-block%" contains "arena1 in world Farm"
- add event-location to {arena1::loc::*} #speichert die location des blocks
- add "%event-block%" to {arena1::loc::block::*} #speichert den typ des blocks
- command /reset:
- trigger:
- arenareset()
- command /res:
- trigger:
- clear {arena1::*} #Resettet die gespeicherten Blöcke fürn Reset
- #------------------ NEU FÜR DIE 1.14+!!
- #------------------ NUR EIN STÜCK CODE NUTZEN! Entweder den oberen - oder den unteren Teil !!
- function arenareset():
- loop {arena1::*}:
- set {_loc} to first element out of {arena1::*} #Holt die Location des Blocks aus der Liste
- remove {_loc} from {arena1::*}
- set {_block} to first element out of {arena1::%{_loc}%::*} #Holt den Block aus der Liste
- remove {_block} from {arena1::%{_loc}%::*}
- set block at {_loc} to {_block}
- clear {arena1::*}
- on block break:
- add event-location to {arena1::*}
- add type of event-block to {arena1::%event-location%::*} #speichert den typ des blocks
- command /reset:
- trigger:
- arenareset()
- command /res:
- trigger:
- clear {arena1::*} #Resettet die gespeicherten Blöcke fürn Reset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement