1
0
鏡像自 https://github.com/mt-mods/homedecor_modpack.git 已同步 2025-09-19 00:00:37 +02:00

Add various kinds of decorative clocks.

(as usual, no crafting recipes are available yet)
此提交包含在:
Vanessa Ezekowitz
2014-06-25 05:59:34 -04:00
父節點 057e384b27
當前提交 18049bf229
共有 17 個檔案被更改,包括 105 行新增0 行删除

103
homedecor/clocks.lua 一般檔案
查看文件

@@ -0,0 +1,103 @@
minetest.register_node("homedecor:analog_clock_plastic", {
description = "Analog clock (plastic)",
drawtype = "nodebox",
tiles = {
"homedecor_analog_clock_plastic_edges.png",
"homedecor_analog_clock_plastic_edges.png",
"homedecor_analog_clock_plastic_edges.png",
"homedecor_analog_clock_plastic_edges.png",
"homedecor_analog_clock_plastic_back.png",
"homedecor_analog_clock_plastic_front.png"
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 },
{ -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 },
{ -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 },
{ -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 },
{ -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 }
}
},
selection_box = {
type = "fixed",
fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 }
},
groups = {snappy=3},
})
minetest.register_node("homedecor:analog_clock_wood", {
description = "Analog clock (wood)",
drawtype = "nodebox",
tiles = {
"homedecor_analog_clock_wood_edges.png",
"homedecor_analog_clock_wood_edges.png",
"homedecor_analog_clock_wood_edges.png",
"homedecor_analog_clock_wood_edges.png",
"homedecor_analog_clock_wood_back.png",
"homedecor_analog_clock_wood_front.png"
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 },
{ -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 },
{ -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 },
{ -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 },
{ -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 }
}
},
selection_box = {
type = "fixed",
fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 }
},
groups = {snappy=3},
})
minetest.register_node("homedecor:digital_clock", {
description = "Digital clock",
drawtype = "nodebox",
tiles = {
"homedecor_digital_clock_edges.png",
"homedecor_digital_clock_edges.png",
"homedecor_digital_clock_edges.png",
"homedecor_digital_clock_edges.png",
"homedecor_digital_clock_back.png",
"homedecor_digital_clock_front.png"
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.28125, -0.25, 0.4375, 0.3125, 0.25, 0.5},
}
},
groups = {snappy=3},
})
minetest.register_node("homedecor:alarm_clock", {
description = "Alarm clock",
drawtype = "nodebox",
tiles = {
"homedecor_alarm_clock_top.png",
"homedecor_alarm_clock_bottom.png",
"homedecor_alarm_clock_sides.png",
"homedecor_alarm_clock_sides.png^[transformFX",
"homedecor_alarm_clock_back.png",
"homedecor_alarm_clock_front.png"
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -9/32, -16/32, 7/32, 10/32, -5/32, 16/32 },
}
},
groups = {snappy=3},
})

查看文件

@@ -77,6 +77,7 @@ dofile(homedecor.modpath.."/laundry.lua")
dofile(homedecor.modpath.."/furnaces.lua")
dofile(homedecor.modpath.."/nightstands.lua")
dofile(homedecor.modpath.."/clocks.lua")
dofile(homedecor.modpath.."/crafts.lua")
dofile(homedecor.modpath.."/crafts_nomoreblocks.lua")

查看文件

@@ -388,3 +388,4 @@ minetest.register_node("homedecor:chimney", {
sounds = default.node_sound_stone_defaults()
})

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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

未顯示二進位檔案。

之後

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