command /durdur <int>:
permission:op
trigger:
arg 1 is 1
{1} isn't set:
set {1} to 1
send "sandık sistemi açıldı"
else:
delete {1}
send "sandık sistemi kapatıldı"
every 5 second:
loop players:
{1} is set
chance of 50%:
set {_a} to a random number between {@a} and {@b}
set {_3} to block {_a} east of loop-player
{_3} is air
set block at {_3} to chest
stop
chance of 50%:
set {_a} to a random number between {@a} and {@b}
set {_3} to block {_a} west of loop-player
{_3} is air
set block at {_3} to chest
stop
chance of 50%:
set {_a} to a random number between {@a} and {@b}
set {_3} to block {_a} north of loop-player
{_3} is air
set block at {_3} to chest
stop
#-----#
set {_a} to a random number between {@a} and {@b}
set {_4} to block {_a} south of loop-player
{_4} is air
set block at {_4} to chest
on rightclick on chest:
cancel event
wait 1 tick
open chest with 1 row named "<red>&lPara Bankası:" to player
wait 1 tick
set event-block to air
chance of 50%:
format slot 0 of player with torch named "Eşya 1" with lore "&a&lSword Art Online" to close then run "s 1 %player%"
stop
chance of 50%:
format slot 0 of player with torch named "Eşya 1" with lore "&a&lSword Art Online" to close then run "s 2 %player%"
stop
chance of 50%:
format slot 0 of player with torch named "Eşya 1" with lore "&a&lSword Art Online" to close then run "s 3 %player%"
stop
command /s <int> <player>:
executable by:console
trigger:
arg 1 is 1:
send "%arg 2% 1. item" to players
give 1 stone to arg 2
arg 1 is 2:
send "%arg 2% 2. item" to players
give 1 stone to arg 2
arg 1 is 3:
send "%arg 2% 3. item" to players
give 1 stone to arg 2