From 53e5667206537e94c415c411a966c03ac23729e6 Mon Sep 17 00:00:00 2001 From: Glunggi Date: Tue, 19 Jan 2016 09:43:23 +0100 Subject: [PATCH] chances some depraced stuff --- mods/bedrock/init.lua | 12 +- mods/default/mapgen.lua | 383 +++++++----------------------- mods/glowcrystals/init.lua | 12 +- mods/pipeworks/deployer.lua | 4 +- mods/pipeworks/node_breaker.lua | 4 +- mods/plantlife/poisonivy/init.lua | 6 +- mods/stairs/init.lua | 10 +- mods/vines/init.lua | 24 +- 8 files changed, 122 insertions(+), 333 deletions(-) diff --git a/mods/bedrock/init.lua b/mods/bedrock/init.lua index ecaf153..1f4bc1a 100644 --- a/mods/bedrock/init.lua +++ b/mods/bedrock/init.lua @@ -5,8 +5,8 @@ minetest.register_ore({ clust_scarcity = 1 * 1 * 1, clust_num_ores = 5, clust_size = 2, - height_min = -30912, -- Engine changes can modify this value. - height_max = -30656, -- This ensures the bottom of the world is not even loaded. + y_min = -30912, -- Engine changes can modify this value. + y_max = -30656, -- This ensures the bottom of the world is not even loaded. }) minetest.register_ore({ @@ -16,13 +16,13 @@ minetest.register_ore({ clust_scarcity = 1 * 1 * 1, clust_num_ores = 5, clust_size = 2, - height_min = -30656, - height_max = -30000, + y_min = -30656, + y_max = -30000, }) minetest.register_node("bedrock:bedrock", { description = "Bedrock", - tile_images = {"bedrock_bedrock.png"}, + tiles = {"bedrock_bedrock.png"}, drop = "", groups = {unbreakable = 1, not_in_creative_inventory = 1}, -- For Map Tools' admin pickaxe. sounds = default.node_sound_stone_defaults(), @@ -30,7 +30,7 @@ minetest.register_node("bedrock:bedrock", { minetest.register_node("bedrock:deepstone", { description = "Deepstone", - tile_images = {"bedrock_deepstone.png"}, + tiles = {"bedrock_deepstone.png"}, drop = "default:stone", -- Intended. groups = {cracky = 1}, sounds = default.node_sound_stone_defaults(), diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index b0f21d4..a083cab 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -56,8 +56,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 1, clust_size = 2, - height_min = -31000, - height_max = 20, + y_min = -31000, + y_max = 20, }) minetest.register_ore({ @@ -67,8 +67,8 @@ minetest.register_ore({ clust_scarcity =16*16*16, clust_num_ores = 2, clust_size = 3, - height_min = -31000, - height_max = -50, + y_min = -31000, + y_max = -50, flags = "absheight", }) @@ -79,8 +79,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 1, clust_size = 2, - height_min = -31000, - height_max = -300, + y_min = -31000, + y_max = -300, }) minetest.register_ore({ @@ -90,8 +90,8 @@ minetest.register_ore({ clust_scarcity =16*16*16, clust_num_ores = 2, clust_size = 3, - height_min = -31000, - height_max = -550, + y_min = -31000, + y_max = -550, flags = "absheight", }) @@ -102,8 +102,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 1, clust_size = 2, - height_min = -31000, - height_max = -1200, + y_min = -31000, + y_max = -1200, }) minetest.register_ore({ @@ -113,8 +113,8 @@ minetest.register_ore({ clust_scarcity =16*16*16, clust_num_ores = 2, clust_size = 3, - height_min = -31000, - height_max = -5000, + y_min = -31000, + y_max = -5000, flags = "absheight", }) @@ -125,8 +125,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 1, clust_size = 2, - height_min = -31000, - height_max = -900, + y_min = -31000, + y_max = -900, }) minetest.register_ore({ @@ -136,8 +136,8 @@ minetest.register_ore({ clust_scarcity =16*16*16, clust_num_ores = 2, clust_size = 3, - height_min = -31000, - height_max = -3000, + y_min = -31000, + y_max = -3000, flags = "absheight", }) @@ -148,8 +148,8 @@ minetest.register_ore({ clust_scarcity = 8*8*8, clust_num_ores = 8, clust_size = 3, - height_min = -31000, - height_max = 64, + y_min = -31000, + y_max = 64, flags = "absheight", }) @@ -161,8 +161,8 @@ minetest.register_ore({ clust_scarcity = 12*12*12, clust_num_ores = 16, clust_size = 6, - height_min = -31000, - height_max = 0, + y_min = -31000, + y_max = 0, flags = "absheight", }) @@ -173,8 +173,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 27, clust_size = 6, - height_min = -31000, - height_max = -3000, + y_min = -31000, + y_max = -3000, flags = "absheight", }) @@ -186,8 +186,8 @@ minetest.register_ore({ clust_scarcity = 12*12*12, clust_num_ores = 3, clust_size = 2, - height_min = -25, - height_max = -2, + y_min = -25, + y_max = -2, }) @@ -198,8 +198,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 3, clust_size = 3, - height_min = -63, - height_max = -26, + y_min = -63, + y_max = -26, }) @@ -210,8 +210,8 @@ minetest.register_ore({ clust_scarcity = 7*7*7, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -64, + y_min = -31000, + y_max = -64, flags = "absheight", }) @@ -223,8 +223,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 27, clust_size = 6, - height_min = -31000, - height_max = -800, + y_min = -31000, + y_max = -800, flags = "absheight", }) @@ -236,8 +236,8 @@ minetest.register_ore({ clust_scarcity = 18*18*18, clust_num_ores = 2, clust_size = 2, - height_min = -355, - height_max = -204, + y_min = -355, + y_max = -204, flags = "absheight", }) @@ -249,8 +249,8 @@ minetest.register_ore({ clust_scarcity = 14*14*14, clust_num_ores = 3, clust_size = 2, - height_min = -31000, - height_max = -356, + y_min = -31000, + y_max = -356, flags = "absheight", }) @@ -262,8 +262,8 @@ minetest.register_ore({ clust_scarcity = 36*36*36, clust_num_ores = 5, clust_size = 2, - height_min = -31000, - height_max = -5000, + y_min = -31000, + y_max = -5000, flags = "absheight", }) @@ -275,8 +275,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 1, clust_size = 2, - height_min = -666, - height_max = -333, + y_min = -666, + y_max = -333, }) @@ -287,8 +287,8 @@ minetest.register_ore({ clust_scarcity = 13*13*13, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -666, + y_min = -31000, + y_max = -666, flags = "absheight", }) @@ -299,8 +299,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 4, clust_size = 3, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -311,8 +311,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 4, clust_size = 3, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -323,8 +323,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 4, clust_size = 3, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -335,8 +335,8 @@ minetest.register_ore({ clust_scarcity = 15*15*15, clust_num_ores = 4, clust_size = 3, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -347,8 +347,8 @@ minetest.register_ore({ clust_scarcity = 12*12*12, clust_num_ores = 4, clust_size = 3, - height_min = -163, - height_max = -116, + y_min = -163, + y_max = -116, }) @@ -359,8 +359,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -164, + y_min = -31000, + y_max = -164, flags = "absheight", }) @@ -371,8 +371,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -1900, + y_min = -31000, + y_max = -1900, flags = "absheight", }) @@ -383,8 +383,8 @@ minetest.register_ore({ clust_scarcity = 12*12*12, clust_num_ores = 4, clust_size = 3, - height_min = -163, - height_max = -116, + y_min = -163, + y_max = -116, }) @@ -395,8 +395,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -164, + y_min = -31000, + y_max = -164, flags = "absheight", }) @@ -407,8 +407,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 5, clust_size = 3, - height_min = -31000, - height_max = -1900, + y_min = -31000, + y_max = -1900, flags = "absheight", }) @@ -423,7 +423,7 @@ minetest.register_ore({ clust_size = 5, y_min = -10, y_max = 31000, - noise_threshhold = 0.0, + noise_threshold = 0.0, noise_params = { offset = 0.5, scale = 0.2, @@ -442,8 +442,8 @@ minetest.register_ore({ clust_scarcity = 20*20*20, clust_num_ores = 5*5*3, clust_size = 5, - height_min = -120, - height_max = 31000, + y_min = -120, + y_max = 31000, }) @@ -455,8 +455,8 @@ minetest.register_ore({ clust_scarcity = 25*25*25, clust_num_ores = 10000, clust_size = 12, - height_min = -100, - height_max = 31000, + y_min = -100, + y_max = 31000, }) minetest.register_ore({ @@ -467,8 +467,8 @@ minetest.register_ore({ clust_scarcity = 10*10*10, clust_num_ores = 50, clust_size = 10, - height_min = -149, - height_max = 10, + y_min = -149, + y_max = 10, flags = "absheight", }) @@ -480,8 +480,8 @@ minetest.register_ore({ clust_scarcity = 20*20*20, clust_num_ores = 550, clust_size = 10, - height_min = -31000, - height_max = -150, + y_min = -31000, + y_max = -150, flags = "absheight", }) @@ -493,8 +493,8 @@ minetest.register_ore({ clust_scarcity = 20*20*20, clust_num_ores = 650, clust_size = 10, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -506,8 +506,8 @@ minetest.register_ore({ clust_scarcity = 10*10*10, clust_num_ores = 50, clust_size = 5, - height_min = -350, - height_max = -300, + y_min = -350, + y_max = -300, }) minetest.register_ore({ @@ -518,8 +518,8 @@ minetest.register_ore({ clust_scarcity = 10*10*10, clust_num_ores = 500, clust_size = 10, - height_min = -31000, - height_max = -600, + y_min = -31000, + y_max = -600, flags = "absheight", }) @@ -531,8 +531,8 @@ minetest.register_ore({ clust_scarcity = 20*10*20, clust_num_ores = 950, clust_size = 10, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) @@ -544,8 +544,8 @@ minetest.register_ore({ clust_scarcity = 20*5*20, clust_num_ores = 150, clust_size = 10, - height_min = -10, - height_max = 0, + y_min = -10, + y_max = 0, }) minetest.register_ore({ @@ -556,8 +556,8 @@ minetest.register_ore({ clust_scarcity = 20*5*20, clust_num_ores = 350, clust_size = 10, - height_min = -70, - height_max = -50, + y_min = -70, + y_max = -50, }) minetest.register_ore({ @@ -568,8 +568,8 @@ minetest.register_ore({ clust_scarcity = 20*10*20, clust_num_ores = 500, clust_size = 10, - height_min = -140, - height_max = -120, + y_min = -140, + y_max = -120, }) -- Underground springs @@ -581,8 +581,8 @@ minetest.register_ore({ clust_scarcity = 25*25*25, clust_num_ores = 8, clust_size = 3, - height_min = -10000, - height_max = -10, + y_min = -10000, + y_max = -10, }) minetest.register_ore({ @@ -593,7 +593,7 @@ minetest.register_ore({ clust_size = 10, y_min = -30000, y_max = -10, - noise_threshhold = 0.2, + noise_threshold = 0.2, noise_params = { offset = 0.5, scale = 0.2, @@ -603,55 +603,6 @@ minetest.register_ore({ persist = 0.0 }, }) - --- end - - - - - -function default.generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, height_min, height_max) - minetest.log('action', "WARNING: default.generate_ore is deprecated") - - - if maxp.y < height_min or minp.y > height_max then - return - end - local y_min = math.max(minp.y, height_min) - local y_max = math.min(maxp.y, height_max) - if chunk_size >= y_max - y_min + 1 then - return - end - local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1) - local pr = PseudoRandom(seed) - local num_chunks = math.floor(chunks_per_volume * volume) - local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk) - --print("generate_ore num_chunks: "..dump(num_chunks)) - for i=1,num_chunks do - local y0 = pr:next(y_min, y_max-chunk_size+1) - if y0 >= height_min and y0 <= height_max then - local x0 = pr:next(minp.x, maxp.x-chunk_size+1) - local z0 = pr:next(minp.z, maxp.z-chunk_size+1) - local p0 = {x=x0, y=y0, z=z0} - for x1=0,chunk_size-1 do - for y1=0,chunk_size-1 do - for z1=0,chunk_size-1 do - if pr:next(1,inverse_chance) == 1 then - local x2 = x0+x1 - local y2 = y0+y1 - local z2 = z0+z1 - local p2 = {x=x2, y=y2, z=z2} - if minetest.get_node(p2).name == wherein then - minetest.set_node(p2, {name=name}) - end - end - end - end - end - end - end - --print("generate_ore done") -end --DECO @@ -770,168 +721,6 @@ end minetest.register_on_generated(function(minp, maxp, seed) - if maxp.y >= 2 and minp.y <= 0 then - -- Generate papyrus - local perlin1 = minetest.get_perlin(354, 3, 0.7, 100) - -- Assume X and Z lengths are equal - local divlen = 8 - local divs = (maxp.x-minp.x)/divlen+1; - for divx=0,divs-1 do - for divz=0,divs-1 do - local x0 = minp.x + math.floor((divx+0)*divlen) - local z0 = minp.z + math.floor((divz+0)*divlen) - local x1 = minp.x + math.floor((divx+1)*divlen) - local z1 = minp.z + math.floor((divz+1)*divlen) - -- Determine papyrus amount from perlin noise - local papyrus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 45 - 20) - -- Find random positions for papyrus based on this random - local pr = PseudoRandom(seed+1) - for i=0,papyrus_amount do - local x = pr:next(x0, x1) - local z = pr:next(z0, z1) - if minetest.get_node({x=x,y=1,z=z}).name == "default:dirt_with_grass" and - minetest.find_node_near({x=x,y=1,z=z}, 1, "default:water_source") then - default.make_papyrus({x=x,y=2,z=z}, pr:next(2, 4)) - end - end - end - end - -- Generate cactuses - local perlin1 = minetest.get_perlin(230, 3, 0.6, 100) - -- Assume X and Z lengths are equal - local divlen = 16 - local divs = (maxp.x-minp.x)/divlen+1; - for divx=0,divs-1 do - for divz=0,divs-1 do - local x0 = minp.x + math.floor((divx+0)*divlen) - local z0 = minp.z + math.floor((divz+0)*divlen) - local x1 = minp.x + math.floor((divx+1)*divlen) - local z1 = minp.z + math.floor((divz+1)*divlen) - -- Determine cactus amount from perlin noise - local cactus_amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 6 - 3) - -- Find random positions for cactus based on this random - local pr = PseudoRandom(seed+1) - for i=0,cactus_amount do - local x = pr:next(x0, x1) - local z = pr:next(z0, z1) - -- Find ground level (0...15) - local ground_y = nil - for y=30,0,-1 do - if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then - ground_y = y - break - end - end - -- If desert sand, make cactus - -- if ground_y and minetest.get_node({x=x,y=ground_y,z=z}).name == "default:desert_sand" then - -- default.make_cactus({x=x,y=ground_y+1,z=z}, pr:next(2, 3)) - -- end - end - end - end - -- Generate grass - local perlin1 = minetest.get_perlin(329, 3, 0.6, 100) - -- Assume X and Z lengths are equal - local divlen = 16 - local divs = (maxp.x-minp.x)/divlen+1; - for divx=0,divs-1 do - for divz=0,divs-1 do - local x0 = minp.x + math.floor((divx+0)*divlen) - local z0 = minp.z + math.floor((divz+0)*divlen) - local x1 = minp.x + math.floor((divx+1)*divlen) - local z1 = minp.z + math.floor((divz+1)*divlen) - -- Determine grass amount from perlin noise - local grass_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 3 * 9) - -- Find random positions for grass based on this random - local pr = PseudoRandom(seed+1) - for i=0,grass_amount do - local x = pr:next(x0, x1) - local z = pr:next(z0, z1) - -- Find ground level (0...15) - local ground_y = nil - for y=30,0,-1 do - if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then - ground_y = y - break - end - end - - - if ground_y then - local p = {x=x,y=ground_y+1,z=z} - local nn = minetest.get_node(p).name - -- Check if the node can be replaced - if minetest.registered_nodes[nn] and - minetest.registered_nodes[nn].buildable_to then - nn = minetest.get_node({x=x,y=ground_y,z=z}).name - -- If desert sand, add dry shrub - if nn == "default:desert_sand" then - minetest.set_node(p,{name="default:dry_shrub"}) - - - -- If dirt with grass, add grass - elseif nn == "default:dirt_with_grass" then - minetest.set_node(p,{name="default:grass_"..pr:next(1, 5)}) - end - end - end - - - end - end - end - end - - -- Generate nyan cats generate_nyancats(seed, minp, maxp) end) - -minetest.register_on_generated(function(minp, maxp, seed) - if maxp.y >= 4 and minp.y <= 0 then - local perlin1 = minetest.get_perlin(330, 3, 0.6, 100) - -- Assume X and Z lengths are equal - local divlen = 16 - local divs = (maxp.x-minp.x)/divlen+1; - for divx=0,divs-1 do - for divz=0,divs-1 do - local x0 = minp.x + math.floor((divx+0)*divlen) - local z0 = minp.z + math.floor((divz+0)*divlen) - local x1 = minp.x + math.floor((divx+1)*divlen) - local z1 = minp.z + math.floor((divz+1)*divlen) - -- Determine dry_shrub amount from perlin noise - local dry_shrub_amount = math.floor(perlin1:get2d({x=x0, y=z0}) ^ 3 * 9) - -- Find random positions for dry_shrub based on this random - local pr = PseudoRandom(seed+2) - for i=0,dry_shrub_amount do - local x = pr:next(x0, x1) - local z = pr:next(z0, z1) - -- Find ground level (0...15) - local ground_y = nil - for y=40,0,-1 do - if minetest.get_node({x=x,y=y,z=z}).name ~= "air" then - ground_y = y - break - end - end - - - if ground_y then - local p = {x=x,y=ground_y+1,z=z} - local nn = minetest.get_node(p).name - -- Check if the node can be replaced - if minetest.registered_nodes[nn] and - minetest.registered_nodes[nn].buildable_to then - nn = minetest.get_node({x=x,y=ground_y,z=z}).name - if nn == "default:desert_sand" then - minetest.set_node(p,{name="default:dry_shrub"}) - end - end - end - - - end - end - end - end -end) \ No newline at end of file diff --git a/mods/glowcrystals/init.lua b/mods/glowcrystals/init.lua index 936c991..6954088 100644 --- a/mods/glowcrystals/init.lua +++ b/mods/glowcrystals/init.lua @@ -12,7 +12,7 @@ Details: Adds several items for lighting, made out of glowing crystals - a bette minetest.register_node( "glowcrystals:glowcrystal_ore", { description = "Glowing Crystal Ore", - tile_images = { "default_essexit.png^glowcrystals_ore_glowcrystal.png" }, + tiles = { "default_essexit.png^glowcrystals_ore_glowcrystal.png" }, is_ground_content = true, paramtype = "light", sunlight_propagates = true, @@ -24,7 +24,7 @@ minetest.register_node( "glowcrystals:glowcrystal_ore", { minetest.register_node( "glowcrystals:glowcrystal_block", { description = "Glowing Crystal Block", - tile_images = { "glowcrystals_block_glowcrystal.png" }, + tiles = { "glowcrystals_block_glowcrystal.png" }, is_ground_content = true, paramtype = "light", sunlight_propagates = true, @@ -171,8 +171,8 @@ minetest.register_ore({ clust_scarcity = 9*9*9, clust_num_ores = 4, clust_size = 3, - height_min = -31000, - height_max = -5000, + y_min = -31000, + y_max = -5000, }) minetest.register_ore({ @@ -182,8 +182,8 @@ minetest.register_ore({ clust_scarcity = 24*24*24, clust_num_ores = 27, clust_size = 6, - height_min = -31000, - height_max = -10000, + y_min = -31000, + y_max = -10000, flags = "absheight", }) --///////// diff --git a/mods/pipeworks/deployer.lua b/mods/pipeworks/deployer.lua index f65742e..5f6d0ce 100644 --- a/mods/pipeworks/deployer.lua +++ b/mods/pipeworks/deployer.lua @@ -112,7 +112,7 @@ end minetest.register_node("pipeworks:deployer_off", { description = "Deployer", - tile_images = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", + tiles = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", "pipeworks_deployer_back.png","pipeworks_deployer_front_off.png"}, mesecons = {effector={rules=pipeworks.rules_all,action_on=deployer_on,action_off=deployer_off}}, tube={insert_object=function(pos,node,stack,direction) @@ -174,7 +174,7 @@ minetest.register_node("pipeworks:deployer_off", { minetest.register_node("pipeworks:deployer_on", { description = "Deployer", - tile_images = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", + tiles = {"pipeworks_deployer_top.png","pipeworks_deployer_bottom.png","pipeworks_deployer_side2.png","pipeworks_deployer_side1.png", "pipeworks_deployer_back.png","pipeworks_deployer_front_on.png"}, mesecons = {effector={rules=pipeworks.rules_all,action_on=deployer_on,action_off=deployer_off}}, tube={insert_object=function(pos,node,stack,direction) diff --git a/mods/pipeworks/node_breaker.lua b/mods/pipeworks/node_breaker.lua index 17e0475..013223c 100644 --- a/mods/pipeworks/node_breaker.lua +++ b/mods/pipeworks/node_breaker.lua @@ -204,7 +204,7 @@ end minetest.register_node("pipeworks:nodebreaker_off", { description = "Node Breaker", - tile_images = {"pipeworks_nodebreaker_top_off.png","pipeworks_nodebreaker_bottom_off.png","pipeworks_nodebreaker_side2_off.png","pipeworks_nodebreaker_side1_off.png", + tiles = {"pipeworks_nodebreaker_top_off.png","pipeworks_nodebreaker_bottom_off.png","pipeworks_nodebreaker_side2_off.png","pipeworks_nodebreaker_side1_off.png", "pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_off.png"}, is_ground_content = true, paramtype2 = "facedir", @@ -243,7 +243,7 @@ minetest.register_node("pipeworks:nodebreaker_off", { minetest.register_node("pipeworks:nodebreaker_on", { description = "Node Breaker", - tile_images = {"pipeworks_nodebreaker_top_on.png","pipeworks_nodebreaker_bottom_on.png","pipeworks_nodebreaker_side2_on.png","pipeworks_nodebreaker_side1_on.png", + tiles = {"pipeworks_nodebreaker_top_on.png","pipeworks_nodebreaker_bottom_on.png","pipeworks_nodebreaker_side2_on.png","pipeworks_nodebreaker_side1_on.png", "pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_on.png"}, mesecons= {effector={rules=pipeworks.rules_all,action_on=node_breaker_on, action_off=node_breaker_off}}, is_ground_content = true, diff --git a/mods/plantlife/poisonivy/init.lua b/mods/plantlife/poisonivy/init.lua index b1c52dc..00317ce 100644 --- a/mods/plantlife/poisonivy/init.lua +++ b/mods/plantlife/poisonivy/init.lua @@ -31,7 +31,7 @@ minetest.register_node('poisonivy:seedling', { description = S("Poison ivy (seedling)"), drawtype = 'plantlike', waving = 1, - tile_images = { 'poisonivy_seedling.png' }, + tiles = { 'poisonivy_seedling.png' }, inventory_image = 'poisonivy_seedling.png', wield_image = 'poisonivy_seedling.png', sunlight_propagates = true, @@ -46,7 +46,7 @@ minetest.register_node('poisonivy:sproutling', { description = S("Poison ivy (sproutling)"), drawtype = 'plantlike', waving = 1, - tile_images = { 'poisonivy_sproutling.png' }, + tiles = { 'poisonivy_sproutling.png' }, inventory_image = 'poisonivy_sproutling.png', wield_image = 'poisonivy_sproutling.png', sunlight_propagates = true, @@ -60,7 +60,7 @@ minetest.register_node('poisonivy:sproutling', { minetest.register_node('poisonivy:climbing', { description = S("Poison ivy (climbing plant)"), drawtype = 'signlike', - tile_images = { 'poisonivy_climbing.png' }, + tiles = { 'poisonivy_climbing.png' }, inventory_image = 'poisonivy_climbing.png', wield_image = 'poisonivy_climbing.png', sunlight_propagates = true, diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 537f554..e379549 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -1130,7 +1130,7 @@ stairs.register_stair_and_slab("dark_green", "wool:dark_green", minetest.register_node("stairs:stair_glowcrystal_block", { description = "Glowing Stair", drawtype = "nodebox", - tile_images = {"default_block_glowcrystal.png"}, + tiles = {"default_block_glowcrystal.png"}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -1207,7 +1207,7 @@ stairs.register_stair_and_slab("dark_green", "wool:dark_green", minetest.register_node("stairs:stair_out_glowcrystal_block", { description = "Glowing Stair Out", drawtype = "nodebox", - tile_images = {"glowcrystals_block_glowcrystal.png"}, + tiles = {"glowcrystals_block_glowcrystal.png"}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -1274,7 +1274,7 @@ stairs.register_stair_and_slab("dark_green", "wool:dark_green", minetest.register_node("stairs:stair_in_glowcrystal_block", { description = "Glowing Stair Inn", drawtype = "nodebox", - tile_images = {"glowcrystals_block_glowcrystal.png"}, + tiles = {"glowcrystals_block_glowcrystal.png"}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -1342,7 +1342,7 @@ stairs.register_stair_and_slab("dark_green", "wool:dark_green", minetest.register_node("stairs:stair_column_glowcrystal_block", { description = "Glowing Stair Column", drawtype = "nodebox", - tile_images = {"glowcrystals_block_glowcrystal.png"}, + tiles = {"glowcrystals_block_glowcrystal.png"}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -1409,7 +1409,7 @@ stairs.register_stair_and_slab("dark_green", "wool:dark_green", minetest.register_node("stairs:slab_glowcrystal_block", { description = "Glowing Stair Slab", drawtype = "nodebox", - tile_images = {"glowcrystals_block_glowcrystal.png"}, + tiles = {"glowcrystals_block_glowcrystal.png"}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/vines/init.lua b/mods/vines/init.lua index 04229aa..7e02456 100644 --- a/mods/vines/init.lua +++ b/mods/vines/init.lua @@ -17,7 +17,7 @@ minetest.register_node("vines:rope_block", { description = "Rope", sunlight_propagates = true, paramtype = "light", - tile_images = { + tiles = { "default_wood.png^vines_rope.png", "default_wood.png^vines_rope.png", "default_wood.png", @@ -55,7 +55,7 @@ minetest.register_node("vines:rope", { sunlight_propagates = true, paramtype = "light", drop = "", - tile_images = { "vines_rope.png" }, + tiles = { "vines_rope.png" }, drawtype = "plantlike", groups = {flammable=2, not_in_creative_inventory=1}, sounds = default.node_sound_leaves_defaults(), @@ -75,7 +75,7 @@ minetest.register_node("vines:rope_end", { sunlight_propagates = true, paramtype = "light", drop = "", - tile_images = { "vines_rope_end.png" }, + tiles = { "vines_rope_end.png" }, drawtype = "plantlike", groups = {flammable=2, not_in_creative_inventory=1}, sounds = default.node_sound_leaves_defaults(), @@ -99,7 +99,7 @@ minetest.register_node("vines:side", { sunlight_propagates = true, paramtype = "light", paramtype2 = "wallmounted", - tile_images = { "vines_side.png" }, + tiles = { "vines_side.png" }, drawtype = "signlike", inventory_image = "vines_side.png", groups = vines_group, @@ -126,7 +126,7 @@ minetest.register_node("vines:side_rotten", { sunlight_propagates = true, paramtype = "light", paramtype2 = "wallmounted", - tile_images = { "vines_side_rotten.png" }, + tiles = { "vines_side_rotten.png" }, drawtype = "signlike", inventory_image = "vines_side.png", groups = {snappy = 3,flammable=2, hanging_node=1}, @@ -146,7 +146,7 @@ minetest.register_node("vines:willow", { sunlight_propagates = true, paramtype = "light", paramtype2 = "wallmounted", - tile_images = { "vines_willow.png" }, + tiles = { "vines_willow.png" }, drawtype = "signlike", inventory_image = "vines_willow.png", groups = vines_group, @@ -175,7 +175,7 @@ minetest.register_node("vines:willow_rotten", { paramtype = "light", drop = "", paramtype2 = "wallmounted", - tile_images = { "vines_willow_rotten.png" }, + tiles = { "vines_willow_rotten.png" }, drawtype = "signlike", inventory_image = "vines_willow.png", groups = {snappy = 3,flammable=2, hanging_node=1}, @@ -193,7 +193,7 @@ minetest.register_node("vines:root", { climbable = true, sunlight_propagates = true, paramtype = "light", - tile_images = { "vines_root.png" }, + tiles = { "vines_root.png" }, drawtype = "plantlike", inventory_image = "vines_root.png", groups = {vines=1,snappy = 3,flammable=2, hanging_node=1}, @@ -213,7 +213,7 @@ minetest.register_node("vines:vine", { sunlight_propagates = true, drop = "", paramtype = "light", - tile_images = { "vines_vine.png" }, + tiles = { "vines_vine.png" }, drawtype = "plantlike", inventory_image = "vines_vine.png", groups = vines_group, @@ -241,7 +241,7 @@ minetest.register_node("vines:vine_rotten", { drop = "", sunlight_propagates = true, paramtype = "light", - tile_images = { "vines_vine_rotten.png" }, + tiles = { "vines_vine_rotten.png" }, drawtype = "plantlike", inventory_image = "vines_vine_rotten.png", groups = {snappy = 3,flammable=2, hanging_node=1}, @@ -375,8 +375,8 @@ minetest.register_tool("vines:shears", { full_punch_interval = 1.0, max_drop_level=0, groupcaps={ - snappy={times={[3]=0.2}, maxwear=0.05, maxlevel=3}, - wool={times={[3]=0.2}, maxwear=0.05, maxlevel=3} + snappy={times={[3]=0.2}, uses=20, maxlevel=3}, + wool={times={[3]=0.2}, uses=20, maxlevel=3} } }, })