.
@ -2,11 +2,15 @@ Baked Clay
|
||||
|
||||
This mod lets the player bake clay into hardened blocks and colour them with
|
||||
dye (8x baked clay and 1x dye in centre), stairs and slabs are also available.
|
||||
Cooking baked clay turns it into glazed terracotta blocks.
|
||||
|
||||
https://forum.minetest.net/viewtopic.php?id=8890
|
||||
|
||||
Changelog:
|
||||
|
||||
- 1.0 - Added glazed terracotta blocks when you cook baked clay in furnace (thanks D3monPixel)
|
||||
- 0.9 - Baked clay now works in the technic cnc machine
|
||||
- 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye
|
||||
- 0.7 - Added support for stairsplus so that stairs are registered properly
|
||||
- 0.6 - Added 3 new flowers and a new grass that are used for missing dyes
|
||||
- 0.5 - Now using minecraft recipe to colour baked clay (8x baked clay, 1x dye in centre)
|
||||
@ -15,4 +19,7 @@ Changelog:
|
||||
- 0.2 - Any colour of baked clay can be re-dyed into another colour
|
||||
- 0.1 - Initial Release
|
||||
|
||||
Lucky Blocks: 8
|
||||
Lucky Blocks: 10
|
||||
|
||||
|
||||
Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs.
|
||||
|
@ -1,4 +1,5 @@
|
||||
default
|
||||
stairs
|
||||
moreblocks?
|
||||
lucky_block?
|
||||
lucky_block?
|
||||
technic_cnc?
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- Baked Clay by TenPlus1
|
||||
|
||||
local clay = {
|
||||
{"natural", "Natural"},
|
||||
{"white", "White"},
|
||||
{"grey", "Grey"},
|
||||
{"black", "Black"},
|
||||
@ -16,50 +17,60 @@ local clay = {
|
||||
{"brown", "Brown"},
|
||||
{"pink", "Pink"},
|
||||
{"dark_grey", "Dark Grey"},
|
||||
{"dark_green", "Dark Green"},
|
||||
{"dark_green", "Dark Green"}
|
||||
}
|
||||
|
||||
local techcnc_mod = minetest.get_modpath("technic_cnc")
|
||||
local stairs_mod = minetest.get_modpath("stairs")
|
||||
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
||||
and minetest.global_exists("stairsplus")
|
||||
|
||||
for _, clay in pairs(clay) do
|
||||
|
||||
-- node definition
|
||||
-- node
|
||||
|
||||
minetest.register_node("bakedclay:" .. clay[1], {
|
||||
description = clay[2] .. " Baked Clay",
|
||||
tiles = {"baked_clay_" .. clay[1] ..".png"},
|
||||
groups = {cracky = 3, bakedclay = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
-- craft from dye and any baked clay
|
||||
-- craft recipe
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bakedclay:" .. clay[1] .. " 8",
|
||||
recipe = {
|
||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
|
||||
{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
|
||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
|
||||
},
|
||||
})
|
||||
if clay[1] ~= "natural" then
|
||||
|
||||
-- register stairsplus stairs if found
|
||||
minetest.register_craft({
|
||||
output = "bakedclay:" .. clay[1] .. " 8",
|
||||
recipe = {
|
||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
|
||||
{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
|
||||
{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- stairs plus
|
||||
if stairsplus_mod then
|
||||
|
||||
stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1], "bakedclay:" .. clay[1], {
|
||||
stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1],
|
||||
"bakedclay:" .. clay[1], {
|
||||
description = clay[2] .. " Baked Clay",
|
||||
tiles = {"baked_clay_" .. clay[1] .. ".png"},
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
stairsplus:register_alias_all("bakedclay", clay[1], "bakedclay", "baked_clay_" .. clay[1])
|
||||
minetest.register_alias("stairs:slab_bakedclay_".. clay[1], "bakedclay:slab_baked_clay_" .. clay[1])
|
||||
minetest.register_alias("stairs:stair_bakedclay_".. clay[1], "bakedclay:stair_baked_clay_" .. clay[1])
|
||||
stairsplus:register_alias_all("bakedclay", clay[1],
|
||||
"bakedclay", "baked_clay_" .. clay[1])
|
||||
|
||||
-- register all stair types for stairs redo
|
||||
minetest.register_alias("stairs:slab_bakedclay_".. clay[1],
|
||||
"bakedclay:slab_baked_clay_" .. clay[1])
|
||||
|
||||
minetest.register_alias("stairs:stair_bakedclay_".. clay[1],
|
||||
"bakedclay:stair_baked_clay_" .. clay[1])
|
||||
|
||||
-- stairs redo
|
||||
elseif stairs_mod and stairs.mod then
|
||||
|
||||
stairs.register_all("bakedclay_" .. clay[1], "bakedclay:" .. clay[1],
|
||||
@ -68,7 +79,7 @@ for _, clay in pairs(clay) do
|
||||
clay[2] .. " Baked Clay",
|
||||
default.node_sound_stone_defaults())
|
||||
|
||||
-- register stair and slab using default stairs
|
||||
-- default stairs
|
||||
elseif stairs_mod then
|
||||
|
||||
stairs.register_stair_and_slab("bakedclay_".. clay[1], "bakedclay:".. clay[1],
|
||||
@ -78,13 +89,72 @@ for _, clay in pairs(clay) do
|
||||
clay[2] .. " Baked Clay Slab",
|
||||
default.node_sound_stone_defaults())
|
||||
end
|
||||
|
||||
-- register bakedclay for use in technic_cnc mod
|
||||
if techcnc_mod then
|
||||
|
||||
technic_cnc.register_all("bakedclay:" .. clay[1],
|
||||
{cracky = 3, not_in_creative_inventory = 1},
|
||||
{"baked_clay_" .. clay[1] .. ".png"},
|
||||
clay[2] .. " Baked Clay")
|
||||
end
|
||||
end
|
||||
|
||||
-- Terracotta blocks (textures by D3monPixel, thanks for use :)
|
||||
for _, clay in pairs(clay) do
|
||||
|
||||
if clay[1] ~= "natural" then
|
||||
|
||||
local texture = "baked_clay_terracotta_" .. clay[1] ..".png"
|
||||
|
||||
minetest.register_node("bakedclay:terracotta_" .. clay[1], {
|
||||
description = clay[2] .. " Glazed Terracotta",
|
||||
tiles = {
|
||||
texture .. "",
|
||||
texture .. "",
|
||||
texture .. "^[transformR180",
|
||||
texture .. "",
|
||||
texture .. "^[transformR270",
|
||||
texture .. "^[transformR90",
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 3, terracotta = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bakedclay:terracotta_" .. clay[1],
|
||||
recipe = "bakedclay:" .. clay[1]
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
-- special light blue glazed terracotta block
|
||||
local texture = "baked_clay_terracotta_light_blue.png"
|
||||
|
||||
minetest.register_node("bakedclay:terracotta_light_blue", {
|
||||
description = "Light Blue Glazed Terracotta",
|
||||
tiles = {
|
||||
texture .. "",
|
||||
texture .. "",
|
||||
texture .. "^[transformR180",
|
||||
texture .. "",
|
||||
texture .. "^[transformR270",
|
||||
texture .. "^[transformR90",
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 3, terracotta = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
-- cook clay block into white baked clay
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "bakedclay:white",
|
||||
output = "bakedclay:natural",
|
||||
recipe = "default:clay",
|
||||
})
|
||||
|
||||
@ -96,31 +166,29 @@ minetest.register_craft( {
|
||||
recipe = {"dye:black", "dye:black", "dye:white"}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:grey 3",
|
||||
recipe = {"dye:black", "dye:white", "dye:white"}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:green 4",
|
||||
recipe = {"default:cactus"}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:black 4",
|
||||
recipe = {"default:coal_lump"}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:brown 4",
|
||||
recipe = {"default:dry_shrub"}
|
||||
})
|
||||
|
||||
-- 2x2 red bakedclay makes 16x clay brick
|
||||
-- only add light grey recipe if unifieddye mod isnt present (conflict)
|
||||
if not minetest.get_modpath("unifieddyes") then
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "dye:grey 3",
|
||||
recipe = {"dye:black", "dye:white", "dye:white"}
|
||||
})
|
||||
end
|
||||
|
||||
-- 2x2 red baked clay makes 16x clay brick
|
||||
minetest.register_craft( {
|
||||
output = "default:clay_brick 16",
|
||||
recipe = {
|
||||
@ -161,10 +229,17 @@ local function add_simple_flower(name, desc, box, f_groups)
|
||||
end
|
||||
|
||||
local flowers = {
|
||||
{"delphinium", "Blue Delphinium", {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}},
|
||||
{"thistle", "Thistle", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}},
|
||||
{"lazarus", "Lazarus Bell", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}},
|
||||
{"mannagrass", "Reed Mannagrass", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}},
|
||||
{"delphinium", "Blue Delphinium",
|
||||
{-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}},
|
||||
|
||||
{"thistle", "Thistle",
|
||||
{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}},
|
||||
|
||||
{"lazarus", "Lazarus Bell",
|
||||
{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}},
|
||||
|
||||
{"mannagrass", "Reed Mannagrass",
|
||||
{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}}
|
||||
}
|
||||
|
||||
for _,item in pairs(flowers) do
|
||||
@ -187,7 +262,7 @@ minetest.register_decoration({
|
||||
},
|
||||
y_min = 10,
|
||||
y_max = 90,
|
||||
decoration = "bakedclay:delphinium",
|
||||
decoration = "bakedclay:delphinium"
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
@ -204,7 +279,7 @@ minetest.register_decoration({
|
||||
},
|
||||
y_min = 15,
|
||||
y_max = 90,
|
||||
decoration = "bakedclay:thistle",
|
||||
decoration = "bakedclay:thistle"
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
@ -223,7 +298,7 @@ minetest.register_decoration({
|
||||
y_max = 90,
|
||||
decoration = "bakedclay:lazarus",
|
||||
spawn_by = "default:jungletree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
@ -242,29 +317,111 @@ minetest.register_decoration({
|
||||
y_max = 15,
|
||||
decoration = "bakedclay:mannagrass",
|
||||
spawn_by = "group:water",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
|
||||
-- add lucky blocks
|
||||
-- lucky blocks
|
||||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
local p = "bakedclay:"
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"bakedclay:"}, 10, true},
|
||||
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 0},
|
||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0},
|
||||
{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 0, true},
|
||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0, true},
|
||||
{"dro", {p.."delphinium"}, 5},
|
||||
{"dro", {p.."lazarus"}, 5},
|
||||
{"dro", {p.."mannagrass"}, 5},
|
||||
{"dro", {p.."thistle"}, 6},
|
||||
{"flo", 5, {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
|
||||
p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
|
||||
p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 2},
|
||||
{"flo", 5, {p.."natural", p.."black", p.."blue", p.."brown", p.."cyan",
|
||||
p.."dark_green", p.."dark_grey", p.."green", p.."grey", p.."magenta",
|
||||
p.."orange", p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 2},
|
||||
{"nod", "default:chest", 0, {
|
||||
{name = p.."natural", max = 30},
|
||||
{name = p.."black", max = 30},
|
||||
{name = p.."blue", max = 30},
|
||||
{name = p.."brown", max = 30},
|
||||
{name = p.."cyan", max = 30},
|
||||
{name = p.."dark_green", max = 30},
|
||||
{name = p.."dark_grey", max = 30},
|
||||
{name = p.."green", max = 30},
|
||||
{name = p.."grey", max = 30},
|
||||
{name = p.."magenta", max = 30},
|
||||
{name = p.."orange", max = 30},
|
||||
{name = p.."pink", max = 30},
|
||||
{name = p.."red", max = 30},
|
||||
{name = p.."violet", max = 30},
|
||||
{name = p.."white", max = 30},
|
||||
{name = p.."yellow", max = 30}
|
||||
}},
|
||||
})
|
||||
|
||||
p = "bakedclay:terracotta_"
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"nod", "default:chest", 0, {
|
||||
{name = p.."light_blue", max = 20},
|
||||
{name = p.."black", max = 20},
|
||||
{name = p.."blue", max = 20},
|
||||
{name = p.."brown", max = 20},
|
||||
{name = p.."cyan", max = 20},
|
||||
{name = p.."dark_green", max = 20},
|
||||
{name = p.."dark_grey", max = 20},
|
||||
{name = p.."green", max = 20},
|
||||
{name = p.."grey", max = 20},
|
||||
{name = p.."magenta", max = 20},
|
||||
{name = p.."orange", max = 20},
|
||||
{name = p.."pink", max = 20},
|
||||
{name = p.."red", max = 20},
|
||||
{name = p.."violet", max = 20},
|
||||
{name = p.."white", max = 20},
|
||||
{name = p.."yellow", max = 20}
|
||||
}}
|
||||
})
|
||||
end
|
||||
|
||||
-- colored clay compatibility
|
||||
|
||||
if minetest.settings:get_bool("colored_clay_compatibility") == true then
|
||||
|
||||
local cc = {
|
||||
{"black", "black"},
|
||||
{"blue", "blue"},
|
||||
{"bright", "natural"},
|
||||
{"brown", "brown"},
|
||||
{"cyan", "cyan"},
|
||||
{"dark_green", "dark_green"},
|
||||
{"dark_grey", "dark_grey"},
|
||||
{"green", "green"},
|
||||
{"grey", "grey"},
|
||||
{"hardened", "natural"},
|
||||
{"magenta", "magenta"},
|
||||
{"orange", "orange"},
|
||||
{"pink", "pink"},
|
||||
{"red", "red"},
|
||||
{"violet", "violet"},
|
||||
{"white", "white"},
|
||||
{"yellow", "yellow"}
|
||||
}
|
||||
|
||||
for n = 1, #cc do
|
||||
|
||||
local nod1 = "colored_clay:" .. cc[n][1]
|
||||
local nod2 = "bakedclay:" .. cc[n][2]
|
||||
|
||||
minetest.register_alias(nod1, nod2)
|
||||
|
||||
if stairsplus_mod then
|
||||
stairsplus:register_alias_all("colored_clay", cc[n][1], "bakedclay", cc[n][2])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
print ("[MOD] Baked Clay loaded")
|
||||
|
@ -19,3 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
Textures by D3monPixel (https://mcpedl.com/better-glazed-terracotta-pack)
|
||||
baked_clay_terracotta*.png
|
||||
|
@ -1,6 +1,7 @@
|
||||
name = bakedclay
|
||||
|
||||
depends = default
|
||||
optional_depends = stairs, moreblocks, lucky_block, technic_cnc
|
||||
description = Adds the ability to bake clay into blocks and colour them with dye.
|
||||
release = 377
|
||||
release = 8358
|
||||
author = TenPlus1
|
||||
title = Baked Clay
|
||||
|
2
bakedclay/settingtypes.txt
Normal file
@ -0,0 +1,2 @@
|
||||
# Registers compatibility aliases with the older colored_clay mod
|
||||
colored_clay_compatibility (Colored Clay Compatibility) bool false
|
BIN
bakedclay/textures/baked_clay_natural.png
Normal file
After Width: | Height: | Size: 296 B |
BIN
bakedclay/textures/baked_clay_terracotta_black.png
Normal file
After Width: | Height: | Size: 328 B |
BIN
bakedclay/textures/baked_clay_terracotta_blue.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
bakedclay/textures/baked_clay_terracotta_brown.png
Normal file
After Width: | Height: | Size: 718 B |
BIN
bakedclay/textures/baked_clay_terracotta_cyan.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
bakedclay/textures/baked_clay_terracotta_dark_green.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
bakedclay/textures/baked_clay_terracotta_dark_grey.png
Normal file
After Width: | Height: | Size: 328 B |
BIN
bakedclay/textures/baked_clay_terracotta_green.png
Normal file
After Width: | Height: | Size: 575 B |
BIN
bakedclay/textures/baked_clay_terracotta_grey.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
bakedclay/textures/baked_clay_terracotta_light_blue.png
Normal file
After Width: | Height: | Size: 589 B |
BIN
bakedclay/textures/baked_clay_terracotta_magenta.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
bakedclay/textures/baked_clay_terracotta_orange.png
Normal file
After Width: | Height: | Size: 606 B |
BIN
bakedclay/textures/baked_clay_terracotta_pink.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
bakedclay/textures/baked_clay_terracotta_red.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
bakedclay/textures/baked_clay_terracotta_violet.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
bakedclay/textures/baked_clay_terracotta_white.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
bakedclay/textures/baked_clay_terracotta_yellow.png
Normal file
After Width: | Height: | Size: 676 B |
@ -23,6 +23,7 @@ signs_lib.register_sign("basic_signs:sign_wall_locked", {
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = "clip",
|
||||
})
|
||||
|
||||
signs_lib.register_sign("basic_signs:sign_wall_glass", {
|
||||
@ -45,7 +46,7 @@ signs_lib.register_sign("basic_signs:sign_wall_glass", {
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = true,
|
||||
use_texture_alpha = "blend",
|
||||
})
|
||||
|
||||
signs_lib.register_sign("basic_signs:sign_wall_obsidian_glass", {
|
||||
@ -68,7 +69,7 @@ signs_lib.register_sign("basic_signs:sign_wall_obsidian_glass", {
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = true,
|
||||
use_texture_alpha = "blend",
|
||||
})
|
||||
|
||||
minetest.register_alias("locked_sign:sign_wall_locked", "basic_signs:sign_wall_locked")
|
||||
@ -93,7 +94,7 @@ signs_lib.register_sign("basic_signs:sign_wall_plastic", {
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = true,
|
||||
use_texture_alpha = "clip",
|
||||
})
|
||||
|
||||
-- array : color, translated color, default text color
|
||||
@ -137,6 +138,7 @@ for i, color in ipairs(sign_colors) do
|
||||
allow_onpole = true,
|
||||
allow_onpole_horizontal = true,
|
||||
allow_yard = true,
|
||||
use_texture_alpha = "clip",
|
||||
})
|
||||
|
||||
minetest.register_alias("basic_signs:sign_wall_steel_"..color[1].."_onpole", "basic_signs:sign_steel_"..color[1].."_onpole")
|
||||
|
@ -1,5 +1,5 @@
|
||||
min_minetest_version = 5.2.0
|
||||
release = 6299
|
||||
release = 7503
|
||||
title = Basic signs
|
||||
author = VanessaE
|
||||
name = basic_signs
|
||||
|
@ -37,6 +37,17 @@ local function pine_grow(pos)
|
||||
end
|
||||
|
||||
|
||||
-- special function for cactus growth
|
||||
local function cactus_grow(pos)
|
||||
default.grow_cactus(pos, minetest.get_node(pos))
|
||||
end
|
||||
|
||||
-- special function for papyrus growth
|
||||
local function papyrus_grow(pos)
|
||||
default.grow_papyrus(pos, minetest.get_node(pos))
|
||||
end
|
||||
|
||||
|
||||
-- default saplings
|
||||
local saplings = {
|
||||
{"default:sapling", default.grow_new_apple_tree, "soil"},
|
||||
@ -49,7 +60,9 @@ local saplings = {
|
||||
{"default:acacia_bush_sapling", default.grow_acacia_bush, "soil"},
|
||||
{"default:large_cactus_seedling", default.grow_large_cactus, "sand"},
|
||||
{"default:blueberry_bush_sapling", default.grow_blueberry_bush, "soil"},
|
||||
{"default:pine_bush_sapling", default.grow_pine_bush, "soil"}
|
||||
{"default:pine_bush_sapling", default.grow_pine_bush, "soil"},
|
||||
{"default:cactus", cactus_grow, "sand"},
|
||||
{"default:papyrus", papyrus_grow, "soil"},
|
||||
}
|
||||
|
||||
-- helper tables ( "" denotes a blank item )
|
||||
@ -82,6 +95,8 @@ end)
|
||||
|
||||
-- default biomes deco
|
||||
local deco = {
|
||||
{"default:dry_dirt", dry_grass, {}},
|
||||
{"default:dry_dirt_with_dry_grass", dry_grass, {}},
|
||||
{"default:dirt_with_dry_grass", dry_grass, flowers},
|
||||
{"default:sand", {}, {"default:dry_shrub", "", "", ""} },
|
||||
{"default:desert_sand", {}, {"default:dry_shrub", "", "", ""} },
|
||||
@ -605,51 +620,51 @@ minetest.register_craft({
|
||||
|
||||
-- bonemeal (from bone)
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:bonemeal 2",
|
||||
recipe = {"group:bone"}
|
||||
recipe = {{"group:bone"}}
|
||||
})
|
||||
|
||||
-- bonemeal (from player bones)
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:bonemeal 4",
|
||||
recipe = {"bones:bones"}
|
||||
recipe = {{"bones:bones"}}
|
||||
})
|
||||
|
||||
-- bonemeal (from coral skeleton)
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:bonemeal 2",
|
||||
recipe = {"default:coral_skeleton"}
|
||||
recipe = {{"default:coral_skeleton"}}
|
||||
})
|
||||
|
||||
-- mulch
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:mulch 4",
|
||||
recipe = {
|
||||
"group:tree", "group:leaves", "group:leaves",
|
||||
"group:leaves", "group:leaves", "group:leaves",
|
||||
"group:leaves", "group:leaves", "group:leaves"
|
||||
{"group:tree", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:mulch",
|
||||
recipe = {
|
||||
"group:seed", "group:seed", "group:seed",
|
||||
"group:seed", "group:seed", "group:seed",
|
||||
"group:seed", "group:seed", "group:seed"
|
||||
{"group:seed", "group:seed", "group:seed"},
|
||||
{"group:seed", "group:seed", "group:seed"},
|
||||
{"group:seed", "group:seed", "group:seed"}
|
||||
}
|
||||
})
|
||||
|
||||
-- fertiliser
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
-- type = "shapeless",
|
||||
output = "bonemeal:fertiliser 2",
|
||||
recipe = {"bonemeal:bonemeal", "bonemeal:mulch"}
|
||||
recipe = {{"bonemeal:bonemeal", "bonemeal:mulch"}}
|
||||
})
|
||||
|
||||
|
||||
|
@ -2,6 +2,6 @@ name = bonemeal
|
||||
depends = default
|
||||
optional_depends = intllib, lucky_block, farming, ethereal, moretrees, technic_worldgen, flowers, dye
|
||||
description = Adds bone and bonemeal giving the ability to quickly grow plants and saplings.
|
||||
release = 6945
|
||||
release = 8137
|
||||
author = TenPlus1
|
||||
title = Bonemeal
|
||||
|
@ -19,7 +19,7 @@ local colours = {
|
||||
{"red", "Red", "#ff000070"},
|
||||
{"violet", "Violet", "#2000c970"},
|
||||
{"white", "White", "#abababc0"},
|
||||
{"yellow", "Yellow", "#e3ff0070"},
|
||||
{"yellow", "Yellow", "#e3ff0070"}
|
||||
}
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ local function cblocks_stairs(nodename, def)
|
||||
description = def.description,
|
||||
tiles = def.tiles,
|
||||
groups = def.groups,
|
||||
sounds = def.sounds,
|
||||
sounds = def.sounds
|
||||
})
|
||||
|
||||
elseif stairs_mod and stairs
|
||||
@ -77,20 +77,20 @@ end
|
||||
|
||||
local function set_alias(col, name)
|
||||
|
||||
minetest.register_alias("stairs:stair_" .. col .. "_" .. name,
|
||||
"stairs:stair_" .. name .. "_" .. col)
|
||||
minetest.register_alias("stairs:stair_" .. col .. "_" .. name,
|
||||
"stairs:stair_" .. name .. "_" .. col)
|
||||
|
||||
minetest.register_alias("stairs:slab_" .. col .. "_" .. name,
|
||||
"stairs:slab_" .. name .. "_" .. col)
|
||||
minetest.register_alias("stairs:slab_" .. col .. "_" .. name,
|
||||
"stairs:slab_" .. name .. "_" .. col)
|
||||
|
||||
minetest.register_alias("stairs:stair_inner_" .. col .. "_" .. name,
|
||||
"stairs:stair_inner_" .. name .. "_" .. col)
|
||||
minetest.register_alias("stairs:stair_inner_" .. col .. "_" .. name,
|
||||
"stairs:stair_inner_" .. name .. "_" .. col)
|
||||
|
||||
minetest.register_alias("stairs:stair_outer_" .. col .. "_" .. name,
|
||||
"stairs:stair_outer_" .. name .. "_" .. col)
|
||||
minetest.register_alias("stairs:stair_outer_" .. col .. "_" .. name,
|
||||
"stairs:stair_outer_" .. name .. "_" .. col)
|
||||
|
||||
minetest.register_alias("stairs:slope_" .. col .. "_" .. name,
|
||||
"stairs:slope_" .. name .. "_" .. col)
|
||||
minetest.register_alias("stairs:slope_" .. col .. "_" .. name,
|
||||
"stairs:slope_" .. name .. "_" .. col)
|
||||
end
|
||||
|
||||
|
||||
@ -102,15 +102,18 @@ cblocks_stairs("cblocks:stonebrick_" .. colours[i][1], {
|
||||
description = colours[i][2] .. " Stone Brick",
|
||||
tiles = {"default_stone_brick.png^[colorize:" .. colours[i][3]},
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "opaque",
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "cblocks:stonebrick_".. colours[i][1] .. " 2",
|
||||
recipe = {
|
||||
{"default:stonebrick","default:stonebrick", "dye:" .. colours[i][1]},
|
||||
{"default:stonebrick","default:stonebrick", "dye:" .. colours[i][1]}
|
||||
}
|
||||
})
|
||||
|
||||
@ -125,10 +128,10 @@ if stairs_mod and stairs and stairs.mod and stairs.mod == "redo" then
|
||||
drawtype = "glasslike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
use_texture_alpha = "blend",
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
set_alias(colours[i][1], "glass")
|
||||
@ -139,10 +142,10 @@ else
|
||||
drawtype = "glasslike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
use_texture_alpha = true,
|
||||
use_texture_alpha = "blend",
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
end
|
||||
|
||||
@ -166,9 +169,12 @@ cblocks_stairs("cblocks:wood_" .. col, {
|
||||
description = colours[i][2] .. " Wooden Planks",
|
||||
tiles = {"default_wood.png^[colorize:" .. colours[i][3]},
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "opaque",
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
set_alias(colours[i][1], "wood")
|
||||
@ -176,7 +182,7 @@ set_alias(colours[i][1], "wood")
|
||||
minetest.register_craft({
|
||||
output = "cblocks:wood_".. col .. " 2",
|
||||
recipe = {
|
||||
{"group:wood","group:wood", "dye:" .. colours[i][1]},
|
||||
{"group:wood","group:wood", "dye:" .. colours[i][1]}
|
||||
}
|
||||
})
|
||||
|
||||
@ -189,7 +195,7 @@ lucky_block:add_blocks({
|
||||
{"dro", {"cblocks:wood_"}, 10, true},
|
||||
{"dro", {"cblocks:stonebrick_"}, 10, true},
|
||||
{"dro", {"cblocks:glass_"}, 10, true},
|
||||
{"exp"},
|
||||
{"exp"}
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -2,6 +2,6 @@ name = cblocks
|
||||
depends = default
|
||||
optional_depends = lucky_block, stairs, moreblocks
|
||||
description = Adds coloured wood, glass and stone blocks.
|
||||
release = 6342
|
||||
release = 7927
|
||||
author = TenPlus1
|
||||
title = Cblocks
|
||||
|
@ -25,6 +25,7 @@ end
|
||||
--
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
name = "baldcypress:baldcypress_tree",
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:sand"},
|
||||
@ -33,7 +34,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.0005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 678,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -54,7 +55,6 @@ end
|
||||
minetest.register_node("baldcypress:sapling", {
|
||||
description = S("Bald Cypress Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"baldcypress_sapling.png"},
|
||||
inventory_image = "baldcypress_sapling.png",
|
||||
wield_image = "baldcypress_sapling.png",
|
||||
@ -117,10 +117,7 @@ minetest.register_node("baldcypress:wood", {
|
||||
minetest.register_node("baldcypress:leaves", {
|
||||
description = S("Bald Cypress Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"baldcypress_leaves.png"},
|
||||
inventory_image = "baldcypress_leaves.png",
|
||||
wield_image = "baldcypress_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -136,6 +133,47 @@ minetest.register_node("baldcypress:leaves", {
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
minetest.register_node("baldcypress:dry_branches", {
|
||||
description = S("Bald Cypress Dry Branches"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"baldcypress_dry_branches.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "baldcypress_dry_branches.png",
|
||||
wield_image = "baldcypress_dry_branches.png",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 0.49, 0.5, 0.5, 0.5}
|
||||
},
|
||||
groups = {
|
||||
snappy = 2, flammable = 3, oddly_breakable_by_hand = 3, choppy = 2, carpet = 1, leafdecay = 3, leaves = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("baldcypress:liana", {
|
||||
description = S("Bald Cypress Liana"),
|
||||
drawtype = "nodebox",
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"baldcypress_liana.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "baldcypress_liana.png",
|
||||
wield_image = "baldcypress_liana.png",
|
||||
is_ground_content = false,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, 0.0, 0.25, 0.5, 0.0}
|
||||
},
|
||||
groups = {
|
||||
snappy = 2, flammable = 3, oddly_breakable_by_hand = 3, choppy = 2, carpet = 1, leafdecay = 3, leaves = 1,
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
@ -177,6 +215,25 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Bald Cypress Wood Fence"),
|
||||
texture = "baldcypress_wood.png",
|
||||
material = "baldcypress:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("baldcypress:fence", table.copy(fence))
|
||||
fence.description = S("Bald Cypress Fence Rail")
|
||||
default.register_fence_rail("baldcypress:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Bald Cypress Fence Gate")
|
||||
doors.register_fencegate("baldcypress:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
@ -191,6 +248,16 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("baldcypress", "wood", "baldcypress:wood", {
|
||||
description = "Bald Cypress",
|
||||
tiles = {"baldcypress_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
--Support for bonemeal
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
|
@ -5,6 +5,8 @@ Bald Cypress Leaves=Hojas de criprés calvo
|
||||
Bald Cypress Tree Sapling=Retoño de criprés calvo
|
||||
Bald Cypress Tree Stair=Escaleras de criprés calvo
|
||||
Bald Cypress Slab=Losa de de criprés calvo
|
||||
Inner Bald Cypress Stair=Escaleras de de criprés calvo interior
|
||||
Inner Bald Cypress Stair=Escaleras de criprés calvo interior
|
||||
Outer Bald Cypress Stair=Escaleras de criprés calvo exterior
|
||||
Bald Cypress Slab=Losa de criprés calvo
|
||||
Bald Cypress Dry Branches=Ramas secas de ciprés calvo
|
||||
Bald Cypress Liana=Liana de ciprés calvo
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = baldcypress
|
||||
description = Blad Cypress for Swamps
|
||||
description = Bald Cypress for Swamps
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, swampz, doors, moreblocks
|
||||
|
BIN
cool_trees/baldcypress/textures/baldcypress_dry_branches.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
cool_trees/baldcypress/textures/baldcypress_liana.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -5,8 +5,6 @@
|
||||
-- Thanks to VanessaE, Tenplus1, paramat and all others who
|
||||
-- contribute to this mod
|
||||
|
||||
local modname = "bamboo"
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
@ -117,6 +115,7 @@ end
|
||||
--
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "bamboo:bamboo_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
@ -148,7 +147,8 @@ minetest.register_node("bamboo:trunk", {
|
||||
wield_image = "bamboo.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
@ -177,12 +177,10 @@ minetest.register_node("bamboo:wood", {
|
||||
minetest.register_node("bamboo:leaves", {
|
||||
description = S("Bamboo Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"bamboo_leaves.png"},
|
||||
inventory_image = "bamboo_leaves.png",
|
||||
wield_image = "bamboo_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
@ -250,9 +248,28 @@ if minetest.get_modpath("bonemeal") ~= nil then
|
||||
})
|
||||
end
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Bamboo Wood Fence"),
|
||||
texture = "bamboo_floor.png",
|
||||
material = "bamboo:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("bamboo:fence", table.copy(fence))
|
||||
fence.description = S("Bamboo Fence Rail")
|
||||
default.register_fence_rail("bamboo:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Bamboo Fence Gate")
|
||||
doors.register_fencegate("bamboo:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"bamboo_trunk",
|
||||
"bamboo:trunk",
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = bamboo
|
||||
description = Bamboo Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, moreblocks
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
--
|
||||
-- Birch Tree
|
||||
--
|
||||
@ -87,24 +86,42 @@ end
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
local place_on
|
||||
local biomes
|
||||
local offset
|
||||
local scale
|
||||
|
||||
if minetest.get_modpath("rainf") then
|
||||
place_on = "rainf:meadow"
|
||||
biomes = "rainf"
|
||||
offset = 0.01
|
||||
scale = 0.001
|
||||
else
|
||||
place_on = "default:dirt_with_grass"
|
||||
biomes = "grassland"
|
||||
offset = 0.008
|
||||
scale = 0.001
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "birch:birch_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
place_on = {place_on},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.008,
|
||||
scale = 0.001,
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 255, y = 255, z = 255},
|
||||
seed = 2,
|
||||
seed = 32,
|
||||
octaves = 3,
|
||||
persist = 0.67
|
||||
},
|
||||
biomes = {"grassland"},
|
||||
y_min = 10,
|
||||
biomes = {biomes},
|
||||
y_min = 1,
|
||||
y_max = 80,
|
||||
schematic = birch.birchtree,
|
||||
flags = "place_center_x, place_center_z",
|
||||
place_offset_y = 1,
|
||||
})
|
||||
|
||||
--
|
||||
@ -114,7 +131,6 @@ minetest.register_decoration({
|
||||
minetest.register_node("birch:sapling", {
|
||||
description = S("Birch Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"birch_sapling.png"},
|
||||
inventory_image = "birch_sapling.png",
|
||||
wield_image = "birch_sapling.png",
|
||||
@ -176,10 +192,7 @@ minetest.register_node("birch:wood", {
|
||||
minetest.register_node("birch:leaves", {
|
||||
description = S("Birch Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"birch_leaves.png"},
|
||||
inventory_image = "birch_leaves.png",
|
||||
wield_image = "birch_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -235,9 +248,28 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Birch Fence"),
|
||||
texture = "birch_wood.png",
|
||||
material = "birch:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("birch:fence", table.copy(fence))
|
||||
fence.description = S("Birch Fence Rail")
|
||||
default.register_fence_rail("birch:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Birch Fence Gate")
|
||||
doors.register_fencegate("birch:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"birch_trunk",
|
||||
"birch:trunk",
|
||||
@ -249,8 +281,35 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("birch", "wood", "birch:wood", {
|
||||
description = "Birch",
|
||||
tiles = {"birch_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"birch:sapling", grow_new_birch_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
--Door
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
doors.register("door_birch_wood", {
|
||||
tiles = {{ name = "birch_door_wood.png", backface_culling = true }},
|
||||
description = S("Birch Wood Door"),
|
||||
inventory_image = "birch_item_wood.png",
|
||||
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
recipe = {
|
||||
{"birch:wood", "birch:wood"},
|
||||
{"birch:wood", "birch:wood"},
|
||||
{"birch:wood", "birch:wood"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -7,4 +7,5 @@ Birch Tree Stair=Escaleras de abedul
|
||||
Birch Tree Slab=Losa de abedul
|
||||
Inner Birch Tree Stair=Escaleras de abedul interior
|
||||
Outer Birch Tree Stair=Escaleras de abedul exterior
|
||||
Birch Slab=Losa de abedul
|
||||
Birch Slab=Losa de abedul
|
||||
Birch Wood Door=Puerta de abedul
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = birch
|
||||
description = Birch Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks
|
||||
|
BIN
cool_trees/birch/textures/birch_door_wood.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
cool_trees/birch/textures/birch_item_wood.png
Normal file
After Width: | Height: | Size: 11 KiB |
@ -4,6 +4,7 @@
|
||||
local modname = "cherrytree"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
local fruit_grow_time = 1200
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
@ -31,8 +32,25 @@ minetest.register_node("cherrytree:cherries", {
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
minetest.set_node(pos, {name = "cherrytree:cherries", param2 = 1})
|
||||
end,
|
||||
})
|
||||
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger:is_player() then
|
||||
local inv = digger:get_inventory()
|
||||
if inv:room_for_item("main", "cherrytree:cherries") then
|
||||
inv:add_item("main", "cherrytree:cherries")
|
||||
end
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
pos.y = pos.y + 1
|
||||
local node_above = minetest.get_node_or_nil(pos)
|
||||
if node_above and node_above.param2 == 0 and node_above.name == "cherrytree:blossom_leaves" then
|
||||
--20% of variation on time
|
||||
local twenty_percent = fruit_grow_time * 0.2
|
||||
local grow_time = math.random(fruit_grow_time - twenty_percent, fruit_grow_time + twenty_percent)
|
||||
minetest.get_node_timer(pos):start(grow_time)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Cherrytree
|
||||
|
||||
@ -52,6 +70,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "cherrytree:cherry_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
@ -59,7 +78,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.00005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 1242,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -79,7 +98,6 @@ end
|
||||
minetest.register_node("cherrytree:sapling", {
|
||||
description = S("Cherrytree Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"cherrytree_sapling.png"},
|
||||
inventory_image = "cherrytree_sapling.png",
|
||||
wield_image = "cherrytree_sapling.png",
|
||||
@ -142,10 +160,7 @@ minetest.register_node("cherrytree:wood", {
|
||||
minetest.register_node("cherrytree:blossom_leaves", {
|
||||
description = S("Cherrytree Blossom Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"cherrytree_blossom_leaves.png"},
|
||||
inventory_image = "cherrytree_blossom_leaves.png",
|
||||
wield_image = "cherrytree_blossom_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -159,16 +174,24 @@ minetest.register_node("cherrytree:blossom_leaves", {
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
|
||||
on_timer = function(pos)
|
||||
pos.y = pos.y - 1
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if node and node.name == "air" then
|
||||
minetest.set_node(pos, {name = "cherrytree:cherries"})
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
-- cherrytree tree leaves
|
||||
minetest.register_node("cherrytree:leaves", {
|
||||
description = S("Cherrytree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"cherrytree_leaves.png"},
|
||||
inventory_image = "cherrytree_leaves.png",
|
||||
wield_image = "cherrytree_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -225,9 +248,34 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"cherrytree:trunk"},
|
||||
leaves = {"cherrytree:blossom_leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Cherry Tree Wood Fence"),
|
||||
texture = "cherrytree_wood.png",
|
||||
material = "cherrytree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("cherrytree:fence", table.copy(fence))
|
||||
fence.description = S("Cherry Tree Fence Rail")
|
||||
default.register_fence_rail("cherrytree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Cherry Tree Fence Gate")
|
||||
doors.register_fencegate("cherrytree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"cherrytree_trunk",
|
||||
"cherrytree:trunk",
|
||||
@ -239,25 +287,15 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
-- Chance to convert to normal leaves and cherry fruits
|
||||
minetest.register_abm({
|
||||
nodenames = {"cherrytree:blossom_leaves"},
|
||||
neighbors = {},
|
||||
interval = 600.0, -- Run every 10 minuts
|
||||
chance = 50, -- Select every 1 in 50 nodes
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
if node.param2 == 1 then -- ignore manually placed leaves
|
||||
return
|
||||
end
|
||||
math.randomseed(os.time())
|
||||
local is_fruit = math.random(10)
|
||||
if is_fruit == 10 then
|
||||
minetest.set_node(pos, {name = "cherrytree:cherries"})
|
||||
else
|
||||
minetest.set_node(pos, {name = "cherrytree:leaves"})
|
||||
end
|
||||
end
|
||||
})
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("cherrytree", "wood", "cherrytree:wood", {
|
||||
description = "Cherry Tree",
|
||||
tiles = {"cherrytree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
--Support for bonemeal
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = cherrytree
|
||||
description = Cherry Tree for Decidious Forest
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -30,14 +30,14 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:cherries", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -70,28 +70,28 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_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="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:cherries", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -112,28 +112,28 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -154,27 +154,27 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_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="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -196,9 +196,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=1},
|
||||
{name="cherrytree:blossom_leaves", prob=126, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
@ -38,7 +38,7 @@ minetest.register_node("chestnuttree:bur", {
|
||||
|
||||
minetest.register_craftitem("chestnuttree:fruit", {
|
||||
description = S("Chestnut"),
|
||||
inventory_image = "chestnuttree_fruit.png",
|
||||
inventory_image = "chestnuttree_fruit.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {flammable = 2, food = 2},
|
||||
})
|
||||
@ -67,19 +67,38 @@ end
|
||||
--
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
|
||||
local place_on
|
||||
local biomes
|
||||
local offset
|
||||
local scale
|
||||
|
||||
if minetest.get_modpath("rainf") then
|
||||
place_on = "rainf:meadow"
|
||||
biomes = "rainf"
|
||||
offset = 0.0008
|
||||
scale = 0.00004
|
||||
else
|
||||
place_on = "default:dirt_with_grass"
|
||||
biomes = "grassland"
|
||||
offset = 0.00005
|
||||
scale = 0.00004
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "chestnuttree:chestnut_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
place_on = {place_on},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.00005,
|
||||
scale = 0.00004,
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 278,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"grassland"},
|
||||
biomes = {biomes},
|
||||
y_min = 1,
|
||||
y_max = 80,
|
||||
schematic = modpath.."/schematics/chestnuttree.mts",
|
||||
@ -96,7 +115,6 @@ end
|
||||
minetest.register_node("chestnuttree:sapling", {
|
||||
description = S("Chestnut Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"chestnuttree_sapling.png"},
|
||||
inventory_image = "chestnuttree_sapling.png",
|
||||
wield_image = "chestnuttree_sapling.png",
|
||||
@ -156,10 +174,7 @@ minetest.register_node("chestnuttree:wood", {
|
||||
minetest.register_node("chestnuttree:leaves", {
|
||||
description = S("Chestnut Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"chestnuttree_leaves.png"},
|
||||
inventory_image = "chestnuttree_leaves.png",
|
||||
wield_image = "chestnuttree_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -215,6 +230,25 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Chestnut Tree Wood Fence"),
|
||||
texture = "chestnuttree_wood.png",
|
||||
material = "chestnuttree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("chestnuttree:fence", table.copy(fence))
|
||||
fence.description = S("Chestnut Tree Fence Rail")
|
||||
default.register_fence_rail("chestnuttree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Chestnut Tree Fence Gate")
|
||||
doors.register_fencegate("chestnuttree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
@ -229,8 +263,34 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("chestnuttree", "wood", "chestnuttree:wood", {
|
||||
description = "Chestnut Tree",
|
||||
tiles = {"chestnuttree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"chestnuttree:sapling", grow_new_chestnuttree_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
--Door
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
doors.register("door_chestnut_wood", {
|
||||
tiles = {{ name = "chesnuttree_door_wood.png", backface_culling = true }},
|
||||
description = S("Chestnut Wood Door"),
|
||||
inventory_image = "chestnuttree_item_wood.png",
|
||||
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
recipe = {
|
||||
{"chestnuttree:wood", "chestnuttree:wood"},
|
||||
{"chestnuttree:wood", "chestnuttree:wood"},
|
||||
{"chestnuttree:wood", "chestnuttree:wood"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
@ -8,4 +8,5 @@ Chestnut Tree Slab=Losa de castaño
|
||||
Chestnut Tree Stair=Escalera de castaño
|
||||
Chestnut Tree Sapling=Retoño de castaño
|
||||
Chestnut Tree Trunk=Madera de castaño
|
||||
Chestnut Tree Wood=Tablas de castaño
|
||||
Chestnut Tree Wood=Tablas de castaño
|
||||
Chestnut Wood Door=Puerta de castaño
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = chestnuttree
|
||||
description = Chesnut Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks
|
||||
|
BIN
cool_trees/chestnuttree/textures/chesnuttree_door_wood.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
cool_trees/chestnuttree/textures/chestnuttree_item_wood.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
@ -50,6 +50,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "clementinetree:clementine_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
@ -57,7 +58,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.00004,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 3456,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -77,7 +78,6 @@ end
|
||||
minetest.register_node("clementinetree:sapling", {
|
||||
description = S("Clementine Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"clementinetree_sapling.png"},
|
||||
inventory_image = "clementinetree_sapling.png",
|
||||
wield_image = "clementinetree_sapling.png",
|
||||
@ -137,10 +137,7 @@ minetest.register_node("clementinetree:wood", {
|
||||
minetest.register_node("clementinetree:leaves", {
|
||||
description = S("Clementine Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"clementinetree_leaves.png"},
|
||||
inventory_image = "clementinetree_leaves.png",
|
||||
wield_image = "clementinetree_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -196,6 +193,25 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Clementine Tree Wood Fence"),
|
||||
texture = "clementinetree_wood.png",
|
||||
material = "clementinetree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("clementinetree:fence", table.copy(fence))
|
||||
fence.description = S("Clementine Tree Fence Rail")
|
||||
default.register_fence_rail("clementinetree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Clementine Tree Fence Gate")
|
||||
doors.register_fencegate("clementinetree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
@ -210,8 +226,35 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("clementinetree", "wood", "clementinetree:wood", {
|
||||
description = "Clementine Tree",
|
||||
tiles = {"clementinetree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"clementinetree:sapling", grow_new_clementinetree_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
--Door
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
doors.register("door_clementinetree_wood", {
|
||||
tiles = {{ name = "clementinetree_door_wood.png", backface_culling = true }},
|
||||
description = S("Clementine Wood Door"),
|
||||
inventory_image = "clementinetree_item_wood.png",
|
||||
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
recipe = {
|
||||
{"clementinetree:wood", "clementinetree:wood"},
|
||||
{"clementinetree:wood", "clementinetree:wood"},
|
||||
{"clementinetree:wood", "clementinetree:wood"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
@ -7,4 +7,5 @@ Clementine Tree Slab=Losa de clementinero
|
||||
Clementine Tree Stair=Escalera de clementinero
|
||||
Clementine Tree Sapling=Retoño de clementinero
|
||||
Clementine Tree Trunk=Madera de clementinero
|
||||
Clementine Tree Wood=Tablas de clementinero
|
||||
Clementine Tree Wood=Tablas de clementinero
|
||||
Clementine Wood Door=Puerta de clementinero
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = clementinetree
|
||||
description = Clementine Tree for Decidious Forest
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -21,18 +21,18 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -50,20 +50,20 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -80,24 +80,24 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="clementinetree:trunk", prob=254, param2=20},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:trunk", prob=254, param2=20},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -110,20 +110,20 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -141,18 +141,18 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=1},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:leaves", prob=126, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=254, param2=1},
|
||||
{name="clementinetree:leaves", prob=126, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
BIN
cool_trees/clementinetree/textures/clementinetree_door_wood.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
cool_trees/clementinetree/textures/clementinetree_item_wood.png
Normal file
After Width: | Height: | Size: 10 KiB |
@ -27,6 +27,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "ebony:ebony_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
sidelen = 16,
|
||||
@ -34,7 +35,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.005,
|
||||
scale = 0.002,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 1007,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -45,6 +46,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
schematic = modpath.."/schematics/ebony.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
place_offset_y = -1,
|
||||
})
|
||||
end
|
||||
|
||||
@ -55,7 +57,6 @@ end
|
||||
minetest.register_node("ebony:sapling", {
|
||||
description = S("Ebony Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"ebony_sapling.png"},
|
||||
inventory_image = "ebony_sapling.png",
|
||||
wield_image = "ebony_sapling.png",
|
||||
@ -118,10 +119,7 @@ minetest.register_node("ebony:wood", {
|
||||
minetest.register_node("ebony:leaves", {
|
||||
description = S("Ebony Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"ebony_leaves.png"},
|
||||
inventory_image = "ebony_leaves.png",
|
||||
wield_image = "ebony_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -148,6 +146,7 @@ minetest.register_node("ebony:creeper", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_creeper.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "ebony_creeper.png",
|
||||
wield_image = "ebony_creeper.png",
|
||||
node_box = {
|
||||
@ -167,6 +166,7 @@ minetest.register_node("ebony:creeper_leaves", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_creeper_leaves.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "ebony_creeper_leaves.png",
|
||||
wield_image = "ebony_creeper_leaves.png",
|
||||
node_box = {
|
||||
@ -186,6 +186,7 @@ minetest.register_node("ebony:liana", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_liana.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "ebony_liana.png",
|
||||
wield_image = "ebony_liana.png",
|
||||
node_box = {
|
||||
@ -263,6 +264,25 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Ebony Wood Fence"),
|
||||
texture = "ebony_wood.png",
|
||||
material = "ebony:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("ebony:fence", table.copy(fence))
|
||||
fence.description = S("Ebony Fence Rail")
|
||||
default.register_fence_rail("ebony:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Ebony Fence Gate")
|
||||
doors.register_fencegate("ebony:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
@ -277,6 +297,16 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("ebony", "wood", "ebony:wood", {
|
||||
description = "Ebony",
|
||||
tiles = {"ebony_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"ebony:sapling", grow_new_ebony_tree, "soil"},
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = ebony
|
||||
description = Ebony Tree for Rainforest Biome
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -102,7 +102,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -112,9 +112,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -123,9 +123,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:persimmon", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -286,7 +286,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -297,11 +297,11 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -312,7 +312,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -333,7 +333,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -455,7 +455,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -466,7 +466,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -476,19 +476,19 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -496,10 +496,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -519,9 +519,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -531,7 +531,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -665,20 +665,20 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:persimmon", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -705,10 +705,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -718,7 +718,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -728,8 +728,8 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -852,35 +852,35 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:persimmon", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=0},
|
||||
@ -891,14 +891,14 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:persimmon", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -915,9 +915,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -927,7 +927,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1023,7 +1023,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
@ -1032,18 +1032,18 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:persimmon", prob=126, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=3},
|
||||
{name="ebony:creeper", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:creeper", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
@ -1053,17 +1053,17 @@ schematic = {
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:creeper", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1073,11 +1073,11 @@ schematic = {
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=3},
|
||||
{name="ebony:liana", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
@ -1085,17 +1085,17 @@ schematic = {
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:trunk", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:creeper", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1105,7 +1105,7 @@ schematic = {
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1113,9 +1113,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1125,7 +1125,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1207,7 +1207,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1218,7 +1218,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1227,26 +1227,26 @@ schematic = {
|
||||
{name="ebony:creeper_leaves", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:creeper_leaves", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1255,7 +1255,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1264,15 +1264,15 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1281,7 +1281,7 @@ schematic = {
|
||||
{name="ebony:liana", prob=254, param2=1},
|
||||
{name="ebony:creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1289,9 +1289,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=3},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1300,9 +1300,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1411,21 +1411,21 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1433,7 +1433,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1444,7 +1444,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1454,9 +1454,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1466,7 +1466,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1587,7 +1587,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1597,30 +1597,30 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony: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="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1633,7 +1633,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1641,10 +1641,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=2},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1653,7 +1653,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1795,9 +1795,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:trunk", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1807,7 +1807,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1829,7 +1829,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1962,7 +1962,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1973,7 +1973,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1982,9 +1982,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 3.6 KiB |
244
cool_trees/hollytree/init.lua
Normal file
@ -0,0 +1,244 @@
|
||||
--
|
||||
-- Hollytree
|
||||
--
|
||||
local modname = "hollytree"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
-- Hollytree
|
||||
|
||||
local function grow_new_hollytree_tree(pos)
|
||||
if not default.can_grow(pos) then
|
||||
-- try a bit later again
|
||||
minetest.get_node_timer(pos):start(math.random(240, 600))
|
||||
return
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
minetest.place_schematic({x = pos.x-4, y = pos.y, z = pos.z-4}, modpath.."/schematics/hollytree.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
|
||||
local place_on
|
||||
local biomes
|
||||
local offset
|
||||
local scale
|
||||
|
||||
if minetest.get_modpath("rainf") then
|
||||
place_on = "rainf:meadow"
|
||||
biomes = "rainf"
|
||||
offset = 0.0008
|
||||
scale = 0.00005
|
||||
else
|
||||
place_on = "default:dirt_with_grass"
|
||||
biomes = "grassland"
|
||||
offset = 0.00008
|
||||
scale = 0.00005
|
||||
end
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "hollytree:holly_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {place_on},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 789,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {biomes},
|
||||
y_min = 1,
|
||||
y_max = 32,
|
||||
schematic = modpath.."/schematics/hollytree.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("hollytree:sapling", {
|
||||
description = S("Holly Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"hollytree_sapling.png"},
|
||||
inventory_image = "hollytree_sapling.png",
|
||||
wield_image = "hollytree_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_hollytree_tree,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
|
||||
},
|
||||
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
|
||||
attached_node = 1, sapling = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(2400,4800))
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||
"hollytree:sapling",
|
||||
-- minp, maxp to be checked, relative to sapling pos
|
||||
-- minp_relative.y = 1 because sapling pos has been checked
|
||||
{x = -2, y = 1, z = -2},
|
||||
{x = 2, y = 6, z = 2},
|
||||
-- maximum interval of interior volume check
|
||||
4)
|
||||
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("hollytree:trunk", {
|
||||
description = S("Holly Tree Trunk"),
|
||||
tiles = {
|
||||
"hollytree_trunk_top.png",
|
||||
"hollytree_trunk_top.png",
|
||||
"hollytree_trunk.png"
|
||||
},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
-- hollytree wood
|
||||
minetest.register_node("hollytree:wood", {
|
||||
description = S("Holly Tree Wood"),
|
||||
tiles = {"hollytree_wood.png"},
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- hollytree tree leaves
|
||||
minetest.register_node("hollytree:leaves", {
|
||||
description = S("Holly Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"hollytree_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"hollytree:sapling"}, rarity = 20},
|
||||
{items = {"hollytree:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "hollytree:wood 4",
|
||||
recipe = {{"hollytree:trunk"}}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "hollytree:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "hollytree:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_lbm({
|
||||
name = "hollytree:convert_hollytree_saplings_to_node_timer",
|
||||
nodenames = {"hollytree:sapling"},
|
||||
action = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(1200, 2400))
|
||||
end
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"hollytree:trunk"},
|
||||
leaves = {"hollytree:leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Holly Tree Wood Fence"),
|
||||
texture = "hollytree_wood.png",
|
||||
material = "hollytree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("hollytree:fence", table.copy(fence))
|
||||
fence.description = S("Holly Tree Fence Rail")
|
||||
default.register_fence_rail("hollytree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Holly Tree Fence Gate")
|
||||
doors.register_fencegate("hollytree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"hollytree_trunk",
|
||||
"hollytree:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"hollytree_wood.png"},
|
||||
S("Holly Tree Stair"),
|
||||
S("Holly Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("hollytree", "wood", "hollytree:wood", {
|
||||
description = "Holly Tree",
|
||||
tiles = {"hollytree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
--Support for bonemeal
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"hollytree:sapling", grow_new_hollytree_tree, "soil"},
|
||||
})
|
||||
end
|
11
cool_trees/hollytree/locale/hollytree.es.tr
Normal file
@ -0,0 +1,11 @@
|
||||
# textdomain: hollytree
|
||||
Holly Tree Trunk=Madera de acebo
|
||||
Holly Tree Wood=Tablas de acebo
|
||||
Holly Tree Leaves=Hojas de acebo
|
||||
Holly Tree Wood=Tablas de acebo
|
||||
Holly Tree Sapling=Retoño de acebo
|
||||
Holly TreeTree Stair=Escaleras de acebo
|
||||
Holly TreeTree Slab=Losa de acebo
|
||||
Inner Holly Tree Tree Stair=Escaleras de acebo interior
|
||||
Outer Holly Tree Tree Stair=Escaleras de acebo exterior
|
||||
Holly Tree Slab=Losa de acebo
|
4
cool_trees/hollytree/mod.conf
Normal file
@ -0,0 +1,4 @@
|
||||
name = hollytree
|
||||
description = Hollytree
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks
|
1099
cool_trees/hollytree/schematics/hollytree.lua
Normal file
BIN
cool_trees/hollytree/schematics/hollytree.mts
Normal file
BIN
cool_trees/hollytree/textures/hollytree_leaves.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
cool_trees/hollytree/textures/hollytree_sapling.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
cool_trees/hollytree/textures/hollytree_trunk.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
cool_trees/hollytree/textures/hollytree_trunk_top.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
cool_trees/hollytree/textures/hollytree_wood.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
@ -26,6 +26,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "jacaranda:jacaranda_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
sidelen = 16,
|
||||
@ -33,7 +34,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.00005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 663,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -53,7 +54,6 @@ end
|
||||
minetest.register_node("jacaranda:sapling", {
|
||||
description = S("Jacaranda Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"jacaranda_sapling.png"},
|
||||
inventory_image = "jacaranda_sapling.png",
|
||||
wield_image = "jacaranda_sapling.png",
|
||||
@ -116,10 +116,7 @@ minetest.register_node("jacaranda:wood", {
|
||||
minetest.register_node("jacaranda:blossom_leaves", {
|
||||
description = S("Jacaranda Blossom Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"jacaranda_blossom_leaves.png"},
|
||||
inventory_image = "jacaranda_blossom_leaves.png",
|
||||
wield_image = "jacaranda_blossom_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -176,9 +173,28 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Jaceranda Tree Wood Fence"),
|
||||
texture = "jacaranda_wood.png",
|
||||
material = "jacaranda:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("jacaranda:fence", table.copy(fence))
|
||||
fence.description = S("Jaceranda Tree Fence Rail")
|
||||
default.register_fence_rail("jacaranda:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Jaceranda Tree Fence Gate")
|
||||
doors.register_fencegate("jacaranda:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"jacaranda_trunk",
|
||||
"jacaranda:trunk",
|
||||
@ -190,7 +206,17 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("jacaranda", "wood", "jacaranda:wood", {
|
||||
description = "Jacaranda Tree",
|
||||
tiles = {"jacaranda_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"jacaranda:sapling", grow_new_jacaranda_tree, "soil"},
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = jacaranda
|
||||
description = Jacaranda for jungles
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -33,16 +33,16 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -89,23 +89,23 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -145,30 +145,30 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -202,36 +202,36 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:trunk", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:trunk", prob=254, param2=3},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:trunk", prob=254, param2=3},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:trunk", prob=254, param2=3},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -256,32 +256,32 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_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="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -313,23 +313,23 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=128, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -377,9 +377,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=1},
|
||||
{name="jacaranda:blossom_leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
@ -26,6 +26,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "larch:larch_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_coniferous_litter"},
|
||||
sidelen = 16,
|
||||
@ -33,7 +34,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.0005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 542,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -54,7 +55,6 @@ end
|
||||
minetest.register_node("larch:sapling", {
|
||||
description = S("Larch Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"larch_sapling.png"},
|
||||
inventory_image = "larch_sapling.png",
|
||||
wield_image = "larch_sapling.png",
|
||||
@ -117,10 +117,7 @@ minetest.register_node("larch:wood", {
|
||||
minetest.register_node("larch:leaves", {
|
||||
description = S("Larch Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"larch_leaves.png"},
|
||||
inventory_image = "larch_leaves.png",
|
||||
wield_image = "larch_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -143,6 +140,7 @@ minetest.register_node("larch:moss", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"larch_moss.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "larch_moss.png",
|
||||
wield_image = "larch_moss.png",
|
||||
node_box = {
|
||||
@ -197,9 +195,28 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Larch Tree Wood Fence"),
|
||||
texture = "larch_wood.png",
|
||||
material = "larch:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("larch:fence", table.copy(fence))
|
||||
fence.description = S("Larch Tree Fence Rail")
|
||||
default.register_fence_rail("larch:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Larch Tree Fence Gate")
|
||||
doors.register_fencegate("larch:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"larch_trunk",
|
||||
"larch:trunk",
|
||||
@ -211,8 +228,35 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("larch", "wood", "larch:wood", {
|
||||
description = "larch Tree",
|
||||
tiles = {"larch_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"larch:sapling", grow_new_larch_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
--Door
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
doors.register("door_larch_wood", {
|
||||
tiles = {{ name = "larch_door_wood.png", backface_culling = true }},
|
||||
description = S("Larch Wood Door"),
|
||||
inventory_image = "larch_item_wood.png",
|
||||
groups = {node = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
recipe = {
|
||||
{"larch:wood", "larch:wood"},
|
||||
{"larch:wood", "larch:wood"},
|
||||
{"larch:wood", "larch:wood"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -2,4 +2,8 @@
|
||||
Larch Sapling=Retoño de alerce
|
||||
Larch Trunk=Madera de alerce
|
||||
Larch Wood=Tablas de alerce
|
||||
Larch Leaves=Hojas de alerce
|
||||
Larch Leaves=Hojas de alerce
|
||||
Larch Tree Outer Stair=Escalera exterior de alerce
|
||||
Larch Tree Slab=Losa de alerce
|
||||
Larch Stair=Escalera de alerce
|
||||
Larch Wood Door=Puerta de alerce
|
||||
|
@ -1,3 +1,4 @@
|
||||
name = larch
|
||||
description = Larch Tree
|
||||
optional_depends = stairs, bonemeal
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -58,19 +58,19 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -253,7 +253,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -265,13 +265,13 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -279,7 +279,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -298,11 +298,11 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -474,13 +474,13 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -488,7 +488,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -502,15 +502,15 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -530,10 +530,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -672,9 +672,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=7},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -686,9 +686,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -707,10 +707,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -740,9 +740,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -872,7 +872,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=7},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:moss", prob=254, param2=0},
|
||||
@ -885,7 +885,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=9},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -905,9 +905,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -916,9 +916,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -939,7 +939,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -960,9 +960,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1055,7 +1055,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1065,26 +1065,26 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=12},
|
||||
{name="larch:trunk", prob=254, param2=18},
|
||||
{name="larch:trunk", prob=254, param2=1},
|
||||
{name="larch:trunk", prob=254, param2=18},
|
||||
{name="larch:trunk", prob=254, param2=18},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=18},
|
||||
{name="larch:trunk", prob=254, param2=2},
|
||||
{name="larch:trunk", prob=254, param2=12},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1096,17 +1096,17 @@ schematic = {
|
||||
{name="larch:trunk", prob=254, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1114,31 +1114,31 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1158,9 +1158,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1170,7 +1170,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1181,7 +1181,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1192,7 +1192,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1252,7 +1252,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1267,10 +1267,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:moss", prob=254, param2=2},
|
||||
{name="larch:trunk", prob=254, param2=9},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1279,9 +1279,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:trunk", prob=254, param2=12},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1301,8 +1301,8 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1312,9 +1312,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1335,7 +1335,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1356,9 +1356,9 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1475,12 +1475,12 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1499,10 +1499,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1533,7 +1533,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1649,7 +1649,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1661,14 +1661,14 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1676,7 +1676,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1690,15 +1690,15 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1720,7 +1720,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1836,7 +1836,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1856,14 +1856,14 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1882,10 +1882,10 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -2038,19 +2038,19 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch: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="larch:leaves", prob=254, param2=1},
|
||||
{name="larch:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
BIN
cool_trees/larch/textures/larch_door_wood.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
cool_trees/larch/textures/larch_item_wood.png
Normal file
After Width: | Height: | Size: 11 KiB |
@ -5,6 +5,7 @@
|
||||
local modname = "lemontree"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
local fruit_grow_time = 1200
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
@ -32,6 +33,22 @@ minetest.register_node("lemontree:lemon", {
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
minetest.set_node(pos, {name = "lemontree:lemon", param2 = 1})
|
||||
end,
|
||||
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger:is_player() then
|
||||
local inv = digger:get_inventory()
|
||||
if inv:room_for_item("main", "lemontree:lemon") then
|
||||
inv:add_item("main", "lemontree:lemon")
|
||||
end
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
pos.y = pos.y + 1
|
||||
local node_above = minetest.get_node_or_nil(pos)
|
||||
if node_above and node_above.param2 == 0 and node_above.name == "lemontree:leaves" then
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
timer:start(fruit_grow_time)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- lemontree
|
||||
@ -52,6 +69,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "lemontree:lemon_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
@ -59,7 +77,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.0005,
|
||||
scale = 0.00005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 5690,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -79,7 +97,6 @@ end
|
||||
minetest.register_node("lemontree:sapling", {
|
||||
description = S("Lemon Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"lemontree_sapling.png"},
|
||||
inventory_image = "lemontree_sapling.png",
|
||||
wield_image = "lemontree_sapling.png",
|
||||
@ -141,10 +158,7 @@ minetest.register_node("lemontree:wood", {
|
||||
minetest.register_node("lemontree:leaves", {
|
||||
description = S("Lemon Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"lemontree_leaves.png"},
|
||||
inventory_image = "lemontree_leaves.png",
|
||||
wield_image = "lemontree_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -158,6 +172,17 @@ minetest.register_node("lemontree:leaves", {
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
|
||||
on_timer = function(pos)
|
||||
pos.y = pos.y - 1
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if node and node.name == "air" then
|
||||
minetest.set_node(pos, {name = "lemontree:lemon"})
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
--
|
||||
@ -199,9 +224,28 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Lemon Tree Wood Fence"),
|
||||
texture = "lemontree_wood.png",
|
||||
material = "lemontree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("lemontree:fence", table.copy(fence))
|
||||
fence.description = S("Lemon Tree Fence Rail")
|
||||
default.register_fence_rail("lemontree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Lemon Tree Fence Gate")
|
||||
doors.register_fencegate("lemontree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"lemontree_trunk",
|
||||
"lemontree:trunk",
|
||||
@ -213,7 +257,17 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("lemontree", "wood", "lemontree:wood", {
|
||||
description = "Lemon Tree",
|
||||
tiles = {"lemontree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"lemontree:sapling", grow_new_lemontree_tree, "soil"},
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = lemontree
|
||||
description = Lemon Tree for Decidious Forest
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks
|
||||
|
@ -25,20 +25,20 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:lemon", prob=64, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:lemon", prob=64, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -60,24 +60,24 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:trunk", prob=126, param2=20},
|
||||
{name="lemontree:lemon", prob=126, param2=1},
|
||||
{name="lemontree:lemon", prob=126, param2=0},
|
||||
{name="lemontree:trunk", prob=254, param2=9},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -95,25 +95,25 @@ schematic = {
|
||||
{name="lemontree:trunk", prob=254, param2=22, force_place=true},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:lemon", prob=126, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:lemon", prob=126, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:lemon", prob=126, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:lemon", prob=126, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -130,24 +130,24 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:trunk", prob=254, param2=9},
|
||||
{name="lemontree:lemon", prob=126, param2=1},
|
||||
{name="lemontree:lemon", prob=126, param2=0},
|
||||
{name="lemontree:trunk", prob=126, param2=23},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -165,19 +165,19 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=1},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="lemontree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|
@ -6,7 +6,6 @@ local modname = "mahogany"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
@ -28,6 +27,7 @@ end
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "mahogany:mahogany_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
sidelen = 16,
|
||||
@ -35,7 +35,7 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
offset = 0.005,
|
||||
scale = 0.005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 2,
|
||||
seed = 345,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
@ -56,7 +56,6 @@ end
|
||||
minetest.register_node("mahogany:sapling", {
|
||||
description = S("Mahogany Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles = {"mahogany_sapling.png"},
|
||||
inventory_image = "mahogany_sapling.png",
|
||||
wield_image = "mahogany_sapling.png",
|
||||
@ -119,10 +118,7 @@ minetest.register_node("mahogany:wood", {
|
||||
minetest.register_node("mahogany:leaves", {
|
||||
description = S("Mahogany Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.2,
|
||||
tiles = {"mahogany_leaves.png"},
|
||||
inventory_image = "mahogany_leaves.png",
|
||||
wield_image = "mahogany_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
@ -149,6 +145,7 @@ minetest.register_node("mahogany:creeper", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"mahogany_creeper.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "mahogany_creeper.png",
|
||||
wield_image = "mahogany_creeper.png",
|
||||
node_box = {
|
||||
@ -168,6 +165,7 @@ minetest.register_node("mahogany:flower_creeper", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"mahogany_flower_creeper.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "mahogany_flower_creeper.png",
|
||||
wield_image = "mahogany_flower_creeper.png",
|
||||
node_box = {
|
||||
@ -187,6 +185,7 @@ minetest.register_node("mahogany:hanging_creeper", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"mahogany_hanging_creeper.png"},
|
||||
use_texture_alpha = true,
|
||||
inventory_image = "mahogany_hanging_creeper.png",
|
||||
wield_image = "mahogany_hanging_creeper.png",
|
||||
node_box = {
|
||||
@ -239,9 +238,28 @@ default.register_leafdecay({
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Mahogany Wood Fence"),
|
||||
texture = "mahogany_wood.png",
|
||||
material = "mahogany:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("mahogany:fence", table.copy(fence))
|
||||
fence.description = S("Mahogany Fence Rail")
|
||||
default.register_fence_rail("mahogany:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Mahogany Fence Gate")
|
||||
doors.register_fencegate("mahogany:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"mahogany_trunk",
|
||||
"mahogany:trunk",
|
||||
@ -253,9 +271,19 @@ if minetest.get_modpath("stairs") ~= nil then
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("mahogany", "wood", "mahogany:wood", {
|
||||
description = "Mahogany",
|
||||
tiles = {"mahogany_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
--Support for bonemeal
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"mahogany:sapling", grow_new_mahogany_tree, "soil"},
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
name = mahogany
|
||||
description = Mahogany Tree for Rainforest Biome
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks
|
||||
|
@ -63,11 +63,11 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -92,9 +92,9 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -181,13 +181,13 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -197,8 +197,8 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -211,15 +211,15 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -301,11 +301,11 @@ local schematic = {
|
||||
{name="mahogany:hanging_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:creeper", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -316,58 +316,58 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:creeper", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:flower_creeper", 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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:hanging_creeper", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -435,12 +435,12 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:hanging_creeper", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=2},
|
||||
{name="mahogany:trunk", prob=254, param2=1},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
@ -448,8 +448,8 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -460,19 +460,19 @@ local schematic = {
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -483,16 +483,16 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=1},
|
||||
{name="mahogany:trunk", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -539,11 +539,11 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:creeper", prob=254, param2=2},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -554,43 +554,43 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany: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="mahogany:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=2},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -602,9 +602,9 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -657,13 +657,13 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:hanging_creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -673,9 +673,9 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -701,15 +701,15 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:trunk", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany: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="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -722,7 +722,7 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -777,11 +777,11 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:flower_creeper", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -820,9 +820,9 @@ local schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="mahogany:leaves", prob=126, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=254, param2=1},
|
||||
{name="mahogany:leaves", prob=126, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="mahogany:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
|