master
hightime 2018-12-16 22:19:38 -05:00
commit 449f834e29
12 changed files with 35 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

34
init.lua Normal file
View File

@ -0,0 +1,34 @@
-- HiddenDoors
hiddendoors = {}
function hiddendoors.register_door(material, name, tile_name)
minetest.register_node("hiddendoors:" .. material, {
description = name .. " Hidden Door",
walkable = false,
climbable = true,
is_ground_content = false,
inventory_image = "hiddendoors_" .. material .. "_inventory.png",
tiles = {"default_" .. tile_name .. ".png"},
groups = {cracky = 2},
})
minetest.register_craft({
output = "hiddendoors:" .. material .. " 2",
recipe = {
{"", "", ""},
{"default:glass", "default:" .. material , ""},
{"", "", ""}
}
})
end
hiddendoors.register_door("obsidian", "Obsidian", "obsidian")
hiddendoors.register_door("stone", "Stone", "stone")
hiddendoors.register_door("desert_stonebrick", "Desert Stone Brick", "desert_stone_brick")
hiddendoors.register_door("stonebrick", "Stone Brick", "stone_brick")
hiddendoors.register_door("tree", "Tree", "tree")
hiddendoors.register_door("dirt", "Dirt", "dirt")
hiddendoors.register_door("desert_stone", "Desert Stone", "desert_stone")
hiddendoors.register_door("brick", "Brick", "brick")
hiddendoors.register_door("wood", "Wood", "wood")

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B