-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Treer <treer.git@gmail.com>
- Loading branch information
Showing
5 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name = nether | ||
description = Adds a deep underground realm with different mapgen that you can reach with obsidian portals. | ||
depends = stairs, default | ||
optional_depends = moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls | ||
optional_depends = toolranks, technic, moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
local S = minetest.get_translator("nether") | ||
|
||
technic.register_recipe_type("compressing", { description = S("Compressing") }) | ||
|
||
function 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} | ||
|
||
} | ||
-- clear craft recipe | ||
-- But allow brick blocks to be crafted like the other bricks from Minetest Game | ||
|
||
minetest.clear_craft({ | ||
recipe = { | ||
{"nether:brick","nether:brick","nether:brick"}, | ||
{"nether:brick","nether:brick","nether:brick"}, | ||
{"nether:brick","nether:brick","nether:brick"}, | ||
} | ||
}) | ||
|
||
minetest.clear_craft({ | ||
recipe = { | ||
{"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, | ||
{"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, | ||
{"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, | ||
} | ||
}) | ||
|
||
for _, data in pairs(recipes) do | ||
register_compressor_recipe({input = {data[1]}, output = data[2], time = data[3]}) | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters