write_data_.mcfunction 590 B

12345678
  1. # as rule marker
  2. # with rgb_op
  3. execute store result score #temp_id rgb_sys run data get storage ltw:mini rgb.temp_data[0].id
  4. execute if score #temp_id rgb_sys = @a[tag=rgb_op,limit=1] player_id run data modify storage ltw:mini rgb.temp_data2 prepend from storage ltw:mini rgb.temp_data1
  5. execute unless score #temp_id rgb_sys = @a[tag=rgb_op,limit=1] player_id run data modify storage ltw:mini rgb.temp_data2 prepend from storage ltw:mini rgb.temp_data[0]
  6. data remove storage ltw:mini rgb.temp_data[0]
  7. execute if data storage ltw:mini rgb.temp_data[0] run function mini:rgb/game/write_data_