Skip to content

Commit

Permalink
feat(recipes): add smelting/blasting of raw copper/iron/gold blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco227 committed Jul 3, 2024
1 parent e75c91e commit 9dce187
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 2 deletions.
1 change: 0 additions & 1 deletion Data_Pack/data/roguecraft/functions/init_player.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ gamemode adventure @s
recipe give @s roguecraft:skillpoint_1
recipe give @s roguecraft:skillpoint_2
recipe give @s roguecraft:skillpoint_3
recipe give @s minecraft:blast_furnace

function roguecraft:infinite_garden/hub/ender_chest/reset
function roguecraft:infinite_garden/hub/check_inventory
11 changes: 10 additions & 1 deletion Data_Pack/data/roguecraft/functions/tick/main.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ execute if data storage roguecraft:master {run_active:0} run function roguecraft
execute if data storage roguecraft:master {run_active:1} if entity @a[tag=garden] run function roguecraft:tick/hub_and_infinite_garden
execute if data storage roguecraft:master {run_active:1} run function roguecraft:tick/true_run
execute if entity @a[gamemode=!adventure] run function roguecraft:tick/run
execute if entity @a[tag=victory] run function roguecraft:tick/final
execute if entity @a[tag=victory] run function roguecraft:tick/final

#custom recipes
execute as @a[nbt={Inventory:[{id:"minecraft:raw_copper_block"}]}] run recipe give @s roguecraft:copper_block_from_blasting_raw_copper_block
execute as @a[nbt={Inventory:[{id:"minecraft:raw_copper_block"}]}] run recipe give @s roguecraft:copper_block_from_smelting_raw_copper_block
execute as @a[nbt={Inventory:[{id:"minecraft:raw_gold_block"}]}] run recipe give @s roguecraft:gold_block_from_blasting_raw_gold_block
execute as @a[nbt={Inventory:[{id:"minecraft:raw_gold_block"}]}] run recipe give @s roguecraft:gold_block_from_smelting_raw_gold_block
execute as @a[nbt={Inventory:[{id:"minecraft:raw_iron_block"}]}] run recipe give @s roguecraft:iron_block_from_blasting_raw_iron_block
execute as @a[nbt={Inventory:[{id:"minecraft:raw_iron_block"}]}] run recipe give @s roguecraft:iron_block_from_smelting_raw_iron_block
execute as @a[nbt={Inventory:[{id:"minecraft:furnace"}]}] run recipe give @s minecraft:blast_furnace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:blasting",
"cookingtime": 225,
"experience": 8.1,
"group": "copper_block",
"ingredient": {
"item": "minecraft:raw_copper_block"
},
"result": "minecraft:copper_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:smelting",
"cookingtime": 900,
"experience": 8.1,
"group": "copper_block",
"ingredient": {
"item": "minecraft:raw_copper_block"
},
"result": "minecraft:copper_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:blasting",
"cookingtime": 225,
"experience": 9.0,
"group": "gold_block",
"ingredient": {
"item": "minecraft:raw_gold_block"
},
"result": "minecraft:gold_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:smelting",
"cookingtime": 900,
"experience": 9.0,
"group": "gold_block",
"ingredient": {
"item": "minecraft:raw_gold_block"
},
"result": "minecraft:gold_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:blasting",
"cookingtime": 225,
"experience": 8.1,
"group": "iron_block",
"ingredient": {
"item": "minecraft:raw_iron_block"
},
"result": "minecraft:iron_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "minecraft:smelting",
"cookingtime": 900,
"experience": 8.1,
"group": "iron_block",
"ingredient": {
"item": "minecraft:raw_iron_block"
},
"result": "minecraft:iron_block"
}

0 comments on commit 9dce187

Please sign in to comment.