Update 'mods/doors/init.lua'
This commit is contained in:
parent
cc2721874d
commit
cd4b6f6736
|
@ -93,7 +93,7 @@ minetest.register_node("doors:hidden", {
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
tiles = {"doors_blank.png"},
|
tiles = {"door_blank.png"},
|
||||||
-- 1px transparent block inside door hinge near node top.
|
-- 1px transparent block inside door hinge near node top.
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -454,9 +454,9 @@ function doors.register(name, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
doors.register("door_wood", {
|
doors.register("door_wood", {
|
||||||
tiles = {{ name = "doors_door_wood.png", backface_culling = true }},
|
tiles = {{ name = "door_wood.png", backface_culling = true }},
|
||||||
description = S("Wooden Door"),
|
description = S("Wooden Door"),
|
||||||
inventory_image = "doors_item_wood.png",
|
inventory_image = "door_wood_inv.png",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:wood", "group:wood"},
|
{"group:wood", "group:wood"},
|
||||||
|
@ -466,9 +466,9 @@ doors.register("door_wood", {
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register("door_durasteel", {
|
doors.register("door_durasteel", {
|
||||||
tiles = {{name = "doors_door_durasteel.png", backface_culling = true}},
|
tiles = {{name = "door_durasteel.png", backface_culling = true}},
|
||||||
description = S("Durasteel Door"),
|
description = S("Durasteel Door"),
|
||||||
inventory_image = "doors_item_durasteel.png",
|
inventory_image = "door_durasteel_inv.png",
|
||||||
protected = true,
|
protected = true,
|
||||||
groups = {cracky = 1, level = 2},
|
groups = {cracky = 1, level = 2},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
sounds = default.node_sound_metal_defaults(),
|
||||||
|
@ -482,9 +482,9 @@ doors.register("door_durasteel", {
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register("door_glass", {
|
doors.register("door_glass", {
|
||||||
tiles = {"doors_door_glass.png"},
|
tiles = {"door_glass.png"},
|
||||||
description = S("Glass Door"),
|
description = S("Glass Door"),
|
||||||
inventory_image = "doors_item_glass.png",
|
inventory_image = "door_glass_inv.png",
|
||||||
groups = {cracky=3, oddly_breakable_by_hand=3},
|
groups = {cracky=3, oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
sound_open = "doors_glass_door_open",
|
sound_open = "doors_glass_door_open",
|
||||||
|
@ -497,9 +497,9 @@ doors.register("door_glass", {
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register("door_obsidian_glass", {
|
doors.register("door_obsidian_glass", {
|
||||||
tiles = {"doors_door_obsidian_glass.png"},
|
tiles = {"door_obsidian_glass.png"},
|
||||||
description = S("Obsidian Glass Door"),
|
description = S("Obsidian Glass Door"),
|
||||||
inventory_image = "doors_item_obsidian_glass.png",
|
inventory_image = "door_obsidian_glass_inv.png",
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
sound_open = "doors_glass_door_open",
|
sound_open = "doors_glass_door_open",
|
||||||
|
@ -522,9 +522,9 @@ function doors.register_door(name, def)
|
||||||
local modname = name:sub(1, i - 1)
|
local modname = name:sub(1, i - 1)
|
||||||
if not def.tiles then
|
if not def.tiles then
|
||||||
if def.protected then
|
if def.protected then
|
||||||
def.tiles = {{name = "doors_door_durasteel.png", backface_culling = true}}
|
def.tiles = {{name = "door_durasteel.png", backface_culling = true}}
|
||||||
else
|
else
|
||||||
def.tiles = {{name = "doors_door_wood.png", backface_culling = true}}
|
def.tiles = {{name = "door_wood.png", backface_culling = true}}
|
||||||
end
|
end
|
||||||
minetest.log("warning", modname .. " registered door \"" .. name .. "\" " ..
|
minetest.log("warning", modname .. " registered door \"" .. name .. "\" " ..
|
||||||
"using deprecated API method \"doors.register_door()\" but " ..
|
"using deprecated API method \"doors.register_door()\" but " ..
|
||||||
|
@ -686,19 +686,19 @@ end
|
||||||
|
|
||||||
doors.register_trapdoor("doors:trapdoor", {
|
doors.register_trapdoor("doors:trapdoor", {
|
||||||
description = S("Wooden Trapdoor"),
|
description = S("Wooden Trapdoor"),
|
||||||
inventory_image = "doors_trapdoor.png",
|
inventory_image = "trapdoor_wood.png",
|
||||||
wield_image = "doors_trapdoor.png",
|
wield_image = "trapdoor_wood.png",
|
||||||
tile_front = "doors_trapdoor.png",
|
tile_front = "trapdoor_wood.png",
|
||||||
tile_side = "doors_trapdoor_side.png",
|
tile_side = "trapdoor_wood_side.png",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, door = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, door = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_trapdoor("doors:trapdoor_durasteel", {
|
doors.register_trapdoor("doors:trapdoor_durasteel", {
|
||||||
description = S("Durasteel Trapdoor"),
|
description = S("Durasteel Trapdoor"),
|
||||||
inventory_image = "doors_trapdoor_durasteel.png",
|
inventory_image = "trapdoor_durasteel.png",
|
||||||
wield_image = "doors_trapdoor_durasteel.png",
|
wield_image = "trapdoor_durasteel.png",
|
||||||
tile_front = "doors_trapdoor_durasteel.png",
|
tile_front = "trapdoor_durasteel.png",
|
||||||
tile_side = "doors_trapdoor_durasteel_side.png",
|
tile_side = "trapdoor_durasteel_side.png",
|
||||||
protected = true,
|
protected = true,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
sounds = default.node_sound_metal_defaults(),
|
||||||
sound_open = "doors_steel_door_open",
|
sound_open = "doors_steel_door_open",
|
||||||
|
@ -803,49 +803,49 @@ end
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_jogan_wood", {
|
doors.register_fencegate("doors:gate_jogan_wood", {
|
||||||
description = S("Jogan Wood Fence Gate"),
|
description = S("Jogan Wood Fence Gate"),
|
||||||
texture = "ethereal_jogan_wood.png",
|
texture = "jogan_wood.png",
|
||||||
material = "ethereal:wood",
|
material = "ethereal:jogan_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_pine_wood", {
|
doors.register_fencegate("doors:gate_pine_wood", {
|
||||||
description = S("Pine Wood Fence Gate"),
|
description = S("Pine Wood Fence Gate"),
|
||||||
texture = "ethereal_pine_wood.png",
|
texture = "pine_wood.png",
|
||||||
material = "ethereal:pine_wood",
|
material = "ethereal:pine_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_palm_wood", {
|
doors.register_fencegate("doors:gate_palm_wood", {
|
||||||
description = S("Palm Wood Fence Gate"),
|
description = S("Palm Wood Fence Gate"),
|
||||||
texture = "ethereal_palm_wood.png",
|
texture = "palm_wood.png",
|
||||||
material = "ethereal:palm_wood",
|
material = "ethereal:palm_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_wroshyr_wood", {
|
doors.register_fencegate("doors:gate_wroshyr_wood", {
|
||||||
description = S("Wroshyr Wood Fence Gate"),
|
description = S("Wroshyr Wood Fence Gate"),
|
||||||
texture = "ethereal_wroshyr_wood.png",
|
texture = "wroshyr_wood.png",
|
||||||
material = "ethereal:wroshyr_wood",
|
material = "ethereal:wroshyr_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_brylark_wood", {
|
doors.register_fencegate("doors:gate_brylark_wood", {
|
||||||
description = S("Brylark Wood Fence Gate"),
|
description = S("Brylark Wood Fence Gate"),
|
||||||
texture = "ethereal_brylark_wood.png",
|
texture = "brylark_wood.png",
|
||||||
material = "ethereal:brylark_wood",
|
material = "ethereal:brylark_wood",
|
||||||
groups = {cracky = 2}
|
groups = {cracky = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_uneti_wood", {
|
doors.register_fencegate("doors:gate_uneti_wood", {
|
||||||
description = S("Uneti Wood Fence Gate"),
|
description = S("Uneti Wood Fence Gate"),
|
||||||
texture = "ethereal_uneti_wood.png",
|
texture = "uneti_wood.png",
|
||||||
material = "ethereal:uneti_wood",
|
material = "ethereal:uneti_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
||||||
doors.register_fencegate("doors:gate_gnarltree_wood", {
|
doors.register_fencegate("doors:gate_gnarltree_wood", {
|
||||||
description = S("Gnarltree Wood Fence Gate"),
|
description = S("Gnarltree Wood Fence Gate"),
|
||||||
texture = "ethereal_gnarltree_wood.png",
|
texture = "gnarltree_wood.png",
|
||||||
material = "ethereal:gnarltree_wood",
|
material = "ethereal:gnarltree_wood",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue