Override motorcycle crafting recipes

master
Jordan Irwin 2021-05-07 11:18:25 -07:00
parent 16a5d8f813
commit 99a4c2ed96
3 changed files with 41 additions and 0 deletions

View File

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

View File

@ -0,0 +1,37 @@
if core.registered_items["motorbike:wheel"] and core.registered_items["technic:rubber"] then
-- use rubber instead of obsidian shard
antum.clearCraftOutput("motorbike:wheel")
antum.registerCraft({
output = "motorbike:wheel",
recipe = {
{"", "technic:rubber", ""},
{"technic:rubber", "default:steel_ingot", "technic:rubber"},
{"", "technic:rubber", ""},
},
})
if core.registered_items["basic_materials:motor"] and core.registered_items["basic_materials:steel_bar"] then
local bike_colors = {
"black", "blue", "brown", "cyan", "dark_green", "dark_grey", "green",
"grey", "magenta", "orange", "pink", "red", "violet", "white", "yellow",
}
for _, color in ipairs(bike_colors) do
if not core.registered_items["motorbike:" .. color] then
antum.log("warning", "Motorbike not registered: motorbike:" .. color)
end
-- use steel bar & motor instead of stick & mese crystal
antum.clearCraftOutput("motorbike:" .. color)
antum.registerCraft({
output = "motorbike:" .. color,
recipe = {
{"", "", "basic_materials:steel_bar"},
{"default:steel_ingot", "basic_materials:motor", "default:steel_ingot"},
{"motorbike:wheel", "wool:" .. color, "motorbike:wheel"},
},
})
end
end
end

View File

@ -5,6 +5,7 @@ override
animalmaterials? animalmaterials?
atm? atm?
bags? bags?
basic_materials?
carts? carts?
castle_weapons? castle_weapons?
currency? currency?
@ -20,8 +21,10 @@ home_workshop_misc?
homedecor? homedecor?
invisibility? invisibility?
moreblocks? moreblocks?
motorbike?
simple_protection? simple_protection?
stairsplus? stairsplus?
technic?
throwing? throwing?
unifieddyes? unifieddyes?
vessels? vessels?