From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- mesecons/mesecons_pressureplates/depends.txt | 1 - .../doc/pressureplate_stone/description.html | 1 - .../doc/pressureplate_stone/preview.png | Bin 55619 -> 0 bytes .../doc/pressureplate_stone/recipe.png | Bin 8056 -> 0 bytes .../doc/pressureplate_wood/description.html | 1 - .../doc/pressureplate_wood/preview.png | Bin 63535 -> 0 bytes .../doc/pressureplate_wood/recipe.png | Bin 7717 -> 0 bytes mesecons/mesecons_pressureplates/init.lua | 94 --------------------- .../textures/jeija_pressure_plate_stone_inv.png | Bin 604 -> 0 bytes .../textures/jeija_pressure_plate_stone_off.png | Bin 555 -> 0 bytes .../jeija_pressure_plate_stone_off_edges.png | Bin 292 -> 0 bytes .../textures/jeija_pressure_plate_stone_on.png | Bin 579 -> 0 bytes .../jeija_pressure_plate_stone_on_edges.png | Bin 336 -> 0 bytes .../textures/jeija_pressure_plate_stone_wield.png | Bin 604 -> 0 bytes .../textures/jeija_pressure_plate_wood_inv.png | Bin 716 -> 0 bytes .../textures/jeija_pressure_plate_wood_off.png | Bin 663 -> 0 bytes .../jeija_pressure_plate_wood_off_edges.png | Bin 295 -> 0 bytes .../textures/jeija_pressure_plate_wood_on.png | Bin 675 -> 0 bytes .../jeija_pressure_plate_wood_on_edges.png | Bin 336 -> 0 bytes .../textures/jeija_pressure_plate_wood_wield.png | Bin 716 -> 0 bytes 20 files changed, 97 deletions(-) delete mode 100644 mesecons/mesecons_pressureplates/depends.txt delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_stone/description.html delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.png delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.png delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_wood/description.html delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.png delete mode 100644 mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.png delete mode 100644 mesecons/mesecons_pressureplates/init.lua delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.png delete mode 100644 mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.png (limited to 'mesecons/mesecons_pressureplates') diff --git a/mesecons/mesecons_pressureplates/depends.txt b/mesecons/mesecons_pressureplates/depends.txt deleted file mode 100644 index acaa924..0000000 --- a/mesecons/mesecons_pressureplates/depends.txt +++ /dev/null @@ -1 +0,0 @@ -mesecons diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/description.html b/mesecons/mesecons_pressureplates/doc/pressureplate_stone/description.html deleted file mode 100644 index 3edc95b..0000000 --- a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/description.html +++ /dev/null @@ -1 +0,0 @@ -This receptor turns on if there's an object above it. And object can be a player, an item, a mob... diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.png b/mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.png deleted file mode 100644 index 235ffc4..0000000 Binary files a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.png b/mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.png deleted file mode 100644 index 62acf45..0000000 Binary files a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/description.html b/mesecons/mesecons_pressureplates/doc/pressureplate_wood/description.html deleted file mode 100644 index 3edc95b..0000000 --- a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/description.html +++ /dev/null @@ -1 +0,0 @@ -This receptor turns on if there's an object above it. And object can be a player, an item, a mob... diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.png b/mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.png deleted file mode 100644 index 7063cb0..0000000 Binary files a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.png b/mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.png deleted file mode 100644 index 429d491..0000000 Binary files a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/init.lua b/mesecons/mesecons_pressureplates/init.lua deleted file mode 100644 index b00db9a..0000000 --- a/mesecons/mesecons_pressureplates/init.lua +++ /dev/null @@ -1,94 +0,0 @@ -local pp_box_off = { - type = "fixed", - fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, -} - -local pp_box_on = { - type = "fixed", - fixed = { -7/16, -8/16, -7/16, 7/16, -7.5/16, 7/16 }, -} - -pp_on_timer = function (pos, elapsed) - local node = minetest.get_node(pos) - local basename = minetest.registered_nodes[node.name].pressureplate_basename - - -- This is a workaround for a strange bug that occurs when the server is started - -- For some reason the first time on_timer is called, the pos is wrong - if not basename then return end - - local objs = minetest.get_objects_inside_radius(pos, 1) - local two_below = mesecon.addPosRule(pos, {x = 0, y = -2, z = 0}) - - if objs[1] == nil and node.name == basename .. "_on" then - minetest.add_node(pos, {name = basename .. "_off"}) - mesecon.receptor_off(pos, mesecon.rules.pplate) - elseif node.name == basename .. "_off" then - for k, obj in pairs(objs) do - local objpos = obj:getpos() - if objpos.y > pos.y-1 and objpos.y < pos.y then - minetest.add_node(pos, {name = basename .. "_on"}) - mesecon.receptor_on(pos, mesecon.rules.pplate ) - end - end - end - return true -end - --- Register a Pressure Plate --- offstate: name of the pressure plate when inactive --- onstate: name of the pressure plate when active --- description: description displayed in the player's inventory --- tiles_off: textures of the pressure plate when inactive --- tiles_on: textures of the pressure plate when active --- image: inventory and wield image of the pressure plate --- recipe: crafting recipe of the pressure plate - -function mesecon.register_pressure_plate(basename, description, textures_off, textures_on, image_w, image_i, recipe) - mesecon.register_node(basename, { - drawtype = "nodebox", - inventory_image = image_i, - wield_image = image_w, - paramtype = "light", - description = description, - pressureplate_basename = basename, - on_timer = pp_on_timer, - on_construct = function(pos) - minetest.get_node_timer(pos):start(mesecon.setting("pplate_interval", 0.1)) - end, - },{ - mesecons = {receptor = { state = mesecon.state.off, rules = mesecon.rules.pplate }}, - node_box = pp_box_off, - selection_box = pp_box_off, - groups = {snappy = 2, oddly_breakable_by_hand = 3}, - tiles = textures_off - },{ - mesecons = {receptor = { state = mesecon.state.on, rules = mesecon.rules.pplate }}, - node_box = pp_box_on, - selection_box = pp_box_on, - groups = {snappy = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1}, - tiles = textures_on - }) - - minetest.register_craft({ - output = basename .. "_off", - recipe = recipe, - }) -end - -mesecon.register_pressure_plate( - "mesecons_pressureplates:pressure_plate_wood", - "Wooden Pressure Plate", - {"jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off_edges.png"}, - {"jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on_edges.png"}, - "jeija_pressure_plate_wood_wield.png", - "jeija_pressure_plate_wood_inv.png", - {{"group:wood", "group:wood"}}) - -mesecon.register_pressure_plate( - "mesecons_pressureplates:pressure_plate_stone", - "Stone Pressure Plate", - {"jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off_edges.png"}, - {"jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on_edges.png"}, - "jeija_pressure_plate_stone_wield.png", - "jeija_pressure_plate_stone_inv.png", - {{"default:cobble", "default:cobble"}}) diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.png deleted file mode 100644 index bfe5a1d..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.png deleted file mode 100644 index 46140da..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.png deleted file mode 100644 index 2ad9acc..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.png deleted file mode 100644 index dc64931..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.png deleted file mode 100644 index 51add95..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.png deleted file mode 100644 index c533567..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.png deleted file mode 100644 index 36dacd0..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.png deleted file mode 100644 index ca98757..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.png deleted file mode 100644 index 665ae97..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.png deleted file mode 100644 index e1a7d8e..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.png deleted file mode 100644 index 358f2ea..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.png and /dev/null differ diff --git a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.png b/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.png deleted file mode 100644 index 50b321d..0000000 Binary files a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.png and /dev/null differ -- cgit v1.2.3