Skip to content

Commit fc52451

Browse files
committedApr 21, 2013
Merge pull request #95 from VanessaE/master
Pressure plate texturing tweaks
2 parents 1a5b1b4 + 109d817 commit fc52451

13 files changed

+13
-11
lines changed
 

‎mesecons_pressureplates/init.lua

+13-11
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ end
4949
-- image: inventory and wield image of the pressure plate
5050
-- recipe: crafting recipe of the pressure plate
5151

52-
function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, image, recipe)
52+
function mesecon:register_pressure_plate(offstate, onstate, description, textures_off, textures_on, image_w, image_i, recipe)
5353
local ppspec = {
5454
offstate = offstate,
5555
onstate = onstate
5656
}
5757

5858
minetest.register_node(offstate, {
5959
drawtype = "nodebox",
60-
tiles = {texture_off},
61-
inventory_image = texture_off,
62-
wield_image = image,
60+
tiles = textures_off,
61+
inventory_image = image_i,
62+
wield_image = image_w,
6363
paramtype = "light",
6464
selection_box = pp_box_off,
6565
node_box = pp_box_off,
@@ -77,7 +77,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
7777

7878
minetest.register_node(onstate, {
7979
drawtype = "nodebox",
80-
tiles = {texture_on},
80+
tiles = textures_on,
8181
paramtype = "light",
8282
selection_box = pp_box_on,
8383
node_box = pp_box_on,
@@ -110,16 +110,18 @@ mesecon:register_pressure_plate(
110110
"mesecons_pressureplates:pressure_plate_wood_off",
111111
"mesecons_pressureplates:pressure_plate_wood_on",
112112
"Wooden Pressure Plate",
113-
"jeija_pressure_plate_wood_off.png",
114-
"jeija_pressure_plate_wood_on.png",
115-
"jeija_pressure_plate_wood_off.png",
113+
{"jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off.png","jeija_pressure_plate_wood_off_edges.png"},
114+
{"jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on.png","jeija_pressure_plate_wood_on_edges.png"},
115+
"jeija_pressure_plate_wood_wield.png",
116+
"jeija_pressure_plate_wood_inv.png",
116117
{{"default:wood", "default:wood"}})
117118

118119
mesecon:register_pressure_plate(
119120
"mesecons_pressureplates:pressure_plate_stone_off",
120121
"mesecons_pressureplates:pressure_plate_stone_on",
121122
"Stone Pressure Plate",
122-
"jeija_pressure_plate_stone_off.png",
123-
"jeija_pressure_plate_stone_on.png",
124-
"jeija_pressure_plate_stone_off.png",
123+
{"jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off.png","jeija_pressure_plate_stone_off_edges.png"},
124+
{"jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on.png","jeija_pressure_plate_stone_on_edges.png"},
125+
"jeija_pressure_plate_stone_wield.png",
126+
"jeija_pressure_plate_stone_inv.png",
125127
{{"default:cobble", "default:cobble"}})
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.