on place:
add event-location to {placedBlocks::*}
every 10 minute:
set {_x} to amount of {placedBlocks::*}
set {_y} to 0
while {_y} isn't {_x}:
add 1 to {_y}
set block at {placedBlocks::%{_y}%} to air
broadcast "Koyulan tüm bloklar silindi!"
delete {placedBlocks::*}
_profes_
calisti cok tesekkurlerDeneme fırsatım olmadı ancak bu kodu bir deneyin;
Kod:on place: add event-location to {placedBlocks::*} every 10 minute: set {_x} to amount of {placedBlocks::*} set {_y} to 0 while {_y} isn't {_x}: add 1 to {_y} set block at {placedBlocks::%{_y}%} to air broadcast "Koyulan tüm bloklar silindi!" delete {placedBlocks::*}
_profes_
sey sorcam mesela /bloktoggle komudunu yazinca bloklari silmeyi durduran tekrar yazinca acan birsey ekleyebilirmisin skripte ama sadece op ler yapabilecekDeneme fırsatım olmadı ancak bu kodu bir deneyin;
Kod:on place: add event-location to {placedBlocks::*} every 10 minute: set {_x} to amount of {placedBlocks::*} set {_y} to 0 while {_y} isn't {_x}: add 1 to {_y} set block at {placedBlocks::%{_y}%} to air broadcast "Koyulan tüm bloklar silindi!" delete {placedBlocks::*}
sey sorcam mesela /bloktoggle komudunu yazinca bloklari silmeyi durduran tekrar yazinca acan birsey ekleyebilirmisin skripte
command /bloktoggle:
permission: op
trigger:
if {blockToggle} isn't set:
set {blockToggle} to true
message "Açıldı"
stop
delete {blockToggle}
message "Kapatıldı"
on place:
{blockToggle} is set
add event-location to {placedBlocks::*}
every 10 minute:
{blockToggle} is set
set {_x} to amount of {placedBlocks::*}
set {_y} to 0
while {_y} isn't {_x}:
add 1 to {_y}
set block at {placedBlocks::%{_y}%} to air
broadcast "Koyulan tüm bloklar silindi!"
delete {placedBlocks::*}
_profes_
tekrardan tesekkurler elinize saglikKod:command /bloktoggle: permission: op trigger: if {blockToggle} isn't set: set {blockToggle} to true message "Açıldı" stop delete {blockToggle} message "Kapatıldı" on place: {blockToggle} is set add event-location to {placedBlocks::*} every 10 minute: {blockToggle} is set set {_x} to amount of {placedBlocks::*} set {_y} to 0 while {_y} isn't {_x}: add 1 to {_y} set block at {placedBlocks::%{_y}%} to air broadcast "Koyulan tüm bloklar silindi!" delete {placedBlocks::*}
Rica ederim.tekrardan tesekkurler elinize saglik
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!