summaryrefslogtreecommitdiff
path: root/technic/machines/register/freezer_recipes.lua
blob: 641b28a3fc105eaa70ef4b805ec79d62121e872e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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