Sticky block: Add texture, sounds and groups (#397)

此提交包含在:
Wuzzy
2018-01-18 20:01:53 +01:00
提交者 Vitaliy
父節點 02f8d29170
當前提交 fec82ab246
共有 2 個檔案被更改,包括 6 行新增4 行删除

查看文件

@ -3,15 +3,17 @@
-- All sides sticky block
minetest.register_node("mesecons_stickyblocks:sticky_block_all", {
description = "All-Sides Sticky Block",
tiles = {"default_grass.png^default_footprint.png"},
-- TODO: Rename to “All-Faces Sticky Block” when other sticky blocks become available
description = "Sticky Block",
tiles = {"mesecons_stickyblocks_sticky.png"},
is_ground_content = false,
groups = {dig_immediate=2},
groups = {choppy=3, oddly_breakable_by_hand=2},
mvps_sticky = function (pos, node)
local connected = {}
for _, r in ipairs(mesecon.rules.alldirs) do
table.insert(connected, vector.add(pos, r))
end
return connected
end
end,
sounds = default.node_sound_wood_defaults(),
})

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 661 B