Doors are now immortal when they're closed
parent
4da0f7f603
commit
36cb0c3708
|
@ -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.
|
||||
|
|
5
init.lua
5
init.lua
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue