Skip to content

Commit

Permalink
Add compressor recipes for nether racks (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel1379 authored Jul 7, 2024
1 parent a9079c4 commit 6731db1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions technic/machines/register/compressor_recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ local dependent_crafts_to_clear = {
nether = {
"nether:brick",
"nether:brick_compressed",
"nether:rack",
"nether:rack_deep",
},
}

Expand All @@ -45,17 +47,16 @@ end

-- Clear recipes
for _, craft_name in ipairs(crafts_to_clear) do
local is_regular = string.sub(craft_name, 1, 7) ~= "nether:"
-- Regular bricks are 2x2 shaped, nether bricks are 3x3 shaped (irregular)
local is_regular = string.sub(craft_name, 1, 12) ~= "nether:brick"
local shaped_recipe

if is_regular then
-- Regular compression recipes use 2x2 shape.
shaped_recipe = {
{craft_name, craft_name},
{craft_name, craft_name},
}
else
-- Nether's compression recipes use 3x3 shape.
shaped_recipe = {
{craft_name, craft_name, craft_name},
{craft_name, craft_name, craft_name},
Expand Down Expand Up @@ -99,6 +100,8 @@ local dependent_recipes = {
nether = {
{"nether:brick 9", "nether:brick_compressed"},
{"nether:brick_compressed 9", "nether:nether_lump"},
{"nether:rack", "nether:brick",},
{"nether:rack_deep", "nether:brick_deep"},
},
}

Expand Down

0 comments on commit 6731db1

Please sign in to comment.