Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- if world is "HaonTest":
- if {InReset} is set:
- send "&cImpossible"
- cancel event
- stop
- if {blockis.%location of event-block%} is set:
- stop
- else:
- set {blocklocation.%{count}%} to event-location
- set {block.%{count}%} to type of event-block
- set {blockis.%location of event-block%} to true
- add 1 to {Count}
- on place:
- if world is "HaonTest":
- if {InReset} is set:
- send "&cImpossible"
- cancel event
- stop
- if {blockis.%location of event-block%} is set:
- stop
- else:
- set {blockis.%location of event-block%} to true
- set {blocklocation.%{count}%} to event-location
- set {block.%{count}%} to air
- add 1 to {Count}
- on enderman pickup:
- if world is "HaonTest":
- if {InReset} is set:
- cancel event
- stop
- if {blockis.%location of event-block%} is set:
- stop
- else:
- set {blocklocation.%{count}%} to event-location
- set {block.%{count}%} to type of event-block
- set {blockis.%location of event-block%} to true
- add 1 to {Count}
- on enderman place:
- if world is "HaonTest":
- if {InReset} is set:
- cancel event
- stop
- if {blockis.%location of event-block%} is set:
- stop
- else:
- set {blockis.%location of event-block%} to true
- set {blocklocation.%{count}%} to event-location
- set {block.%{count}%} to air
- add 1 to {Count}
- on explode:
- if world is "HaonTest":
- loop exploded blocks:
- if {InReset} is set:
- cancel event
- stop
- if {blockis.%location of loop-block%} is set:
- stop
- else:
- set {blocklocation.%{count}%} to loop-block's location
- set {block.%{count}%} to type of loop-block
- set {blockis.%location of loop-block%} to true
- add 1 to {Count}
- command /reset:
- permission: reset.reset
- trigger:
- if {InReset} is set:
- send "&5[Reset] &cReseting..."
- stop
- send "&5[Reset] §cReseted %{Count}% blocks."
- set {_count} to 0
- loop {Count} times:
- clear {blockis.%{blocklocation.%{_count}%}%}
- set block at {blocklocation.%{_count}%} to {block.%{_count}%}
- clear {blocklocation.%{_count}%}
- clear {block.%{_count}%}
- send "Map Reset : %{_count}% / %{Count}%" to console
- add 1 to {_count}
- wait 0.5 tick
- set {Count} to 0
- clear {InReset}
- send "&5[Reset] &aReset finish &c(%{_count}%)"
- command /abc:
- trigger:
- delete {InReset}
Add Comment
Please, Sign In to add comment