FaxirHQ
Yeni Doğmuş
- En iyi cevaplar
- 0
Merhaba bende bir skript var o skriptin yararı mapin resetlenmesi.
Fakat bu skript sadece /reset komudunu yazınca çalışıyor otomatik çalışması için execute console command denedim hata verdi ne yapıcağımı bilmiyorum yardımcı olursanız sevinirim.
Mapin 1 dakikada bir resetlenmesini istiyorum.
on break:
if {Nomodif.%player%} is set:
stop
if {InReset} is set:
send "&8[&3LionMC&8] &cMap 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 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] &aYenilenen Sayisi &c%{Count}%"
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] &aYenilenen Sayi &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] &aCoder By LionMC"
stop
else:
wait 5 ticks
send "&8[&3LionMC&8] &bCoded By LionMC&8."
stop
else:
clear {NoModif.%player%}
Fakat bu skript sadece /reset komudunu yazınca çalışıyor otomatik çalışması için execute console command denedim hata verdi ne yapıcağımı bilmiyorum yardımcı olursanız sevinirim.
Mapin 1 dakikada bir resetlenmesini istiyorum.
on break:
if {Nomodif.%player%} is set:
stop
if {InReset} is set:
send "&8[&3LionMC&8] &cMap 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 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] &aYenilenen Sayisi &c%{Count}%"
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] &aYenilenen Sayi &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] &aCoder By LionMC"
stop
else:
wait 5 ticks
send "&8[&3LionMC&8] &bCoded By LionMC&8."
stop
else:
clear {NoModif.%player%}