Doors are now immortal when they're closed

master
MetalDescendant 2012-07-31 20:02:26 -07:00
parent 4da0f7f603
commit 36cb0c3708
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,4 @@
This mod is meant to be used with node protection because
the door can be dug. Everything in this mod is licensed
under the WTFPL.
This mod is meant to be used with node protection because
people can dig around the door and the door itself can be
dug when unlocked. Everything in this mod is licensed under
the WTFPL.

View File

@ -100,7 +100,7 @@ local lockedDoorProperties = {
sunlight_propagates = true,
paramtype="light",
paramtype2 = "wallmounted",
groups = {crumbly=3},
groups = {immortal=1},
walkable = true,
diggable = true,
climbable = false,
@ -120,8 +120,11 @@ for key, value in pairs(lockedDoorProperties) do
lockedDoorTopProperties[key] = value
unlockedDoorTopProperties[key] = value
end
unlockedDoorProperties.walkable = false
unlockedDoorProperties.groups = {crumbly=3}
unlockedDoorTopProperties.walkable = false
unlockedDoorTopProperties.groups = {crumbly=3}
lockedDoorTopProperties.tiles = {"locked_door_top.png"}
lockedDoorTopProperties.drop = ""
unlockedDoorTopProperties.tiles = {"locked_door_top.png"}