33 Commits

Author SHA1 Message Date
aa22033711 Merge remote-tracking branch 'upstream/master' 2025-03-20 12:40:50 +01:00
da15db184e Merge remote-tracking branch 'upstream/master' 2024-09-15 09:38:23 +02:00
96a7ac2977 Merge remote-tracking branch 'upstream/master' 2023-06-07 22:16:00 +02:00
1df107ab94 Merge remote-tracking branch 'upstream/master' 2022-03-05 11:25:18 +01:00
69e8253193 Merge remote-tracking branch 'upstream/master' 2021-12-10 21:39:28 +01:00
0eb79653d8 Merge remote-tracking branch 'upstream/master' 2021-11-01 10:31:58 +01:00
23a6919a49 Merge remote-tracking branch 'upstream/master' 2021-07-24 13:09:07 +02:00
dc21f026f6 Merge remote-tracking branch 'upstream/master' 2021-07-16 23:50:56 +02:00
6f312d6999 Merge remote-tracking branch 'upstream/master' 2021-05-09 21:41:25 +02:00
e3e793d5be Merge remote-tracking branch 'upstream/master' 2021-03-26 19:29:55 +01:00
96ef16bf2a Merge branch 'github' 2021-03-26 19:29:39 +01:00
44f3912add Check minetest.features for use_texture_alpha_string_modes 2021-03-26 19:14:30 +01:00
4ff727909c Merge branch 'github' 2021-03-25 20:59:49 +01:00
7f5b4277dd Remove obsolete 'alpha' field 2021-03-25 20:57:23 +01:00
733ac1690a Merge branch 'github' 2021-03-21 11:06:39 +01:00
3b3fb6d1dd Fix deprecated use of use_texture_alpha in default portal def. 2021-03-21 11:05:14 +01:00
3292146e3c Merge branch 'github' 2021-03-06 12:38:24 +01:00
e5e74c839f Change deprecated get3d method to get_3d 2021-03-06 12:36:49 +01:00
bd2e065ad9 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:17:31 +01:00
776a8c95b0 Merge remote-tracking branch 'upstream/master' 2021-02-07 13:12:33 +01:00
4950143a00 Merge remote-tracking branch 'upstream/master' 2021-01-29 17:43:11 +01:00
ddd27690eb Merge remote-tracking branch 'upstream/master' 2021-01-15 21:12:33 +01:00
e0656eacae Merge remote-tracking branch 'upstream/master' 2021-01-05 21:39:15 +01:00
89db416d09 Merge remote-tracking branch 'upstream/master' 2021-01-02 14:26:25 +01:00
bfdd8d18b4 Merge remote-tracking branch 'upstream/master' 2020-12-30 22:28:44 +01:00
60d4f8c7df Merge remote-tracking branch 'upstream/master' 2020-09-28 20:48:55 +02:00
281d6fc07f Merge remote-tracking branch 'upstream/master' 2020-08-02 14:07:44 +02:00
97cf3250e4 Merge remote-tracking branch 'upstream/master' 2020-07-31 22:23:04 +02:00
c0481ea4ca Fix mods comp. using callback on_rightclick with mese fragment 2020-07-15 01:46:52 +02:00
3577fd1f5e Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-20 15:53:12 +02:00
9ab325fa8c Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-14 17:04:59 +02:00
9e3d5bf997 Corrige crash au démarrage si moreblocks chargé 2020-05-08 20:15:12 +02:00
c5ef9136ec Modifie la profondeur du Nether à -25000 2020-03-06 12:04:32 +01:00
3 changed files with 6 additions and 61 deletions

View File

@@ -57,8 +57,8 @@ nether.fogColor = { -- only used if climate_api is installed
-- Settings -- Settings
nether.DEPTH_CEILING = -5000 -- The y location of the Nether's celing nether.DEPTH_CEILING = -25000 -- The y location of the Nether's celing
nether.DEPTH_FLOOR = -11000 -- The y location of the Nether's floor nether.DEPTH_FLOOR = -31000 -- The y location of the Nether's floor
nether.FASTTRAVEL_FACTOR = 8 -- 10 could be better value for Minetest, since there's no sprint, but ex-Minecraft players will be mathing for 8 nether.FASTTRAVEL_FACTOR = 8 -- 10 could be better value for Minetest, since there's no sprint, but ex-Minecraft players will be mathing for 8
nether.PORTAL_BOOK_LOOT_WEIGHTING = 0.9 -- Likelyhood of finding the Book of Portals (guide) in dungeon chests. Set to 0 to disable. nether.PORTAL_BOOK_LOOT_WEIGHTING = 0.9 -- Likelyhood of finding the Book of Portals (guide) in dungeon chests. Set to 0 to disable.
nether.NETHER_REALM_ENABLED = true -- Setting to false disables the Nether and Nether portal nether.NETHER_REALM_ENABLED = true -- Setting to false disables the Nether and Nether portal
@@ -144,7 +144,7 @@ if nether.NETHER_REALM_ENABLED then
end end
end end
dofile(nether.path .. "/portal_examples.lua") dofile(nether.path .. "/portal_examples.lua")
dofile(nether.path .. "/ores.lua")
-- Portals are ignited by right-clicking with a mese crystal fragment -- Portals are ignited by right-clicking with a mese crystal fragment
nether.register_portal_ignition_item( nether.register_portal_ignition_item(

View File

@@ -495,13 +495,8 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
local minp = {x = minp_schem.x, y = 0, z = minp_schem.z} local minp = {x = minp_schem.x, y = 0, z = minp_schem.z}
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z} local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
local sample_pos = vector.new(target_x, 0, target_z) -- reuse to avoid making new tables for y = start_y, math_max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
local y = start_y local nval_cave = nobj_cave_point:get_3d({x = target_x, y = y, z = target_z})
local limit_y = math_max(NETHER_FLOOR + BLEND, start_y - 4096)
while y >= limit_y do
sample_pos.y = y
local nval_cave = nobj_cave_point:get_3d(sample_pos)
if nval_cave > TCAVE then -- Cavern if nval_cave > TCAVE then -- Cavern
air = air + 1 air = air + 1
@@ -514,14 +509,12 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
if nether.volume_is_natural_and_unprotected(minp, maxp, player_name) then if nether.volume_is_natural_and_unprotected(minp, maxp, player_name) then
return portal_y return portal_y
else -- Restart search a little lower else -- Restart search a little lower
air = 0 -- space above is unsuitable nether.find_nether_ground_y(target_x, target_z, y - 16, player_name)
y = y - 16
end end
else -- Not enough space, reset air to zero else -- Not enough space, reset air to zero
air = 0 air = 0
end end
end end
y = y - 1
end end
return math_max(start_y, NETHER_FLOOR + BLEND) -- Fallback return math_max(start_y, NETHER_FLOOR + BLEND) -- Fallback

View File

@@ -1,48 +0,0 @@
local S = minetest.get_translator("nether")
minetest.register_node("nether:rack_with_gold", {
description = S("Nether Gold"),
tiles = {"nether_rack.png^default_mineral_gold.png"},
is_ground_content = true,
groups = {cracky = 3, level = 2, workable_with_nether_tools = 3, not_in_creative_inventory = 1},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nether:rack_deep_with_mese", {
description = S("Nether Mese"),
tiles = {"nether_rack_deep.png^default_mineral_mese.png"},
is_ground_content = true,
groups = {cracky = 3, level = 2, workable_with_nether_tools = 3, not_in_creative_inventory = 1},
drop = "default:mese_crystal_fragment 4",
sounds = default.node_sound_stone_defaults(),
})
local ore_ceiling = nether.DEPTH_CEILING - 128
local ore_floor = nether.DEPTH_FLOOR + 128
minetest.register_ore({
ore_type = "scatter",
ore = "nether:rack_with_gold",
wherein = "nether:rack",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 7,
clust_size = 5,
y_max = ore_ceiling,
y_min = ore_floor
})
minetest.register_ore({
ore_type = "scatter",
ore = "nether:rack_deep_with_mese",
wherein = "nether:rack_deep",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 7,
clust_size = 5,
y_max = ore_ceiling,
y_min = ore_floor,
})