This commit is contained in:
Xeno333 2024-08-10 14:32:12 -05:00
parent f50fa1a501
commit a4a933beed
35 changed files with 87 additions and 15 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
schems/oasis_tree_1.mts Normal file

Binary file not shown.

BIN
schems/oasis_tree_2.mts Normal file

Binary file not shown.

BIN
schems/oasis_tree_3.mts Normal file

Binary file not shown.

BIN
schems/oasis_tree_4.mts Normal file

Binary file not shown.

View File

@ -2,7 +2,7 @@
minetest.register_node("mcl_better_end:enderite_ore", {
description = "enderite Ore",
tiles = {
"mcl_end_end_stone.png^end_stone_with_enderite.png",
"mcl_end_end_stone.png^enderite_ore.png",
},
drop = 'mcl_better_end:enderite_raw', -- Le minerai laisse tomber un morceau brut

View File

@ -14,14 +14,6 @@ local water = mcl_better_end.mapgen.registered_nodes.oasis_water
local glow_berry_plant = mcl_better_end.mapgen.registered_nodes.oasis_glow_berry_plant
local schems = {
"/oasis_tree1.mts",
"/oasis_tree2.mts",
"/oasis_tree3.mts",
"/oasis_tree4.mts",
"/oasis_tree5.mts",
}
mcl_better_end.api.register_biome({
type = "island",
gen = function(data, vi, area, pr, x, y, z)
@ -44,7 +36,7 @@ mcl_better_end.api.register_biome({
end,
dec = function(pr, x, y, z)
if pr:next(1, 100) == 5 then
minetest.place_schematic({x=x,y=y,z=z}, mcl_better_end.schematic_loc .. schems[pr:next(1, #schems)], "0", nil, false)
minetest.place_schematic({x=x,y=y,z=z}, mcl_better_end.schematic_loc .. mcl_better_end.biomes.oasis.tree_schem[pr:next(1, #mcl_better_end.biomes.oasis.tree_schem)], "0", nil, false)
end
end,
noise_high = 1,

View File

@ -2,7 +2,7 @@
minetest.register_node("mcl_better_end:nephrite_ore", {
description = "Nephrite Ore",
tiles = {
"mcl_end_end_stone.png^end_stone_with_nephrite.png",
"mcl_end_end_stone.png^nephrite_ore.png",
},
drop = 'mcl_better_end:nephrite_raw', -- Le minerai laisse tomber un morceau brut
@ -30,6 +30,18 @@ minetest.register_craftitem("mcl_better_end:nephrite_ingot", {
inventory_image = "nephrite_ingot.png",
})
minetest.register_craft({
output = 'mcl_better_end:nephrite_ingot',
recipe = {
{'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw'},
{'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw'},
{'', 'mcl_better_end:nephrite_raw', ''},
}
})
-- Recette de cuisson pour obtenir le lingot
minetest.register_craft({
type = "cooking",

View File

@ -8,6 +8,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'mcl_better_end:nephrite_ingot',
recipe = {
{'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw'},
{'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw', 'mcl_better_end:nephrite_raw'},
{'', 'mcl_better_end:nephrite_raw', ''},
}
})
minetest.register_craft({
output = 'mcl_better_end:nephrite_axe',
recipe = {

View File

@ -1,3 +1,6 @@
mcl_better_end.biomes.oasis = {}
minetest.register_node("mcl_better_end:end_stone_oasis_turf", {
description = "End Stone with Blue Mold",
tiles = {
@ -20,7 +23,53 @@ minetest.register_node("mcl_better_end:end_stone_oasis_turf", {
groups = {pickaxey=1, building_block=1, material_stone=1, mbe_plains=1},
})
minetest.register_node("mcl_better_end:end_stone_oasis_trunk", {
mcl_better_end.biomes.oasis.tree_schem = {
"/oasis_tree_1.mts",
"/oasis_tree_2.mts",
"/oasis_tree_3.mts",
"/oasis_tree_4.mts",
}
minetest.register_node("mcl_better_end:custom_sapling", {
description = "Oasis Sapling",
drawtype = "plantlike",
tiles = {"oasis_sapling.png"},
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, sapling = 1, flammable = 2},
on_construct = function(pos)
minetest.get_node_timer(pos):start(math.random(300, 1500))
end,
on_timer = function(pos)
-- Check if the sapling is on the correct turf
local below_pos = {x = pos.x, y = pos.y - 1, z = pos.z}
local below_node = minetest.get_node(below_pos).name
if below_node == "mcl_better_end:end_stone_oasis_turf" then
minetest.set_node(pos, {name = "air"})
-- Randomly select a tree schematic
local schematics = mcl_better_end.biomes.oasis.tree_schem
local random_schem = mcl_better_end.schematic_loc .. schematics[math.random(#schematics)]
-- Place the schematic at the sapling's position
minetest.place_schematic(pos, random_schem, "random", nil, true)
end
end,
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3},
},
sounds = mcl_sounds.node_sound_leaves_defaults(),
})
minetest.register_node("mcl_better_end:end_oasis_trunk", {
description = "Blue Trunk",
tiles = {
"blue_end_wood_top.png", -- Top texture
@ -38,11 +87,11 @@ minetest.register_node("mcl_better_end:end_stone_oasis_trunk", {
_mcl_hardness = 3,
light_source = 0,
groups = {axey=1, building_block=1, material_stone=1, mbe_plains=1},
groups = {axey=1, building_block=1, mbe_plains=1},
})
minetest.register_node("mcl_better_end:end_stone_oasis_leaves", {
minetest.register_node("mcl_better_end:end_oasis_leaves", {
description = "Blue Leaves",
drawtype = "allfaces_optional",
paramtype = "light",
@ -55,7 +104,17 @@ minetest.register_node("mcl_better_end:end_stone_oasis_leaves", {
light_source = 5,
groups = {building_block=1, material_stone=1, mbe_plains=1},
drop = {
max_items = 1,
items = {
{
items = {"mcl_better_end:custom_sapling"},
rarity = 20, -- 1 in 100 chance to drop
},
}
},
groups = {building_block=1, mbe_plains=1},
})
minetest.register_node("mcl_better_end:end_oasis_grass", {

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 B

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 975 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB