49
49
-- image: inventory and wield image of the pressure plate
50
50
-- recipe: crafting recipe of the pressure plate
51
51
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 )
53
53
local ppspec = {
54
54
offstate = offstate ,
55
55
onstate = onstate
56
56
}
57
57
58
58
minetest .register_node (offstate , {
59
59
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 ,
63
63
paramtype = " light" ,
64
64
selection_box = pp_box_off ,
65
65
node_box = pp_box_off ,
@@ -77,7 +77,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
77
77
78
78
minetest .register_node (onstate , {
79
79
drawtype = " nodebox" ,
80
- tiles = { texture_on } ,
80
+ tiles = textures_on ,
81
81
paramtype = " light" ,
82
82
selection_box = pp_box_on ,
83
83
node_box = pp_box_on ,
@@ -110,16 +110,18 @@ mesecon:register_pressure_plate(
110
110
" mesecons_pressureplates:pressure_plate_wood_off" ,
111
111
" mesecons_pressureplates:pressure_plate_wood_on" ,
112
112
" 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" ,
116
117
{{" default:wood" , " default:wood" }})
117
118
118
119
mesecon :register_pressure_plate (
119
120
" mesecons_pressureplates:pressure_plate_stone_off" ,
120
121
" mesecons_pressureplates:pressure_plate_stone_on" ,
121
122
" 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" ,
125
127
{{" default:cobble" , " default:cobble" }})
0 commit comments