@@ -228,8 +228,9 @@ The doors mod allows modders to register custom doors and trapdoors.
228
228
gain_open = 0.3, -- optional, defaults to 0.3
229
229
gain_close = 0.3, -- optional, defaults to 0.3
230
230
protected = false, -- If true, only placer can open the door (locked for others)
231
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
231
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing),
232
232
-- optional function containing the on_rightclick callback, defaults to a doors.door_toggle-wrapper
233
+ use_texture_alpha = "clip",
233
234
234
235
### Trapdoor definition
235
236
@@ -249,10 +250,9 @@ The doors mod allows modders to register custom doors and trapdoors.
249
250
gain_open = 0.3, -- optional, defaults to 0.3
250
251
gain_close = 0.3, -- optional, defaults to 0.3
251
252
protected = false, -- If true, only placer can open the door (locked for others)
252
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
253
- -- function containing the on_rightclick callback
254
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
253
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) ,
255
254
-- function containing the on_rightclick callback
255
+ use_texture_alpha = "clip",
256
256
257
257
### Fence gate definition
258
258
@@ -262,7 +262,7 @@ The doors mod allows modders to register custom doors and trapdoors.
262
262
material = "default:wood",
263
263
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
264
264
sounds = default.node_sound_wood_defaults(), -- optional
265
- on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
265
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
266
266
-- function containing the on_rightclick callback
267
267
268
268
0 commit comments