Compare commits

...

23 Commits

Author SHA1 Message Date
61176e5bf0 [nalc_flowers] Corrige callback on_place du lily_pad 2020-07-15 01:33:32 +02:00
98968a54cd [nalc_flowers] Ajoute alias mushroom:poison <- flowers:mushroom_red 2020-07-13 17:18:07 +02:00
fc5dc803a3 Ajoute recettes grind oat,rye,barley,rice vers farine 2020-07-13 15:45:58 +02:00
63206e7b19 [nalc_mediterranean] Corrige spawn saplings 2020-06-27 16:51:29 +02:00
6a59c140ff Corrige crash quand un cypres grandit 2020-06-21 11:57:46 +02:00
fe3ce296d7 [nalc_awards] Ajoute vérification sur la variable joueur 2020-06-16 23:03:56 +02:00
14be3b221a [nalc_moretrees] Ajoute génération herbe dans nouveaux biomes 2020-06-14 18:23:37 +02:00
73408c74b5 [nalc_hell] Corrige support toolranks 2020-06-14 16:15:46 +02:00
808cf2aa88 [nalc_moretrees] Ajoute paramètre Minetest plantlike_leaves
false par défaut
2020-06-14 13:33:59 +02:00
e0d51644c2 [nalc_moretrees] Corrige crash démarrage 2020-06-14 11:59:05 +02:00
a92f131145 [nalc_moretrees] Nettoyage code et ajout settingtypes.txt 2020-06-14 11:13:43 +02:00
35503c6217 [nalc_moretrees] Change génération de quelques arbres 2020-06-14 00:32:48 +02:00
60d957d7c8 [nalc_mediterranean] Corrige génération olivier 2020-06-14 00:31:51 +02:00
117ae0933a [nalc_flowers] Réécriture du mod et supprime la dépendance biome_lib
Les nénuphars custom ont 1/5 chance de se régénérer toute les
600 secondes près d'un bloc de jungletree.
2020-06-13 22:16:45 +02:00
1c245fd260 [nalc_flowers] Ajoute support de biome_lib
Permet la croissance des nénuphars custom
2020-06-13 15:24:04 +02:00
cf37b92453 Ajoute biome méditérranéen 2020-06-13 14:33:06 +02:00
a7b550488c [nalc_flowers] Ajoute le lily_pad ondulant 2020-05-10 00:49:39 +02:00
19fe63cbe9 [ambience] Désactive le son canadianloon2 2020-05-08 20:20:38 +02:00
4538fcf370 Ajoute mod nalc_riesenpilz pour l'ajout de biomes champignons 2020-04-27 20:37:29 +02:00
2c83070f29 Corrige le groupe des blocs de minerais dans la pierre du desert
- Tin, copper et silver n'avaient pas le bon groupe et une pioche en
  bois pouvait les miner.
2020-02-16 21:16:30 +01:00
524e2b787a Supprime du code obsolète de nalc_carts et nalc_moreblocks 2020-01-04 19:05:25 +01:00
5ce33b5bea [nalc_maptools] Corrige drop pièce en cuivre de la terre
et augmente sa rareté.
2020-01-04 17:01:20 +01:00
964ef10c30 [nalc_maptools] Ajoute dépendance manquante vers nalc_moreores 2019-12-22 17:11:26 +01:00
33 changed files with 9844 additions and 253 deletions

View File

@ -101,7 +101,7 @@ local day = {
{name="craw", length=3, gain=day_volume}, {name="craw", length=3, gain=day_volume},
{name="bluejay", length=7, gain=day_volume}, {name="bluejay", length=7, gain=day_volume},
{name="ComboWind", length=17, gain=day_volume}, {name="ComboWind", length=17, gain=day_volume},
{name="canadianloon2", length=15, gain=day_volume-0.7}, -- {name="canadianloon2", length=15, gain=day_volume-0.7},
{name="peacock", length=3, gain=day_volume} {name="peacock", length=3, gain=day_volume}
} }

View File

@ -15,6 +15,11 @@
if minetest.get_modpath("awards") then if minetest.get_modpath("awards") then
-- Check if a player object is valid for awards.
local function player_ok(player)
return player and player.is_player and player:is_player() and not player.is_fake_player
end
-- Redéfinition de la description d'awards existant -- Redéfinition de la description d'awards existant
local award = awards.registered_awards["award_mine3"] local award = awards.registered_awards["award_mine3"]
award.description = award.description.." (Unlock the craft of 1 Quarry)" award.description = award.description.." (Unlock the craft of 1 Quarry)"
@ -145,7 +150,7 @@ if minetest.get_modpath("awards") then
-- Customize register_on_craft -- Customize register_on_craft
minetest.register_on_craft( minetest.register_on_craft(
function(itemstack, player, old_craft_grid, craft_inv) function(itemstack, player, old_craft_grid, craft_inv)
if not player or itemstack:is_empty() then if not player_ok(player) or itemstack:is_empty() then
return return
end end

View File

@ -1,3 +1 @@
boost_cart boost_cart
moreblocks?
moreores?

View File

@ -1,25 +1,4 @@
-- Rail
minetest.clear_craft( {output = "default:rail" })
-- Rail Copper
if minetest.get_modpath("moreores") then
minetest.clear_craft({ output = "moreores:copper_rail" })
else
minetest.clear_craft({ output = "carts:copperrail" })
end
minetest.register_craft(
{
output = "carts:copperrail 16",
recipe = {
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
{"default:copper_ingot", "default:stick", "default:copper_ingot"},
}
})
-- Rail Power -- Rail Power
minetest.clear_craft({ output = "carts:powerrail" })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "carts:powerrail", output = "carts:powerrail",
@ -27,7 +6,6 @@ minetest.register_craft({
}) })
-- Rail Brake -- Rail Brake
minetest.clear_craft({ output = "carts:brakerail" })
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "carts:brakerail", output = "carts:brakerail",

View File

@ -38,7 +38,7 @@ minetest.register_node(
description = "Copper Ore", description = "Copper Ore",
tiles = {"default_desert_stone.png^default_mineral_copper.png"}, tiles = {"default_desert_stone.png^default_mineral_copper.png"},
is_ground_content = true, is_ground_content = true,
groups = {crumbly = 1, cracky = 3}, groups = {cracky = 2},
drop = { drop = {
items = { items = {
{items = {"default:copper_lump"}}, {items = {"default:copper_lump"}},
@ -53,7 +53,7 @@ minetest.register_node(
description = "Tin Ore", description = "Tin Ore",
tiles = {"default_desert_stone.png^default_mineral_tin.png"}, tiles = {"default_desert_stone.png^default_mineral_tin.png"},
is_ground_content = true, is_ground_content = true,
groups = {crumbly = 1, cracky = 3}, groups = {cracky = 2},
drop = { drop = {
items = { items = {
{items = {"default:tin_lump"}}, {items = {"default:tin_lump"}},

View File

@ -1 +1,2 @@
default default
flowers

View File

@ -1,46 +1,27 @@
minetest.register_node("nalc_flowers:lily_pad", { local lilypad_def = table.copy(minetest.registered_nodes["flowers:waterlily"])
description = "Lily Pad", lilypad_def.description = "Lily Pad"
drawtype = "nodebox", lilypad_def.tiles = {"flowers_lily_pad.png"}
tiles = { "flowers_lily_pad.png" }, lilypad_def.inventory_image = "flowers_lily_pad.png"
inventory_image = "flowers_lily_pad.png", lilypad_def.wield_image = "flowers_lily_pad.png"
wield_image = "flowers_lily_pad.png", lilypad_def.on_place = function(itemstack, placer, pointed_thing)
wield_scale = {x = 1, y = 1, z = 0.001}, local pos = pointed_thing.above
sunlight_propagates = true, local node = minetest.get_node(pointed_thing.under)
paramtype = "light", local def = minetest.registered_nodes[node.name]
paramtype2 = "facedir",
liquids_pointable = true, if def then
walkable = false, if def.on_rightclick then
buildable_to = true, def.on_rightclick(pointed_thing.under, node, placer, itemstack, pointed_thing)
floodable = true, elseif def.liquidtype == "source" and
groups = {snappy = 3, flammable = 2, flower = 1}, minetest.get_item_group(node.name, "water") > 0 then
sounds = default.node_sound_leaves_defaults(), local player_name = placer and placer:get_player_name() or ""
node_placement_prediction = "",
node_box = {
type = "fixed",
fixed = {-0.5, -0.45, -0.5, 0.5, -0.4375, 0.5},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
},
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
local node = minetest.get_node(pointed_thing.under)
local def = minetest.registered_nodes[node.name]
local player_name = placer and placer:get_player_name() or ""
if def and def.on_rightclick then
return def.on_rightclick(pointed_thing.under, node, placer, itemstack,
pointed_thing)
end
if def and def.liquidtype == "source" and
minetest.get_item_group(node.name, "water") > 0 then
if not minetest.is_protected(pos, player_name) then if not minetest.is_protected(pos, player_name) then
minetest.set_node(pos, {name = "nalc_flowers:lily_pad", minetest.set_node(
param2 = math.random(0, 3)}) pos, {
if not (creative and creative.is_enabled_for name = "nalc_flowers:lily_pad" ..(def.waving == 3 and "_waving" or ""),
and creative.is_enabled_for(player_name)) then param2 = math.random(0, 3)
})
if not (creative and creative.is_enabled_for and
creative.is_enabled_for(player_name)) then
itemstack:take_item() itemstack:take_item()
end end
else else
@ -48,31 +29,75 @@ minetest.register_node("nalc_flowers:lily_pad", {
minetest.record_protection_violation(pos, player_name) minetest.record_protection_violation(pos, player_name)
end end
end end
return itemstack
end end
return itemstack
end
local lilypad_waving_def = table.copy(lilypad_def)
lilypad_waving_def.waving = 3
lilypad_waving_def.drop = "nalc_flowers:lily_pad"
lilypad_waving_def.groups.not_in_creative_inventory = 1
minetest.register_node("nalc_flowers:lily_pad", lilypad_def)
minetest.register_node("nalc_flowers:lily_pad_waving", lilypad_waving_def)
local function lily_pad_spread(pos, node)
if minetest.get_node_light(pos, nil) < 9 then
return
end
local positions = minetest.find_nodes_in_area_under_air(
{x = pos.x - 1, y = pos.y-1, z = pos.z - 1},
{x = pos.x + 1, y = pos.y-1, z = pos.z + 1},
{"default:water_source"})
if #positions == 0 then return end
local pos2 = positions[math.random(#positions)]
pos2.y = pos2.y+1
if minetest.get_node_light(pos2, nil) >= 9 then
minetest.set_node(pos2, {name = node.name})
end
end
-- spawn ABM registration
minetest.register_abm({
label = "Lilypad spread",
nodenames = {"nalc_flowers:lily_pad_waving"},
neighbors = {"default:jungletree"},
interval = 600,
chance = 5,
action = function(...)
lily_pad_spread(...)
end,
}) })
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", name = "nalc_flowers:lily_pad",
place_on = {"default:dirt"}, deco_type = "simple",
sidelen = 16, place_on = {"default:dirt"},
noise_params = { sidelen = 16,
offset = -0.12, noise_params = {
scale = 0.31, offset = -0.12,
spread = {x=200, y=200, z=200}, scale = 0.3,
seed = 33, spread = {x=200, y=200, z=200},
octaves = 3, seed = 34,
persist = 0.7 octaves = 3,
}, persist = 0.7
biomes = {"rainforest_swamp", "savanna_shore", "deciduous_forest_shore"}, },
y_min = 0, biomes = {"rainforest_swamp"},
y_max = 0, y_min = 0,
schematic = minetest.get_modpath("nalc_flowers").."/schematics/lilypad.mts", y_max = 0,
rotation = "random", decoration = "nalc_flowers:lily_pad_waving",
param2 = 0,
param2_max = 3,
place_offset_y = 1,
}) })
minetest.register_alias("flowers:lily_pad", "nalc_flowers:lily_pad") minetest.register_alias("flowers:lily_pad", "nalc_flowers:lily_pad")
minetest.register_alias("nalc:lily_pad", "nalc_flowers:lily_pad") minetest.register_alias("nalc:lily_pad", "nalc_flowers:lily_pad")
-- Correction d'alias
minetest.register_alias("mushroom:poison", "flowers:mushroom_red")
minetest.log("action", "[nalc_flowers] loaded.") minetest.log("action", "[nalc_flowers] loaded.")

3
nalc_flowers/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = nalc_flowers
description = NALC mod: nalc_flowers
depends = default,flowers

97
nalc_hell/init.lua Normal file
View File

@ -0,0 +1,97 @@
-- Aliases
minetest.register_alias("hell:sword_sywtonic", "nether:sword_white")
minetest.register_alias("hell:sword_sywtonic", "nether:sword_sywtonic")
-- Hell Toolranks
-- Hell Pickaxes
minetest.override_item(
"hell:pick_mushroom",
{
original_description = "Hell Mushroom Pickaxe",
description = toolranks.create_description("Hell Mushroom Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:pick_wood",
{
original_description = "Hell Wood Pickaxe",
description = toolranks.create_description("Hell Wood Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:pick_hellrack",
{
original_description = "Hellrack Pickaxe",
description = toolranks.create_description("Hellrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:pick_hellrack_blue",
{
original_description = "Blue Hellrack Pickaxe",
description = toolranks.create_description("Blue Hellrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:pick_white",
{
original_description = "Siwtonic Pickaxe",
description = toolranks.create_description("Siwtonic Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Hell Axes
minetest.override_item(
"hell:axe_hellrack",
{
original_description = "Hellrack Axe",
description = toolranks.create_description("Hellrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:axe_hellrack_blue",
{
original_description = "Blue Hellrack Axe",
description = toolranks.create_description("Blue Hellrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:axe_white",
{
original_description = "Siwtonic Axe",
description = toolranks.create_description("Siwtonic Axe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Hell Shovels
minetest.override_item(
"hell:shovel_hellrack",
{
original_description = "Hellrack Shovel",
description = toolranks.create_description("Hellrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:shovel_hellrack_blue",
{
original_description = "Blue Hellrack Shovel",
description = toolranks.create_description("Blue Hellrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"hell:shovel_white",
{
original_description = "Siwtonic Shovel",
description = toolranks.create_description("Siwtonic Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.log("action", "[nalc_hell] loaded.")

3
nalc_hell/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = nalc_hell
description = Add toolranks support to hell mod
depends = hell,toolranks

View File

@ -1,2 +1,3 @@
nalc_default nalc_default
nalc_moreores
maptools maptools

View File

@ -37,15 +37,15 @@ minetest.register_ore(
-- Super Apples -- Super Apples
minetest.register_ore({ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "maptools:superapple", ore = "maptools:superapple",
wherein = "default:apple", wherein = "default:apple",
clust_scarcity = 6 * 6 * 6, clust_scarcity = 6 * 6 * 6,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 2, clust_size = 2,
y_min = 0, y_min = 0,
y_max = 64, y_max = 64,
}) })
-- Override items -- Override items
minetest.override_item( minetest.override_item(
@ -61,19 +61,19 @@ minetest.override_item(
local drop = minetest.registered_items["default:dirt"].drop local drop = minetest.registered_items["default:dirt"].drop
if drop then if drop then
table.insert(drop.items, 1, {items = {"maptools:copper_coin", "default:dirt"}, rarity = 32}) table.insert(drop.items, 1, {items = {"maptools:copper_coin"}, rarity = 52})
else else
minetest.override_item( drop = {
"default:dirt", max_items = 1,
{ items = {
drop = { {items = {"maptools:copper_coin"}, rarity = 52},
items = { {items = {"default:dirt"}},
{items = {"default:dirt"}}, },
{items = {"maptools:copper_coin"}, rarity = 32} }
}
}
})
end end
minetest.override_item("default:dirt", {
drop = drop,
})
minetest.override_item( minetest.override_item(
"default:stone_with_coal", "default:stone_with_coal",
@ -217,7 +217,7 @@ if minetest.get_modpath("moreores") then
} }
}) })
minetest.override_item( minetest.override_item(
"nalc_moreores:desert_stone_with_silver", "nalc:desert_stone_with_silver",
{ {
drop = { drop = {
items = { items = {

445
nalc_mediterranean/init.lua Normal file
View File

@ -0,0 +1,445 @@
-- Load tree's schematics
--local schems_pin_parasol = assert(loadfile(minetest.get_modpath("nalc_mediterranean").."/schematics/pin_parasol.lua"))()
--
--local schems_pin_maritime = assert(loadfile(minetest.get_modpath("nalc_mediterranean").."/schematics/pin_maritime.lua"))()
--
--local schems_cypres = assert(loadfile(minetest.get_modpath("nalc_mediterranean").."/schematics/cypres.lua"))()
--
--local schems_olivier = assert(loadfile(minetest.get_modpath("nalc_mediterranean").."/schematics/olivier.lua"))()
-- Mediterranean Dirt definition
local dirt_data = table.copy(minetest.registered_nodes["default:dirt_with_dry_grass"])
dirt_data.description = "Dirt with Mediterranean Grass"
dirt_data.tiles =
{"default_dry_grass.png^[multiply:#8ACA00", "default_dirt.png",
{name = "default_dirt.png^(default_dry_grass_side.png^[multiply:#8ACA00)",
tileable_vertical = false}
}
minetest.register_node("nalc_mediterranean:dirt_with_mediterranean_grass", dirt_data)
-- Mediterranean pine needles
-- Pine Needles
local needles_data = table.copy(minetest.registered_nodes["default:pine_needles"])
needles_data.description = "Mediterranean Pine Needles"
needles_data.drop = {
max_items = 1,
items = {
{
items = {'nalc_mediterranean:sapling_umbrella_pine'},
rarity = 120,
},
{
items = {'nalc_mediterranean:sapling_maritime_pine'},
rarity = 120,
},
{
items = {'nalc_mediterranean:sapling_cypress'},
rarity = 120,
},
{
items = {'nalc_mediterranean:needles'},
}
}
}
minetest.register_node("nalc_mediterranean:needles", needles_data)
-- Olive tree definition
local tree_data = table.copy(minetest.registered_nodes["default:tree"])
tree_data.description = "Olive tree trunk"
tree_data.tiles = {"default_tree_top.png", "default_tree_top.png", "default_pine_tree.png^[colorize:#8F8F8F6F"}
minetest.register_node("nalc_mediterranean:olive_tree", tree_data)
-- Mediterranean Olive leaves
local leaves_data = table.copy(minetest.registered_nodes["default:leaves"])
leaves_data.description = "Olive Leaves"
leaves_data.tiles = {"feuilles_olivier.png"}
leaves_data.special_tiles = {"feuilles_olivier.png"}
leaves_data.drop = {
max_items = 1,
items = {
{
items = {'nalc_mediterranean:sapling_olive'},
rarity = 40,
},
{
items = {'nalc_mediterranean:olive_leaves'},
}
}
}
minetest.register_node("nalc_mediterranean:olive_leaves", leaves_data)
-- Saplings Definitions
local path = minetest.get_modpath("nalc_mediterranean").."/schematics"
local function grow_umbrella_pine(pos)
minetest.place_schematic({x= pos.x -10, y = pos.y - 1, z = pos.z - 10}, path.."/pin_parasol.mts", "random", nil, true)
end
local function grow_maritime_pine(pos)
minetest.place_schematic({x= pos.x -3, y = pos.y - 1, z = pos.z - 3}, path.."/pin_maritime.mts", "0", nil, true)
end
local function grow_cypress(pos)
minetest.place_schematic({x= pos.x -3, y = pos.y - 1, z = pos.z - 3}, path.."/cypres.mts", "0", nil, true)
end
local function grow_olive_tree(pos)
minetest.place_schematic({x= pos.x -3, y = pos.y - 1, z = pos.z - 3}, path.."/olivier.mts", "random", nil, true)
end
local function grow_sapling(pos)
if not default.can_grow(pos) then
-- try again 5 min later
minetest.get_node_timer(pos):start(300)
return
end
local node = minetest.get_node(pos)
if node.name == "nalc_mediterranean:sapling_umbrella_pine" then
minetest.log("action", "An Umbrella Pine sapling grows into a tree at "..minetest.pos_to_string(pos))
grow_umbrella_pine(pos)
elseif node.name == "nalc_mediterranean:sapling_maritime_pine" then
minetest.log("action", "A Maritime Pine sapling grows into a tree at "..minetest.pos_to_string(pos))
grow_maritime_pine(pos)
elseif node.name == "nalc_mediterranean:sapling_cypress" then
minetest.log("action", "A Cypress sapling grows into a tree at "..minetest.pos_to_string(pos))
grow_cypress(pos)
elseif node.name == "nalc_mediterranean:sapling_olive" then
minetest.log("action", "An Olive sapling grows into a tree at "..minetest.pos_to_string(pos))
grow_olive_tree(pos)
end
end
minetest.register_lbm({
name = "nalc_mediterranean:convert_saplings_to_node_timer",
nodenames = {"nalc_mediterranean:sapling_umbrella_pine", "nalc_mediterranean:sapling_maritime_pine", "nalc_mediterranean:sapling_cypress", "nalc_mediterranean:sapling_olive"},
action = function(pos)
minetest.get_node_timer(pos):start(math.random(300, 1500))
end
})
-- Saplings --
local sapling_data = table.copy(minetest.registered_nodes["default:pine_sapling"])
local trees = {
{ description = "Umbrella Pine Sapling",
sapling = "nalc_mediterranean:sapling_umbrella_pine",
minp = {x = -10, y = 1, z = -10},
maxp = {x = 10, y = 16, z = 10},
texture = "default_pine_sapling.png",
},
{ description = "Maritime Pine Sapling",
sapling = "nalc_mediterranean:sapling_maritime_pine",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 14, z = 3},
texture = "default_pine_sapling.png",
},
{ description = "Cypress Sapling",
sapling = "nalc_mediterranean:sapling_cypress",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 19, z = 3},
texture = "default_pine_sapling.png",
},
{ description = "Olive Sapling",
sapling = "nalc_mediterranean:sapling_olive",
minp = {x = -3, y = 1, z = -3},
maxp = {x = 3, y = 9, z = 3},
texture = "default_sapling.png",
},
}
for _, tree in pairs(trees) do
sapling_data.description = tree.description
sapling_data.tiles = {tree.texture}
sapling_data.inventory_image = tree.texture
sapling_data.wield_image = tree.texture
sapling_data.on_timer = grow_sapling
sapling_data.on_place = function(itemstack, placer, pointed_thing)
itemstack = default.sapling_on_place(
itemstack,
placer,
pointed_thing,
tree.sapling,
tree.minp,
tree.maxp,
4)
return itemstack
end
minetest.register_node(tree.sapling, table.copy(sapling_data))
end
-- Biome méditéranéen
-- Température : 77
-- Humidité : 50
-- Altitude : 3-50
minetest.register_biome({
name = "mediterranean",
node_top = "nalc_mediterranean:dirt_with_mediterranean_grass",
depth_top = 1,
node_filler = "default:dirt",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "default:stair_cobble",
y_min = 4,
y_max = 150,
heat_point = 77,
humidity_point = 50,
})
-- Biome méditéranéen plage
-- Température : 77
-- Humidité : 50
-- Altitude : 0-3
minetest.register_biome({
name = "mediterranean_shore",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "default:stair_cobble",
y_min = 0,
y_max = 3,
heat_point = 77,
humidity_point = 50,
})
-- Decorations --
minetest.register_decoration({
name = "nalc_mediterranean:umbrella_pine",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
fill_ratio = 0.0005,
biomes = {"mediterranean"},
y_min = 4,
y_max = 60,
schematic = path.."/pin_parasol.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
spawn_by = "nalc_mediterranean:dirt_with_mediterranean_grass",
num_spawn_by = 4,
})
minetest.register_decoration({
name = "nalc_mediterranean:maritime_pine",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
-- fill_ratio = 0.005,
noise_params = {
offset = 0.003,
scale = -0.0096,
spread = {x = 200, y = 200, z = 200},
seed = 2,
octaves = 3,
persist = 0.68,
},
biomes = {"mediterranean"},
y_min = 4,
y_max = 100,
schematic = path.."/pin_maritime.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
name = "nalc_mediterranean:cypress",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
-- fill_ratio = 0.0005,
noise_params = {
offset = 0,
scale = 0.003,
spread = {x = 200, y = 200, z = 200},
seed = 329,
octaves = 3,
persist = 0.6,
},
biomes = {"mediterranean"},
y_min = 4,
y_max = 40,
schematic = path.."/cypres.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
name = "nalc_mediterranean:olive_tree1",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
fill_ratio = 0.00005,
-- noise_params = {
-- offset = 0,
-- scale = 0.003,
-- spread = {x = 200, y = 200, z = 200},
-- seed = 329,
-- octaves = 3,
-- persist = 0.6,
-- },
biomes = {"mediterranean"},
y_min = 4,
y_max = 100,
schematic = path.."/olivier.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
minetest.register_decoration({
name = "nalc_mediterranean:olive_tree2",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
fill_ratio = 0.0005,
-- noise_params = {
-- offset = 0,
-- scale = 0.003,
-- spread = {x = 200, y = 200, z = 200},
-- seed = 329,
-- octaves = 3,
-- persist = 0.6,
-- },
biomes = {"mediterranean"},
y_min = 30,
y_max = 60,
schematic = path.."/olivier.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
-- Leaf decay
if minetest.get_modpath("snow") then
default.register_leafdecay{
trunks = {"default:pine_tree"},
leaves = {"snow:needles", "default:pine_needles", "snow:needles_decorated", "nalc_mediterranean:needles"},
radius = 5,
}
else
default.register_leafdecay{
trunks = {"default:pine_tree"},
leaves = {"default:pine_needles", "nalc_mediterranean:needles"},
radius = 5,
}
end
default.register_leafdecay{
trunks = {"nalc_mediterranean:olive_tree"},
leaves = {"nalc_mediterranean:olive_leaves"},
radius = 3,
}
-- Grass decorations
local function register_grass_decoration(offset, scale, length)
minetest.register_decoration({
name = "nalc_mediterranean:grass_" .. length,
deco_type = "simple",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
noise_params = {
offset = offset,
scale = scale,
spread = {x = 200, y = 200, z = 200},
seed = 329,
octaves = 3,
persist = 0.6
},
biomes = {"mediterranean"},
y_max = 31000,
y_min = 1,
decoration = "default:grass_" .. length,
})
end
local function register_dry_grass_decoration(offset, scale, length)
minetest.register_decoration({
name = "nalc_mediterranean:dry_grass_" .. length,
deco_type = "simple",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
noise_params = {
offset = offset,
scale = scale,
spread = {x = 200, y = 200, z = 200},
seed = 330,
octaves = 3,
persist = 0.6
},
biomes = {"mediterranean"},
y_max = 31000,
y_min = 1,
decoration = "default:dry_grass_" .. length,
})
end
-- Grasses
register_grass_decoration(-0.03, 0.09, 5)
register_grass_decoration(-0.015, 0.075, 4)
register_grass_decoration(0, 0.06, 3)
register_grass_decoration(0.015, 0.045, 2)
register_grass_decoration(0.03, 0.03, 1)
-- Dry grasses
register_dry_grass_decoration(0.01, 0.05, 5)
register_dry_grass_decoration(0.03, 0.03, 4)
register_dry_grass_decoration(0.05, 0.01, 3)
register_dry_grass_decoration(0.07, -0.01, 2)
register_dry_grass_decoration(0.09, -0.03, 1)
-- Pine bush
minetest.register_decoration({
name = "nalc_mediterranean:pine_bush",
deco_type = "schematic",
place_on = {"nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
noise_params = {
offset = -0.004,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 137,
octaves = 3,
persist = 0.7,
},
biomes = {"mediterranean"},
y_max = 31000,
y_min = 4,
schematic = minetest.get_modpath("default") .. "/schematics/pine_bush.mts",
flags = "place_center_x, place_center_z",
})
minetest.log("action", "[nalc_mediterranean] loaded.")
-- local mts_save = function(name, schematic)
-- local s = minetest.serialize_schematic(schematic, "mts", {})
-- local path = minetest.get_modpath("nalc_mediterranean") .. "/schematics"
-- local filename = path .. "/" .. name .. ".mts"
-- filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")
-- local file, err = io.open(filename, "wb")
-- if err == nil then
-- file:write(s)
-- file:flush()
-- file:close()
-- end
-- print("Wrote: " .. filename)
--end
--mts_save("pin_parasol", schems_pin_parasol)
--mts_save("pin_maritime", schems_pin_maritime)
--mts_save("cypres", schems_cypres)
--mts_save("olivier", schems_olivier)

View File

@ -0,0 +1,3 @@
name = nalc_mediterranean
depends = default
optional_depends = snow

View File

@ -0,0 +1,179 @@
local _ = {name = "air", prob = 0}
local Q = {name = "default:pine_tree", force_place = true}
local R = {name = "nalc_mediterranean:needles", param2=0}
local schems_cypres = {
size = {x=7, y=20, z=7},
yslice_prob = {
{ypos=0, prob=254},
{ypos=1, prob=254},
{ypos=2, prob=254},
{ypos=3, prob=192},
{ypos=4, prob=254},
{ypos=5, prob=192},
{ypos=6, prob=254},
{ypos=7, prob=254},
{ypos=8, prob=254},
{ypos=9, prob=254},
{ypos=10, prob=254},
{ypos=11, prob=254},
{ypos=12, prob=254},
{ypos=13, prob=254},
{ypos=14, prob=254},
{ypos=15, prob=254},
{ypos=16, prob=254},
{ypos=17, prob=254},
{ypos=18, prob=254},
{ypos=19, prob=254},
},
data = {
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,R,R,R,R,R,_,
_,R,R,R,R,R,_,
_,R,R,R,R,R,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,R,Q,R,_,_,
_,R,R,Q,R,_,_,
_,R,R,Q,R,R,_,
_,R,R,Q,R,R,_,
R,R,R,Q,R,R,R,
R,R,R,Q,R,R,R,
R,R,R,Q,R,R,R,
_,R,R,Q,R,R,_,
_,R,R,Q,R,R,_,
_,R,R,Q,R,R,_,
_,R,R,Q,R,R,_,
_,_,R,Q,R,_,_,
_,_,R,Q,R,_,_,
_,_,R,Q,R,_,_,
_,_,R,R,R,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,R,R,R,R,R,_,
_,R,R,R,R,R,_,
_,R,R,R,R,R,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,R,R,R,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
}
}
return schems_cypres

Binary file not shown.

View File

@ -0,0 +1,459 @@
local schematic = {
size = {x=7, y=9, z=7},
yslice_prob = {
{ypos=0, prob=254},
{ypos=1, prob=128},
{ypos=2, prob=128},
{ypos=3, prob=192},
{ypos=4, prob=254},
{ypos=5, prob=254},
{ypos=6, prob=254},
{ypos=7, prob=254},
{ypos=8, prob=254},
},
data = {
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=128, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=128, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=2},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, force_place=true, param2=2},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, force_place=true, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=3},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=2},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=2},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=2},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=3},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="nalc_mediterranean:olive_tree", prob=254, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=192, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="nalc_mediterranean:olive_leaves", prob=254, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
{name="air", prob=0, param2=0},
},
}
return schematic

Binary file not shown.

View File

@ -0,0 +1,132 @@
local _ = {name = "air", prob = 0}
local Q = {name = "default:pine_tree", force_place = true}
local R = {name = "nalc_mediterranean:needles", param2=0}
local T = {name = "nalc_mediterranean:needles", param2=0, prob=192}
local schems_pin_maritime = {
size = {x=7, y=14, z=7},
yslice_prob = {
{ypos=0, prob=254},
{ypos=1, prob=254},
{ypos=2, prob=128},
{ypos=3, prob=128},
{ypos=4, prob=128},
{ypos=5, prob=192},
{ypos=6, prob=192},
{ypos=7, prob=254},
{ypos=8, prob=254},
{ypos=9, prob=254},
{ypos=10, prob=254},
{ypos=11, prob=254},
{ypos=12, prob=254},
{ypos=13, prob=254},
},
data = {
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,T,R,R,R,T,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,R,_,_,_,
T,R,R,R,R,R,T,
_,_,_,R,_,_,_,
_,T,R,R,R,T,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,_,Q,_,_,_,
_,_,T,Q,T,_,_,
_,_,R,Q,R,_,_,
T,R,R,Q,R,R,T,
_,_,R,Q,R,_,_,
_,T,R,Q,R,T,_,
_,_,R,Q,R,_,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,R,_,_,_,
T,R,R,R,R,R,T,
_,_,_,R,_,_,_,
_,T,R,R,R,T,_,
_,_,_,R,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,T,R,R,R,T,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,T,T,T,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
_,_,_,_,_,_,_,
}
}
return schems_pin_maritime

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

View File

@ -1,48 +1,3 @@
-- Annulation des redéfinitions de crafts de moreblocks
-- Sign wall Wood
minetest.clear_craft(
{
output = "default:sign_wall_wood",
})
minetest.register_craft(
{
output = "default:sign_wall_wood 3",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:wood", "group:wood", "group:wood"},
{"", "group:stick", ""},
}
})
-- Ladder wood
minetest.clear_craft(
{
output = "default:ladder_wood",
})
minetest.register_craft(
{
output = "default:ladder_wood 5",
recipe = {
{"group:stick", "", "group:stick"},
{"group:stick", "group:stick", "group:stick"},
{"group:stick", "", "group:stick"}
}
})
-- Paper
minetest.clear_craft(
{
output = "default:paper",
})
minetest.register_craft(
{
output= "default:paper",
recipe = {
{"default:papyrus", "default:papyrus", "default:papyrus"}
}
})
-- Micro wood bug -- Micro wood bug
local def = minetest.registered_nodes["moreblocks:micro_wood"] local def = minetest.registered_nodes["moreblocks:micro_wood"]
def.groups.wood = 0 def.groups.wood = 0

View File

@ -18,7 +18,7 @@ minetest.register_node(
description = "Silver Ore", description = "Silver Ore",
tiles = {"default_desert_stone.png^moreores_mineral_silver.png"}, tiles = {"default_desert_stone.png^moreores_mineral_silver.png"},
is_ground_content = true, is_ground_content = true,
groups = {crumbly = 1, cracky = 3}, groups = {cracky = 2},
drop = { drop = {
items = { items = {
{items = {"moreores:silver_lump"}}, {items = {"moreores:silver_lump"}},

View File

@ -1,3 +1,412 @@
-- Biomes definition
minetest.register_biome({
name = "deciduous_cold",
node_top = "default:dirt_with_grass",
depth_top = 1,
node_filler = "default:dirt",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "default:stair_cobble",
y_min = 3,
y_max = 200,
heat_point = 55,
humidity_point = 69,
})
minetest.register_biome({
name = "deciduous_cold_humid",
node_top = "default:dirt_with_grass",
depth_top = 1,
node_filler = "default:dirt",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "default:stair_cobble",
y_min = 3,
y_max = 200,
heat_point = 55,
humidity_point = 111,
})
-- fonctions et variables de bruits
local densités = {
{ offset = 0.000001,
scale = 0.00001,
},
{ offset = 0.00001,
scale = 0.0001,
},
{ offset = 0.0001,
scale = 0.001,
},
{ offset = 0.001,
scale = 0.01,
},
}
local function noise_param(seed, spread, densité, octaves, persist)
return {
offset = densité.offset or 0.001,
scale = densité.scale or 0.01,
spread = {x = spread or 100, y = spread or 100, z = spread or 100},
seed = seed or math.random(1,999),
octaves = octaves or 1,
persist = persist or 0.5,
}
end
-- Décorations --
-- Génération des arbres de moretrees en fonction des biomes et non plus par biome_lib.
-- Pour que cette génération soit active, il faut désactiver la génération de moretrees
-- en mettant à false les arbres souhaités dans le fichier default_settings.txt du mod
-- moretrees.
if not moretrees.enable_apple_tree then
minetest.register_decoration({
name = "moretrees:apple_tree",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = noise_param(750, 200, densités[2]),
biomes = {"mixed_mushroom_deciduous", "deciduous_forest", "coniferous_forest", "mixed_mushroom_cold", "grassland", "deciduous_cold", "deciduous_cold_humid"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:apple_tree_sapling_ongen",
})
end
if not moretrees.enable_oak then
minetest.register_decoration({
name = "moretrees:oak",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter", "nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
noise_params = noise_param(751, 200, densités[2]),
biomes = {"grassland", "deciduous_forest", "mixed_mushroom_deciduous", "mixed_mushroom_cold", "coniferous_forest", "mediterranean"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:oak_sapling_ongen",
})
end
if not moretrees.enable_sequoia then
minetest.register_decoration({
name = "moretrees:sequoia",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter", "default:dirt_with_snow"},
sidelen = 16,
noise_params = noise_param(752, 150, densités[4], 3),
biomes = {"grassland", "pine_forest", "coniferous_forest", "mixed_mushroom_cold", "deciduous_forest", "mixed_mushroom_deciduous", "taiga", "snow_biome_alpine"},
y_min = 100,
y_max = 210,
decoration = "moretrees:sequoia_sapling_ongen",
})
end
if not moretrees.enable_palm then
minetest.register_decoration({
name = "moretrees:palm",
deco_type = "simple",
place_on = {"default:dirt", "default:sand", "default:desert_sand", "default:dirt_with_rainforest_litter"},
sidelen = 16,
noise_params = {
offset = 0.003,
scale = 0.01,
spread = {x = 30, y = 30, z = 30},
seed = 753,
octaves = 3,
persist = 0.5,
},
biomes = {"desert", "desert_ocean", "rainforest_swamp"},
y_min = -2,
y_max = 3,
decoration = "moretrees:palm_sapling_ongen",
})
end
if not moretrees.enable_date_palm then
minetest.register_decoration({
name = "moretrees:date_palm",
deco_type = "simple",
place_on = {"default:sand", "default:desert_sand", "default:dry_dirt_with_dry_grass"},
sidelen = 16,
noise_params = {
offset = -0.003,
scale = 0.01,
spread = {x = 30, y = 30, z = 30},
seed = 753,
octaves = 3,
persist = 0.5,
},
biomes = {"desert", "desert_ocean", "sandstone_desert", "sandstone_desert_ocean", "savanna_shore", "mediterranean_shore"},
y_min = 0,
y_max = 3,
decoration = "moretrees:date_palm_sapling_ongen",
})
end
if not moretrees.enable_cedar then
minetest.register_decoration({
name = "moretrees:cedar_rare_alt50",
deco_type = "simple",
place_on = {"default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = {
offset = 0.00015,
scale = 0.0015,
spread = {x = 130, y = 130, z = 130},
seed = 754,
octaves = 1,
persist = 0.6,
},
biomes = {"coniferous_forest", "mixed_mushroom_cold"},
y_min = 50,
y_max = 31000,
decoration = "moretrees:cedar_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:cedar_rare_alt100",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "nalc_mediterranean:dirt_with_mediterranean_grass"},
sidelen = 16,
noise_params = {
offset = 0.00015,
scale = 0.0008,
spread = {x = 130, y = 130, z = 130},
seed = 754,
octaves = 1,
persist = 0.6,
},
biomes = {"deciduous_forest", "mixed_mushroom_deciduous", "mediterranean"},
y_min = 100,
y_max = 31000,
decoration = "moretrees:cedar_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:cedar",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
sidelen = 16,
noise_params = {
offset = 0.00015,
scale = 0.0015,
spread = {x = 130, y = 130, z = 130},
seed = 754,
octaves = 1,
persist = 0.6,
},
biomes = {"pine_forest"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:cedar_sapling_ongen",
})
end
if not moretrees.enable_rubber_tree then
minetest.register_decoration({
name = "moretrees:rubber_tree",
deco_type = "simple",
place_on = {"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass", "default:dirt", "default:dry_dirt"},
sidelen = 16,
noise_params = noise_param(754, 130, densités[2]),
biomes = {"rainforest", "rainforest_swamp", "mixed_mushroom_hot", "savanna", "savanna_shore"},
y_min = -1,
y_max = 31000,
decoration = "moretrees:rubber_tree_sapling_ongen",
})
end
if not moretrees.enable_willow then
minetest.register_decoration({
name = "moretrees:willow_rare",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(755, 130, densités[2]),
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:willow_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:willow",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(755, 100, densités[3]),
biomes = {"deciduous_cold", "deciduous_cold_humid"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:willow_sapling_ongen",
})
end
if not moretrees.enable_birch then
minetest.register_decoration({
name = "moretrees:birch",
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = noise_param(756, 150, densités[3]),
biomes = {"coniferous_forest", "mixed_mushroom_cold", "grassland", "deciduous_forest", "mixed_mushroom_deciduous"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:birch_sapling_ongen",
})
end
if not moretrees.enable_spruce then
minetest.register_decoration({
name = "moretrees:spruce_rare_alt40-200",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(757, 250, densités[2], 2),
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
y_min = 40,
y_max = 200,
decoration = "moretrees:spruce_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:spruce",
deco_type = "simple",
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(757, 250, densités[3], 2),
biomes = {"coniferous_forest", "mixed_mushroom_cold", "taiga", "snow_biome_forest", "snow_biome_lush", "pine_forest"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:spruce_sapling_ongen",
})
end
if not moretrees.enable_fir then
minetest.register_decoration({
name = "moretrees:fir_rare_alt40-200",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(758, 250, densités[2], 2),
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
y_min = 40,
y_max = 200,
decoration = "moretrees:fir_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:fir",
deco_type = "simple",
place_on = {"default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = noise_param(758, 250, densités[3], 2),
biomes = {"snow_biome_forest", "taiga", "snow_biome_lush", "pine_forest", "coniferous_forest", "mixed_mushroom_cold"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:fir_sapling_ongen",
})
end
if not moretrees.enable_poplar then
minetest.register_decoration({
name = "moretrees:poplar_small_rare",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(759, 250, densités[2], 3),
biomes = {"deciduous_forest", "mixed_mushroom_deciduous", "deciduous_cold"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:poplar_small_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:poplar_small_dense",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(759, 100, densités[4], 3),
biomes = {"deciduous_cold_humid"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:poplar_small_sapling_ongen",
})
minetest.register_decoration({
name = "moretrees:poplar",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = noise_param(760, 50, densités[3], 2),
biomes = {"deciduous_cold", "deciduous_cold_humid"},
y_min = 0,
y_max = 31000,
decoration = "moretrees:poplar_sapling_ongen",
})
end
-- /!\ La génération des Jungletrees n'est pas redéfinie ici mais est laissée à moretrees.
-- Mettez à true (ou false) dans default_settings.txt de moretrees les jungletrees si vous
-- voulez (ou non) que moretrees génère des Jungletrees supplémentaires.
-- Grass decorations
local function register_grass_decoration(offset, scale, length)
minetest.register_decoration({
name = "nalc_moretrees:grass_" .. length,
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = {
offset = offset,
scale = scale,
spread = {x = 200, y = 200, z = 200},
seed = 329,
octaves = 3,
persist = 0.6
},
biomes = {"deciduous_cold", "deciduous_cold_humid"},
y_max = 31000,
y_min = 1,
decoration = "default:grass_" .. length,
})
end
register_grass_decoration(-0.03, 0.09, 5)
register_grass_decoration(-0.015, 0.075, 4)
register_grass_decoration(0, 0.06, 3)
register_grass_decoration(0.015, 0.045, 2)
register_grass_decoration(0.03, 0.03, 1)
-- Redefinir les feuilles avec l'apparence plantlike si configuré dans les paramètres
-- (Améliore les performances des clients)
if minetest.settings:get_bool("nalc_moretrees.plantlike_leaves") or moretrees.plantlike_leaves then
local function o_leaves(name, texture)
minetest.override_item(name, {
inventory_image = minetest.inventorycube(texture),
drawtype = "plantlike",
visual_scale = math.sqrt(2)
})
end
o_leaves("default:blueberry_bush_leaves", "default_blueberry_bush_leaves.png")
o_leaves("default:blueberry_bush_leaves_with_berries", "default_blueberry_bush_leaves.png^default_blueberry_overlay.png")
o_leaves("default:bush_leaves", "default_leaves.png")
o_leaves("default:aspen_leaves", "default_aspen_leaves.png")
o_leaves("default:pine_needles", "default_pine_needles.png")
o_leaves("default:pine_bush_needles", "default_pine_needles.png")
o_leaves("default:acacia_leaves", "default_acacia_leaves.png")
o_leaves("default:acacia_bush_leaves", "default_acacia_leaves.png")
o_leaves("nalc_mediterranean:needles", "default_pine_needles.png")
o_leaves("nalc_mediterranean:olive_leaves", "feuilles_olivier.png")
o_leaves("snow:needles", "default_pine_needles.png")
end
minetest.register_alias("moretrees:acacia_sapling_ongen", "default:acacia_sapling") minetest.register_alias("moretrees:acacia_sapling_ongen", "default:acacia_sapling")
minetest.log("action", "[nalc_moretrees] loaded.") minetest.log("action", "[nalc_moretrees] loaded.")

3
nalc_moretrees/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = nalc_moretrees
depends = moretrees, nalc_riesenpilz, nalc_mediterranean, snow
optional_depends =

View File

@ -0,0 +1 @@
nalc_moretrees.plantlike_leaves (Enable plantlike leaves) bool false

View File

@ -1,2 +0,0 @@
nether
toolranks

View File

@ -1,96 +0,0 @@
-- Aliases
minetest.register_alias("nether:sword_sywtonic", "nether:sword_white")
-- Nether Toolranks
-- Nether Pickaxes
minetest.override_item(
"nether:pick_mushroom",
{
original_description = "Nether Mushroom Pickaxe",
description = toolranks.create_description("Nether Mushroom Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_wood",
{
original_description = "Nether Wood Pickaxe",
description = toolranks.create_description("Nether Wood Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_netherrack",
{
original_description = "Netherrack Pickaxe",
description = toolranks.create_description("Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_netherrack_blue",
{
original_description = "Blue Netherrack Pickaxe",
description = toolranks.create_description("Blue Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_white",
{
original_description = "Siwtonic Pickaxe",
description = toolranks.create_description("Siwtonic Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Nether Axes
minetest.override_item(
"nether:axe_netherrack",
{
original_description = "Netherrack Axe",
description = toolranks.create_description("Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:axe_netherrack_blue",
{
original_description = "Blue Netherrack Axe",
description = toolranks.create_description("Blue Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:axe_white",
{
original_description = "Siwtonic Axe",
description = toolranks.create_description("Siwtonic Axe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Nether Shovels
minetest.override_item(
"nether:shovel_netherrack",
{
original_description = "Netherrack Shovel",
description = toolranks.create_description("Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:shovel_netherrack_blue",
{
original_description = "Blue Netherrack Shovel",
description = toolranks.create_description("Blue Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:shovel_white",
{
original_description = "Siwtonic Shovel",
description = toolranks.create_description("Siwtonic Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.log("action", "[nalc_nether] loaded.")

1547
nalc_riesenpilz/init.lua Normal file

File diff suppressed because it is too large Load Diff

3
nalc_riesenpilz/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = nalc_riesenpilz
description = Generate mushroom biomes with schematics in Minetest.
depends = default,riesenpilz,stairs

View File

@ -82,4 +82,19 @@ if minetest.get_modpath("dye") then
}) })
end end
-- Add grinder recipes
if minetest.get_modpath("farming") and farming.mod == "redo" then
local recipes = {
{"farming:seed_barley", "farming:flour 1"},
{"farming:seed_oat", "farming:flour 1"},
{"farming:seed_rye", "farming:flour 1"},
{"farming:rice", "farming:rice_flour 1"}
}
for _, data in pairs(recipes) do
technic.register_grinder_recipe({input = {data[1]}, output = data[2]})
end
end
minetest.log("action", "[nalc_technic] loaded.") minetest.log("action", "[nalc_technic] loaded.")