Skip to content

Commit

Permalink
Dry shrub: Use plantlike meshoption for bushy appearence
Browse files Browse the repository at this point in the history
Adjust selectionbox width for a better fit and consistency with other
grasses.
paramat committed Jan 2, 2018
1 parent f52085a commit 223562d
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mods/default/mapgen.lua
Original file line number Diff line number Diff line change
@@ -1593,6 +1593,7 @@ function default.register_mgv6_decorations()
y_min = 1,
y_max = 30,
decoration = "default:dry_shrub",
param2 = 4,
})
end

@@ -2018,6 +2019,7 @@ function default.register_decorations()
y_min = 2,
y_max = 31000,
decoration = "default:dry_shrub",
param2 = 4,
})

-- Coral reef
4 changes: 3 additions & 1 deletion mods/default/nodes.lua
Original file line number Diff line number Diff line change
@@ -1183,14 +1183,16 @@ minetest.register_node("default:dry_shrub", {
inventory_image = "default_dry_shrub.png",
wield_image = "default_dry_shrub.png",
paramtype = "light",
paramtype2 = "meshoptions",
place_param2 = 4,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16},
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 4 / 16, 6 / 16},
},
})

0 comments on commit 223562d

Please sign in to comment.