diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-25 11:05:21 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-25 11:05:21 +0300 |
commit | 092f3bf49904f5988e874c28a1b31f970b9a5a54 (patch) | |
tree | 2a2c4d25726ca1522891b1ae74b045224066af4c | |
parent | 3212735b780d5bbaea6f569b3bc7265f6c23b145 (diff) |
mossy stone
18 files changed, 59 insertions, 2 deletions
@@ -13,4 +13,6 @@ dofile(modpath.."/missing_groups.lua") dofile(modpath.."/xpanes.lua") -dofile(modpath.."/glass_panes.lua")
\ No newline at end of file +dofile(modpath.."/glass_panes.lua") + +dofile(modpath.."/mossy_blocks.lua")
\ No newline at end of file diff --git a/mossy_blocks.lua b/mossy_blocks.lua new file mode 100644 index 0000000..1d2c98a --- /dev/null +++ b/mossy_blocks.lua @@ -0,0 +1,55 @@ +local node = { + name = "minetest_errata:mossystone", + short_name = "mossystone", + desc = "Mossy Stone", + tile = "default_stone.png^minetest_errata_moss_overlay.png", +} + + + +minetest.register_node(node.name, { + description = node.desc, + tiles = {node.tile}, + groups = {cracky = 3, stone = 1}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + drop = "default:mossycobble", +}) + +minetest.register_craft({ + output = node.name, + type = "shapeless", + recipe = {"default:junglegrass", "default:stone"}, +}) + + +-- Derivative blocks + +if stairs and stairs.mod and stairs.mod == "redo" then + + stairs.register_all(short_name, node.name, + {cracky = 3, stone = 1}, + {node.tile}, + node.desc .. " Stair", + node.desc .. " Slab", + default.node_sound_wood_defaults()) + +elseif minetest.global_exists("stairsplus") then + + stairsplus:register_all("minetest_errata", short_name, node.name, { + description = node.desc, + tiles = {node.tile}, + groups = {cracky = 3, stone = 1}, + sounds = default.node_sound_wood_defaults(), + }) + +else + + stairs.register_stair_and_slab(short_name, node.name, + {cracky = 3, stone = 1}, + {node.tile}, + node.desc .. " Stair", + node.desc .. " Slab", + default.node_sound_wood_defaults()) + +end
\ No newline at end of file diff --git a/sandstone_cobble.lua b/sandstone_cobble.lua index 3486257..62098f9 100644 --- a/sandstone_cobble.lua +++ b/sandstone_cobble.lua @@ -9,7 +9,7 @@ for _,node in ipairs(cobble_table) do minetest.register_node("minetest_errata:" .. node.name .. "_cobble", { description = node.desc, tiles = {"minetest_errata_" .. node.name .. "_cobble.png"}, - groups = {cracky = 3, minetest_errata.prefix .. "sandstone" = 1}, + groups = {cracky = 3, [minetest_errata.prefix .. "sandstone"] = 1}, is_ground_content = false, sounds = default.node_sound_stone_defaults(), }) diff --git a/textures/minetest_errata_desert_sandstone_cobble.png b/textures/minetest_errata_desert_sandstone_cobble.png Binary files differindex 6b1cc92..d2a4056 100644 --- a/textures/minetest_errata_desert_sandstone_cobble.png +++ b/textures/minetest_errata_desert_sandstone_cobble.png diff --git a/textures/minetest_errata_door_clean_glass.png b/textures/minetest_errata_door_clean_glass.png Binary files differindex 24b8109..19a4590 100644 --- a/textures/minetest_errata_door_clean_glass.png +++ b/textures/minetest_errata_door_clean_glass.png diff --git a/textures/minetest_errata_door_coal_glass.png b/textures/minetest_errata_door_coal_glass.png Binary files differindex d496618..5854e79 100644 --- a/textures/minetest_errata_door_coal_glass.png +++ b/textures/minetest_errata_door_coal_glass.png diff --git a/textures/minetest_errata_door_iron_bar.png b/textures/minetest_errata_door_iron_bar.png Binary files differindex 13eb0a2..f0a4fd1 100644 --- a/textures/minetest_errata_door_iron_bar.png +++ b/textures/minetest_errata_door_iron_bar.png diff --git a/textures/minetest_errata_door_iron_bar_item.png b/textures/minetest_errata_door_iron_bar_item.png Binary files differindex 93c2de6..a5834f8 100644 --- a/textures/minetest_errata_door_iron_bar_item.png +++ b/textures/minetest_errata_door_iron_bar_item.png diff --git a/textures/minetest_errata_door_iron_glass.png b/textures/minetest_errata_door_iron_glass.png Binary files differindex 2eb3247..fdc1baf 100644 --- a/textures/minetest_errata_door_iron_glass.png +++ b/textures/minetest_errata_door_iron_glass.png diff --git a/textures/minetest_errata_door_wood_bar.png b/textures/minetest_errata_door_wood_bar.png Binary files differindex 89ba72b..ef61004 100644 --- a/textures/minetest_errata_door_wood_bar.png +++ b/textures/minetest_errata_door_wood_bar.png diff --git a/textures/minetest_errata_door_wood_bar_item.png b/textures/minetest_errata_door_wood_bar_item.png Binary files differindex 4708d2e..3b97c0f 100644 --- a/textures/minetest_errata_door_wood_bar_item.png +++ b/textures/minetest_errata_door_wood_bar_item.png diff --git a/textures/minetest_errata_moss_overlay.png b/textures/minetest_errata_moss_overlay.png Binary files differnew file mode 100644 index 0000000..eebb184 --- /dev/null +++ b/textures/minetest_errata_moss_overlay.png diff --git a/textures/minetest_errata_paperwall.png b/textures/minetest_errata_paperwall.png Binary files differindex 3c8352d..1747166 100644 --- a/textures/minetest_errata_paperwall.png +++ b/textures/minetest_errata_paperwall.png diff --git a/textures/minetest_errata_sandstone_cobble.png b/textures/minetest_errata_sandstone_cobble.png Binary files differindex 61fd148..47fc1e0 100644 --- a/textures/minetest_errata_sandstone_cobble.png +++ b/textures/minetest_errata_sandstone_cobble.png diff --git a/textures/minetest_errata_silver_sandstone_cobble.png b/textures/minetest_errata_silver_sandstone_cobble.png Binary files differindex fc71c83..af134cf 100644 --- a/textures/minetest_errata_silver_sandstone_cobble.png +++ b/textures/minetest_errata_silver_sandstone_cobble.png diff --git a/textures/minetest_errata_wooden_bar.png b/textures/minetest_errata_wooden_bar.png Binary files differindex ecf53bf..e146154 100644 --- a/textures/minetest_errata_wooden_bar.png +++ b/textures/minetest_errata_wooden_bar.png diff --git a/textures/minetest_errata_wooden_bar_side.png b/textures/minetest_errata_wooden_bar_side.png Binary files differindex 9613634..aa9ecdd 100644 --- a/textures/minetest_errata_wooden_bar_side.png +++ b/textures/minetest_errata_wooden_bar_side.png diff --git a/textures/minetest_errata_wooden_bar_y.png b/textures/minetest_errata_wooden_bar_y.png Binary files differindex 6bc362d..f80abc1 100644 --- a/textures/minetest_errata_wooden_bar_y.png +++ b/textures/minetest_errata_wooden_bar_y.png |