Dry shrub: Use plantlike meshoption for bushy appearence
authorparamat <paramat@users.noreply.github.com>
Mon, 1 Jan 2018 09:24:15 +0000 (09:24 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 2 Jan 2018 22:45:47 +0000 (22:45 +0000)
Adjust selectionbox width for a better fit and consistency with other
grasses.

mods/default/mapgen.lua
mods/default/nodes.lua

index 1a85bf30b2e32438830650a873ec53e7701ebfa5..1cb74cbca7eb7986563178816e40c79403cbbf19 100644 (file)
@@ -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
index 55032f2bc0a9e8c5f284a755be04895b71fead03..2e5f4dad267a089ff2c9d8682302579b42fae24f 100644 (file)
@@ -1183,6 +1183,8 @@ 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,
@@ -1190,7 +1192,7 @@ minetest.register_node("default:dry_shrub", {
        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},
        },
 })