mirror of
https://github.com/minetest-mods/nether.git
synced 2025-07-01 16:00:35 +02:00
Add files via upload
adding compressor recipe for brick brick_deep brick_compressed and nether_lump
This commit is contained in:
22
nether-compressor-recipe.lua
Normal file
22
nether-compressor-recipe.lua
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
local S = minetest.get_translator("nether")
|
||||||
|
|
||||||
|
technic.register_recipe_type("compressing", { description = S("Compressing") })
|
||||||
|
|
||||||
|
function technic.register_compressor_recipe(data)
|
||||||
|
data.time = data.time or 4
|
||||||
|
technic.register_recipe("compressing", data)
|
||||||
|
end
|
||||||
|
|
||||||
|
local recipes = {
|
||||||
|
{"nether:rack", "nether:brick",},
|
||||||
|
{"nether:rack_deep", "nether:brick_deep"},
|
||||||
|
{"nether:brick 9", "nether:brick_compressed", 12},
|
||||||
|
{"nether:brick_compressed 9", "nether:nether_lump", 12}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, data in pairs(recipes) do
|
||||||
|
technic.register_compressor_recipe({input = {data[1]}, output = data[2], time = data[3]})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user