update cool_trees
This commit is contained in:
parent
97197e3d98
commit
f2b0bed218
@ -107,7 +107,7 @@ local function grow_new_bambootree_tree(pos)
|
||||
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
|
||||
|
@ -79,7 +79,7 @@ local function grow_new_birch_tree(pos)
|
||||
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
|
||||
|
||||
|
@ -42,7 +42,7 @@ local function grow_new_cherrytree_tree(pos)
|
||||
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
|
||||
|
||||
|
@ -58,7 +58,7 @@ local function grow_new_chestnuttree_tree(pos)
|
||||
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
|
||||
|
||||
|
@ -40,7 +40,7 @@ local function grow_new_clementinetree_tree(pos)
|
||||
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
|
||||
|
||||
|
@ -17,7 +17,7 @@ local function grow_new_ebony_tree(pos)
|
||||
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
|
||||
|
||||
@ -201,6 +201,31 @@ minetest.register_node("ebony:liana", {
|
||||
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
|
||||
--
|
||||
|
@ -10,3 +10,4 @@ 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
|
||||
|
@ -125,7 +125,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -678,7 +678,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -876,7 +876,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -898,7 +898,7 @@ schematic = {
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
@ -1033,7 +1033,7 @@ schematic = {
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="air", prob=0, param2=0},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:leaves", prob=126, param2=1},
|
||||
{name="ebony:persimmon", prob=126, param2=1},
|
||||
{name="ebony:leaves", prob=254, param2=1},
|
||||
{name="ebony:liana", prob=254, param2=3},
|
||||
{name="ebony:creeper", prob=254, param2=1},
|
||||
|
Binary file not shown.
BIN
cool_trees/ebony/textures/ebony_persimmon.png
Normal file
BIN
cool_trees/ebony/textures/ebony_persimmon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -16,7 +16,7 @@ local function grow_new_jacaranda_tree(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(240, 600))
|
||||
return
|
||||
end
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.place_schematic({x = pos.x-3, y = pos.y, z = pos.z-3}, modpath.."/schematics/jacaranda.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
|
@ -16,7 +16,7 @@ local function grow_new_larch_tree(pos)
|
||||
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/larch.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
|
@ -42,7 +42,7 @@ local function grow_new_lemontree_tree(pos)
|
||||
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/lemontree.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@ local function grow_new_mahogany_tree(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(240, 600))
|
||||
return
|
||||
end
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.place_schematic({x = pos.x-3, y = pos.y, z = pos.z-3}, modpath.."/schematics/mahogany.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
|
@ -137,6 +137,7 @@ local function grow_new_palm_tree(pos)
|
||||
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 - 1, z = pos.z - 4},
|
||||
palm.palmtree, "0", nil, false)
|
||||
end
|
||||
|
@ -17,7 +17,7 @@ local function grow_new_pineapple_tree(pos)
|
||||
minetest.get_node_timer(pos):start(math.random(240, 600))
|
||||
return
|
||||
end
|
||||
|
||||
minetest.remove_node(pos)
|
||||
minetest.place_schematic({x = pos.x, y = pos.y, z = pos.z}, modpath.."/schematics/pineapple.mts", "0", nil, false)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user