Override some craft recipes in mypaths mod
This commit is contained in:
parent
8d66b9f158
commit
41aa25b4ff
@ -39,6 +39,7 @@ local modoverrides = {
|
||||
'helicopter',
|
||||
'invisibility',
|
||||
'motorbike',
|
||||
'mypaths',
|
||||
'simple_protection',
|
||||
}
|
||||
|
||||
|
41
mods/antum/overrides/crafting/mypaths.lua
Normal file
41
mods/antum/overrides/crafting/mypaths.lua
Normal 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,
|
||||
})
|
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user