From a5eef1c5de77fa7770877802e66c3e1c53f9a0da Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 24 Apr 2019 18:59:36 -0400 Subject: 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. --- homedecor_electrical/depends.txt | 3 + homedecor_electrical/init.lua | 108 +++++++++++++++++++++ homedecor_electrical/sounds/homedecor_doorbell.ogg | Bin 0 -> 14497 bytes .../textures/homedecor_doorbell.png | Bin 0 -> 167 bytes .../textures/homedecor_doorbell_inv.png | Bin 0 -> 1483 bytes .../textures/homedecor_light_switch_back.png | Bin 0 -> 310 bytes .../textures/homedecor_light_switch_edges.png | Bin 0 -> 175 bytes .../textures/homedecor_light_switch_front.png | Bin 0 -> 142 bytes .../textures/homedecor_light_switch_inv.png | Bin 0 -> 3147 bytes .../textures/homedecor_outlet_back.png | Bin 0 -> 312 bytes .../textures/homedecor_outlet_edges.png | Bin 0 -> 200 bytes .../textures/homedecor_outlet_inv.png | Bin 0 -> 3906 bytes 12 files changed, 111 insertions(+) create mode 100644 homedecor_electrical/depends.txt create mode 100644 homedecor_electrical/init.lua create mode 100644 homedecor_electrical/sounds/homedecor_doorbell.ogg create mode 100644 homedecor_electrical/textures/homedecor_doorbell.png create mode 100644 homedecor_electrical/textures/homedecor_doorbell_inv.png create mode 100644 homedecor_electrical/textures/homedecor_light_switch_back.png create mode 100644 homedecor_electrical/textures/homedecor_light_switch_edges.png create mode 100644 homedecor_electrical/textures/homedecor_light_switch_front.png create mode 100644 homedecor_electrical/textures/homedecor_light_switch_inv.png create mode 100644 homedecor_electrical/textures/homedecor_outlet_back.png create mode 100644 homedecor_electrical/textures/homedecor_outlet_edges.png create mode 100644 homedecor_electrical/textures/homedecor_outlet_inv.png (limited to 'homedecor_electrical') 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 Binary files /dev/null and b/homedecor_electrical/sounds/homedecor_doorbell.ogg differ diff --git a/homedecor_electrical/textures/homedecor_doorbell.png b/homedecor_electrical/textures/homedecor_doorbell.png new file mode 100644 index 0000000..03387d7 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_doorbell.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_doorbell_inv.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_light_switch_back.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_light_switch_edges.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_light_switch_front.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_light_switch_inv.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_outlet_back.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_outlet_edges.png 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 Binary files /dev/null and b/homedecor_electrical/textures/homedecor_outlet_inv.png differ -- cgit v1.2.3