basic fl_trees added
@ -8,3 +8,7 @@ bedrock -- solid layer atm, add noise or something for one layer aboe it
|
||||
do something with
|
||||
basalt
|
||||
gneiss
|
||||
|
||||
add acacia and pine as something else from mtg (maybe tree as well?)
|
||||
--sugest douglas fir for alt name
|
||||
add spruce trunk from moretrees
|
3
mods/fl_trees/init.lua
Normal file
@ -0,0 +1,3 @@
|
||||
local modpath = minetest.get_modpath("fl_trees")
|
||||
|
||||
dofile(modpath .. "/nodes.lua")
|
28
mods/fl_trees/nodes.lua
Normal file
@ -0,0 +1,28 @@
|
||||
local function tree_nodes(name, tgroup, lgroup)
|
||||
local tgp = tgroup or {oddly_breakable_by_hand = 3, tree = 1, trunk = 1}
|
||||
local lgp = lgroup or {oddly_breakable_by_hand = 3, tree = 1, leaf = 1}
|
||||
|
||||
minetest.register_node("fl_trees:" .. name .. "_trunk", {
|
||||
description = name .. " tree trunk",
|
||||
tiles = {
|
||||
"farlands_" .. name .. "_trunk_top.png",
|
||||
"farlands_" .. name .. "_trunk_top.png",
|
||||
"farlands_" .. name .. "_trunk.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = tgp,
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
minetest.register_node("fl_trees:" .. name .. "_leaves", {
|
||||
description = name .. " leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
paramtype = "light",
|
||||
tiles = {"farlands_" .. name .. "_leaves.png"},
|
||||
groups = lgp,
|
||||
})
|
||||
end
|
||||
|
||||
tree_nodes("acacia")
|
||||
tree_nodes("apple")
|
||||
tree_nodes("aspen")
|
||||
tree_nodes("pine")
|
1
mods/fl_trees/readme
Normal file
@ -0,0 +1 @@
|
||||
cc-by-sa 3 toby textures
|
BIN
mods/fl_trees/textures/farlands_acacia_leaves.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
mods/fl_trees/textures/farlands_acacia_trunk.png
Normal file
After Width: | Height: | Size: 693 B |
BIN
mods/fl_trees/textures/farlands_acacia_trunk_top.png
Normal file
After Width: | Height: | Size: 687 B |
BIN
mods/fl_trees/textures/farlands_apple_leaves.png
Normal file
After Width: | Height: | Size: 880 B |
BIN
mods/fl_trees/textures/farlands_apple_trunk.png
Normal file
After Width: | Height: | Size: 680 B |
BIN
mods/fl_trees/textures/farlands_apple_trunk_top.png
Normal file
After Width: | Height: | Size: 812 B |
BIN
mods/fl_trees/textures/farlands_aspen_leaves.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
mods/fl_trees/textures/farlands_aspen_trunk.png
Normal file
After Width: | Height: | Size: 920 B |
BIN
mods/fl_trees/textures/farlands_aspen_trunk_top.png
Normal file
After Width: | Height: | Size: 826 B |
BIN
mods/fl_trees/textures/farlands_pine_leaves.png
Normal file
After Width: | Height: | Size: 958 B |
BIN
mods/fl_trees/textures/farlands_pine_trunk.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
mods/fl_trees/textures/farlands_pine_trunk_top.png
Normal file
After Width: | Height: | Size: 685 B |