수정
This commit is contained in:
@@ -3,6 +3,7 @@ data modify storage func:temp zero set value 0
|
||||
$data modify storage func:temp length set value $(length)
|
||||
|
||||
execute store result score result func.temp run function func:comp_num {n1:"zero",n2:"length"}
|
||||
# warn-off execute-group
|
||||
execute if score result func.temp matches 1 run tellraw @s {"text":"length는 1이상 이어야 합니다.","color":"red"}
|
||||
execute if score result func.temp matches 1 run return 0
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ execute if score length func.temp matches 0 run return 1
|
||||
execute store result score random func.temp run random value 0..2147483646
|
||||
scoreboard players operation random func.temp %= length func.temp
|
||||
|
||||
execute run function func:shuffle/f2 with storage func:temp {index:0}
|
||||
function func:shuffle/f2 with storage func:temp {index:0}
|
||||
|
||||
execute store result storage func:temp shuffle.index int 1 run scoreboard players get random func.temp
|
||||
function func:shuffle/f2 with storage func:temp shuffle
|
||||
|
||||
@@ -3,6 +3,7 @@ data modify storage func:temp zero set value 0
|
||||
$data modify storage func:temp length set value $(length)
|
||||
|
||||
execute store result score result func.temp run function func:comp_num {n1:"zero",n2:"length"}
|
||||
# warn-off execute-group
|
||||
execute if score result func.temp matches 1 run tellraw @s {"text":"length는 1이상 이어야 합니다.","color":"red"}
|
||||
execute if score result func.temp matches 1 run return 0
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ execute store result score result func.temp run function func:is_space with stor
|
||||
|
||||
$execute store result score result2 func.temp run function func:is_index {l1:"half",l2:"result",index:$(index)}
|
||||
|
||||
# warn-off execute-group
|
||||
execute if score result2 func.temp matches 0 if score result func.temp matches 0 run data modify storage func:temp text_list append value "■"
|
||||
execute if score result2 func.temp matches 0 if score result func.temp matches 1 run data modify storage func:temp text_list append from storage func:temp space.text
|
||||
execute if score result2 func.temp matches 1 run data modify storage func:temp text_list append from storage func:temp space.text
|
||||
|
||||
Reference in New Issue
Block a user