diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..4190561 --- /dev/null +++ b/depends.txt @@ -0,0 +1,5 @@ +default +intllib? +farming? +wool? +moreores? diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..95d7a92 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Adds various miscellaneous blocks to the game. diff --git a/locale/de.txt b/locale/de.txt new file mode 100644 index 0000000..542f977 --- /dev/null +++ b/locale/de.txt @@ -0,0 +1,67 @@ +# Translation by Xanthin + +###init.lua### +[moreblocks] loaded. = [moreblocks] geladen. + +###nodes.lua### +Jungle Wood Fence = Tropenholzzaun +Empty Bookshelf = Leeres Buecherregal +Clean Glass = Klares Glas +Plankstone = Brettstein +Wooden Tile = Holzfliese +Full Wooden Tile = Vollholzfliese +Centered Wooden Tile = Holzfliese mittig +Up Wooden Tile = Holzfliese oben +Down Wooden Tile = Holzfliese unten +Left Wooden Tile = Holzfliese links +Right Wooden Tile = Holzfliese rechts +Circle Stone Bricks = Kreissteinziegel +Stone Tile = Steinfliese +Split Stone Tile = Geteilte Steinfliese +Glow Glass = Leuchtglas +Super Glow Glass = Superleuchtglas +Coal Glass = Kohleglas +Iron Glass = Eisenglas +Coal Checker = Karierte Kohle +Iron Checker = Kariertes Eisen +Trap Stone = Steinfalle +Trap Glass = Glasfalle +Trap Glow Glass = Leuchtglasfalle +Trap Super Glow Glass = Superleuchtglasfalle +Coal Stone = Kohlestein +Iron Stone = Eisenstein +Coal Stone Bricks = Kohlesteinziegel +Iron Stone Bricks = Eisensteinziegel +Cactus Checker = Karierter Kaktus +Cactus Brick = Kaktusziegel +Sweeper = Besen +Jungle Stick = Tropenholzstock +Rope = Seil +All-faces Tree = Baumscheibenstamm + +###circular_saw.lua### +Circular Saw = Kreissaege +Circular saw, empty (owned by %s) = Kreissaege, leer (gehoert %s) +Circular saw, working with %s (owned by %s) = Kreissaege, arbeitet mit %s (gehoert %s) +Circular saw, empty = Kreissaege, leer +Circular saw is empty (owned by %s) = Kreissaege ist leer (gehoert %s) + +Input\nmaterial = Ausgangs-\nmaterial +Left-over = Rest +Max = Anzahl +Set = Ok +Recycle\noutput = Wiederver-\nwerten + +###./stairsplus/*### +%s Stairs = %streppe +%s Slab = %sstufe +%s Panel = %spaneel +%s Microblock = %smikroblock + +%s Pane = %sscheibe +%s Fence = %szaun + +###ownership.lua### +someone = jemand +Sorry, %s owns that spot. = Tut mir leid, %s gehoert diese Stelle. + diff --git a/locale/es.txt b/locale/es.txt new file mode 100644 index 0000000..d11ba49 --- /dev/null +++ b/locale/es.txt @@ -0,0 +1,52 @@ +# Translation by kaeza + +[moreblocks] loaded. = [moreblocks] cargado. + +Jungle Wooden Planks = Tablones de madera de jungla +Empty Bookshelf = Estante para libros vacío +Clean Glass = Cristal Limpio +Plankstone = Tablones de piedra +Wooden Tile = Parquet +Full Wooden Tile = Parquet Completo +Centered Wooden Tile = Parquet Centrado +Up Wooden Tile = Parquet Superior +Down Wooden Tile = Parquet Inferior +Left Wooden Tile = Parquet Izquierdo +Right Wooden Tile = Parquet Derecho +Circle Stone Bricks = Bloques de Piedra Circulares +Stone Tile = Baldosa de Piedra +Split Stone Tile = Baldosas de Piedra Partida +Glow Glass = Cristal Brillante +Super Glow Glass = Cristal Súper Brillante +Coal Glass = Cristal con Carbón +Iron Glass = Cristal con Hierro +Coal Checker = Cuadros de Carbón +Iron Checker = Cuadros de Hierro +Trap Stone = Piedra Trampa +Trap Glass = Cristal Trampa +Coal Stone = Carbón y Piedra +Iron Stone = Hierro y Piedra +Cactus Checker = Cuadros de Cactus +Cactus Brick = Ladrillos de Cactus +Sweeper = Limpiador +Jungle Stick = Varita de Madera de Jungla +Horizontal Tree = Tronco de árbol horizontal +Horizontal Jungle Tree = Tronco de árbol de la jungla horizontal +Rope = Soga +All-faces Tree = Tronco de Árbol + +%s Stairs = Escalera de %s +%s Slab = Losa de %s +%s Panel = Panel de %s +%s Microblock = Microbloque de %s + +Wooden = Madera +Papyrus = Papiro +Dry Shrub = Arbusto Desértico +Sapling = Brote de Árbol +Wooden Planks = Tablones de Madera +Ladder = Escalera de Mano +Glass = Cristal + +%s Pane = Panel de %s +%s Fence = Valla de %s diff --git a/locale/fr.txt b/locale/fr.txt new file mode 100644 index 0000000..6bd7f98 --- /dev/null +++ b/locale/fr.txt @@ -0,0 +1,72 @@ +# Translation by Calinou + +###init.lua### +[moreblocks] loaded. = [moreblocks] a t charg. + +Jungle Wooden Planks = Planches de bois de jungle +Empty Bookshelf = tagre vide +Clean Glass = Verre propre +Plankstone = Pierre-bois +Wooden Tile = Dalle en bois +Full Wooden Tile = Dalle en bois complte +Centered Wooden Tile = Dalle en bois centre +Up Wooden Tile = Dalle en bois vers le haut +Down Wooden Tile = Dalle en bois vers le bas +Left Wooden Tile = Dalle en bois vers la gauche +Right Wooden Tile = Dalle en bois vers la droite +Circle Stone Bricks = Briques en pierre circulaires +Stone Tile = Dalle en pierre +Split Stone Tile = Dalle en pierre dcoupe +Glow Glass = Verre brillant +Super Glow Glass = Verre trs brillant +Coal Glass = Verre de charbon +Iron Glass = Verre de fer +Coal Checker = Damier en charbon +Iron Checker = Damier en fer +Trap Stone = Pierre traversable +Trap Glass = Verre traversable +Trap Glow Glass = Verre brillant traversable +Trap Super Glow Glass = Verre trs brillant traversable +Coal Stone = Pierre de charbon +Iron Stone = Pierre de fer +Coal Stone Bricks = Briques en pierre de charbon +Iron Stone Bricks = Briques en pierre de fer +Cactus Checker = Damier en cactus +Cactus Brick = Briques de cactus +Sweeper = Balai +Jungle Stick = Bton en bois de jungle +Horizontal Tree = Tronc d'arbre horizontal +Horizontal Jungle Tree = Tronc d'arbre de jungle horizontal +Rope = Corde +All-faces Tree = Tronc d'arbre + +###redefinition.lua### +Wooden = bois +Papyrus = Papyrus +Dry Shrub = Buisson mort +Sapling = Pousse d'arbre +Wooden Planks = Planches de bois +Ladder = chelle +Glass = Verre + +###circular_saw.lua### +Circular Saw = Scie circulaire +Circular saw, empty (owned by %s) = Scie circulaire, vide (proprit de %s) +Circular saw, working with %s (owned by %s) = Scie circulaire, manipule %s (proprit de %s) +Circular saw, empty = Scie circulaire, vide +Circular saw is empty (owned by %s) = Scie circulaire est vide (proprit de %s) + +Input material = Entre du matriel +Rest/microblocks = Reste/microbloc +Max: = Max: +Set = Fixer +Recycle output = Recyclage + +###./stairsplus/*### +%s Stairs = Escaliers en %s +%s Slab = Demi-dalle en %s +%s Panel = Barre en %s +%s Microblock = Microbloc en %s + +%s Pane = Panneau en %s +%s Fence = Barrire en %s \ No newline at end of file diff --git a/locale/it.txt b/locale/it.txt new file mode 100644 index 0000000..589e104 --- /dev/null +++ b/locale/it.txt @@ -0,0 +1,70 @@ +# +# Italian translation +# Translator: Emon +# + + +###init.lua### +[moreblocks] loaded. = [moreblocks] caricato. + +###nodes.lua### +Jungle Wood Fence = Recinzione in legno della giungla +Empty Bookshelf = Libreria vuota +Clean Glass = Vetro pulito +Plankstone = Pietra e legno +Wooden Tile = Mattonella in legno +Full Wooden Tile = Mattonella in legno pieno +Centered Wooden Tile = Mattonella in legno centrata +Up Wooden Tile = Mattonella in legno verso l'alto +Down Wooden Tile = Mattonella in legno verso il basso +Left Wooden Tile = Mattonella in legno verso sinistra +Right Wooden Tile = Mattonella in legno verso destra +Circle Stone Bricks = Mattoni concentrici in pietra +Stone Tile = Mattonella in pietra +Split Stone Tile = Mattonella in pietra divisa +Glow Glass = Vetro luminoso +Super Glow Glass = Super vetro luminoso +Coal Glass = Vetro e carbone +Iron Glass = Vetro e ferro +Coal Checker = Scacchiera in carbone +Iron Checker = Scacchiera in ferro +Trap Stone = Pietra trappola +Trap Glass = Vetro trappola +Trap Glow Glass = Vetro luminoso trappola +Trap Super Glow Glass = Super vetro luminoso trappola +Coal Stone = Pietra in carbone +Iron Stone = Pietra in ferro +Coal Stone Bricks = Mattoni di pietra in carbone +Iron Stone Bricks = Mattoni di pietra in ferro +Cactus Checker = Scacchiera in cactus +Cactus Brick = Mattoni di cactus +Sweeper = Spazzola +Jungle Stick = Bastone in legno della giungla +Rope = Corda +All-faces Tree = Albero su ogni lato + +###circular_saw.lua### +Circular Saw = Sega circolare +Circular saw, empty (owned by %s) = Sega circolare, vuota (di proprietà di %s) +Circular saw, working with %s (owned by %s) = Sega circolare, in funzione su %s (di proprietà di %s) +Circular saw, empty = Sega circolare, vuota +Circular saw is empty (owned by %s) = La sega circolare è vuota (di proprietà di %s) + +Input\nmaterial = Materiale\niniziale +Left-over = Scarto +Max = Max. +Set = Imp. +Recycle\noutput = Ricicla\nfinale + +###ownership.lua### +someone = qualcuno +Sorry, %s owns that spot. = Spiacente, quel punto è di proprietà di %s + +###./stairsplus/*### +%s Stairs = Scale - %s +%s Slab = Lastra - %s +%s Panel = Pannello - %s +%s Microblock = Microblocco %s + +%s Pane = Pannello - %s +%s Fence = Recinzione - %s diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..2b88227 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,64 @@ +###init.lua### +[moreblocks] loaded. = + +###nodes.lua### +Jungle Wood Fence = +Empty Bookshelf = +Clean Glass = +Plankstone = +Wooden Tile = +Full Wooden Tile = +Centered Wooden Tile = +Up Wooden Tile = +Down Wooden Tile = +Left Wooden Tile = +Right Wooden Tile = +Circle Stone Bricks = +Stone Tile = +Split Stone Tile = +Glow Glass = +Super Glow Glass = +Coal Glass = +Iron Glass = +Coal Checker = +Iron Checker = +Trap Stone = +Trap Glass = +Trap Glow Glass = +Trap Super Glow Glass = +Coal Stone = +Iron Stone = +Coal Stone Bricks = +Iron Stone Bricks = +Cactus Checker = +Cactus Brick = +Sweeper = +Jungle Stick = +Rope = +All-faces Tree = + +###circular_saw.lua### +Circular Saw = +Circular saw, empty (owned by %s) = +Circular saw, working with %s (owned by %s) = +Circular saw, empty = +Circular saw is empty (owned by %s) = + +Input\nmaterial = +Left-over = +Max = +Set = +Recycle\noutput = + +###ownership.lua### +someone = +Sorry, %s owns that spot. = + +###./stairsplus/*### +%s Stairs = +%s Slab = +%s Panel = +%s Microblock = + +%s Pane = +%s Fence = diff --git a/nodes.lua b/nodes.lua index ec1a650..97f5c73 100644 --- a/nodes.lua +++ b/nodes.lua @@ -12,7 +12,8 @@ local sound_wood = moreblocks.node_sound_wood_defaults() local sound_stone = moreblocks.node_sound_stone_defaults() local sound_glass = moreblocks.node_sound_glass_defaults() local sound_leaves = moreblocks.node_sound_leaves_defaults() - +local sound_gravel = default.node_sound_gravel_defaults() +local sound_sand = default.node_sound_sand_defaults() -- Don't break on 0.4.14 and earlier. local sound_metal = (moreblocks.node_sound_metal_defaults and moreblocks.node_sound_metal_defaults() or sound_stone) @@ -39,7 +40,7 @@ end local deprecated = (" ("..S('Deprecated')..")") -- start gravel add part 1 -local sound_gravel = default.node_sound_gravel_defaults() + local box_slope = { type = "fixed", @@ -939,6 +940,8 @@ local nodes = { } for name, def in pairs(nodes) do + if name ~= "tar" and core.get_modpath("building_blocks") then + --homedecor errors, aliasing error suppress def.is_ground_content = def.is_ground_content == true def.tiles = def.tiles or {"moreblocks_" ..name.. ".png"} minetest.register_node("moreblocks:" ..name, def) @@ -970,6 +973,7 @@ for name, def in pairs(nodes) do sounds = def.sounds, }) end + end end -- Items diff --git a/panes.lua b/panes.lua new file mode 100644 index 0000000..c89a1dd --- /dev/null +++ b/panes.lua @@ -0,0 +1,54 @@ +--[[ +More Blocks: (x)pane definitions + +Copyright (c) 2018 Och Noe +Licensed under the zlib license. See LICENSE.md for more information. +--]] + + +xpanes.register_pane("coal_glass_pane", { + description = "Coal Glass Pane", + textures = {"moreblocks_coal_glass.png","xpanes_pane_half.png","moreblocks_xpanes_coal.png"}, + inventory_image = "moreblocks_coal_glass.png", + wield_image = "moreblocks_coal_glass.png", + sounds = default.node_sound_glass_defaults(), + groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + recipe = { + { "moreblocks:coal_glass", "moreblocks:coal_glass", "moreblocks:coal_glass"}, + { "moreblocks:coal_glass", "moreblocks:coal_glass", "moreblocks:coal_glass"} + } +}) + +xpanes.register_pane("iron_glass_pane", { + description = "Iron Glass Pane", + textures = {"moreblocks_iron_glass.png","xpanes_pane_half.png","moreblocks_xpanes_iron.png"}, + inventory_image = "moreblocks_iron_glass.png", + wield_image = "moreblocks_iron_glass.png", + sounds = default.node_sound_glass_defaults(), + groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + recipe = { + { "moreblocks:iron_glass", "moreblocks:iron_glass", "moreblocks:iron_glass"}, + { "moreblocks:iron_glass", "moreblocks:iron_glass", "moreblocks:iron_glass"} + } +}) + +xpanes.register_pane("clean_glass_pane", { + description = "Clean Glass Pane", + textures = {"moreblocks_clean_glass.png","xpanes_pane_half.png","xpanes_white.png"}, + inventory_image = "moreblocks_clean_glass.png", + wield_image = "moreblocks_clean_glass.png", + sounds = default.node_sound_glass_defaults(), + groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3}, + recipe = { + { "moreblocks:clean_glass", "moreblocks:clean_glass", "moreblocks:clean_glass"}, + { "moreblocks:clean_glass", "moreblocks:clean_glass", "moreblocks:clean_glass"} + } +}) + + + + +-- ["iron_glass"] = { +-- ["coal_glass"] = { +-- ["clean_glass"] = { + diff --git a/stairsplus/aliases.lua b/stairsplus/aliases.lua new file mode 100644 index 0000000..a4d95f0 --- /dev/null +++ b/stairsplus/aliases.lua @@ -0,0 +1,70 @@ +--[[ +More Blocks: alias definitions + +Copyright (c) 2011-2017 Hugo Locurcio and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +--]] + +local function register_stairsplus_alias(modname, origname, newname) + minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname) + minetest.register_alias(modname.. ":slab_" ..origname.. "_inverted", "moreblocks:slab_" ..newname.. "_inverted") + minetest.register_alias(modname.. ":slab_" ..origname.. "_wall", "moreblocks:slab_" ..newname.. "_wall") + minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter", "moreblocks:slab_" ..newname.. "_quarter") + minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_inverted", "moreblocks:slab_" ..newname.. "_quarter_inverted") + minetest.register_alias(modname.. ":slab_" ..origname.. "_quarter_wall", "moreblocks:slab_" ..newname.. "_quarter_wall") + minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter", "moreblocks:slab_" ..newname.. "_three_quarter") + minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_inverted", "moreblocks:slab_" ..newname.. "_three_quarter_inverted") + minetest.register_alias(modname.. ":slab_" ..origname.. "_three_quarter_wall", "moreblocks:slab_" ..newname.. "_three_quarter_wall") + minetest.register_alias(modname.. ":stair_" ..origname, "moreblocks:stair_" ..newname) + minetest.register_alias(modname.. ":stair_" ..origname.. "_inverted", "moreblocks:stair_" ..newname.. "_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_wall", "moreblocks:stair_" ..newname.. "_wall") + minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half") + minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_half", "moreblocks:stair_" ..newname.. "_half") + minetest.register_alias(modname.. ":stair_" ..origname.. "_half_inverted", "moreblocks:stair_" ..newname.. "_half_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half", "moreblocks:stair_" ..newname.. "_right_half") + minetest.register_alias(modname.. ":stair_" ..origname.. "_right_half_inverted", "moreblocks:stair_" ..newname.. "_right_half_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half", "moreblocks:stair_" ..newname.. "_wall_half") + minetest.register_alias(modname.. ":stair_" ..origname.. "_wall_half_inverted", "moreblocks:stair_" ..newname.. "_wall_half_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_inner", "moreblocks:stair_" ..newname.. "_inner") + minetest.register_alias(modname.. ":stair_" ..origname.. "_inner_inverted", "moreblocks:stair_" ..newname.. "_inner_inverted") + minetest.register_alias(modname.. ":stair_" ..origname.. "_outer", "moreblocks:stair_" ..newname.. "_outer") + minetest.register_alias(modname.. ":stair_" ..origname.. "_outer_inverted", "moreblocks:stair_" ..newname.. "_outer_inverted") + minetest.register_alias(modname.. ":panel_" ..origname.. "_bottom", "moreblocks:panel_" ..newname.. "_bottom") + minetest.register_alias(modname.. ":panel_" ..origname.. "_top", "moreblocks:panel_" ..newname.. "_top") + minetest.register_alias(modname.. ":panel_" ..origname.. "_vertical", "moreblocks:panel_" ..newname.. "_vertical") + minetest.register_alias(modname.. ":micro_" ..origname.. "_bottom", "moreblocks:micro_" ..newname.. "_bottom") + minetest.register_alias(modname.. ":micro_" ..origname.. "_top", "moreblocks:micro_" ..newname.. "_top") +end + +register_stairsplus_alias("stairsplus", "stone", "stone") +register_stairsplus_alias("stairsplus", "wood", "wood") +register_stairsplus_alias("stairsplus", "pinewood", "pinewood") +register_stairsplus_alias("stairsplus", "cobble", "cobble") +register_stairsplus_alias("stairsplus", "brick", "brick") +register_stairsplus_alias("stairsplus", "sandstone", "sandstone") +register_stairsplus_alias("stairsplus", "glass", "glass") +register_stairsplus_alias("stairsplus", "tree", "tree") +register_stairsplus_alias("stairsplus", "jungletree", "jungletree") +register_stairsplus_alias("stairsplus", "pinetree", "pinetree") +register_stairsplus_alias("stairsplus", "desert_stone", "desert_stone") +register_stairsplus_alias("stairsplus", "steelblock", "steelblock") +register_stairsplus_alias("stairsplus", "mossycobble", "mossycobble") + +register_stairsplus_alias("moreblocks", "coalstone", "coal_stone") +register_stairsplus_alias("moreblocks", "junglewood", "jungle_wood") +register_stairsplus_alias("moreblocks", "circlestonebrick", "circle_stone_bricks") +register_stairsplus_alias("moreblocks", "ironstone", "iron_stone") +register_stairsplus_alias("moreblocks", "coalglass", "coal_glass") +register_stairsplus_alias("moreblocks", "ironglass", "iron_glass") +register_stairsplus_alias("moreblocks", "glowglass", "glow_glass") +register_stairsplus_alias("moreblocks", "superglowglass", "super_glow_glass") +register_stairsplus_alias("moreblocks", "coalchecker", "coal_checker") +register_stairsplus_alias("moreblocks", "ironchecker", "iron_checker") +register_stairsplus_alias("moreblocks", "cactuschecker", "cactus_checker") +register_stairsplus_alias("moreblocks", "ironstonebrick", "iron_stone_bricks") +register_stairsplus_alias("moreblocks", "stonesquare", "stone_tile") +register_stairsplus_alias("moreblocks", "splitstonesquare", "split_stone_tile") +register_stairsplus_alias("moreblocks", "woodtile", "wood_tile") +register_stairsplus_alias("moreblocks", "woodtile_centered", "wood_tile_centered") +register_stairsplus_alias("moreblocks", "woodtile_full", "wood_tile_full") diff --git a/stairsplus/conversion.lua b/stairsplus/conversion.lua new file mode 100644 index 0000000..16457f7 --- /dev/null +++ b/stairsplus/conversion.lua @@ -0,0 +1,141 @@ +--[[ +More Blocks: conversion + +Copyright (c) 2011-2017 Hugo Locurcio and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +--]] + +-- Function to convert all stairs/slabs/etc nodes from +-- inverted, wall, etc to regular + 6d facedir + +local dirs1 = {21, 20, 23, 22, 21} +local dirs2 = {15, 8, 17, 6, 15} +local dirs3 = {14, 11, 16, 5, 14} + +function stairsplus:register_6dfacedir_conversion(modname, material) + --print("Register stairsplus 6d facedir conversion") + --print('ABM for '..modname..' "'..material..'"') + + local objects_list1 = { + modname.. ":slab_" ..material.. "_inverted", + modname.. ":slab_" ..material.. "_quarter_inverted", + modname.. ":slab_" ..material.. "_three_quarter_inverted", + modname.. ":stair_" ..material.. "_inverted", + modname.. ":stair_" ..material.. "_wall", + modname.. ":stair_" ..material.. "_wall_half", + modname.. ":stair_" ..material.. "_wall_half_inverted", + modname.. ":stair_" ..material.. "_half_inverted", + modname.. ":stair_" ..material.. "_right_half_inverted", + modname.. ":panel_" ..material.. "_vertical", + modname.. ":panel_" ..material.. "_top", + } + + local objects_list2 = { + modname.. ":slab_" ..material.. "_wall", + modname.. ":slab_" ..material.. "_quarter_wall", + modname.. ":slab_" ..material.. "_three_quarter_wall", + modname.. ":stair_" ..material.. "_inner_inverted", + modname.. ":stair_" ..material.. "_outer_inverted", + modname.. ":micro_" ..material.. "_top" + } + + for _, object in pairs(objects_list1) do + local flip_upside_down = false + local flip_to_wall = false + + local dest_object = object + + if string.find(dest_object, "_inverted") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_inverted", "") + end + + if string.find(object, "_top") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_top", "") + end + + if string.find(dest_object, "_wall") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_wall", "") + end + + if string.find(dest_object, "_vertical") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_vertical", "") + end + + if string.find(dest_object, "_half") and not string.find(dest_object, "_right_half") then + dest_object = string.gsub(dest_object, "_half", "_right_half") + elseif string.find(dest_object, "_right_half") then + dest_object = string.gsub(dest_object, "_right_half", "_half") + end + + --print(" +---> convert " ..object) + --print(" | to " ..dest_object) + if false then -- ABM disabled + minetest.register_abm({ + nodenames = {object}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local fdir = node.param2 or 0 + local nfdir + + if flip_upside_down and not flip_to_wall then + nfdir = dirs1[fdir + 2] + elseif flip_to_wall and not flip_upside_down then + nfdir = dirs2[fdir + 1] + elseif flip_to_wall and flip_upside_down then + nfdir = dirs3[fdir + 2] + end + minetest.set_node(pos, {name = dest_object, param2 = nfdir}) + end + }) + end + end + + for _, object in pairs(objects_list2) do + local flip_upside_down = false + local flip_to_wall = false + + local dest_object = object + + if string.find(dest_object, "_inverted") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_inverted", "") + end + + if string.find(dest_object, "_top") then + flip_upside_down = true + dest_object = string.gsub(dest_object, "_top", "") + end + + if string.find(dest_object, "_wall") then + flip_to_wall = true + dest_object = string.gsub(dest_object, "_wall", "") + end + + --print(" +---> convert " ..object) + --print(" | to " ..dest_object) + if false then -- ABM disabled + minetest.register_abm({ + nodenames = {object}, + interval = 1, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + local fdir = node.param2 + local nfdir = 20 + + if flip_upside_down and not flip_to_wall then + nfdir = dirs1[fdir + 1] + elseif flip_to_wall and not flip_upside_down then + nfdir = dirs2[fdir + 2] + + end + minetest.set_node(pos, {name = dest_object, param2 = nfdir}) + end + }) + end + end +end diff --git a/textures/default_brick.png b/textures/default_brick.png new file mode 100644 index 0000000..9c76033 Binary files /dev/null and b/textures/default_brick.png differ diff --git a/textures/default_fence_overlay.png b/textures/default_fence_overlay.png new file mode 100644 index 0000000..780e736 Binary files /dev/null and b/textures/default_fence_overlay.png differ diff --git a/textures/invisible.png b/textures/invisible.png new file mode 100644 index 0000000..4b5b302 Binary files /dev/null and b/textures/invisible.png differ diff --git a/textures/moreblocks_blue1.png b/textures/moreblocks_blue1.png new file mode 100644 index 0000000..84410ad Binary files /dev/null and b/textures/moreblocks_blue1.png differ diff --git a/textures/moreblocks_coal_glass.png b/textures/moreblocks_coal_glass.png new file mode 100644 index 0000000..5cb7227 Binary files /dev/null and b/textures/moreblocks_coal_glass.png differ diff --git a/textures/moreblocks_coal_glass_detail.png b/textures/moreblocks_coal_glass_detail.png new file mode 100644 index 0000000..5ea081f Binary files /dev/null and b/textures/moreblocks_coal_glass_detail.png differ diff --git a/textures/moreblocks_cyan1.png b/textures/moreblocks_cyan1.png new file mode 100644 index 0000000..5692891 Binary files /dev/null and b/textures/moreblocks_cyan1.png differ diff --git a/textures/moreblocks_empty_bookshelf.png b/textures/moreblocks_empty_bookshelf.png new file mode 100644 index 0000000..af874d7 Binary files /dev/null and b/textures/moreblocks_empty_bookshelf.png differ diff --git a/textures/moreblocks_fence_jungle_wood.png b/textures/moreblocks_fence_jungle_wood.png new file mode 100644 index 0000000..b59db10 Binary files /dev/null and b/textures/moreblocks_fence_jungle_wood.png differ diff --git a/textures/moreblocks_fence_wood.png b/textures/moreblocks_fence_wood.png new file mode 100644 index 0000000..e3510c5 Binary files /dev/null and b/textures/moreblocks_fence_wood.png differ diff --git a/textures/moreblocks_glass.png b/textures/moreblocks_glass.png new file mode 100644 index 0000000..912b029 Binary files /dev/null and b/textures/moreblocks_glass.png differ diff --git a/textures/moreblocks_glow_glass.png b/textures/moreblocks_glow_glass.png new file mode 100644 index 0000000..843bebf Binary files /dev/null and b/textures/moreblocks_glow_glass.png differ diff --git a/textures/moreblocks_glow_glass_detail.png b/textures/moreblocks_glow_glass_detail.png new file mode 100644 index 0000000..ea67bc3 Binary files /dev/null and b/textures/moreblocks_glow_glass_detail.png differ diff --git a/textures/moreblocks_green1.png b/textures/moreblocks_green1.png new file mode 100644 index 0000000..cbbbe45 Binary files /dev/null and b/textures/moreblocks_green1.png differ diff --git a/textures/moreblocks_grey1.png b/textures/moreblocks_grey1.png new file mode 100644 index 0000000..24cfeb4 Binary files /dev/null and b/textures/moreblocks_grey1.png differ diff --git a/textures/moreblocks_iron_glass.png b/textures/moreblocks_iron_glass.png new file mode 100644 index 0000000..51be0d6 Binary files /dev/null and b/textures/moreblocks_iron_glass.png differ diff --git a/textures/moreblocks_iron_glass_detail.png b/textures/moreblocks_iron_glass_detail.png new file mode 100644 index 0000000..2b8fc12 Binary files /dev/null and b/textures/moreblocks_iron_glass_detail.png differ diff --git a/textures/moreblocks_magenta1.png b/textures/moreblocks_magenta1.png new file mode 100644 index 0000000..b5057d7 Binary files /dev/null and b/textures/moreblocks_magenta1.png differ diff --git a/textures/moreblocks_red1.png b/textures/moreblocks_red1.png new file mode 100644 index 0000000..533d680 Binary files /dev/null and b/textures/moreblocks_red1.png differ diff --git a/textures/moreblocks_split_stone_tile_alt.png b/textures/moreblocks_split_stone_tile_alt.png new file mode 100644 index 0000000..9d11b4f Binary files /dev/null and b/textures/moreblocks_split_stone_tile_alt.png differ diff --git a/textures/moreblocks_super_glow_glass.png b/textures/moreblocks_super_glow_glass.png new file mode 100644 index 0000000..a9d4c5f Binary files /dev/null and b/textures/moreblocks_super_glow_glass.png differ diff --git a/textures/moreblocks_super_glow_glass_detail.png b/textures/moreblocks_super_glow_glass_detail.png new file mode 100644 index 0000000..e321a5c Binary files /dev/null and b/textures/moreblocks_super_glow_glass_detail.png differ diff --git a/textures/moreblocks_trap_glass.png b/textures/moreblocks_trap_glass.png new file mode 100644 index 0000000..25c3387 Binary files /dev/null and b/textures/moreblocks_trap_glass.png differ diff --git a/textures/moreblocks_trap_glow_glass.png b/textures/moreblocks_trap_glow_glass.png new file mode 100644 index 0000000..1096dd7 Binary files /dev/null and b/textures/moreblocks_trap_glow_glass.png differ diff --git a/textures/moreblocks_trap_stone.png b/textures/moreblocks_trap_stone.png new file mode 100644 index 0000000..764aa81 Binary files /dev/null and b/textures/moreblocks_trap_stone.png differ diff --git a/textures/moreblocks_trap_super_glow_glass.png b/textures/moreblocks_trap_super_glow_glass.png new file mode 100644 index 0000000..fef974b Binary files /dev/null and b/textures/moreblocks_trap_super_glow_glass.png differ diff --git a/textures/moreblocks_white1.png b/textures/moreblocks_white1.png new file mode 100644 index 0000000..38bb872 Binary files /dev/null and b/textures/moreblocks_white1.png differ diff --git a/textures/moreblocks_wood_tile_up.png b/textures/moreblocks_wood_tile_up.png new file mode 100644 index 0000000..3f6a2f2 Binary files /dev/null and b/textures/moreblocks_wood_tile_up.png differ diff --git a/textures/moreblocks_xpanes_coal.png b/textures/moreblocks_xpanes_coal.png new file mode 100644 index 0000000..eae8af1 Binary files /dev/null and b/textures/moreblocks_xpanes_coal.png differ diff --git a/textures/moreblocks_xpanes_iron.png b/textures/moreblocks_xpanes_iron.png new file mode 100644 index 0000000..3a9b68c Binary files /dev/null and b/textures/moreblocks_xpanes_iron.png differ diff --git a/textures/moreblocks_yellow1.png b/textures/moreblocks_yellow1.png new file mode 100644 index 0000000..27e8c3f Binary files /dev/null and b/textures/moreblocks_yellow1.png differ