diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 06:02:26 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-23 06:02:26 +0300 |
commit | ca7369d944dde40e51cff490903d6f5601ec42c7 (patch) | |
tree | dd23cf8898ac7d2cf61d7f6d498c3f1381f30fbd | |
parent | deea91c51c8e5fde59c5b0b9289b32a2ca8b37f5 (diff) |
moredoors
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | doors.lua | 110 | ||||
-rw-r--r-- | textures/minetest_errata_door_clean_glass.png | bin | 0 -> 415 bytes | |||
-rw-r--r-- | textures/minetest_errata_door_clean_glass_item.png | bin | 0 -> 168 bytes | |||
-rw-r--r-- | textures/minetest_errata_door_coal_glass.png | bin | 0 -> 409 bytes | |||
-rw-r--r-- | textures/minetest_errata_door_coal_glass_item.png | bin | 0 -> 200 bytes | |||
-rw-r--r-- | textures/minetest_errata_door_iron_glass.png | bin | 0 -> 394 bytes | |||
-rw-r--r-- | textures/minetest_errata_door_iron_glass_item.png | bin | 0 -> 200 bytes |
8 files changed, 107 insertions, 5 deletions
@@ -13,6 +13,8 @@ By its nature, the mod is rather intrusive. It will actively try to alter and ov * paper walls, wooden bars * wooden and steel bar doors * sandstone cobble varieties, with stairs/slabs/microblocks, walls, pkarcs +* doors from moreblocks glass types (clean, iron, coal) +* locked glass doors (regular, obsidian, iron glass) ## Borrowed items @@ -3,8 +3,6 @@ doors.register("door_wood_bar", { tiles = {{ name = "minetest_errata_door_wood_bar.png", backface_culling = true }}, description = "Wooden Bar Door", - _doc_items_longdec = door_simple, - _doc_items_usagehelp = door_simple_use, inventory_image = "minetest_errata_door_wood_bar_item.png", sounds = default.node_sound_wood_defaults(), sound_open = "doors_fencegate_open", @@ -19,8 +17,6 @@ doors.register("door_wood_bar", { doors.register("door_iron_bar", { tiles = {{ name = "minetest_errata_door_iron_bar.png", backface_culling = true }}, description = "Iron Bar Door", - _doc_items_longdec = door_simple, - _doc_items_usagehelp = door_simple_use, inventory_image = "minetest_errata_door_iron_bar_item.png", sound_open = "minetest_errata_door_iron_bar_open", sound_close = "minetest_errata_door_iron_bar_close", @@ -30,4 +26,108 @@ doors.register("door_iron_bar", { {"xpanes:bar_flat",}, {"xpanes:bar_flat",}, } -})
\ No newline at end of file +}) + +-- Protected glass doors + +doors.register("door_glass_protected", { + tiles = {"doors_door_glass.png"}, + description = "Protected Glass Door", + protected = true, + inventory_image = "doors_item_glass.png^default_key.png^[transformR180FX", + groups = {cracky=3, oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), + sound_open = "doors_glass_door_open", + sound_close = "doors_glass_door_close", + recipe = { + {"default:glass", "default:glass", ""}, + {"default:glass", "default:glass", "default:steel_ingot"}, + {"default:glass", "default:glass", ""}, + } +}) + + +doors.register("door_obsidian_glass_protected", { + tiles = {"doors_door_obsidian_glass.png"}, + description = "Protected Obsidian Glass Door", + protected = true, + inventory_image = "doors_item_obsidian_glass.png^default_key.png^[transformR180FX", + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), + sound_open = "doors_glass_door_open", + sound_close = "doors_glass_door_close", + recipe = { + {"default:obsidian_glass", "default:obsidian_glass", ""}, + {"default:obsidian_glass", "default:obsidian_glass", "default:steel_ingot"}, + {"default:obsidian_glass", "default:obsidian_glass", ""}, + }, +}) + + + +if minetest.get_modpath("moreblocks") then + + doors.register("door_clean_glass", { + tiles = {{ name = "minetest_errata_door_clean_glass.png", backface_culling = false }}, + description = "Clean Glass Door", + inventory_image = "minetest_errata_door_clean_glass_item.png", + sound_open = "minetest_errata_door_clean_glass_open", + sound_close = "minetest_errata_door_clean_glass_close", + sounds = metal_sounds, + groups = { snappy = 2, bendy = 1, cracky = 1, melty = 2, }, + recipe = { + {"moreblocks:clean_glass","moreblocks:clean_glass",""}, + {"moreblocks:clean_glass","moreblocks:clean_glass",""}, + {"moreblocks:clean_glass","moreblocks:clean_glass",""}, + } + }) + + doors.register("door_coal_glass", { + tiles = {{ name = "minetest_errata_door_coal_glass.png", backface_culling = false }}, + description = "Coal Glass Door", + inventory_image = "minetest_errata_door_coal_glass_item.png", + sound_open = "minetest_errata_door_coal_glass_open", + sound_close = "minetest_errata_door_coal_glass_close", + sounds = metal_sounds, + groups = { snappy = 2, bendy = 1, cracky = 1, melty = 2, }, + recipe = { + {"moreblocks:coal_glass","moreblocks:coal_glass",""}, + {"moreblocks:coal_glass","moreblocks:coal_glass",""}, + {"moreblocks:coal_glass","moreblocks:coal_glass",""}, + } + }) + + doors.register("door_iron_glass", { + tiles = {{ name = "minetest_errata_door_iron_glass.png", backface_culling = false }}, + description = "Iron Glass Door", + inventory_image = "minetest_errata_door_iron_glass_item.png", + sound_open = "minetest_errata_door_iron_glass_open", + sound_close = "minetest_errata_door_iron_glass_close", + sounds = metal_sounds, + groups = { snappy = 2, bendy = 1, cracky = 1, melty = 2, }, + recipe = { + {"moreblocks:iron_glass","moreblocks:iron_glass",""}, + {"moreblocks:iron_glass","moreblocks:iron_glass",""}, + {"moreblocks:iron_glass","moreblocks:iron_glass",""}, + } + }) + + -- protected iron door + + doors.register("door_iron_glass_protected", { + tiles = {{ name = "minetest_errata_door_iron_glass.png", backface_culling = false }}, + description = "Protected Iron Glass Door", + protected = true, + inventory_image = "minetest_errata_door_iron_glass_item.png^default_key.png^[transformR180FX", + sound_open = "minetest_errata_door_iron_glass_open", + sound_close = "minetest_errata_door_iron_glass_close", + sounds = metal_sounds, + groups = { snappy = 2, bendy = 1, cracky = 1, melty = 2, }, + recipe = { + {"moreblocks:iron_glass","moreblocks:iron_glass",""}, + {"moreblocks:iron_glass","moreblocks:iron_glass","default:steel_ingot"}, + {"moreblocks:iron_glass","moreblocks:iron_glass",""}, + } + }) + +end
\ No newline at end of file diff --git a/textures/minetest_errata_door_clean_glass.png b/textures/minetest_errata_door_clean_glass.png Binary files differnew file mode 100644 index 0000000..24b8109 --- /dev/null +++ b/textures/minetest_errata_door_clean_glass.png diff --git a/textures/minetest_errata_door_clean_glass_item.png b/textures/minetest_errata_door_clean_glass_item.png Binary files differnew file mode 100644 index 0000000..b6a32ea --- /dev/null +++ b/textures/minetest_errata_door_clean_glass_item.png diff --git a/textures/minetest_errata_door_coal_glass.png b/textures/minetest_errata_door_coal_glass.png Binary files differnew file mode 100644 index 0000000..d496618 --- /dev/null +++ b/textures/minetest_errata_door_coal_glass.png diff --git a/textures/minetest_errata_door_coal_glass_item.png b/textures/minetest_errata_door_coal_glass_item.png Binary files differnew file mode 100644 index 0000000..982aa0a --- /dev/null +++ b/textures/minetest_errata_door_coal_glass_item.png diff --git a/textures/minetest_errata_door_iron_glass.png b/textures/minetest_errata_door_iron_glass.png Binary files differnew file mode 100644 index 0000000..2eb3247 --- /dev/null +++ b/textures/minetest_errata_door_iron_glass.png diff --git a/textures/minetest_errata_door_iron_glass_item.png b/textures/minetest_errata_door_iron_glass_item.png Binary files differnew file mode 100644 index 0000000..605fa1b --- /dev/null +++ b/textures/minetest_errata_door_iron_glass_item.png |