Skip to content

Commit fec82ab

Browse files
Wuzzy2numberZero
authored andcommittedJan 18, 2018
Sticky block: Add texture, sounds and groups (#397)
1 parent 02f8d29 commit fec82ab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

Diff for: ‎mesecons_stickyblocks/init.lua

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33

44
-- All sides sticky block
55
minetest.register_node("mesecons_stickyblocks:sticky_block_all", {
6-
description = "All-Sides Sticky Block",
7-
tiles = {"default_grass.png^default_footprint.png"},
6+
-- TODO: Rename to “All-Faces Sticky Block” when other sticky blocks become available
7+
description = "Sticky Block",
8+
tiles = {"mesecons_stickyblocks_sticky.png"},
89
is_ground_content = false,
9-
groups = {dig_immediate=2},
10+
groups = {choppy=3, oddly_breakable_by_hand=2},
1011
mvps_sticky = function (pos, node)
1112
local connected = {}
1213
for _, r in ipairs(mesecon.rules.alldirs) do
1314
table.insert(connected, vector.add(pos, r))
1415
end
1516
return connected
16-
end
17+
end,
18+
sounds = default.node_sound_wood_defaults(),
1719
})
661 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.