Override some craft recipes in mypaths mod

This commit is contained in:
Jordan Irwin 2021-05-13 08:19:34 -07:00
parent 8d66b9f158
commit 41aa25b4ff
3 changed files with 47 additions and 2 deletions

View File

@ -39,6 +39,7 @@ local modoverrides = {
'helicopter',
'invisibility',
'motorbike',
'mypaths',
'simple_protection',
}

View File

@ -0,0 +1,41 @@
-- one of the default stair recipes overrides the slope
-- FIXME: appears to be multiples registered. e.g. "mypaths:grass_slope" & "mypaths:slope_grass"
local recipe_slope = {
{"mypaths:grass", "", ""},
{"mypaths:grass", "mypaths:grass", ""},
{"mypaths:grass", "mypaths:grass", "mypaths:grass"},
}
local recipe_slope_long = {
{"mypaths:grass_slope", "", ""},
{"mypaths:grass_slope", "mypaths:grass_slope", ""},
{"mypaths:grass_slope", "mypaths:grass_slope", "mypaths:grass_slope"},
}
for _, out in ipairs({"mypaths:grass_slope", "mypaths:grass_slope_long",
"mypaths:slope_grass", "mypaths:slope_grass_long"}) do
antum.clearCraftOutput(out)
end
antum.registerCraft({
output = "mypaths:grass",
recipe = {
{"default:dirt", "default:dirt", "default:dirt"},
{"default:dirt", "default:dirt", "default:dirt"},
{"default:dirt", "default:dirt", "default:dirt"},
},
})
antum.registerCraft({
output = "mypaths:grass_slope 6",
recipe = recipe_slope,
})
-- FIXME: hack (couldn't use original recipe)
antum.registerCraft({
output = "mypaths:grass_slope_long 3",
recipe = recipe_slope_long,
})

View File

@ -2,6 +2,10 @@ antum
antum_items
default
override
craftguide?
craft_guide?
animalmaterials?
atm?
bags?
@ -22,6 +26,7 @@ homedecor?
invisibility?
moreblocks?
motorbike?
mypaths?
simple_protection?
stairsplus?
technic?
@ -30,8 +35,6 @@ unifieddyes?
vessels?
walking_light?
wool?
craftguide?
craft_guide?
biofuel?
creatures?