Update init.lua

This commit is contained in:
thunderdog1138 2019-12-12 18:21:41 -05:00 committed by GitHub
parent 07be230e77
commit 5ea591189d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 17 deletions

View File

@ -465,19 +465,19 @@ doors.register("door_wood", {
} }
}) })
doors.register("door_steel", { doors.register("door_durasteel", {
tiles = {{name = "doors_door_steel.png", backface_culling = true}}, tiles = {{name = "doors_door_durasteel.png", backface_culling = true}},
description = S("Steel Door"), description = S("Durasteel Door"),
inventory_image = "doors_item_steel.png", inventory_image = "doors_item_durasteel.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(),
sound_open = "doors_steel_door_open", sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close", sound_close = "doors_steel_door_close",
recipe = { recipe = {
{"default:steel_ingot", "default:steel_ingot"}, {"default:durasteel_ingot", "duradefault:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot"}, {"default:durasteel_ingot", "duradefault:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot"}, {"default:durasteel_ingot", "duradefault:steel_ingot"},
} }
}) })
@ -522,7 +522,7 @@ 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_steel.png", backface_culling = true}} def.tiles = {{name = "doors_door_durasteel.png", backface_culling = true}}
else else
def.tiles = {{name = "doors_door_wood.png", backface_culling = true}} def.tiles = {{name = "doors_door_wood.png", backface_culling = true}}
end end
@ -693,12 +693,12 @@ doors.register_trapdoor("doors:trapdoor", {
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_steel", { doors.register_trapdoor("doors:trapdoor_durasteel", {
description = S("Steel Trapdoor"), description = S("Durasteel Trapdoor"),
inventory_image = "doors_trapdoor_steel.png", inventory_image = "doors_trapdoor_durasteel.png",
wield_image = "doors_trapdoor_steel.png", wield_image = "doors_trapdoor_durasteel.png",
tile_front = "doors_trapdoor_steel.png", tile_front = "doors_trapdoor_durasteel.png",
tile_side = "doors_trapdoor_steel_side.png", tile_side = "doors_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",
@ -716,10 +716,10 @@ minetest.register_craft({
}) })
minetest.register_craft({ minetest.register_craft({
output = "doors:trapdoor_steel", output = "doors:trapdoor_durasteel",
recipe = { recipe = {
{"default:steel_ingot", "default:steel_ingot"}, {"default:durasteel_ingot", "default:durasteel_ingot"},
{"default:steel_ingot", "default:steel_ingot"}, {"default:durasteel_ingot", "default:durasteel_ingot"},
} }
}) })