Skip to content

Commit

Permalink
Add actual support for 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
oOBoomberOo committed May 7, 2020
1 parent 3351a49 commit 38bdae5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 8 deletions.
5 changes: 4 additions & 1 deletion data/boomber/functions/veinminer/ore/ore_table.mcfunction
Expand Up @@ -20,4 +20,7 @@ execute if entity @s[nbt={Item: {id: "minecraft:emerald_ore"}}] run scoreboard p
execute if entity @s[nbt={Item: {id: "minecraft:quartz"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 8
execute if entity @s[nbt={Item: {id: "minecraft:nether_quartz_ore"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 8

execute if entity @s[nbt={Item: {id: "minecraft:ancient_debris"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 9
execute if entity @s[nbt={Item: {id: "minecraft:ancient_debris"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 9

execute if entity @s[nbt={Item: {id: "minecraft:gold_nugget"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 10
execute if entity @s[nbt={Item: {id: "minecraft:nether_gold_ore"}}] run scoreboard players set #bb.vm.mining_state bb.vm.success 10
Expand Up @@ -7,6 +7,7 @@ execute if score #bb.vm.mining_state bb.vm.success matches 6 run function boombe
execute if score #bb.vm.mining_state bb.vm.success matches 7 run function boomber:veinminer/veinmine/spread/emerald
execute if score #bb.vm.mining_state bb.vm.success matches 8 run function boomber:veinminer/veinmine/spread/quartz
execute if score #bb.vm.mining_state bb.vm.success matches 9 run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.mining_state bb.vm.success matches 10 run function boomber:veinminer/veinmine/spread/nether_gold

execute store result score #bb.vm.count bb.vm.var if entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner]
execute as @e[type=experience_orb, limit=1, tag=!global.ignore, sort=nearest, nbt={Age: 0s}] store result score #bb.vm.xp bb.vm.var run data get entity @s Value
Expand Down
Expand Up @@ -3,9 +3,9 @@ scoreboard players set #bb.vm.tool_state bb.vm.success 1
function boomber:veinminer/miner/born
execute if block ~ ~ ~ minecraft:ancient_debris run function boomber:veinminer/tool/check

execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~1 ~ ~ if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~-1 ~ ~ if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~1 if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~-1 if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~1 ~ if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~-1 ~ if block ~ ~ ~ minecraft:nether_quartz_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~1 ~ ~ if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~-1 ~ ~ if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~1 if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~-1 if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~1 ~ if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~-1 ~ if block ~ ~ ~ minecraft:ancient_debris unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/ancient_debris
@@ -0,0 +1,11 @@
scoreboard players set #bb.vm.tool_state bb.vm.success 1

function boomber:veinminer/miner/born
execute if block ~ ~ ~ minecraft:nether_gold_ore run function boomber:veinminer/tool/check

execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~1 ~ ~ if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~-1 ~ ~ if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~1 if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~ ~-1 if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~1 ~ if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
execute if score #bb.vm.tool_state bb.vm.success matches 1.. positioned ~ ~-1 ~ if block ~ ~ ~ minecraft:nether_gold_ore unless entity @e[type=area_effect_cloud, tag=boomber.veinminer.miner, distance=..0.3] run function boomber:veinminer/veinmine/spread/nether_gold
4 changes: 3 additions & 1 deletion data/boomber/tags/blocks/veinminer/ore.json
Expand Up @@ -7,6 +7,8 @@
"minecraft:redstone_ore",
"minecraft:diamond_ore",
"minecraft:emerald_ore",
"minecraft:nether_quartz_ore"
"minecraft:nether_quartz_ore",
"minecraft:nether_gold_ore",
"minecraft:ancient_debris"
]
}

0 comments on commit 38bdae5

Please sign in to comment.