1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2025-06-28 22:26:45 +02:00

4 Commits

4 changed files with 22 additions and 9 deletions

View File

@ -3,6 +3,7 @@ creative?
glow glow
riesenpilz riesenpilz
stairs stairs
moreblocks?
vector_extras vector_extras
fence_registration? fence_registration?
function_delayer? function_delayer?

View File

@ -1042,5 +1042,5 @@ local msg = ("[nether] loaded after ca. %g seconds."):format(time)
if time > 0.01 then if time > 0.01 then
print(msg) print(msg)
else else
minetest.log("info", msg) minetest.log("action", msg)
end end

View File

@ -11,13 +11,25 @@ local function add_more_nodes(name)
name = "nether_"..name name = "nether_"..name
end end
local data = minetest.registered_nodes[nd] local data = minetest.registered_nodes[nd]
stairs.register_stair_and_slab(name, nd, if stairsplus then
stairsplus:register_all(
"nether",
name,
nd,
data
)
minetest.register_alias("stairs:stair_"..name, "nether"..":stair_"..name)
minetest.register_alias("stairs:slab_"..name, "nether"..":slab_"..name)
else
stairs.register_stair_and_slab(
name, nd,
data.groups, data.groups,
data.tiles, data.tiles,
data.description.." Stair", data.description.." Stair",
data.description.." Slab", data.description.." Slab",
data.sounds data.sounds
) )
end
if add_fence then if add_fence then
add_fence({fence_of = nd}) add_fence({fence_of = nd})
end end

View File

@ -108,7 +108,7 @@ local function player_to_nether(player, pos)
minetest.chat_send_player(pname, "For any reason you arrived here. " .. minetest.chat_send_player(pname, "For any reason you arrived here. " ..
"Type /nether_help to find out things like craft recipes.") "Type /nether_help to find out things like craft recipes.")
player:set_hp(0) player:set_hp(0)
if not nether_prisons then if nether_prisons then
player:set_pos(get_player_died_target(player)) player:set_pos(get_player_died_target(player))
end end
end end