-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aafcd3
commit a75c6f8
Showing
20 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/custom/block/destroy/ores/lead/deepslate_lead_ore/destroy_deepslate_lead_ore.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...cenergy/functions/custom/block/destroy/ores/lead/lead_block/destroy_lead_block.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kill @e[type=item,nbt={Item:{id:"minecraft:deepslate_bricks",Count:1b}},sort=nearest,limit=1] | ||
kill @e[type=item,nbt={Item:{id:"minecraft:cracked_deepslate_bricks",Count:1b}},sort=nearest,limit=1] | ||
loot spawn ~ ~0.11 ~ loot lthc.advancenergy:i/ores/lead/block | ||
kill @s |
1 change: 1 addition & 0 deletions
1
...dvancenergy/functions/custom/block/destroy/ores/lead/lead_ore/destroy_lead_ore.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...functions/custom/block/destroy/ores/lead/raw_lead_block/destroy_raw_lead_block.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kill @e[type=item,nbt={Item:{id:"minecraft:deepslate_bricks",Count:1b}},sort=nearest,limit=1] | ||
kill @e[type=item,nbt={Item:{id:"minecraft:cracked_deepslate_bricks",Count:1b}},sort=nearest,limit=1] | ||
loot spawn ~ ~0.11 ~ loot lthc.advancenergy:i/ores/lead/raw_block | ||
kill @s |
1 change: 1 addition & 0 deletions
1
...ions/custom/block/destroy/ores/tin/deepslate_tin_ore/destroy_deepslate_tin_ore.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...gy/functions/custom/block/destroy/ores/tin/raw_tin_block/destroy_raw_tin_block.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kill @e[type=item,nbt={Item:{id:"minecraft:deepslate_tiles",Count:1b}},sort=nearest,limit=1] | ||
kill @e[type=item,nbt={Item:{id:"minecraft:cracked_deepslate_tiles",Count:1b}},sort=nearest,limit=1] | ||
loot spawn ~ ~0.11 ~ loot lthc.advancenergy:i/ores/tin/raw_block | ||
kill @s |
1 change: 1 addition & 0 deletions
1
...vancenergy/functions/custom/block/destroy/ores/tin/tin_block/destroy_tin_block.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kill @e[type=item,nbt={Item:{id:"minecraft:deepslate_tiles",Count:1b}},sort=nearest,limit=1] | ||
kill @e[type=item,nbt={Item:{id:"minecraft:cracked_deepslate_tiles",Count:1b}},sort=nearest,limit=1] | ||
loot spawn ~ ~0.11 ~ loot lthc.advancenergy:i/ores/tin/block | ||
kill @s |
1 change: 1 addition & 0 deletions
1
...c.advancenergy/functions/custom/block/destroy/ores/tin/tin_ore/destroy_tin_ore.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...thc.advancenergy/functions/gen/ores/multiple_builded_pattern/build_ore_pattern.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
function lthc.advancenergy:gen/utils/random_position | ||
|
||
scoreboard players set #max_attempts lthc.advancenergy.data 100 | ||
execute at @s run function lthc.advancenergy:gen/utils/find_adjacent_air/find_adjacent_air | ||
|
||
#Get Random Value | ||
summon area_effect_cloud ~ ~ ~ {Duration:0,Tags:["lthc.advancenergy.ropbgrvs"]} | ||
scoreboard players set #ropbgrvs lthc.advancenergy.data 0 | ||
execute store result score #ropbgrvs lthc.advancenergy.data run data get entity @e[tag=lthc.advancenergy.ropbgrvs,limit=1] UUID[3] | ||
scoreboard players operation #ropbgrvs lthc.advancenergy.data %= #16 lthc.advancenergy.data | ||
kill @e[tag=lthc.advancenergy.ropbgrvs] | ||
|
||
#Choose Pattern | ||
execute if score #ropbgrvs lthc.advancenergy.data matches 0..6 run function lthc.advancenergy:gen/ores/multiple_builded_pattern/patterns/p0 | ||
execute if score #ropbgrvs lthc.advancenergy.data matches 7..11 run function lthc.advancenergy:gen/ores/multiple_builded_pattern/patterns/p1 | ||
execute if score #ropbgrvs lthc.advancenergy.data matches 12 run function lthc.advancenergy:gen/ores/multiple_builded_pattern/patterns/p2 | ||
execute if score #ropbgrvs lthc.advancenergy.data matches 13 run function lthc.advancenergy:gen/ores/multiple_builded_pattern/patterns/p3 | ||
execute if score #ropbgrvs lthc.advancenergy.data matches 14..15 run function lthc.advancenergy:gen/ores/multiple_builded_pattern/patterns/p4 | ||
|
||
kill @s |
10 changes: 10 additions & 0 deletions
10
...data/lthc.advancenergy/functions/gen/ores/multiple_builded_pattern/patterns/p0.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#Placing Ore | ||
execute at @s if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ redstone_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_redstone_ore | ||
|
||
kill @s |
10 changes: 10 additions & 0 deletions
10
...data/lthc.advancenergy/functions/gen/ores/multiple_builded_pattern/patterns/p1.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#Placing Ore | ||
execute at @s if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/silver/for_silver_ore run function lthc.advancenergy:gen/ores/silver/silver_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ redstone_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_redstone_ore | ||
|
||
kill @s |
10 changes: 10 additions & 0 deletions
10
...data/lthc.advancenergy/functions/gen/ores/multiple_builded_pattern/patterns/p2.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#Placing Ore | ||
execute at @s if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/silver/for_silver_ore run function lthc.advancenergy:gen/ores/silver/silver_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ gold_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_gold_ore | ||
|
||
kill @s |
12 changes: 12 additions & 0 deletions
12
...data/lthc.advancenergy/functions/gen/ores/multiple_builded_pattern/patterns/p3.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#Placing Ore | ||
execute at @s if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/silver/for_silver_ore run function lthc.advancenergy:gen/ores/silver/silver_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run function lthc.advancenergy:custom/block/place/ash_block/main | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run function lthc.advancenergy:custom/block/place/ash_block/main | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ redstone_ore | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_redstone_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ gold_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_gold_ore | ||
|
||
kill @s |
12 changes: 12 additions & 0 deletions
12
...data/lthc.advancenergy/functions/gen/ores/multiple_builded_pattern/patterns/p4.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#Placing Ore | ||
execute at @s if block ~ ~ ~ #lthc.advancenergy:ore_gen/lead/for_lead_ore run function lthc.advancenergy:gen/ores/lead/lead_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/silver/for_silver_ore run function lthc.advancenergy:gen/ores/silver/silver_type | ||
execute at @s positioned ~0.0 ~0.8 ~0.8 if block ~ ~ ~ #lthc.advancenergy:ore_gen/tin/for_tin_ore run function lthc.advancenergy:gen/ores/tin/tin_type | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ dripstone_block | ||
execute at @s positioned ~0.8 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ dripstone_block | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ redstone_ore | ||
execute at @s positioned ~0.8 ~0.0 ~0.8 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_redstone_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:stone_ore_replaceables run setblock ~ ~ ~ gold_ore | ||
execute at @s positioned ~0.0 ~0.8 ~0.0 if block ~ ~ ~ #minecraft:deepslate_ore_replaceables run setblock ~ ~ ~ deepslate_gold_ore | ||
|
||
kill @s |
1 change: 1 addition & 0 deletions
1
Datapack/data/lthc.advancenergy/functions/uninstall/under/clear_storage.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data remove storage lthc.advancenergy:main registry | ||
data remove storage lthc.advancenergy:main refinery | ||
data remove storage lthc.advancenergy:main temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"birch_forest", | ||
"wooded_badlands", | ||
"dark_forest", | ||
"windswept_forest" | ||
"windswept_forest", | ||
"#is_hill" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters