Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- if {Nomodif.%player%} is set:
- stop
- if {InReset} is set:
- send "&cImpossible : Map en reset !"
- 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 {Nomodif.%player%} is set:
- stop
- if {InReset} is set:
- send "&cImpossible : Map en reset !"
- 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 {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 {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:
- 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] &cReset en cours !"
- stop
- set {InReset} to true
- send "&5[Reset] &aIl y a &c%{Count}% blocks &aà modifier !"
- 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 "Reset de map : %{_count}% / %{Count}%" to console
- add 1 to {_count}
- wait 0.5 tick
- set {Count} to 0
- clear {InReset}
- send "&5[Reset] &aReset fini &c(%{_count}%)"
- command /nomodif:
- permission: nomodif.reset
- trigger:
- if {Nomodif.%player%} is not set:
- set {Nomodif.%player%} to true
- send "&5[Reset] &aTu as activé le mode NoModif !"
- stop
- else:
- clear {NoModif.%player%}
- send "&5[Reset] &aTu as désactivé le mode NoModif !"
- stop
- on join:
- if player has permission "nomodif.reset":
- if {Nomodif.%player%} is set:
- wait 5 ticks
- send "&5[Reset] &aTu es en mode NoModif"
- stop
- else:
- wait 5 ticks
- send "&5[Reset] &aTu n'es pas en mode NoModif"
- stop
- else:
- clear {NoModif.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement