Default: Add bush stem and leaves nodes
authorparamat <mat.gregory@virginmedia.com>
Wed, 12 Oct 2016 23:48:56 +0000 (00:48 +0100)
committerparamat <mat.gregory@virginmedia.com>
Thu, 27 Oct 2016 01:54:04 +0000 (02:54 +0100)
To allow mapgen bushes in green-grass and savanna grasslands.
Nodes for a generic bush and an acacia bush.
Stem nodes are craftable to a single wood node to provide a small
amount of wood resource in grasslands.
Fuel times are that of corresponding 'wood' nodes, 1/4 that of
corresponding tree nodes.
No leafdecay to enable use as hedges or without a nearby tree trunk.
Uses 'default leaves simple' texture for extra visual thickness.

mods/default/README.txt
mods/default/crafting.lua
mods/default/nodes.lua
mods/default/textures/default_acacia_bush_stem.png [new file with mode: 0644]
mods/default/textures/default_bush_stem.png [new file with mode: 0644]

index 9ae2c0028f5f3c095e8841ac69dad44ceaa94950..19901674b502e18ae3351d72863ba1b342abd922 100644 (file)
@@ -92,6 +92,8 @@ paramat (CC BY-SA 3.0):
   default_acacia_tree.png
   default_acacia_tree_top.png
   default_acacia_wood.png
+  default_acacia_bush_stem.png
+  default_bush_stem.png
   default_junglewood.png
   default_jungletree_top.png
   default_sandstone_brick.png
index 7ce62d2bceb81b2f51ee6192a547ffd9c4191539..a7a0daa2a05de86fda5f3d75890028df56aac247 100644 (file)
@@ -35,6 +35,20 @@ minetest.register_craft({
        }
 })
 
+minetest.register_craft({
+       output = 'default:wood',
+       recipe = {
+               {'default:bush_stem'},
+       }
+})
+
+minetest.register_craft({
+       output = 'default:acacia_wood',
+       recipe = {
+               {'default:acacia_bush_stem'},
+       }
+})
+
 minetest.register_craft({
        output = 'default:stick 4',
        recipe = {
@@ -929,6 +943,18 @@ minetest.register_craft({
 })
 
 
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:bush_stem",
+       burntime = 7,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:acacia_bush_stem",
+       burntime = 8,
+})
+
 minetest.register_craft({
        type = "fuel",
        recipe = "default:junglegrass",
index f185bde36a9ef36225ac7c55636a26597461e4da..23b91454c5d6194bc9cb0a1236b247c58f39287a 100644 (file)
@@ -131,6 +131,11 @@ default:dry_grass_3
 default:dry_grass_4
 default:dry_grass_5
 
+default:bush_stem
+default:bush_leaves
+default:acacia_bush_stem
+default:acacia_bush_leaves
+
 Corals
 ------
 
@@ -1216,6 +1221,55 @@ for i = 2, 5 do
 end
 
 
+minetest.register_node("default:bush_stem", {
+       description = "Bush Stem",
+       drawtype = "plantlike",
+       visual_scale = 1.18,
+       tiles = {"default_bush_stem.png"},
+       inventory_image = "default_bush_stem.png",
+       wield_image = "default_bush_stem.png",
+       paramtype = "light",
+       sunlight_propagates = true,
+       groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
+       sounds = default.node_sound_wood_defaults(),
+})
+
+minetest.register_node("default:bush_leaves", {
+       description = "Bush Leaves",
+       drawtype = "allfaces_optional",
+       waving = 1,
+       visual_scale = 1.3,
+       tiles = {"default_leaves_simple.png"},
+       paramtype = "light",
+       groups = {snappy = 3, flammable = 2, leaves = 1},
+       sounds = default.node_sound_leaves_defaults(),
+})
+
+minetest.register_node("default:acacia_bush_stem", {
+       description = "Acacia Bush Stem",
+       drawtype = "plantlike",
+       visual_scale = 1.18,
+       tiles = {"default_acacia_bush_stem.png"},
+       inventory_image = "default_acacia_bush_stem.png",
+       wield_image = "default_acacia_bush_stem.png",
+       paramtype = "light",
+       sunlight_propagates = true,
+       groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
+       sounds = default.node_sound_wood_defaults(),
+})
+
+minetest.register_node("default:acacia_bush_leaves", {
+       description = "Acacia Bush Leaves",
+       drawtype = "allfaces_optional",
+       waving = 1,
+       visual_scale = 1.3,
+       tiles = {"default_acacia_leaves.png"},
+       paramtype = "light",
+       groups = {snappy = 3, flammable = 2, leaves = 1},
+       sounds = default.node_sound_leaves_defaults(),
+})
+
+
 --
 -- Corals
 --
diff --git a/mods/default/textures/default_acacia_bush_stem.png b/mods/default/textures/default_acacia_bush_stem.png
new file mode 100644 (file)
index 0000000..2903915
Binary files /dev/null and b/mods/default/textures/default_acacia_bush_stem.png differ
diff --git a/mods/default/textures/default_bush_stem.png b/mods/default/textures/default_bush_stem.png
new file mode 100644 (file)
index 0000000..18b615f
Binary files /dev/null and b/mods/default/textures/default_bush_stem.png differ