diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 20:02:19 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:09:33 -0400 |
commit | da66780a569712c23ae4f2996cfb4608a9f9d69d (patch) | |
tree | 217556029a78bc23ad4564720afc86de97228a04 /homedecor_modpack/homedecor/electrics.lua | |
parent | 615b22df4d423aded3613db7716943a2f389b047 (diff) | |
download | dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2 dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip |
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'homedecor_modpack/homedecor/electrics.lua')
-rw-r--r-- | homedecor_modpack/homedecor/electrics.lua | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/homedecor_modpack/homedecor/electrics.lua b/homedecor_modpack/homedecor/electrics.lua new file mode 100644 index 0000000..001c703 --- /dev/null +++ b/homedecor_modpack/homedecor/electrics.lua @@ -0,0 +1,78 @@ +homedecor.register("power_outlet", { + description = "Power Outlet", + tiles = { + "homedecor_outlet_edges.png", + "homedecor_outlet_edges.png", + "homedecor_outlet_edges.png", + "homedecor_outlet_edges.png", + "homedecor_outlet_back.png", + "homedecor_outlet_edges.png" + }, + inventory_image = "homedecor_outlet_inv.png", + node_box = { + type = "fixed", + fixed = { + { -0.125, -0.3125, 0.4375, 0.125, 0, 0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { + { -0.1875, -0.375, 0.375, 0.1875, 0.0625, 0.5}, + } + }, + groups = {cracky=3,dig_immediate=2}, + walkable = false +}) + +homedecor.register("light_switch", { + description = "Light switch", + tiles = { + "homedecor_light_switch_edges.png", + "homedecor_light_switch_edges.png", + "homedecor_light_switch_edges.png", + "homedecor_light_switch_edges.png", + "homedecor_light_switch_back.png", + "homedecor_light_switch_front.png" + }, + inventory_image = "homedecor_light_switch_inv.png", + node_box = { + type = "fixed", + fixed = { + { -0.125, -0.5, 0.4375, 0.125, -0.1875, 0.5 }, + { -0.03125, -0.3125, 0.40625, 0.03125, -0.25, 0.5 }, + + } + }, + selection_box = { + type = "fixed", + fixed = { + { -0.1875, -0.5625, 0.375, 0.1875, -0.1250, 0.5 }, + } + }, + groups = {cracky=3,dig_immediate=2}, + walkable = false +}) + + +homedecor.register("doorbell", { + tiles = { "homedecor_doorbell.png" }, + inventory_image = "homedecor_doorbell_inv.png", + description = "Doorbell", + groups = {snappy=3}, + walkable = false, + node_box = { + type = "fixed", + fixed = { + {-0.0625, 0, 0.46875, 0.0625, 0.1875, 0.5}, -- NodeBox1 + {-0.03125, 0.0625, 0.45, 0.03125, 0.125, 0.4675}, -- NodeBox2 + } + }, + on_punch = function(pos, node, puncher, pointed_thing) + minetest.sound_play("homedecor_doorbell", { + pos = pos, + gain = 1.0, + max_hear_distance = 15 + }) + end +}) |