Skip to content

Commit 223562d

Browse files
committedJan 2, 2018
Dry shrub: Use plantlike meshoption for bushy appearence
Adjust selectionbox width for a better fit and consistency with other grasses.
1 parent f52085a commit 223562d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

Diff for: ‎mods/default/mapgen.lua

+2
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,7 @@ function default.register_mgv6_decorations()
15931593
y_min = 1,
15941594
y_max = 30,
15951595
decoration = "default:dry_shrub",
1596+
param2 = 4,
15961597
})
15971598
end
15981599

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

20232025
-- Coral reef

Diff for: ‎mods/default/nodes.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -1183,14 +1183,16 @@ minetest.register_node("default:dry_shrub", {
11831183
inventory_image = "default_dry_shrub.png",
11841184
wield_image = "default_dry_shrub.png",
11851185
paramtype = "light",
1186+
paramtype2 = "meshoptions",
1187+
place_param2 = 4,
11861188
sunlight_propagates = true,
11871189
walkable = false,
11881190
buildable_to = true,
11891191
groups = {snappy = 3, flammable = 3, attached_node = 1},
11901192
sounds = default.node_sound_leaves_defaults(),
11911193
selection_box = {
11921194
type = "fixed",
1193-
fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16},
1195+
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 4 / 16, 6 / 16},
11941196
},
11951197
})
11961198

0 commit comments

Comments
 (0)
Please sign in to comment.