diff --git a/mapgen.lua b/mapgen.lua index 0bb13bc..25381c5 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -330,7 +330,10 @@ function loud_walking.generate(p_minp, p_maxp, seed) else if biome == "control" then data[ivm] = node(glass[3]) - elseif biome ~= "underground" and dy < half then + elseif dy < half then + data[ivm] = node("loud_walking:scrith") + lightmap[ivm] = 0 + elseif biome == "underground" then data[ivm] = node("loud_walking:scrith") lightmap[ivm] = 0 elseif dy == csize.y - 1 then @@ -341,11 +344,11 @@ function loud_walking.generate(p_minp, p_maxp, seed) end in_cave = false elseif biome == "control" and dy % 5 == 0 then - data[ivm] = node("default:steelblock") + data[ivm] = node("loud_walking:alien_floor") elseif biome == "control" and (math.abs(dx - half) < 3 or math.abs(dz - half) < 3) then data[ivm] = node("air") elseif biome == "control" and ((math.abs(dx - half) % 20 == 3 and (math.abs(dz - half) - 12) % 20 > 3) or (math.abs(dz - half) % 20 == 3 and (math.abs(dx - half) - 12) % 20 > 3)) then - data[ivm] = node("default:steelblock") + data[ivm] = node("loud_walking:alien_floor") elseif biome == "control" then -- elseif (((dx == 35 or dx == 45) and dz >= 35 and dz <= 45) or ((dz == 35 or dz == 45) and dx >= 35 and dx <= 45)) and dx ~= 40 and dz ~= 40 and dy == csize.y - 2 then diff --git a/nodes.lua b/nodes.lua index a84f6ee..148cc89 100644 --- a/nodes.lua +++ b/nodes.lua @@ -40,6 +40,16 @@ local node = loud_walking.clone_node("loud_walking:sky_scrith") node.tiles = {"loud_walking_glass_detail.png"} minetest.register_node("loud_walking:transparent_scrith", node) +minetest.register_node("loud_walking:alien_floor", { + description = "Floor", + paramtype = "light", + tiles = {"loud_walking_alien_floor.png"}, + use_texture_alpha = true, + is_ground_content = false, + groups = {}, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node("loud_walking:controls", { description = "Alien control system", paramtype = "light", diff --git a/textures/loud_walking_alien_floor.png b/textures/loud_walking_alien_floor.png new file mode 100644 index 0000000..0d314f2 Binary files /dev/null and b/textures/loud_walking_alien_floor.png differ diff --git a/textures/texture_licenses.txt b/textures/texture_licenses.txt index f81a55a..20ffd4c 100644 --- a/textures/texture_licenses.txt +++ b/textures/texture_licenses.txt @@ -1 +1,2 @@ The alien controls are based on a work by Steve LeMaster (http://obnoxiousnox.deviantart.com/art/Alien-control-panel-264724297), and used with permission. +The alien floor is based on Piotr Siedlecki's work (http://www.publicdomainpictures.net/view-image.php?image=40539&picture=alien-wires-texture), in the public domain.