summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-04-21 01:00:31 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-04-21 01:00:31 -0400
commit109d817df659fe235b7bbb7fce6f0057b6583358 (patch)
tree21645099c185b33aeae7711117d31bde6cac0e2a
parent1a5b1b46912fa50c2b030700bb4b9503d07a0980 (diff)
downloadmesecons-109d817df659fe235b7bbb7fce6f0057b6583358.tar
mesecons-109d817df659fe235b7bbb7fce6f0057b6583358.tar.gz
mesecons-109d817df659fe235b7bbb7fce6f0057b6583358.tar.bz2
mesecons-109d817df659fe235b7bbb7fce6f0057b6583358.tar.xz
mesecons-109d817df659fe235b7bbb7fce6f0057b6583358.zip
Make pressure plate texturing more flexible, improve appearance of existing textures
-rw-r--r--mesecons_pressureplates/init.lua24
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_inv.pngbin0 -> 604 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_off.pngbin648 -> 555 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_off_edges.pngbin0 -> 292 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_on.pngbin680 -> 579 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_on_edges.pngbin0 -> 336 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_stone_wield.pngbin0 -> 604 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_inv.pngbin0 -> 716 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_off.pngbin750 -> 663 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_off_edges.pngbin0 -> 295 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_on.pngbin772 -> 675 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_on_edges.pngbin0 -> 336 bytes
-rw-r--r--mesecons_textures/textures/jeija_pressure_plate_wood_wield.pngbin0 -> 716 bytes
13 files changed, 13 insertions, 11 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua
index 3ec7c91..975e77f 100644
--- a/mesecons_pressureplates/init.lua
+++ b/mesecons_pressureplates/init.lua
@@ -49,7 +49,7 @@ end
-- image: inventory and wield image of the pressure plate
-- recipe: crafting recipe of the pressure plate
-function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, image, recipe)
+function mesecon:register_pressure_plate(offstate, onstate, description, textures_off, textures_on, image_w, image_i, recipe)
local ppspec = {
offstate = offstate,
onstate = onstate
@@ -57,9 +57,9 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
minetest.register_node(offstate, {
drawtype = "nodebox",
- tiles = {texture_off},
- inventory_image = texture_off,
- wield_image = image,
+ tiles = textures_off,
+ inventory_image = image_i,
+ wield_image = image_w,
paramtype = "light",
selection_box = pp_box_off,
node_box = pp_box_off,
@@ -77,7 +77,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
minetest.register_node(onstate, {
drawtype = "nodebox",
- tiles = {texture_on},
+ tiles = textures_on,
paramtype = "light",
selection_box = pp_box_on,
node_box = pp_box_on,
@@ -110,16 +110,18 @@ mesecon:register_pressure_plate(
"mesecons_pressureplates:pressure_plate_wood_off",
"mesecons_pressureplates:pressure_plate_wood_on",
"Wooden Pressure Plate",
- "jeija_pressure_plate_wood_off.png",
- "jeija_pressure_plate_wood_on.png",
- "jeija_pressure_plate_wood_off.png",
+ {"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",
{{"default:wood", "default:wood"}})
mesecon:register_pressure_plate(
"mesecons_pressureplates:pressure_plate_stone_off",
"mesecons_pressureplates:pressure_plate_stone_on",
"Stone Pressure Plate",
- "jeija_pressure_plate_stone_off.png",
- "jeija_pressure_plate_stone_on.png",
- "jeija_pressure_plate_stone_off.png",
+ {"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_textures/textures/jeija_pressure_plate_stone_inv.png b/mesecons_textures/textures/jeija_pressure_plate_stone_inv.png
new file mode 100644
index 0000000..bfe5a1d
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_inv.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_stone_off.png b/mesecons_textures/textures/jeija_pressure_plate_stone_off.png
index 9952b65..46140da 100644
--- a/mesecons_textures/textures/jeija_pressure_plate_stone_off.png
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_stone_off_edges.png b/mesecons_textures/textures/jeija_pressure_plate_stone_off_edges.png
new file mode 100644
index 0000000..2ad9acc
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_off_edges.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_stone_on.png b/mesecons_textures/textures/jeija_pressure_plate_stone_on.png
index 962e4ed..dc64931 100644
--- a/mesecons_textures/textures/jeija_pressure_plate_stone_on.png
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_on.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_stone_on_edges.png b/mesecons_textures/textures/jeija_pressure_plate_stone_on_edges.png
new file mode 100644
index 0000000..51add95
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_on_edges.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_stone_wield.png b/mesecons_textures/textures/jeija_pressure_plate_stone_wield.png
new file mode 100644
index 0000000..c533567
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_stone_wield.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_inv.png b/mesecons_textures/textures/jeija_pressure_plate_wood_inv.png
new file mode 100644
index 0000000..36dacd0
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_inv.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_off.png b/mesecons_textures/textures/jeija_pressure_plate_wood_off.png
index ace94f5..ca98757 100644
--- a/mesecons_textures/textures/jeija_pressure_plate_wood_off.png
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_off.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_off_edges.png b/mesecons_textures/textures/jeija_pressure_plate_wood_off_edges.png
new file mode 100644
index 0000000..665ae97
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_off_edges.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_on.png b/mesecons_textures/textures/jeija_pressure_plate_wood_on.png
index 605d9a3..e1a7d8e 100644
--- a/mesecons_textures/textures/jeija_pressure_plate_wood_on.png
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_on.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_on_edges.png b/mesecons_textures/textures/jeija_pressure_plate_wood_on_edges.png
new file mode 100644
index 0000000..358f2ea
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_on_edges.png
Binary files differ
diff --git a/mesecons_textures/textures/jeija_pressure_plate_wood_wield.png b/mesecons_textures/textures/jeija_pressure_plate_wood_wield.png
new file mode 100644
index 0000000..50b321d
--- /dev/null
+++ b/mesecons_textures/textures/jeija_pressure_plate_wood_wield.png
Binary files differ