aqupa 4 năm trước cách đây
mục cha
commit
4773e86349

+ 5 - 1
data/mini/functions/rgb/game/events/finish.mcfunction

@@ -1,4 +1,8 @@
 # as rule marker
 # with rgb_op
 
-execute as @a[tag=rgb_op] run function mini:main/player_finished
+execute as @a[tag=rgb_op] run function mini:main/player_finished
+
+scoreboard players reset @a[tag=rgb_op] rgb_R
+scoreboard players reset @a[tag=rgb_op] rgb_G
+scoreboard players reset @a[tag=rgb_op] rgb_B

+ 1 - 1
data/mini/functions/rgb/game/events/tp.mcfunction

@@ -2,6 +2,6 @@
 # with rgb_op
 
 execute store result score #rgb_tp rgb_sys run data get entity @s data.event[{type:'tp'}].value
-data modify entity @s data.tp set from entity @s data.event[{type:'tp'}].value
+data modify entity @s data.tp set from entity @s data.event[{type:'tp'}].direction
 
 execute if entity @s[nbt={data:{tp:'up'}}] as @a[tag=rgb_op] at @s run function mini:rgb/game/events/tp_up