diff --git a/docs/notepad b/docs/notepad index 58ada84..83d7540 100644 --- a/docs/notepad +++ b/docs/notepad @@ -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 \ No newline at end of file diff --git a/mods/fl_trees/init.lua b/mods/fl_trees/init.lua new file mode 100644 index 0000000..dac3611 --- /dev/null +++ b/mods/fl_trees/init.lua @@ -0,0 +1,3 @@ +local modpath = minetest.get_modpath("fl_trees") + +dofile(modpath .. "/nodes.lua") \ No newline at end of file diff --git a/mods/fl_trees/nodes.lua b/mods/fl_trees/nodes.lua new file mode 100644 index 0000000..4310831 --- /dev/null +++ b/mods/fl_trees/nodes.lua @@ -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") \ No newline at end of file diff --git a/mods/fl_trees/readme b/mods/fl_trees/readme new file mode 100644 index 0000000..43c9450 --- /dev/null +++ b/mods/fl_trees/readme @@ -0,0 +1 @@ +cc-by-sa 3 toby textures \ No newline at end of file diff --git a/mods/fl_trees/textures/farlands_acacia_leaves.png b/mods/fl_trees/textures/farlands_acacia_leaves.png new file mode 100644 index 0000000..d8d8183 Binary files /dev/null and b/mods/fl_trees/textures/farlands_acacia_leaves.png differ diff --git a/mods/fl_trees/textures/farlands_acacia_trunk.png b/mods/fl_trees/textures/farlands_acacia_trunk.png new file mode 100644 index 0000000..96ae1ba Binary files /dev/null and b/mods/fl_trees/textures/farlands_acacia_trunk.png differ diff --git a/mods/fl_trees/textures/farlands_acacia_trunk_top.png b/mods/fl_trees/textures/farlands_acacia_trunk_top.png new file mode 100644 index 0000000..1ab9fb1 Binary files /dev/null and b/mods/fl_trees/textures/farlands_acacia_trunk_top.png differ diff --git a/mods/fl_trees/textures/farlands_apple_leaves.png b/mods/fl_trees/textures/farlands_apple_leaves.png new file mode 100644 index 0000000..ba792de Binary files /dev/null and b/mods/fl_trees/textures/farlands_apple_leaves.png differ diff --git a/mods/fl_trees/textures/farlands_apple_trunk.png b/mods/fl_trees/textures/farlands_apple_trunk.png new file mode 100644 index 0000000..f1f697d Binary files /dev/null and b/mods/fl_trees/textures/farlands_apple_trunk.png differ diff --git a/mods/fl_trees/textures/farlands_apple_trunk_top.png b/mods/fl_trees/textures/farlands_apple_trunk_top.png new file mode 100644 index 0000000..f9fa3df Binary files /dev/null and b/mods/fl_trees/textures/farlands_apple_trunk_top.png differ diff --git a/mods/fl_trees/textures/farlands_aspen_leaves.png b/mods/fl_trees/textures/farlands_aspen_leaves.png new file mode 100644 index 0000000..d131347 Binary files /dev/null and b/mods/fl_trees/textures/farlands_aspen_leaves.png differ diff --git a/mods/fl_trees/textures/farlands_aspen_trunk.png b/mods/fl_trees/textures/farlands_aspen_trunk.png new file mode 100644 index 0000000..b8126a9 Binary files /dev/null and b/mods/fl_trees/textures/farlands_aspen_trunk.png differ diff --git a/mods/fl_trees/textures/farlands_aspen_trunk_top.png b/mods/fl_trees/textures/farlands_aspen_trunk_top.png new file mode 100644 index 0000000..49efe05 Binary files /dev/null and b/mods/fl_trees/textures/farlands_aspen_trunk_top.png differ diff --git a/mods/fl_trees/textures/farlands_pine_leaves.png b/mods/fl_trees/textures/farlands_pine_leaves.png new file mode 100644 index 0000000..61ea4e3 Binary files /dev/null and b/mods/fl_trees/textures/farlands_pine_leaves.png differ diff --git a/mods/fl_trees/textures/farlands_pine_trunk.png b/mods/fl_trees/textures/farlands_pine_trunk.png new file mode 100644 index 0000000..4a1b15c Binary files /dev/null and b/mods/fl_trees/textures/farlands_pine_trunk.png differ diff --git a/mods/fl_trees/textures/farlands_pine_trunk_top.png b/mods/fl_trees/textures/farlands_pine_trunk_top.png new file mode 100644 index 0000000..0263189 Binary files /dev/null and b/mods/fl_trees/textures/farlands_pine_trunk_top.png differ