Skip to content

Commit

Permalink
Default: Add bush stem and leaves nodes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paramat committed Oct 27, 2016
1 parent 581c390 commit 048aaa2
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mods/default/README.txt
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions mods/default/crafting.lua
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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",
Expand Down
54 changes: 54 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -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
------
Expand Down Expand Up @@ -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
--
Expand Down
Binary file added mods/default/textures/default_acacia_bush_stem.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mods/default/textures/default_bush_stem.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 048aaa2

Please sign in to comment.