Skip to content

Commit

Permalink
a lot of things
Browse files Browse the repository at this point in the history
  • Loading branch information
LTHCTheMaster committed Jul 15, 2022
1 parent 9cf1f53 commit 5a1ece4
Show file tree
Hide file tree
Showing 42 changed files with 143 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute align xyz positioned ~0.5 ~ ~0.5 unless entity @e[type=marker,distance=..0.9,tag=furnace_nbt_recipes.furnace,limit=1] run summon marker ~ ~ ~ {Tags:["furnace_nbt_recipes.furnace"]}
execute align xyz positioned ~.5 ~ ~.5 unless entity @e[type=marker,dx=-1,dy=-1,dz=-1,tag=furnace_nbt_recipes.furnace] run summon marker ~ ~ ~ {Tags:["furnace_nbt_recipes.furnace"]}
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
##Called by function tag #furnace_nbt_recipes:v1.0/smelting_recipes
##You are allowed to call a loot table with more than 1 output count.
##(x1 cobblestone -> x2 stone for instance)
##Here are some examples with lthc.advancenergy recipes
##Here are some examples with SimplEnergy recipes

#Simplunium Ore
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Deepslate Simplunium Ore
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"deepslate_simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"deepslate_simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Raw Simplunium
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"raw_simplunium"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"raw_simplunium"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Simplunium Armor & Tools
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"armor":1b}} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"tool":1b}} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"armor":1b}} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"tool":1b}} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_nugget

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@

execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:barrel"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:command_block"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:structure_block"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:leather_helmet"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:leather_chestplate"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:leather_leggings"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:leather_boots"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:diamond_sword"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:diamond_pickaxe"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:diamond_axe"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:diamond_hoe"}
execute if score #reset furnace_nbt_recipes.data matches 0 store success score #reset furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input{id:"minecraft:diamond_shovel"}

Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
#Simplunium Armor & Tools
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"armor":1b}} run function furnace_nbt_recipes:v1.0/calls/xp/2.0
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"tool":1b}} run function furnace_nbt_recipes:v1.0/calls/xp/2.0


Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
##Called by function tag #furnace_nbt_recipes:v1.0/smelting_recipes
##You are allowed to call a loot table with more than 1 output count.
##(x1 cobblestone -> x2 stone for instance)
##Here are some examples with lthc.advancenergy recipes
##Here are some examples with SimplEnergy recipes

#Simplunium Ore
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Deepslate Simplunium Ore
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"deepslate_simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"deepslate_simplunium_ore"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Raw Simplunium
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"raw_simplunium"} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_ingot
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{id:"raw_simplunium"} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_ingot

#Simplunium Armor & Tools
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"armor":1b}} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"tool":1b}} run loot replace block ~ ~ ~ container.3 loot lthc.advancenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"armor":1b}} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_nugget
execute if score #found furnace_nbt_recipes.data matches 0 store result score #found furnace_nbt_recipes.data if data storage furnace_nbt_recipes:main input.tag.ctc{traits:{"metal/simplunium":1b,"tool":1b}} run loot replace block ~ ~ ~ container.3 loot simplenergy:i/simplunium_nugget

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

#define storage nbt_smelting:io
data modify storage nbt_smelting:io item set from storage furnace_nbt_recipes:main input

execute if score #type furnace_nbt_recipes.data matches 0 run function #nbt_smelting:v1/furnace
execute if score #type furnace_nbt_recipes.data matches 1 run function #nbt_smelting:v1/blast_furnace
execute if score #type furnace_nbt_recipes.data matches 2 run function #nbt_smelting:v1/smoker

item replace block ~ ~ ~ container.3 from block ~ ~ ~ container.2
execute if data block ~ ~ ~ Items[{Slot:2b}] run scoreboard players set #found furnace_nbt_recipes.data 1
data remove storage nbt_smelting:io item
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
execute if score #type furnace_nbt_recipes.data matches 0 run function #furnace_nbt_recipes:v1/smelting_recipes
execute if score #type furnace_nbt_recipes.data matches 1 run function #furnace_nbt_recipes:v1/blasting_recipes
execute if score #type furnace_nbt_recipes.data matches 2 run function #furnace_nbt_recipes:v1/smoking_recipes

execute if score #found furnace_nbt_recipes.data matches 0 if score #nbt_smelting.major load.status matches 1.. run function furnace_nbt_recipes:v1.0/nbt_smelting_compatibility/call_recipes
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
execute if score #reset furnace_nbt_recipes.data matches 1 run scoreboard players set #found furnace_nbt_recipes.data 0
execute if score #reset furnace_nbt_recipes.data matches 1 run function #furnace_nbt_recipes:v1/recipes_used
execute if score #reset furnace_nbt_recipes.data matches 1 if score #found furnace_nbt_recipes matches 0 run function furnace_nbt_recipes:v1.0/calls/xp/1.0

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

data modify storage furnace_nbt_recipes:main furnace set from block ~ ~ ~

#Define what type of furnace is being used
scoreboard players set #type furnace_nbt_recipes.data 0
execute store result score #type furnace_nbt_recipes.data if block ~ ~ ~ blast_furnace
Expand All @@ -23,4 +25,5 @@
#Otherwise, continue
execute if score #reset furnace_nbt_recipes.data matches 0 if score #found furnace_nbt_recipes.data matches 1 run function furnace_nbt_recipes:v1.0/technical/cook
execute if score #reset furnace_nbt_recipes.data matches 1 run data modify block ~ ~ ~ CookTime set value 0s
execute if score #reset furnace_nbt_recipes.data matches 1 if score #nbt_smelting.major load.status matches 1.. align xyz run scoreboard players set @e[tag=nbt_smelting.furnace.active,dx=-1,dy=-1,dz=-1] nbt_smelting.data 0

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

execute unless block ~ ~ ~ #furnace_nbt_recipes:furnaces run kill @s
data modify storage furnace_nbt_recipes:main furnace set from block ~ ~ ~
execute if data storage furnace_nbt_recipes:main furnace.Items[{Slot:0b}] run function furnace_nbt_recipes:v1.0/technical/main
scoreboard players set #destroy furnace_nbt_recipes.data 0
execute store result score #destroy furnace_nbt_recipes.data unless block ~ ~ ~ #furnace_nbt_recipes:furnaces run kill @s
execute if score #destroy furnace_nbt_recipes.data matches 0 unless data block ~ ~ ~ {CookTime:0s} run function furnace_nbt_recipes:v1.0/technical/main
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
schedule function furnace_nbt_recipes:v1.0/tick 1t replace
execute as @e[type=marker,tag=furnace_nbt_recipes.furnace] at @s run function furnace_nbt_recipes:v1.0/technical/tick

#Ram clear
#Storage clear
data remove storage furnace_nbt_recipes:main furnace
data remove storage furnace_nbt_recipes:main input
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "minecraft:blasting",
"ingredient": {
"item": "minecraft:structure_block"
},
"result": "minecraft:structure_block",
"experience": 1.0,
"cookingtime": 100
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "minecraft:smelting",
"ingredient": {
"item": "minecraft:structure_block"
},
"result": "minecraft:structure_block",
"experience": 1.0,
"cookingtime": 200
}
Loading

0 comments on commit 5a1ece4

Please sign in to comment.