random_bounds.mcfunction 724 B

12345678
  1. #as player
  2. setblock 0 0 1 shulker_box replace
  3. data modify storage item:bonus random_bounds set from storage item:bouns item.tag.bonus_random_bounds[0]
  4. data remove storage item:bouns item.tag.bonus_random_bounds[0]
  5. execute store result score $item.random.count mem run data get storage item:bonus random_bounds.count
  6. execute if score $item.random.count mem matches 1.. if data storage item:bonus random_bounds{"type":"normal"} run function item:bonus_item/random_normal
  7. execute if score $item.random.count mem matches 1.. if data storage item:bonus random_bounds{"type":"score"} run function item:bonus_item/random_score
  8. execute if data storage item:bouns item.tag.bonus_random_bounds[0] run function item:bonus/random_bounds