aboutsummaryrefslogblamecommitdiff
path: root/data/bktsb/functions/structgen/helpers/dungeon/loot.mcfunction
blob: a7f0f2e6c3441f6622541678ac8ab0c664ad6acc (plain) (tree)





















                                                                                                                       
scoreboard players set #a lim 4
function bktsb:rng

execute if score #a randr matches 0 run setblock ~-3 ~-1 ~-2 chest[facing=east]
execute if score #a randr matches 0 run data merge block ~-3 ~-1 ~-2 {LootTable:"minecraft:chests/simple_dungeon"}
execute if score #a randr matches 0 run setblock ~-2 ~-1 ~-3 chest[facing=south]
execute if score #a randr matches 0 run data merge block ~-2 ~-1 ~-3 {LootTable:"minecraft:chests/abandoned_mineshaft"}

execute if score #a randr matches 1 run setblock ~-3 ~-1 ~2 chest[facing=east]
execute if score #a randr matches 1 run data merge block ~-3 ~-1 ~2 {LootTable:"minecraft:chests/simple_dungeon"}
execute if score #a randr matches 1 run setblock ~-2 ~-1 ~3 chest[facing=north]
execute if score #a randr matches 1 run data merge block ~-2 ~-1 ~3 {LootTable:"minecraft:chests/abandoned_mineshaft"}

execute if score #a randr matches 2 run setblock ~3 ~-1 ~-2 chest[facing=west]
execute if score #a randr matches 2 run data merge block ~3 ~-1 ~-2 {LootTable:"minecraft:chests/simple_dungeon"}
execute if score #a randr matches 2 run setblock ~2 ~-1 ~-3 chest[facing=south]
execute if score #a randr matches 2 run data merge block ~2 ~-1 ~-3 {LootTable:"minecraft:chests/abandoned_mineshaft"}

execute if score #a randr matches 3 run setblock ~3 ~-1 ~2 chest[facing=west]
execute if score #a randr matches 3 run data merge block ~3 ~-1 ~2 {LootTable:"minecraft:chests/simple_dungeon"}
execute if score #a randr matches 3 run setblock ~2 ~-1 ~3 chest[facing=north]
execute if score #a randr matches 3 run data merge block ~2 ~-1 ~3 {LootTable:"minecraft:chests/abandoned_mineshaft"}