1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-23 07:40:17 +02:00

Version MFF.

This commit is contained in:
sys4-fr
2018-09-07 22:32:38 +02:00
parent 2d0363f3ac
commit a11527ed63
1027 changed files with 8090 additions and 37753 deletions

11
homedecor/electrics.lua Normal file → Executable file
View File

@ -1,8 +1,5 @@
local S = homedecor_i18n.gettext
homedecor.register("power_outlet", {
description = S("Power Outlet"),
description = "Power Outlet",
tiles = {
"homedecor_outlet_edges.png",
"homedecor_outlet_edges.png",
@ -29,7 +26,7 @@ homedecor.register("power_outlet", {
})
homedecor.register("light_switch", {
description = S("Light switch"),
description = "Light switch",
tiles = {
"homedecor_light_switch_edges.png",
"homedecor_light_switch_edges.png",
@ -61,7 +58,7 @@ homedecor.register("light_switch", {
homedecor.register("doorbell", {
tiles = { "homedecor_doorbell.png" },
inventory_image = "homedecor_doorbell_inv.png",
description = S("Doorbell"),
description = "Doorbell",
groups = {snappy=3},
walkable = false,
node_box = {
@ -71,7 +68,7 @@ homedecor.register("doorbell", {
{-0.03125, 0.0625, 0.45, 0.03125, 0.125, 0.4675}, -- NodeBox2
}
},
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
on_punch = function(pos, node, puncher, pointed_thing)
minetest.sound_play("homedecor_doorbell", {
pos = pos,
gain = 1.0,