mirror of
https://github.com/minetest-mods/nether.git
synced 2025-06-28 22:46:18 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b51b831483 | |||
01b6f3c56d |
@ -27,7 +27,6 @@ read_globals = {
|
||||
"stairsplus",
|
||||
"string.split",
|
||||
table = { fields = { "copy", "getn" } },
|
||||
"technic",
|
||||
"toolranks",
|
||||
"vector",
|
||||
"VoxelArea",
|
||||
|
4
init.lua
4
init.lua
@ -144,9 +144,7 @@ if nether.NETHER_REALM_ENABLED then
|
||||
end
|
||||
end
|
||||
dofile(nether.path .. "/portal_examples.lua")
|
||||
if minetest.get_modpath("technic") then
|
||||
dofile(nether.path .. "/nether-compressor-recipe.lua")
|
||||
end
|
||||
|
||||
|
||||
-- Portals are ignited by right-clicking with a mese crystal fragment
|
||||
nether.register_portal_ignition_item(
|
||||
|
2
mod.conf
2
mod.conf
@ -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 = toolranks, technic, moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls
|
||||
optional_depends = toolranks, moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls
|
||||
|
@ -1,40 +0,0 @@
|
||||
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
|
||||
|
||||
|
@ -384,10 +384,11 @@ minetest.register_tool("nether:lightstaff_eternal", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if lightstaff_on_use(user, "#23F", 0) then -- was "#8088FF" or "#13F"
|
||||
if lightstaff_on_use(user, "#23F", 0) -- was "#8088FF" or "#13F"
|
||||
and not minetest.is_creative_enabled(user) then
|
||||
-- The staff of Eternal Light wears out, to limit how much
|
||||
-- a player can alter the nether with it.
|
||||
itemstack:add_wear(65535 / (nether.lightstaff_uses - 1))
|
||||
itemstack:add_wear_by_uses(nether.lightstaff_uses)
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
Reference in New Issue
Block a user