Set blast resistance for all doors

This commit is contained in:
Wuzzy 2017-06-05 22:09:48 +02:00
parent 8ed54d4bd9
commit daf89c0b52
2 changed files with 12 additions and 1 deletions

View file

@ -220,6 +220,7 @@ function mcl_doors:register_door(name, def)
}, },
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,
_mcl_blast_resistance = def._mcl_blast_resistance,
sounds = def.sounds, sounds = def.sounds,
after_destruct = function(bottom, oldnode) after_destruct = function(bottom, oldnode)
@ -266,6 +267,7 @@ function mcl_doors:register_door(name, def)
}, },
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,
_mcl_blast_resistance = def._mcl_blast_resistance,
sounds = def.sounds, sounds = def.sounds,
after_destruct = function(top, oldnode) after_destruct = function(top, oldnode)
@ -308,6 +310,7 @@ function mcl_doors:register_door(name, def)
}, },
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,
_mcl_blast_resistance = def._mcl_blast_resistance,
sounds = def.sounds, sounds = def.sounds,
after_destruct = function(bottom, oldnode) after_destruct = function(bottom, oldnode)
@ -354,6 +357,7 @@ function mcl_doors:register_door(name, def)
}, },
groups = def.groups, groups = def.groups,
_mcl_hardness = def._mcl_hardness, _mcl_hardness = def._mcl_hardness,
_mcl_blast_resistance = def._mcl_blast_resistance,
sounds = def.sounds, sounds = def.sounds,
after_destruct = function(top, oldnode) after_destruct = function(top, oldnode)

View file

@ -11,6 +11,7 @@ mcl_doors:register_door("mcl_doors:wooden_door", {
inventory_image = "door_wood.png", inventory_image = "door_wood.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_wood_b.png", "door_wood_b.png"}, tiles_bottom = {"door_wood_b.png", "door_wood_b.png"},
tiles_top = {"door_wood_a.png", "door_wood_a.png"}, tiles_top = {"door_wood_a.png", "door_wood_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -33,6 +34,7 @@ mcl_doors:register_door("mcl_doors:acacia_door", {
inventory_image = "door_acacia.png", inventory_image = "door_acacia.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_acacia_b.png", "door_acacia_b.png"}, tiles_bottom = {"door_acacia_b.png", "door_acacia_b.png"},
tiles_top = {"door_acacia_a.png", "door_acacia_a.png"}, tiles_top = {"door_acacia_a.png", "door_acacia_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -55,6 +57,7 @@ mcl_doors:register_door("mcl_doors:birch_door", {
inventory_image = "door_birch.png", inventory_image = "door_birch.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_birch_b.png", "door_birch_b.png"}, tiles_bottom = {"door_birch_b.png", "door_birch_b.png"},
tiles_top = {"door_birch_a.png", "door_birch_a.png"}, tiles_top = {"door_birch_a.png", "door_birch_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -77,6 +80,7 @@ mcl_doors:register_door("mcl_doors:dark_oak_door", {
inventory_image = "door_dark_oak.png", inventory_image = "door_dark_oak.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_dark_oak_b.png", "door_dark_oak_b.png"}, tiles_bottom = {"door_dark_oak_b.png", "door_dark_oak_b.png"},
tiles_top = {"door_dark_oak_a.png", "door_dark_oak_a.png"}, tiles_top = {"door_dark_oak_a.png", "door_dark_oak_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -99,6 +103,7 @@ mcl_doors:register_door("mcl_doors:jungle_door", {
inventory_image = "door_jungle.png", inventory_image = "door_jungle.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_jungle_b.png", "door_jungle_b.png"}, tiles_bottom = {"door_jungle_b.png", "door_jungle_b.png"},
tiles_top = {"door_jungle_a.png", "door_jungle_a.png"}, tiles_top = {"door_jungle_a.png", "door_jungle_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -121,6 +126,7 @@ mcl_doors:register_door("mcl_doors:spruce_door", {
inventory_image = "door_spruce.png", inventory_image = "door_spruce.png",
groups = {handy=1,axey=1, material_wood=1}, groups = {handy=1,axey=1, material_wood=1},
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 15,
tiles_bottom = {"door_spruce_b.png", "door_spruce_b.png"}, tiles_bottom = {"door_spruce_b.png", "door_spruce_b.png"},
tiles_top = {"door_spruce_a.png", "door_spruce_a.png"}, tiles_top = {"door_spruce_a.png", "door_spruce_a.png"},
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -166,7 +172,7 @@ minetest.register_craft({
burntime = 10, burntime = 10,
}) })
--- Door in Iron --- --- Iron Door ---
mcl_doors:register_door("mcl_doors:iron_door", { mcl_doors:register_door("mcl_doors:iron_door", {
description = "Iron Door", description = "Iron Door",
_doc_items_longdesc = "Iron doors are 2-block high barriers which can only be opened or closed by a redstone signal, but not by hand.", _doc_items_longdesc = "Iron doors are 2-block high barriers which can only be opened or closed by a redstone signal, but not by hand.",
@ -174,6 +180,7 @@ mcl_doors:register_door("mcl_doors:iron_door", {
inventory_image = "door_steel.png", inventory_image = "door_steel.png",
groups = {pickaxey=1, mesecon_effector_on=1}, groups = {pickaxey=1, mesecon_effector_on=1},
_mcl_hardness = 5, _mcl_hardness = 5,
_mcl_blast_resistance = 25,
tiles_bottom = {"door_steel_b.png^[transformFX", "door_steel_b.png^[transformFX"}, tiles_bottom = {"door_steel_b.png^[transformFX", "door_steel_b.png^[transformFX"},
tiles_top = {"door_steel_a.png^[transformFX", "door_steel_a.png^[transformFX"}, tiles_top = {"door_steel_a.png^[transformFX", "door_steel_a.png^[transformFX"},
sounds = mcl_sounds.node_sound_metal_defaults(), sounds = mcl_sounds.node_sound_metal_defaults(),