basic fl_trees added

This commit is contained in:
wsor 2021-03-22 12:23:11 -04:00
parent 0bb5cdd892
commit 74f677680e
16 changed files with 36 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
local modpath = minetest.get_modpath("fl_trees")
dofile(modpath .. "/nodes.lua")

28
mods/fl_trees/nodes.lua Normal file
View 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
View File

@ -0,0 +1 @@
cc-by-sa 3 toby textures

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B