diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-12-17 02:20:30 -0500 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-12-17 02:20:30 -0500 |
commit | ec25fd83415d0ecb49f41295af3dc30f14850b2f (patch) | |
tree | 59fe699656e75a52e6665b385907b86cc0b89c16 /technic/machines/register | |
parent | 856b86858ebfa4af2c352b022188f82dcff7ed92 (diff) | |
download | dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.gz dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.bz2 dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.xz dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.zip |
update biome_lib, digilines, hotbar, mesecons, pipeworks,
ropes, technic, unified inventory, unified dyes, vines, and worldedit
Diffstat (limited to 'technic/machines/register')
-rw-r--r-- | technic/machines/register/freezer.lua | 9 | ||||
-rw-r--r-- | technic/machines/register/freezer_recipes.lua | 21 | ||||
-rw-r--r-- | technic/machines/register/grinder_recipes.lua | 2 | ||||
-rw-r--r-- | technic/machines/register/init.lua | 2 |
4 files changed, 34 insertions, 0 deletions
diff --git a/technic/machines/register/freezer.lua b/technic/machines/register/freezer.lua new file mode 100644 index 0000000..b4da6d9 --- /dev/null +++ b/technic/machines/register/freezer.lua @@ -0,0 +1,9 @@ + +local S = technic.getter + +function technic.register_freezer(data) + data.typename = "freezing" + data.machine_name = "freezer" + data.machine_desc = S("%s Freezer") + technic.register_base_machine(data) +end diff --git a/technic/machines/register/freezer_recipes.lua b/technic/machines/register/freezer_recipes.lua new file mode 100644 index 0000000..641b28a --- /dev/null +++ b/technic/machines/register/freezer_recipes.lua @@ -0,0 +1,21 @@ + +local S = technic.getter + +technic.register_recipe_type("freezing", { description = S("Freezing") }) + +function technic.register_freezer_recipe(data) + data.time = data.time or 5 + technic.register_recipe("freezing", data) +end + +local recipes = { + {"bucket:bucket_water", { "default:ice", "bucket:bucket_empty" } }, + {"bucket:bucket_river_water", { "default:ice", "bucket:bucket_empty" } }, + {"default:dirt", "default:dirt_with_snow" }, + {"bucket:bucket_lava", { "default:obsidian", "bucket:bucket_empty" } } +} + +for _, data in pairs(recipes) do + technic.register_freezer_recipe({input = {data[1]}, output = data[2]}) +end + diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index da90aad..ab70724 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -30,6 +30,8 @@ local recipes = { {"default:sandstone", "default:sand 2"}, -- reverse recipe can be found in the compressor {"default:desert_sandstone", "default:desert_sand 2"}, -- reverse recipe can be found in the compressor {"default:silver_sandstone", "default:silver_sand 2"}, -- reverse recipe can be found in the compressor + + {"default:ice", "default:snowblock"}, } -- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe) diff --git a/technic/machines/register/init.lua b/technic/machines/register/init.lua index 1667d75..29ec2ea 100644 --- a/technic/machines/register/init.lua +++ b/technic/machines/register/init.lua @@ -20,6 +20,7 @@ dofile(path.."/grinder_recipes.lua") dofile(path.."/extractor_recipes.lua") dofile(path.."/compressor_recipes.lua") dofile(path.."/centrifuge_recipes.lua") +dofile(path.."/freezer_recipes.lua") -- Multi-Machine Recipes dofile(path.."/grindings.lua") @@ -31,3 +32,4 @@ dofile(path.."/grinder.lua") dofile(path.."/extractor.lua") dofile(path.."/compressor.lua") dofile(path.."/centrifuge.lua") +dofile(path.."/freezer.lua") |