summaryrefslogtreecommitdiff
path: root/homedecor_electrical
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
commita5eef1c5de77fa7770877802e66c3e1c53f9a0da (patch)
tree0f36e64a58e5f5bb7d95be6ae692f58f2ebfe483 /homedecor_electrical
parentdda854cf06f90a04a03844e19c4d4ad220e38fe4 (diff)
downloaddreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.gz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.bz2
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.xz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.zip
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons, moreblocks, moreores, technic, teleport_request, and worldedit switched to caverealms_lite (with minor fixes by me) switched to CWz's fork of player_textures The homedecor update brings in the big split, and will require you to re-enable all modpack components in order to avoid loss of content.
Diffstat (limited to 'homedecor_electrical')
-rw-r--r--homedecor_electrical/depends.txt3
-rw-r--r--homedecor_electrical/init.lua108
-rw-r--r--homedecor_electrical/sounds/homedecor_doorbell.oggbin0 -> 14497 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_doorbell.pngbin0 -> 167 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_doorbell_inv.pngbin0 -> 1483 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_light_switch_back.pngbin0 -> 310 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_light_switch_edges.pngbin0 -> 175 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_light_switch_front.pngbin0 -> 142 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_light_switch_inv.pngbin0 -> 3147 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_outlet_back.pngbin0 -> 312 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_outlet_edges.pngbin0 -> 200 bytes
-rw-r--r--homedecor_electrical/textures/homedecor_outlet_inv.pngbin0 -> 3906 bytes
12 files changed, 111 insertions, 0 deletions
diff --git a/homedecor_electrical/depends.txt b/homedecor_electrical/depends.txt
new file mode 100644
index 0000000..fb5d601
--- /dev/null
+++ b/homedecor_electrical/depends.txt
@@ -0,0 +1,3 @@
+homedecor_common
+default
+basic_materials
diff --git a/homedecor_electrical/init.lua b/homedecor_electrical/init.lua
new file mode 100644
index 0000000..c135021
--- /dev/null
+++ b/homedecor_electrical/init.lua
@@ -0,0 +1,108 @@
+
+local S = homedecor.gettext
+
+homedecor.register("power_outlet", {
+ description = S("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 = S("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 = S("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_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ minetest.sound_play("homedecor_doorbell", {
+ pos = pos,
+ gain = 1.0,
+ max_hear_distance = 15
+ })
+ end
+})
+
+-- crafting
+
+minetest.register_craft( {
+ output = "homedecor:power_outlet",
+ recipe = {
+ {"basic_materials:plastic_sheet", "basic_materials:copper_strip"},
+ {"basic_materials:plastic_sheet", ""},
+ {"basic_materials:plastic_sheet", "basic_materials:copper_strip"}
+ },
+})
+
+minetest.register_craft( {
+ output = "homedecor:light_switch",
+ recipe = {
+ {"", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
+ {"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:copper_strip"},
+ {"", "basic_materials:plastic_sheet", "basic_materials:copper_strip"}
+ },
+})
+
+minetest.register_craft( {
+ output = "homedecor:doorbell",
+ recipe = {
+ { "homedecor:light_switch", "basic_materials:energy_crystal_simple", "homedecor:speaker_driver" }
+ },
+})
diff --git a/homedecor_electrical/sounds/homedecor_doorbell.ogg b/homedecor_electrical/sounds/homedecor_doorbell.ogg
new file mode 100644
index 0000000..bdf4cea
--- /dev/null
+++ b/homedecor_electrical/sounds/homedecor_doorbell.ogg
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_doorbell.png b/homedecor_electrical/textures/homedecor_doorbell.png
new file mode 100644
index 0000000..03387d7
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_doorbell.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_doorbell_inv.png b/homedecor_electrical/textures/homedecor_doorbell_inv.png
new file mode 100644
index 0000000..378b7a7
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_doorbell_inv.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_light_switch_back.png b/homedecor_electrical/textures/homedecor_light_switch_back.png
new file mode 100644
index 0000000..8ad7c7e
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_light_switch_back.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_light_switch_edges.png b/homedecor_electrical/textures/homedecor_light_switch_edges.png
new file mode 100644
index 0000000..0db6f43
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_light_switch_edges.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_light_switch_front.png b/homedecor_electrical/textures/homedecor_light_switch_front.png
new file mode 100644
index 0000000..f91ab5e
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_light_switch_front.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_light_switch_inv.png b/homedecor_electrical/textures/homedecor_light_switch_inv.png
new file mode 100644
index 0000000..80bf972
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_light_switch_inv.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_outlet_back.png b/homedecor_electrical/textures/homedecor_outlet_back.png
new file mode 100644
index 0000000..010dcb2
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_outlet_back.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_outlet_edges.png b/homedecor_electrical/textures/homedecor_outlet_edges.png
new file mode 100644
index 0000000..1b86f80
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_outlet_edges.png
Binary files differ
diff --git a/homedecor_electrical/textures/homedecor_outlet_inv.png b/homedecor_electrical/textures/homedecor_outlet_inv.png
new file mode 100644
index 0000000..0cf5efd
--- /dev/null
+++ b/homedecor_electrical/textures/homedecor_outlet_inv.png
Binary files differ