Added the project
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
nssm
|
||||
default
|
290
init.lua
Normal file
@ -0,0 +1,290 @@
|
||||
--Nssb
|
||||
--Materials
|
||||
|
||||
minetest.register_node("nssb:mossy_stone_brick", {
|
||||
description = "Mossy Stone Brick",
|
||||
tiles = {"mossy_stone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:very_mossy_stone_brick", {
|
||||
description = "Very Mossy Stone Brick",
|
||||
tiles = {"very_mossy_stone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:mossy_stone_column", {
|
||||
description = "Mossy Stone Column",
|
||||
tiles = {"mossy_stone_column.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:stone_column", {
|
||||
description = "Stone Column",
|
||||
tiles = {"stone_column.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("nssb:marine_stone", {
|
||||
description = "Seastone",
|
||||
tiles = {"marine_stone.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:marine_brick", {
|
||||
description = "Seastone Brick",
|
||||
tiles = {"marine_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:marine_meselamp", {
|
||||
description = "Sea Meselamp",
|
||||
tiles = {"marine_meselamp.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3},
|
||||
drop = "",
|
||||
light_source = 15,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:mantis_clay", {
|
||||
description = "Mantis Clay",
|
||||
tiles = {"mantis_clay.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:hardened_mantis_clay", {
|
||||
description = "Hardened Mantis Clay",
|
||||
tiles = {"hard_mantis_clay.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:ant_stone", {
|
||||
description = "Ant Stone",
|
||||
tiles = {"ant_stone.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1, stone=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:vine", {
|
||||
description = "Vine",
|
||||
drawtype = "signlike",
|
||||
tiles = {"climbing_plant.png"},
|
||||
inventory_image = {"vine.png"},
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {type="wallmounted"},
|
||||
legacy_wallmounted = true,
|
||||
groups = {flammable=3, snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("nssb:liana", {
|
||||
description = "Liana",
|
||||
drawtype = "plantlike",
|
||||
inventory_image = {"liana.png"},
|
||||
tiles = {"liana.png"},
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
groups = {flammable=3, snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:vertical_web", {
|
||||
description = "Vertical Web",
|
||||
inventory_image = "vertical_web.png",
|
||||
tile_images = {"vertical_web.png"} ,
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = true,
|
||||
diggable = true,
|
||||
buildable_to = false,
|
||||
drop = "nssm:web",
|
||||
drowning = 0,
|
||||
liquid_renewable = false,
|
||||
liquidtype = "source",
|
||||
liquid_range= 0,
|
||||
liquid_alternative_flowing = "nssb:vertical_web",
|
||||
liquid_alternative_source = "nssb:vertical_web",
|
||||
liquid_viscosity = 20,
|
||||
groups = {flammable=2, snappy=1, liquid=1},
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:web_cone_up", {
|
||||
description = "Web Cone Up",
|
||||
inventory_image = "web_cone_up.png",
|
||||
tile_images = {"web_cone_up.png"} ,
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = true,
|
||||
diggable = true,
|
||||
buildable_to = false,
|
||||
drop = "nssm:web",
|
||||
drowning = 0,
|
||||
liquid_renewable = false,
|
||||
liquidtype = "source",
|
||||
liquid_range= 0,
|
||||
liquid_alternative_flowing = "nssb:web_cone_up",
|
||||
liquid_alternative_source = "nssb:web_cone_up",
|
||||
liquid_viscosity = 20,
|
||||
groups = {flammable=2, snappy=1, liquid=1},
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:web_cone_down", {
|
||||
description = "Web Cone Down",
|
||||
inventory_image = "web_cone_down.png",
|
||||
tile_images = {"web_cone_down.png"} ,
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = true,
|
||||
diggable = true,
|
||||
buildable_to = false,
|
||||
drop = "nssm:web",
|
||||
drowning = 0,
|
||||
liquid_renewable = false,
|
||||
liquidtype = "source",
|
||||
liquid_range= 0,
|
||||
liquid_alternative_flowing = "nssb:web_cone_down",
|
||||
liquid_alternative_source = "nssb:web_cone_down",
|
||||
liquid_viscosity = 20,
|
||||
groups = {flammable=2, snappy=1, liquid=1},
|
||||
})
|
||||
|
||||
minetest.register_node("nssb:web_cocoon", {
|
||||
description = "Web Cocoon",
|
||||
tiles = {"web_cocoon.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1, flammable=2},
|
||||
})
|
||||
|
||||
--schematichs generation
|
||||
|
||||
function nssb_register_buildings (build, numerone, blocco,--[[ bloccosu, ]]deep, bloccodeep--[[, largo, bloccolargo]])
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
local i, j, k
|
||||
local flag=0
|
||||
i = math.random(minp.x, maxp.x)
|
||||
k = math.random(minp.z, maxp.z)
|
||||
for j=minp.y,maxp.y do
|
||||
local pos1 = {x=i, y=j, z=k}
|
||||
-- local pos2 = {x=i, y=j+1, z=k}
|
||||
local pos3 = {x=i, y=j+deep, z=k}
|
||||
-- local pos4 = {x=i+largo, y=j+1, z=k+largo}
|
||||
local n = minetest.env:get_node(pos1).name
|
||||
-- local l = minetest.env:get_node(pos4).name
|
||||
local d = minetest.env:get_node(pos3).name
|
||||
-- local u = minetest.env:get_node(pos2).name
|
||||
if n== blocco and--[[ u== bloccosu and l== bloccolargo and]] d==bloccodeep and flag==0 and math.random(1,numerone)==1 then
|
||||
minetest.place_schematic(pos1, minetest.get_modpath("nssb").."/schems/".. build ..".mts", "0", {}, true)
|
||||
--minetest.chat_send_all("Added schematic in "..(minetest.pos_to_string(pos1)))
|
||||
flag=1
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
for i=minp.x,maxp.x do
|
||||
for j=minp.y,maxp.y do
|
||||
for k=minp.z,maxp.z do
|
||||
local pos1 = {x=i, y=j, z=k}
|
||||
-- local pos2 = {x=i, y=j+1, z=k}
|
||||
local pos3 = {x=i, y=j+deep, z=k}
|
||||
-- local pos4 = {x=i+largo, y=j+1, z=k+largo}
|
||||
local n = minetest.env:get_node(pos1).name
|
||||
-- local l = minetest.env:get_node(pos4).name
|
||||
local d = minetest.env:get_node(pos3).name
|
||||
-- local u = minetest.env:get_node(pos2).name
|
||||
if n== blocco and--[[ u== bloccosu and l== bloccolargo and]] d==bloccodeep and flag==0 and math.random(1,numerone)==1 then
|
||||
minetest.place_schematic(pos1, minetest.get_modpath("nssb").."/schems/".. build ..".mts", "0", {}, true)
|
||||
--minetest.chat_send_all("Added schematic in "..(minetest.pos_to_string(pos1)))
|
||||
flag=1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
]]--
|
||||
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
--nssb_register_buildings ('spiaggiagranchius', 25000, "default:sand",--[["air",]] 2, "air"--[[, 1, "default:sand"]])
|
||||
nssb_register_buildings ('granchiusacqua', 25000, "default:sand",--[["default:water_source", ]]8,"default:water_source"--[[, 2, "default:water_source"]])
|
||||
--nssb_register_buildings ('ooteca', 25000, "default:dirt_with_grass",--[[ "air",]] 2, "air"--[[, 4, "default:tree"]])
|
||||
--nssb_register_buildings ('minuscolaooteca', 25000, "default:dirt_with_grass", --[["air",]] 2, "air"--[[, 4, "default:tree"]])
|
||||
--nssb_register_buildings ('piccolaooteca', 25000, "default:dirt_with_grass", --[["air",]] 2, "air"--[[, 4, "default:tree"]])
|
||||
nssb_register_buildings ('arcatemarine', 25000, "default:sand",--[[ "default:sand",]] 13, "default:water_source"--[[, 1, "default:water_source"]])
|
||||
nssb_register_buildings ('grandepiramide', 25000, "default:sand", --[["default:water_source",]] 22, "default:water_source"--[[, 2, "default:water_source"]])
|
||||
--nssb_register_buildings ('collinaa', 25000, "default:dirt_with_grass", --[["air",]] 2, "air"--[[, 1, "air"]])
|
||||
nssb_register_buildings ('bozzoli', 25000, "default:dirt_with_grass", --[["air",]] 7, "default:jungle_leaves"--[[, 2, "default:jungle_tree"]])
|
||||
|
||||
--Eggs
|
||||
|
||||
function nssb_register_eggs (name, descr, int, wide, troppi, neigh)
|
||||
|
||||
minetest.register_node("nssb:".. name .."_eggs", {
|
||||
description = descr .." Eggs",
|
||||
tiles = {name .."_eggs.png"},
|
||||
light_source = 5,
|
||||
is_ground_content = false,
|
||||
groups = {snappy=1},
|
||||
})
|
||||
|
||||
--[[
|
||||
minetest.register_abm({
|
||||
nodenames = {"nssb:".. name .."_eggs"},
|
||||
neighbors = {neigh},
|
||||
interval = int,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local pos1 = {x=pos.x+math.random(-wide,wide), y=pos.y+0.5, z=pos.z+math.random(-wide,wide)}
|
||||
local n = minetest.env:get_node(pos1).name
|
||||
if n ~= "air" then
|
||||
return
|
||||
end
|
||||
local count = 0
|
||||
for _,ent in pairs(minetest.get_objects_inside_radius(pos, 6)) do
|
||||
count = count + 1
|
||||
end
|
||||
if count < troppi then
|
||||
minetest.add_entity(pos1, "nssm:" .. name)
|
||||
end
|
||||
end
|
||||
})
|
||||
]]
|
||||
end
|
||||
|
||||
nssb_register_eggs ('ant_worker', 'Ant Worker', 16, 2, 4, "air")
|
||||
nssb_register_eggs ('ant_soldier', 'Ant Soldier', 16, 2, 4, "air")
|
||||
nssb_register_eggs ('larva', 'Larva', 16, 2, 4, "air")
|
||||
nssb_register_eggs ('crab', 'Crab', 18, 2, 4, "default:sand")
|
||||
nssb_register_eggs ('black_widow', 'Black Widow', 18, 2, 4, "air")
|
||||
nssb_register_eggs ('uloboros', 'Uloboros', 18, 2, 4, "air")
|
||||
nssb_register_eggs ('tarantula', 'Tarantula', 18, 2, 1, "air")
|
||||
nssb_register_eggs ('daddy_long_legs', 'Daddy Long Legs', 18, 2, 4, "air")
|
||||
nssb_register_eggs ('xgaloctopus', 'Xgaloctopus', 18, 2, 4, "default:water_source")
|
BIN
schems/arcatemarine.mts
Normal file
BIN
schems/bozzoli.mts
Normal file
BIN
schems/collinaa.mts
Normal file
BIN
schems/granchiusacqua.mts
Normal file
BIN
schems/grandepiramide.mts
Normal file
BIN
schems/minuscolaooteca.mts
Normal file
BIN
schems/ooteca.mts
Normal file
BIN
schems/piccolaooteca.mts
Normal file
BIN
schems/spiaggiagranchius.mts
Normal file
BIN
textures/ant_soldier_eggs.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
textures/ant_stone.png
Normal file
After Width: | Height: | Size: 468 B |
BIN
textures/ant_worker_eggs.png
Normal file
After Width: | Height: | Size: 488 B |
BIN
textures/black_widow_eggs.png
Normal file
After Width: | Height: | Size: 604 B |
BIN
textures/climbing_plant.png
Normal file
After Width: | Height: | Size: 407 B |
BIN
textures/crab_eggs.png
Normal file
After Width: | Height: | Size: 421 B |
BIN
textures/daddy_long_legs_eggs.png
Normal file
After Width: | Height: | Size: 529 B |
BIN
textures/hard_mantis_clay.png
Normal file
After Width: | Height: | Size: 500 B |
BIN
textures/larva_eggs.png
Normal file
After Width: | Height: | Size: 940 B |
BIN
textures/liana.png
Normal file
After Width: | Height: | Size: 499 B |
BIN
textures/liana_chiara.png
Normal file
After Width: | Height: | Size: 557 B |
BIN
textures/lianas.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
textures/mantis_clay.png
Normal file
After Width: | Height: | Size: 802 B |
BIN
textures/marine_brick.png
Normal file
After Width: | Height: | Size: 404 B |
BIN
textures/marine_meselamp.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
textures/marine_stone.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
textures/mossy_stone_brick.png
Normal file
After Width: | Height: | Size: 755 B |
BIN
textures/mossy_stone_column.png
Normal file
After Width: | Height: | Size: 754 B |
BIN
textures/pale_climbing_plant.png
Normal file
After Width: | Height: | Size: 390 B |
BIN
textures/stone_column.png
Normal file
After Width: | Height: | Size: 607 B |
BIN
textures/tarantula_eggs.png
Normal file
After Width: | Height: | Size: 455 B |
BIN
textures/uloboros_eggs.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
textures/vertical_web.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
textures/very_mossy_stone_brick.png
Normal file
After Width: | Height: | Size: 782 B |
BIN
textures/web_cocoon.png
Normal file
After Width: | Height: | Size: 423 B |
BIN
textures/web_cone_down.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
textures/web_cone_up.png
Normal file
After Width: | Height: | Size: 479 B |
BIN
textures/xgaloctopus_eggs.png
Normal file
After Width: | Height: | Size: 925 B |