mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Removed all whitespaces (using new script)
This commit is contained in:
@ -35,7 +35,7 @@ minetest.register_node("clams:dirtalgae", {
|
||||
}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults,
|
||||
sounds = default.node_sound_dirt_defaults,
|
||||
})
|
||||
|
||||
minetest.register_node("clams:sandalgaeused", {
|
||||
@ -226,7 +226,7 @@ minetest.register_abm({
|
||||
local y = {x = pos.x, y = pos.y + 1, z = pos.z }
|
||||
local yy = {x = pos.x, y = pos.y + 2, z = pos.z }
|
||||
if minetest.get_node(y).name == "default:water_source" or
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex" then
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex" then
|
||||
if minetest.get_node(yy).name == "default:water_source" or
|
||||
minetest.get_node(yy).name == "noairblocks:water_sourcex" then
|
||||
minetest.add_node(pos, {name = "clams:sandalgae"}) else
|
||||
@ -244,7 +244,7 @@ minetest.register_abm({
|
||||
local y = {x = pos.x, y = pos.y + 1, z = pos.z }
|
||||
local yy = {x = pos.x, y = pos.y + 2, z = pos.z }
|
||||
if minetest.get_node(y).name == "default:water_source" or
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex" then
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex" then
|
||||
if minetest.get_node(yy).name == "default:water_source" or
|
||||
minetest.get_node(yy).name == "noairblocks:water_sourcex" then
|
||||
minetest.add_node(pos, {name = "clams:dirtalgae"}) else
|
||||
@ -264,7 +264,7 @@ minetest.register_abm({
|
||||
if (active_object_count_wider + active_object_count_wider) > 40 then
|
||||
return
|
||||
elseif (minetest.get_node(y).name == "default:water_source" or
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex") then
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex") then
|
||||
if (minetest.get_node(yy).name == "default:water_source" or
|
||||
minetest.get_node(yy).name == "noairblocks:water_sourcex") then
|
||||
pos.y=pos.y + 1
|
||||
@ -284,7 +284,7 @@ minetest.register_abm({
|
||||
if (active_object_count_wider + active_object_count_wider) > 40 then
|
||||
return
|
||||
elseif (minetest.get_node(y).name == "default:water_source" or
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex") then
|
||||
minetest.get_node(y).name == "noairblocks:water_sourcex") then
|
||||
if (minetest.get_node(yy).name == "default:water_source" or
|
||||
minetest.get_node(yy).name == "noairblocks:water_sourcex") then
|
||||
pos.y=pos.y + 1
|
||||
|
@ -84,11 +84,11 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local xnyp= {x = pos.x - 1, y = pos.y + 1, z = pos.z}
|
||||
if minetest.get_node(xn).name == "default:water_source" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(xnyp).name ~= "air" then
|
||||
minetest.get_node(xnyp).name ~= "air" then
|
||||
minetest.add_node(xn, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(xn).name == "default:water_flowing" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(xnyp).name ~= "air" then
|
||||
minetest.get_node(xnyp).name ~= "air" then
|
||||
minetest.add_node(xn, {name = "noairblocks:water_flowingx"}) else
|
||||
return
|
||||
end
|
||||
@ -106,11 +106,11 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local xpyp= {x = pos.x + 1, y = pos.y + 1, z = pos.z}
|
||||
if minetest.get_node(xp).name == "default:water_source" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(xpyp).name ~= "air" then
|
||||
minetest.get_node(xpyp).name ~= "air" then
|
||||
minetest.add_node(xp, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(xp).name == "default:water_flowing" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(xpyp).name ~= "air" then
|
||||
minetest.get_node(xpyp).name ~= "air" then
|
||||
minetest.add_node(xp, {name = "noairblocks:water_flowingx"}) else
|
||||
return
|
||||
end
|
||||
@ -128,11 +128,11 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local znyp= {x = pos.x, y = pos.y + 1, z = pos.z - 1}
|
||||
if minetest.get_node(zn).name == "default:water_source" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(znyp).name ~= "air" then
|
||||
minetest.get_node(znyp).name ~= "air" then
|
||||
minetest.add_node(zn, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(zn).name == "default:water_flowing" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(znyp).name ~= "air" then
|
||||
minetest.get_node(znyp).name ~= "air" then
|
||||
minetest.add_node(zn, {name = "noairblocks:water_flowingx"}) else
|
||||
return
|
||||
end
|
||||
@ -150,11 +150,11 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local zpyp= {x = pos.x, y = pos.y + 1, z = pos.z + 1}
|
||||
if minetest.get_node(zp).name == "default:water_source" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(zpyp).name ~= "air" then
|
||||
minetest.get_node(zpyp).name ~= "air" then
|
||||
minetest.add_node(zp, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(zp).name == "default:water_flowing" and
|
||||
minetest.get_node(yp).name ~= "air" and
|
||||
minetest.get_node(zpyp).name ~= "air" then
|
||||
minetest.get_node(zpyp).name ~= "air" then
|
||||
minetest.add_node(zp, {name = "noairblocks:water_flowingx"}) else
|
||||
return
|
||||
end
|
||||
@ -168,7 +168,7 @@ interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local yp= {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
if minetest.get_node(yp).name == "default:water_source" then
|
||||
if minetest.get_node(yp).name == "default:water_source" then
|
||||
minetest.add_node(yp, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(yp).name == "default:water_flowing" then
|
||||
minetest.add_node(yp, {name = "noairblocks:water_flowingx"}) else
|
||||
@ -186,10 +186,10 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local yn = {x = pos.x, y = pos.y - 1, z = pos.z}
|
||||
local yp= {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
if minetest.get_node(yn).name == "default:water_source" and
|
||||
minetest.get_node(yp).name ~= "air" then
|
||||
minetest.get_node(yp).name ~= "air" then
|
||||
minetest.add_node(yn, {name = "noairblocks:water_sourcex"}) else
|
||||
if minetest.get_node(yn).name == "default:water_flowing" and
|
||||
minetest.get_node(yp).name ~= "air" then
|
||||
minetest.get_node(yp).name ~= "air" then
|
||||
minetest.add_node(yn, {name = "noairblocks:water_flowingx"}) else
|
||||
return
|
||||
end
|
||||
|
@ -396,9 +396,9 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.get_node(yyp).name == "noairblocks:water_sourcex") then
|
||||
if (minetest.get_node(yyyp).name == "default:water_source" or
|
||||
minetest.get_node(yyyp).name == "noairblocks:water_sourcex") then
|
||||
minetest.add_node(pos, {name = "seaplants:kelpgreenmiddle"})
|
||||
minetest.add_node(pos, {name = "seaplants:kelpgreenmiddle"})
|
||||
pos.y = pos.y + 1
|
||||
minetest.add_node(pos, {name = "seaplants:kelpgreen"})
|
||||
minetest.add_node(pos, {name = "seaplants:kelpgreen"})
|
||||
else
|
||||
return
|
||||
end
|
||||
@ -452,9 +452,9 @@ action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.get_node(yyp).name == "noairblocks:water_sourcex") then
|
||||
if (minetest.get_node(yyyp).name == "default:water_source" or
|
||||
minetest.get_node(yyyp).name == "noairblocks:water_sourcex") then
|
||||
minetest.add_node(pos, {name = "seaplants:kelpbrownmiddle"})
|
||||
minetest.add_node(pos, {name = "seaplants:kelpbrownmiddle"})
|
||||
pos.y = pos.y + 1
|
||||
minetest.add_node(pos, {name = "seaplants:kelpbrown"})
|
||||
minetest.add_node(pos, {name = "seaplants:kelpbrown"})
|
||||
else
|
||||
return
|
||||
end
|
||||
|
@ -77,7 +77,7 @@ minetest.register_node("seawrecks:ubootchest", {
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
|
||||
local kind_of_price = math.random(0,2)
|
||||
local amount_of_price = math.random(1, 20)
|
||||
local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"}
|
||||
@ -91,7 +91,7 @@ minetest.register_node("seawrecks:ubootchest", {
|
||||
else
|
||||
price_group[2] = ""
|
||||
end
|
||||
|
||||
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
@ -203,7 +203,7 @@ interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local yp = {x = pos.x, y = pos.y + 3, z = pos.z}
|
||||
if minetest.get_node(pos).name == "seawrecks:woodship" and
|
||||
if minetest.get_node(pos).name == "seawrecks:woodship" and
|
||||
(minetest.get_node(yp).name == "default:water_source" or
|
||||
minetest.get_node(yp).name == "noairblocks:water_sourcex") then
|
||||
minetest.add_node(pos, {name = "default:sand"})
|
||||
@ -298,7 +298,7 @@ local yp = {x = pos.x, y = pos.y + 3, z = pos.z}
|
||||
end
|
||||
|
||||
pos.z = pos.z - 1
|
||||
pos.x = pos.x + 1
|
||||
pos.x = pos.x + 1
|
||||
minetest.add_node(pos, {name = "default:wood"})
|
||||
|
||||
pos.z = pos.z - 1
|
||||
@ -380,7 +380,7 @@ interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local yp = {x = pos.x, y = pos.y + 8, z = pos.z}
|
||||
if minetest.get_node(pos).name == "seawrecks:uboot" and
|
||||
if minetest.get_node(pos).name == "seawrecks:uboot" and
|
||||
(minetest.get_node(yp).name == "default:water_source" or
|
||||
minetest.get_node(yp).name == "noairblocks:water_sourcex") then
|
||||
minetest.add_node(pos, {name = "default:dirt"})
|
||||
|
@ -144,7 +144,7 @@ function stairsshine.register_slab(subname, recipeitem, groups, images, descript
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
||||
-- Upside down slabs
|
||||
if p0.y-1 == p1.y then
|
||||
-- Turn into full block if pointing at a existing slab
|
||||
|
Reference in New Issue
Block a user