update runz modz to sumobulez
3
.gitmodules
vendored
@ -271,3 +271,6 @@
|
||||
[submodule "mods/invsaw"]
|
||||
path = mods/invsaw
|
||||
url = https://cheapiesystems.com/git/invsaw
|
||||
[submodule "mods/cool_trees"]
|
||||
path = mods/cool_trees
|
||||
url = https://github.com/runsy/cool_trees/
|
||||
|
@ -1,263 +0,0 @@
|
||||
--
|
||||
-- Bald Cypress
|
||||
--
|
||||
local modname = "baldcypress"
|
||||
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())
|
||||
|
||||
-- Bald Cypress
|
||||
|
||||
local function grow_new_baldcypress_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/baldcypress.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
minetest.register_decoration({
|
||||
name = "baldcypress:baldcypress_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:sand"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.0005,
|
||||
scale = 0.0005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 678,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"coniferous_forest_ocean"},
|
||||
height = 2,
|
||||
y_min = 0,
|
||||
y_max = 0,
|
||||
schematic = modpath.."/schematics/baldcypress.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("baldcypress:sapling", {
|
||||
description = S("Bald Cypress Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"baldcypress_sapling.png"},
|
||||
inventory_image = "baldcypress_sapling.png",
|
||||
wield_image = "baldcypress_sapling.png",
|
||||
paramtype = "light",
|
||||
--sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_baldcypress_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,
|
||||
"baldcypress: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("baldcypress:trunk", {
|
||||
description = S("Bald Cypress Trunk"),
|
||||
tiles = {
|
||||
"baldcypress_trunk_top.png",
|
||||
"baldcypress_trunk_top.png",
|
||||
"baldcypress_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,
|
||||
})
|
||||
|
||||
-- baldcypress wood
|
||||
minetest.register_node("baldcypress:wood", {
|
||||
description = S("Bald Cypress Wood"),
|
||||
tiles = {"baldcypress_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(),
|
||||
})
|
||||
|
||||
-- baldcypress tree leaves
|
||||
minetest.register_node("baldcypress:leaves", {
|
||||
description = S("Bald Cypress Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"baldcypress_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"baldcypress:sapling"}, rarity = 20},
|
||||
{items = {"baldcypress:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
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"},
|
||||
inventory_image = "baldcypress_dry_branches.png",
|
||||
wield_image = "baldcypress_dry_branches.png",
|
||||
use_texture_alpha = "clip",
|
||||
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"},
|
||||
inventory_image = "baldcypress_liana.png",
|
||||
wield_image = "baldcypress_liana.png",
|
||||
use_texture_alpha = "clip",
|
||||
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
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "baldcypress:wood 4",
|
||||
recipe = {{"baldcypress:trunk"}}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "baldcypress:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "baldcypress:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"baldcypress:trunk"},
|
||||
leaves = {"baldcypress:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"baldcypress_trunk",
|
||||
"baldcypress:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"baldcypress_wood.png"},
|
||||
S("Bald Cypress Stair"),
|
||||
S("Bald Cypress Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
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
|
||||
bonemeal:add_sapling({
|
||||
{"baldcypress:sapling", grow_new_baldcypress_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("baldcypress:sapling")
|
||||
end
|
@ -1,12 +0,0 @@
|
||||
# textdomain: baldcypress
|
||||
Bald Cypress Trunk=Madera de criprés calvo
|
||||
Bald Cypress Wood=Tablas de criprés calvo
|
||||
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 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 +0,0 @@
|
||||
name = baldcypress
|
||||
description = Bald Cypress for Swamps
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, swampz, doors, moreblocks, flowerpot
|
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.8 KiB |
@ -1,289 +0,0 @@
|
||||
--
|
||||
-- Bamboo
|
||||
--
|
||||
|
||||
-- Thanks to VanessaE, Tenplus1, paramat and all others who
|
||||
-- contribute to this mod
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
bamboo = {}
|
||||
|
||||
-- bamboo stalk with leaves
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local bt = {name = "bamboo:trunk", param1 = 255}
|
||||
local bf = {name = "bamboo:trunk", param1 = 255, force_place = true}
|
||||
local fd = {name = "default:dirt", param1 = 255, force_place = true}
|
||||
local lp = {name = "bamboo:leaves", param1 = 255}
|
||||
local lr = {name = "bamboo:leaves", param1 = 100}
|
||||
|
||||
bamboo.bambootree = {
|
||||
|
||||
size = {x = 3, y = 18, z = 3},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
lr, lr, lr,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, ai, ai,
|
||||
|
||||
ai, fd, ai,
|
||||
ai, bf, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
ai, bt, ai,
|
||||
lr, bt, lr,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, lr, ai,
|
||||
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
ai, ai, ai,
|
||||
lr, lr, lr,
|
||||
lr, lp, lr,
|
||||
ai, lp, ai,
|
||||
ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 3, prob = 127},
|
||||
{ypos = 4, prob = 127},
|
||||
{ypos = 5, prob = 127},
|
||||
{ypos = 6, prob = 127},
|
||||
{ypos = 7, prob = 127},
|
||||
{ypos = 8, prob = 127},
|
||||
{ypos = 9, prob = 127},
|
||||
{ypos = 10, prob = 127},
|
||||
{ypos = 11, prob = 127},
|
||||
{ypos = 12, prob = 127},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
local function grow_new_bambootree_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 - 1, y = pos.y - 1, z = pos.z - 1},
|
||||
bamboo.bambootree, "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "bamboo:bamboo_tree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.005,
|
||||
scale = 0.001,
|
||||
spread = {x = 240, y = 240, z = 240},
|
||||
seed = 2776,
|
||||
octaves = 3,
|
||||
persist = 0.65
|
||||
},
|
||||
biomes = {"grassland"},
|
||||
y_min = 2,
|
||||
y_max = 20,
|
||||
schematic = bamboo.bambootree,
|
||||
flags = "place_center_x, place_center_z",
|
||||
})
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
-- Bamboo (thanks to Nelo-slay on DeviantArt for the free Bamboo base image)
|
||||
minetest.register_node("bamboo:trunk", {
|
||||
description = S("Bamboo"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"bamboo.png"},
|
||||
inventory_image = "bamboo.png",
|
||||
wield_image = "bamboo.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
|
||||
},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 1, flammable = 2, tree = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
-- bamboo wood
|
||||
minetest.register_node("bamboo:wood", {
|
||||
description = S("Bamboo Wood"),
|
||||
tiles = {"bamboo_floor.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(),
|
||||
})
|
||||
|
||||
-- bamboo stalk leaves
|
||||
minetest.register_node("bamboo:leaves", {
|
||||
description = S("Bamboo Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"bamboo_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"bamboo:sprout"}, rarity = 10},
|
||||
{items = {"bamboo:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
|
||||
-- Bamboo Sprout
|
||||
minetest.register_node("bamboo:sprout", {
|
||||
description = S("Bamboo Sprout"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"bamboo_sprout.png"},
|
||||
inventory_image = "bamboo_sprout.png",
|
||||
wield_image = "bamboo_sprout.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = {
|
||||
snappy = 3, attached_node = 1, flammable = 2,
|
||||
dig_immediate = 3, ethereal_sapling = 1
|
||||
},
|
||||
sounds = default.node_sound_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 0, 4 / 16}
|
||||
},
|
||||
on_use = minetest.item_eat(2),
|
||||
grown_height = 11,
|
||||
on_timer = grow_new_bambootree_tree,
|
||||
on_construct = function(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(2400,4800))
|
||||
end,
|
||||
})
|
||||
|
||||
-- crafts
|
||||
minetest.register_craft({
|
||||
output = "bamboo:wood 4",
|
||||
recipe = {{"bamboo:trunk"}}
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"bamboo:trunk"},
|
||||
leaves = {"bamboo:leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"bamboo:sprout", grow_new_bambootree_tree, "soil"},
|
||||
})
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"bamboo_trunk",
|
||||
"bamboo:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"bamboo_floor.png"},
|
||||
S("Bamboo Stair"),
|
||||
S("Bamboo Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("bamboo", "wood", "bamboo:wood", {
|
||||
description = "Bamboo",
|
||||
tiles = {"bamboo_floor.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("bamboo:sprout")
|
||||
end
|
@ -1,7 +0,0 @@
|
||||
# textdomain: bamboo
|
||||
Bamboo=Bambú
|
||||
Bamboo Leaves=Hojas de bambú
|
||||
Bamboo Sprout=Brote de bambú
|
||||
Bamboo Wood=Tablas de bambú
|
||||
Bamboo Stair=Escaleras de bambú
|
||||
Bamboo Slab=Losa de bambú
|
@ -1,4 +0,0 @@
|
||||
name = bamboo
|
||||
description = Bamboo Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks, flowerpot
|
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 908 B |
@ -1,311 +0,0 @@
|
||||
--
|
||||
-- Birch Tree
|
||||
--
|
||||
|
||||
local modname = "birch"
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
-- internationalization boilerplate
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
birch = {}
|
||||
|
||||
|
||||
-- birch tree
|
||||
|
||||
local ai = {name = "air", param1 = 000}
|
||||
local tr = {name = "birch:trunk", param1 = 255, force_place = true}
|
||||
local lp = {name = "birch:leaves", param1 = 255}
|
||||
local lr = {name = "birch:leaves", param1 = 255}
|
||||
|
||||
birch.birchtree = {
|
||||
|
||||
size = {x = 5, y = 7, z = 5},
|
||||
|
||||
data = {
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lr, lp, lp, lp, lr,
|
||||
lr, lp, lp, lp, lr,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lp, lp, lp, lp, lp,
|
||||
lp, lp, lp, lp, lp,
|
||||
ai, lr, lp, lr, ai,
|
||||
ai, ai, lp, ai, ai,
|
||||
|
||||
ai, ai, tr, ai, ai,
|
||||
ai, ai, tr, ai, ai,
|
||||
ai, ai, tr, ai, ai,
|
||||
lp, lp, tr, lp, lp,
|
||||
lp, lp, tr, lp, lp,
|
||||
ai, lp, tr, lp, ai,
|
||||
ai, lp, lp, lp, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lp, lp, lp, lp, lp,
|
||||
lp, lp, lp, lp, lp,
|
||||
ai, lr, lp, lr, ai,
|
||||
ai, ai, lp, ai, ai,
|
||||
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
lr, lp, lp, lp, lr,
|
||||
lr, lp, lp, lp, lr,
|
||||
ai, ai, ai, ai, ai,
|
||||
ai, ai, ai, ai, ai,
|
||||
|
||||
},
|
||||
|
||||
yslice_prob = {
|
||||
{ypos = 1, prob = 127}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
local function grow_new_birch_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 - 2, y = pos.y - 1, z = pos.z - 2}, birch.birchtree, "0", nil, false)
|
||||
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 = {place_on},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 255, y = 255, z = 255},
|
||||
seed = 32,
|
||||
octaves = 3,
|
||||
persist = 0.67
|
||||
},
|
||||
biomes = {biomes},
|
||||
y_min = 1,
|
||||
y_max = 80,
|
||||
schematic = birch.birchtree,
|
||||
flags = "place_center_x, place_center_z",
|
||||
place_offset_y = 1,
|
||||
})
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("birch:sapling", {
|
||||
description = S("Birch Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"birch_sapling.png"},
|
||||
inventory_image = "birch_sapling.png",
|
||||
wield_image = "birch_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_birch_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,
|
||||
"birch: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,
|
||||
})
|
||||
|
||||
-- birch trunk
|
||||
minetest.register_node("birch:trunk", {
|
||||
description = S("Birch Trunk"),
|
||||
tiles = {
|
||||
"birch_trunk_top.png",
|
||||
"birch_trunk_top.png",
|
||||
"birch_trunk.png"
|
||||
},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
-- birch wood
|
||||
minetest.register_node("birch:wood", {
|
||||
description = S("Birch Wood"),
|
||||
tiles = {"birch_wood.png"},
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- birch tree leaves
|
||||
minetest.register_node("birch:leaves", {
|
||||
description = S("Birch Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"birch_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"birch:sapling"}, rarity = 20},
|
||||
{items = {"birch:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "birch:wood 4",
|
||||
recipe = {{"birch:trunk"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "birch:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "birch:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"birch:trunk"},
|
||||
leaves = {"birch:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"birch_trunk",
|
||||
"birch:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"birch_wood.png"},
|
||||
S("Birch Tree Stair"),
|
||||
S("Birch Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- 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
|
||||
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("birch:sapling")
|
||||
end
|
@ -1,11 +0,0 @@
|
||||
# textdomain: birch
|
||||
Birch Sapling=Retoño de abedul
|
||||
Birch Trunk=Madera de abedul
|
||||
Birch Wood=Tablas de abedul
|
||||
Birch Leaves=Hojas de abedul
|
||||
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 Wood Door=Puerta de abedul
|
@ -1,4 +0,0 @@
|
||||
name = birch
|
||||
description = Birch Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks, flowerpot
|
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 649 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.8 KiB |
@ -1,540 +0,0 @@
|
||||
schematic = {
|
||||
size = {x=5, y=7, z=5},
|
||||
yslice_prob = {
|
||||
{ypos=0, prob=254},
|
||||
{ypos=1, prob=254},
|
||||
{ypos=2, prob=254},
|
||||
{ypos=3, prob=254},
|
||||
{ypos=4, prob=254},
|
||||
{ypos=5, prob=254},
|
||||
{ypos=6, prob=254},
|
||||
},
|
||||
data = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", 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="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", 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="cacaotree:flower_creeper", 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="cacaotree:flower_creeper", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=4},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:trunk", 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="cacaotree:trunk", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=2},
|
||||
{name="cacaotree:trunk", prob=254, param2=2},
|
||||
{name="cacaotree:pod", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=1},
|
||||
{name="cacaotree:trunk", prob=254, param2=1},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=5},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree: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="cacaotree: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},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Cacao Tree
|
||||
--
|
||||
|
||||
local modname = "cacaotree"
|
||||
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())
|
||||
|
||||
local grow_time_min = 2400
|
||||
local grow_time_max = 4800
|
||||
local retry_grow_time_min = 240
|
||||
local retry_grow_time_max = 600
|
||||
|
||||
--Pod
|
||||
|
||||
minetest.register_node("cacaotree:pod", {
|
||||
description = S("Cacao Pod"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"cacaotree_bean_top.png",
|
||||
"cacaotree_bean_top.png^[transformFY",
|
||||
"cacaotree_bean_right.png",
|
||||
"cacaotree_bean_right.png^[transformFX",
|
||||
"cacaotree_bean_front.png",
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.5, 0, 0.25, 0.0625, 0.5},
|
||||
},
|
||||
},
|
||||
use_texture_alpha = "clip",
|
||||
drop = "cacaotree:cacao_beans 10",
|
||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
--Cacao Beans
|
||||
|
||||
minetest.register_craftitem("cacaotree:cacao_beans", {
|
||||
description = S("Cacao Beans"),
|
||||
inventory_image = "cacaotree_cacao_beans.png"
|
||||
})
|
||||
|
||||
--Cocoa Powder
|
||||
|
||||
minetest.register_craftitem("cacaotree:cocoa_powder", {
|
||||
description = S("Cocoa Powder"),
|
||||
inventory_image = "cacaotree_cocoa_powder.png"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "cacaotree:cocoa_powder",
|
||||
recipe = "cacaotree:cacao_beans",
|
||||
cooktime = 2,
|
||||
})
|
||||
|
||||
--Chocolate
|
||||
|
||||
minetest.register_craftitem("cacaotree:milk_chocolate", {
|
||||
description = S("Milk Chocolate"),
|
||||
inventory_image = "cacaotree_milk_choco.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {flammable = 2, food = 2, food_chocolate = 1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "cacaotree:milk_chocolate 6",
|
||||
recipe = {"cacaotree:cocoa_powder", "group:milk_bucket"},
|
||||
replacements = {{"group:milk_bucket", "bucket:bucket_empty"}},
|
||||
})
|
||||
|
||||
--Chocolate Cake
|
||||
|
||||
minetest.register_craftitem("cacaotree:choco_cake", {
|
||||
description = S("Choco Cake"),
|
||||
inventory_image = "cacaotree_choco_cake.png",
|
||||
on_use = minetest.item_eat(7),
|
||||
groups = {flammable = 2, food = 2, food_chocolate = 1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "cacaotree:choco_cake",
|
||||
recipe = {"cacaotree:cocoa_powder", "group:food_egg", "farming:wheat"},
|
||||
})
|
||||
|
||||
--Cacao Grow Function
|
||||
|
||||
local function grow_new_cacao_tree(pos)
|
||||
if not default.can_grow(pos) then
|
||||
-- try a bit later again
|
||||
minetest.get_node_timer(pos):start(math.random(retry_grow_time_min, retry_grow_time_max))
|
||||
return
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
minetest.place_schematic({x = pos.x-2, y = pos.y, z = pos.z-2}, modpath.."/schematics/cacaotree.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||
|
||||
minetest.register_decoration({
|
||||
name = "cacao:cacaotree",
|
||||
deco_type = "schematic",
|
||||
place_on = {"default:dirt_with_rainforest_litter"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.001,
|
||||
scale = 0.001,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 6431,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"rainforest"},
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
schematic = modpath.."/schematics/cacaotree.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
place_offset_y = 1,
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("cacaotree:sapling", {
|
||||
description = S("Cacao Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"cacaotree_sapling.png"},
|
||||
inventory_image = "cacaotree_sapling.png",
|
||||
wield_image = "cacaotree_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_cacao_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(grow_time_min, grow_time_max))
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
itemstack = default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||
"cacaotree: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("cacaotree:trunk", {
|
||||
description = S("Cacao Tree Trunk"),
|
||||
tiles = {
|
||||
"cacaotree_trunk_top.png",
|
||||
"cacaotree_trunk_top.png",
|
||||
"cacaotree_trunk.png"
|
||||
},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
-- cacao wood
|
||||
minetest.register_node("cacaotree:wood", {
|
||||
description = S("Cacao Tree Wood"),
|
||||
tiles = {"cacaotree_wood.png"},
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- cacao tree leaves
|
||||
minetest.register_node("cacaotree:leaves", {
|
||||
description = S("Cacao Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"cacaotree_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"cacaotree:sapling"}, rarity = 20},
|
||||
{items = {"cacaotree:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--Liana
|
||||
|
||||
minetest.register_node("cacaotree:liana", {
|
||||
description = S("Cacao Tree Liana"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"cacaotree_liana.png"},
|
||||
inventory_image = "cacaotree_liana.png",
|
||||
wield_image = "cacaotree_liana.png",
|
||||
use_texture_alpha = "clip",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 0.0, 0.5, 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(),
|
||||
})
|
||||
|
||||
minetest.register_node("cacaotree:flower_creeper", {
|
||||
description = S("Cacaotree Flower Creeper"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"cacaotree_flower_creeper.png"},
|
||||
inventory_image = "cacaotree_flower_creeper.png",
|
||||
wield_image = "cacaotree_flower_creeper.png",
|
||||
use_texture_alpha = "clip",
|
||||
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(),
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "cacaotree:wood 4",
|
||||
recipe = {{"cacaotree:trunk"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "cacaotree:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "cacaotree:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"cacaotree:trunk"},
|
||||
leaves = {"cacaotree:leaves"},
|
||||
radius = 3,
|
||||
})
|
||||
|
||||
-- Fence
|
||||
if minetest.settings:get_bool("cool_fences", true) then
|
||||
local fence = {
|
||||
description = S("Cacao Tree Wood Fence"),
|
||||
texture = "cacaotree_wood.png",
|
||||
material = "cacaotree:wood",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
}
|
||||
default.register_fence("cacaotree:fence", table.copy(fence))
|
||||
fence.description = S("Cacao Tree Fence Rail")
|
||||
default.register_fence_rail("cacaotree:fence_rail", table.copy(fence))
|
||||
|
||||
if minetest.get_modpath("doors") ~= nil then
|
||||
fence.description = S("Cacao Tree Fence Gate")
|
||||
doors.register_fencegate("cacaotree:gate", table.copy(fence))
|
||||
end
|
||||
end
|
||||
|
||||
--Stairs
|
||||
|
||||
if minetest.get_modpath("stairs") ~= nil then
|
||||
stairs.register_stair_and_slab(
|
||||
"cacaotree_trunk",
|
||||
"cacaotree:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"cacaotree_wood.png"},
|
||||
S("Cacao Tree Stair"),
|
||||
S("Cacao Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- stairsplus/moreblocks
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("cacaotree", "wood", "cacaotree:wood", {
|
||||
description = "Cacao Tree",
|
||||
tiles = {"cacaotree_wood.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
-- Bonemeal
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"cacaotree:sapling", grow_new_cacao_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("cacaotree:sapling")
|
||||
end
|
@ -1,20 +0,0 @@
|
||||
# textdomain: cacaotree
|
||||
Cacao Tree Sapling=Retoño de árbol de cacao
|
||||
Cacao Tree Trunk=Madera de árbol de cacao
|
||||
Cacao Tree Wood=Tablas de árbol de cacao
|
||||
Cacao Tree Liana=Liana de árbol de cacao
|
||||
Cacaotree Flower Creeper=Enredadera de árbol de cacao
|
||||
Cacao Tree Inner Stair=Escalera interior de árbol de cacao
|
||||
Cacao Tree Leaves=Hojas de árbol de cacao
|
||||
Cacao Tree Outer Stair=Escalera exterior de árbol de cacao
|
||||
Cacao Tree Slab=Losa de árbol de cacao
|
||||
Cacao Tree Stair=Escalera de árbol de cacao
|
||||
Cacao Tree Wood Fence=Cerca de madera de cacao
|
||||
Cacao Tree Fence Gate=Puerta de cerca de madera de cacao
|
||||
Cacao Tree Fence Rail=Listones de madera de cacao para cerca
|
||||
Cacao Pod=Vaina de cacao
|
||||
Cacao Beans=Granos de cacao
|
||||
Cocoa Powder=Cacao en polvo
|
||||
Milk Chocolate=Chocolate con leche
|
||||
Choco Cake=Tarta de chocolate
|
||||
Cacao Tree Wood Door=Puerta de madera de cacao
|
@ -1,4 +0,0 @@
|
||||
name = cacaotree
|
||||
description = Cacao Tree
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks, flowerpot
|
@ -1,189 +0,0 @@
|
||||
schematic = {
|
||||
size = {x=5, y=7, z=5},
|
||||
yslice_prob = {
|
||||
{ypos=0, prob=254},
|
||||
{ypos=1, prob=254},
|
||||
{ypos=2, prob=254},
|
||||
{ypos=3, prob=254},
|
||||
{ypos=4, prob=254},
|
||||
{ypos=5, prob=254},
|
||||
{ypos=6, prob=254},
|
||||
},
|
||||
data = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", 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="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", 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="cacaotree:flower_creeper", 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="cacaotree:flower_creeper", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=4},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:trunk", 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="cacaotree:trunk", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=2},
|
||||
{name="cacaotree:trunk", prob=254, param2=2},
|
||||
{name="cacaotree:pod", prob=254, param2=3},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=1},
|
||||
{name="cacaotree:trunk", prob=254, param2=1},
|
||||
{name="cacaotree:liana", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:pod", prob=254, param2=5},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:flower_creeper", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:liana", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree:leaves", prob=254, param2=0},
|
||||
{name="cacaotree: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="cacaotree: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},
|
||||
},
|
||||
}
|
Before Width: | Height: | Size: 950 B |
Before Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 882 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 981 B |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 4.4 KiB |
@ -1,302 +0,0 @@
|
||||
--
|
||||
-- Cherrytree
|
||||
--
|
||||
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())
|
||||
|
||||
-- Cherry Fruit
|
||||
|
||||
minetest.register_node("cherrytree:cherries", {
|
||||
description = S("Cherries"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"cherrytree_cherries.png"},
|
||||
inventory_image = "cherrytree_cherries.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
||||
},
|
||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
on_use = minetest.item_eat(2),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
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
|
||||
|
||||
local function grow_new_cherrytree_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-2, y = pos.y, z = pos.z-2}, modpath.."/schematics/cherrytree.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
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,
|
||||
noise_params = {
|
||||
offset = 0.0005,
|
||||
scale = 0.00005,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 1242,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"deciduous_forest"},
|
||||
y_min = 1,
|
||||
y_max = 32,
|
||||
schematic = modpath.."/schematics/cherrytree.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("cherrytree:sapling", {
|
||||
description = S("Cherrytree Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"cherrytree_sapling.png"},
|
||||
inventory_image = "cherrytree_sapling.png",
|
||||
wield_image = "cherrytree_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_cherrytree_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,
|
||||
"cherrytree: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("cherrytree:trunk", {
|
||||
description = S("Cherrytree Trunk"),
|
||||
tiles = {
|
||||
"cherrytree_trunk_top.png",
|
||||
"cherrytree_trunk_top.png",
|
||||
"cherrytree_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,
|
||||
})
|
||||
|
||||
-- cherrytree wood
|
||||
minetest.register_node("cherrytree:wood", {
|
||||
description = S("Cherrytree Wood"),
|
||||
tiles = {"cherrytree_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(),
|
||||
})
|
||||
|
||||
-- cherrytree tree leaves
|
||||
minetest.register_node("cherrytree:blossom_leaves", {
|
||||
description = S("Cherrytree Blossom Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"cherrytree_blossom_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"cherrytree:sapling"}, rarity = 20},
|
||||
{items = {"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",
|
||||
tiles = {"cherrytree_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"cherrytree:sapling"}, rarity = 20},
|
||||
{items = {"cherrytree:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "cherrytree:wood 4",
|
||||
recipe = {{"cherrytree:trunk"}}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "cherrytree:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "cherrytree:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"cherrytree:trunk"},
|
||||
leaves = {"cherrytree:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"cherrytree_trunk",
|
||||
"cherrytree:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"cherrytree_wood.png"},
|
||||
S("Cherry Tree Stair"),
|
||||
S("Cherry Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
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
|
||||
|
||||
if minetest.get_modpath("bonemeal") ~= nil then
|
||||
bonemeal:add_sapling({
|
||||
{"cherrytree:sapling", grow_new_cherrytree_tree, "soil"},
|
||||
})
|
||||
end
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("cherrytree:sapling")
|
||||
end
|
@ -1,12 +0,0 @@
|
||||
# textdomain: cherrytree
|
||||
Cherries=Cerezas
|
||||
Cherrytree Trunk=Madera de cerezo
|
||||
Cherrytree Wood=Tablas de cerezo
|
||||
Cherrytree Leaves=Hojas de cerezo
|
||||
Cherrytree Blossom Leaves=Flores de cerezo
|
||||
Cherrytree Tree Sapling=Retoño de cerezo
|
||||
Cherry Tree Stair=Escaleras de cerezo
|
||||
Cherry Tree Slab=Losa de cerezo
|
||||
Inner Cherrytree Stair=Escaleras de cerezo interior
|
||||
Outer Cherrytree Stair=Escaleras de cerezo exterior
|
||||
Cherrytree Slab=Losa de cerezo
|
@ -1,4 +0,0 @@
|
||||
name = cherrytree
|
||||
description = Cherry Tree for Decidious Forest
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks, flowerpot
|
@ -1,224 +0,0 @@
|
||||
schematic = {
|
||||
size = {x=6, y=7, z=5},
|
||||
yslice_prob = {
|
||||
{ypos=0, prob=254},
|
||||
{ypos=1, prob=254},
|
||||
{ypos=2, prob=254},
|
||||
{ypos=3, prob=254},
|
||||
{ypos=4, prob=254},
|
||||
{ypos=5, prob=254},
|
||||
{ypos=6, prob=254},
|
||||
},
|
||||
data = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="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=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="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=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=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=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:cherries", 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="cherrytree:trunk", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=2},
|
||||
{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=0},
|
||||
{name="cherrytree:blossom_leaves", prob=254, param2=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{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=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{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=0},
|
||||
{name="cherrytree:trunk", prob=254, param2=3},
|
||||
{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=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="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="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=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=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=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=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="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=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="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, 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.9 KiB |
Before Width: | Height: | Size: 865 B |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.9 KiB |
@ -1,292 +0,0 @@
|
||||
--
|
||||
-- Chestnuttree
|
||||
--
|
||||
|
||||
local modname = "chestnuttree"
|
||||
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())
|
||||
|
||||
--Chesnut Bur
|
||||
|
||||
minetest.register_node("chestnuttree:bur", {
|
||||
description = S("Chestnut Bur"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"chestnuttree_bur.png"},
|
||||
inventory_image = "chestnuttree_bur.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
||||
},
|
||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
on_use = minetest.item_eat(2),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
minetest.set_node(pos, {name = "chestnuttree:bur", param2 = 1})
|
||||
end,
|
||||
})
|
||||
|
||||
--Chesnut Fruit
|
||||
|
||||
minetest.register_craftitem("chestnuttree:fruit", {
|
||||
description = S("Chestnut"),
|
||||
inventory_image = "chestnuttree_fruit.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {flammable = 2, food = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "chestnuttree:fruit",
|
||||
recipe = {
|
||||
{'chestnuttree:bur'}
|
||||
}
|
||||
})
|
||||
|
||||
-- chestnuttree
|
||||
|
||||
local function grow_new_chestnuttree_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-6, y = pos.y, z = pos.z-6}, modpath.."/schematics/chestnuttree.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.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 = {place_on},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 278,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {biomes},
|
||||
y_min = 1,
|
||||
y_max = 80,
|
||||
schematic = modpath.."/schematics/chestnuttree.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
place_offset_y = 1,
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("chestnuttree:sapling", {
|
||||
description = S("Chestnut Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"chestnuttree_sapling.png"},
|
||||
inventory_image = "chestnuttree_sapling.png",
|
||||
wield_image = "chestnuttree_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_chestnuttree_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,
|
||||
"chestnuttree: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("chestnuttree:trunk", {
|
||||
description = S("Chestnut Tree Trunk"),
|
||||
tiles = {
|
||||
"chestnuttree_trunk_top.png",
|
||||
"chestnuttree_trunk_top.png",
|
||||
"chestnuttree_trunk.png"
|
||||
},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
-- chestnuttree wood
|
||||
minetest.register_node("chestnuttree:wood", {
|
||||
description = S("Chestnut Tree Wood"),
|
||||
tiles = {"chestnuttree_wood.png"},
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- chestnuttree tree leaves
|
||||
minetest.register_node("chestnuttree:leaves", {
|
||||
description = S("Chestnut Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"chestnuttree_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"chestnuttree:sapling"}, rarity = 20},
|
||||
{items = {"chestnuttree:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "chestnuttree:wood 4",
|
||||
recipe = {{"chestnuttree:trunk"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "chestnuttree:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "chestnuttree:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"chestnuttree:trunk"},
|
||||
leaves = {"chestnuttree:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"chestnuttree_trunk",
|
||||
"chestnuttree:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"chestnuttree_wood.png"},
|
||||
S("Chestnut Tree Stair"),
|
||||
S("Chestnut Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- 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
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("chestnuttree:sapling")
|
||||
end
|
@ -1,12 +0,0 @@
|
||||
# textdomain: chestnuttree
|
||||
Chestnut=Castaña
|
||||
Chestnut Bur=Zurrón de castaña
|
||||
Chestnut Tree Inner Stair=Escalera interior de castaño
|
||||
Chestnut Tree Leaves=Hojas de castaño
|
||||
Chestnut Tree Outer Stair=Escalera exterior de castaño
|
||||
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 Wood Door=Puerta de castaño
|
@ -1,4 +0,0 @@
|
||||
name = chestnuttree
|
||||
description = Chesnut Tree for Grassland
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, rainf, doors, moreblocks, flowerpot
|
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB |
@ -1,256 +0,0 @@
|
||||
--
|
||||
-- Clementinetree
|
||||
--
|
||||
|
||||
local modname = "clementinetree"
|
||||
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())
|
||||
|
||||
minetest.register_node("clementinetree:clementine", {
|
||||
description = S("Clementine"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"clementinetree_clementine.png"},
|
||||
inventory_image = "clementinetree_clementine.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
||||
},
|
||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
on_use = minetest.item_eat(2),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
minetest.set_node(pos, {name = "clementinetree:clementine", param2 = 1})
|
||||
end,
|
||||
})
|
||||
|
||||
-- clementinetree
|
||||
|
||||
local function grow_new_clementinetree_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-2, y = pos.y, z = pos.z-2}, modpath.."/schematics/clementinetree.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
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,
|
||||
noise_params = {
|
||||
offset = 0.0005,
|
||||
scale = 0.00004,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 3456,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"deciduous_forest"},
|
||||
y_min = 1,
|
||||
y_max = 80,
|
||||
schematic = modpath.."/schematics/clementinetree.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("clementinetree:sapling", {
|
||||
description = S("Clementine Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"clementinetree_sapling.png"},
|
||||
inventory_image = "clementinetree_sapling.png",
|
||||
wield_image = "clementinetree_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_clementinetree_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,
|
||||
"clementinetree: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("clementinetree:trunk", {
|
||||
description = S("Clementine Tree Trunk"),
|
||||
tiles = {
|
||||
"clementinetree_trunk_top.png",
|
||||
"clementinetree_trunk_top.png",
|
||||
"clementinetree_trunk.png"
|
||||
},
|
||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
})
|
||||
|
||||
-- clementinetree wood
|
||||
minetest.register_node("clementinetree:wood", {
|
||||
description = S("Clementine Tree Wood"),
|
||||
tiles = {"clementinetree_wood.png"},
|
||||
is_ground_content = false,
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- clementinetree tree leaves
|
||||
minetest.register_node("clementinetree:leaves", {
|
||||
description = S("Clementine Tree Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"clementinetree_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"clementinetree:sapling"}, rarity = 20},
|
||||
{items = {"clementinetree:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "clementinetree:wood 4",
|
||||
recipe = {{"clementinetree:trunk"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "clementinetree:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "clementinetree:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"clementinetree:trunk"},
|
||||
leaves = {"clementinetree:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"clementinetree_trunk",
|
||||
"clementinetree:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"clementinetree_wood.png"},
|
||||
S("Clementine Tree Stair"),
|
||||
S("Clementine Tree Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
end
|
||||
|
||||
-- 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
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("clementinetree:sapling")
|
||||
end
|
@ -1,11 +0,0 @@
|
||||
# textdomain: clementinetree
|
||||
Clementine=Clementina
|
||||
Clementine Tree Inner Stair=Escalera interior de clementinero
|
||||
Clementine Tree Leaves=Hojas de clementinero
|
||||
Clementine Tree Outer Stair=Escalera exterior de clementinero
|
||||
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 Wood Door=Puerta de clementinero
|
@ -1,4 +0,0 @@
|
||||
name = clementinetree
|
||||
description = Clementine Tree for Decidious Forest
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks, flowerpot
|
@ -1,164 +0,0 @@
|
||||
schematic = {
|
||||
size = {x=5, y=6, z=5},
|
||||
yslice_prob = {
|
||||
{ypos=0, prob=254},
|
||||
{ypos=1, prob=254},
|
||||
{ypos=2, prob=254},
|
||||
{ypos=3, prob=254},
|
||||
{ypos=4, prob=254},
|
||||
{ypos=5, prob=254},
|
||||
},
|
||||
data = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, 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:leaves", prob=254, param2=0},
|
||||
{name="clementinetree:clementine", prob=126, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{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},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{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=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},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:trunk", prob=254, param2=2},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="clementinetree:trunk", prob=254, param2=21},
|
||||
{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=0},
|
||||
{name="clementinetree:trunk", prob=254, param2=20},
|
||||
{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=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=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},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{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=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},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{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=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=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},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
},
|
||||
}
|
||||
|
Before Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.0 KiB |
1
mods/cool_trees
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit af8e445c475efb050c1291da459336812b84591e
|
@ -1,311 +0,0 @@
|
||||
--
|
||||
-- Ebony
|
||||
--
|
||||
|
||||
local modname = "ebony"
|
||||
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())
|
||||
|
||||
-- Ebony
|
||||
|
||||
local function grow_new_ebony_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-5, y = pos.y, z = pos.z-5}, modpath.."/schematics/ebony.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
--
|
||||
-- Decoration
|
||||
--
|
||||
|
||||
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,
|
||||
noise_params = {
|
||||
offset = 0.005,
|
||||
scale = 0.002,
|
||||
spread = {x = 250, y = 250, z = 250},
|
||||
seed = 1007,
|
||||
octaves = 3,
|
||||
persist = 0.66
|
||||
},
|
||||
biomes = {"rainforest"},
|
||||
height = 2,
|
||||
y_min = 1,
|
||||
y_max = 62,
|
||||
schematic = modpath.."/schematics/ebony.mts",
|
||||
flags = "place_center_x, place_center_z, force_placement",
|
||||
rotation = "random",
|
||||
place_offset_y = -1,
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node("ebony:sapling", {
|
||||
description = S("Ebony Tree Sapling"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"ebony_sapling.png"},
|
||||
inventory_image = "ebony_sapling.png",
|
||||
wield_image = "ebony_sapling.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
on_timer = grow_new_ebony_tree,
|
||||
use_texture_alpha = "clip",
|
||||
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,
|
||||
"ebony: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("ebony:trunk", {
|
||||
description = S("Ebony Trunk"),
|
||||
tiles = {
|
||||
"ebony_trunk_top.png",
|
||||
"ebony_trunk_top.png",
|
||||
"ebony_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,
|
||||
})
|
||||
|
||||
-- ebony wood
|
||||
minetest.register_node("ebony:wood", {
|
||||
description = S("Ebony Wood"),
|
||||
tiles = {"ebony_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(),
|
||||
})
|
||||
|
||||
-- ebony tree leaves
|
||||
minetest.register_node("ebony:leaves", {
|
||||
description = S("Ebony Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
tiles = {"ebony_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ebony:sapling"}, rarity = 20},
|
||||
{items = {"ebony:leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
--
|
||||
-- Creeper/Vines...
|
||||
--
|
||||
|
||||
minetest.register_node("ebony:creeper", {
|
||||
description = S("Ebony Creeper"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_creeper.png"},
|
||||
inventory_image = "ebony_creeper.png",
|
||||
wield_image = "ebony_creeper.png",
|
||||
use_texture_alpha = "clip",
|
||||
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("ebony:creeper_leaves", {
|
||||
description = S("Ebony Creeper with Leaves"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_creeper_leaves.png"},
|
||||
inventory_image = "ebony_creeper_leaves.png",
|
||||
wield_image = "ebony_creeper_leaves.png",
|
||||
use_texture_alpha = "clip",
|
||||
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("ebony:liana", {
|
||||
description = S("Ebony Liana"),
|
||||
drawtype = "nodebox",
|
||||
walkable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"ebony_liana.png"},
|
||||
inventory_image = "ebony_liana.png",
|
||||
wield_image = "ebony_liana.png",
|
||||
use_texture_alpha = "clip",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, 0.0, 0.5, 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(),
|
||||
})
|
||||
|
||||
--Persimmon Kaki
|
||||
|
||||
minetest.register_node("ebony:persimmon", {
|
||||
description = S("Persimmon"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"ebony_persimmon.png"},
|
||||
inventory_image = "ebony_persimmon.png",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
||||
},
|
||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||
leafdecay = 3, leafdecay_drop = 1},
|
||||
on_use = minetest.item_eat(4),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
after_place_node = function(pos, placer, itemstack)
|
||||
minetest.set_node(pos, {name = "ebony:persimmon", param2 = 1})
|
||||
end,
|
||||
})
|
||||
|
||||
--
|
||||
-- Craftitems
|
||||
--
|
||||
|
||||
--
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ebony:wood 4",
|
||||
recipe = {{"ebony:trunk"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ebony:trunk",
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ebony:wood",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ebony:trunk"},
|
||||
leaves = {"ebony:leaves"},
|
||||
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
|
||||
stairs.register_stair_and_slab(
|
||||
"ebony_trunk",
|
||||
"ebony:trunk",
|
||||
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
{"ebony_wood.png"},
|
||||
S("Ebony Stair"),
|
||||
S("Ebony Slab"),
|
||||
default.node_sound_wood_defaults()
|
||||
)
|
||||
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"},
|
||||
})
|
||||
end
|
||||
|
||||
-- Support for flowerpot
|
||||
if minetest.global_exists("flowerpot") then
|
||||
flowerpot.register_node("ebony:sapling")
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# textdomain: ebony
|
||||
Ebony Trunk=Madera de ébano
|
||||
Ebony Wood=Tablas de ébano
|
||||
Ebony Leaves=Hojas de ébano
|
||||
Ebony Creeper=Enredadera de ébano
|
||||
Ebony Creeper with Leaves=Enredadera colgante con hojas de ébano
|
||||
Ebony Liana=Liana de ébano
|
||||
Ebony Tree Sapling=Retoño de árbol de ébano
|
||||
Ebony Stair=Escaleras de ébano
|
||||
Inner Ebony Stair=Escaleras de ébano interior
|
||||
Outer Ebony Stair=Escaleras de ébano exterior
|
||||
Ebony Slab=Losa de ébano
|
||||
Persimmon=Kaki
|
@ -1,4 +0,0 @@
|
||||
name = ebony
|
||||
description = Ebony Tree for Rainforest Biome
|
||||
depends = default
|
||||
optional_depends = stairs, bonemeal, doors, moreblocks, flowerpot
|
Before Width: | Height: | Size: 2.2 KiB |