summaryrefslogtreecommitdiff
path: root/mesecons/mesecons_pressureplates
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:00:20 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:10:04 -0400
commit888b0ebfec8c2eff9015163549a7e47443cb8665 (patch)
tree915080159bfaa6ba6e226087c7ce0e8d5464b518 /mesecons/mesecons_pressureplates
parentda66780a569712c23ae4f2996cfb4608a9f9d69d (diff)
downloaddreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz
dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'mesecons/mesecons_pressureplates')
-rw-r--r--mesecons/mesecons_pressureplates/depends.txt1
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_stone/description.html1
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.pngbin55619 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.pngbin8056 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_wood/description.html1
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.pngbin63535 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.pngbin7717 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/init.lua94
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.pngbin604 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.pngbin555 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.pngbin292 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.pngbin579 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.pngbin336 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.pngbin604 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.pngbin716 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.pngbin663 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.pngbin295 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.pngbin675 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.pngbin336 -> 0 bytes
-rw-r--r--mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.pngbin716 -> 0 bytes
20 files changed, 0 insertions, 97 deletions
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
--- a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/preview.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/doc/pressureplate_stone/recipe.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/preview.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/doc/pressureplate_wood/recipe.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_inv.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_off_edges.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_on_edges.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_stone_wield.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_inv.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_off_edges.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_on_edges.png
+++ /dev/null
Binary files 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
--- a/mesecons/mesecons_pressureplates/textures/jeija_pressure_plate_wood_wield.png
+++ /dev/null
Binary files differ