--Nssb --Materials --Gioforchio caro, mancano i vari Bloco fabbricati! I bozzoli che droppino vari oggetti tipo armi o cose del genere o può far spawnare ragni (sembra divertente!), da far spawnare rovine 2 se riesci e poi commentare il codice e scrivere il readme! O dici che non è abbastanza di impatto per la prima release? La 0.1 in Wip mods! Potremmo fare un altro trailer!!! 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=1}, 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"}, --ho provato, ma ho fallito durissimooooooooo!!!! --[[local dro = math.random(1,4) if dro == 1 then drop = "nssm:ant_sword", elseif dro == 2 then drop = "nssm:mantis_sword", elseif dro == 3 then drop = "nssm:crab_light_mace", elseif dro == 4 then drop = "nssm:masticone_fang_sword",]] is_ground_content = false, groups = {snappy=1, flammable=2}, }) --schematichs generation function nssb_register_buildings (build, numerone, blocco, giu, bloccogiu, deep, bloccodeep, raggio, near, lato, underground, height) minetest.register_on_generated(function(minp, maxp, seed) if underground==false then local i, j, k local flag=0 local posd 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+giu, y=j-1, z=k+giu} local pos3 = {x=i, y=j+deep, z=k} local n = minetest.env:get_node(pos1).name local d = minetest.env:get_node(pos3).name local u = minetest.env:get_node(pos2).name if n== blocco and u== bloccogiu and d==bloccodeep and flag==0 and math.random(1,numerone)==1 then if minetest.find_node_near(pos3, raggio, near) 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))) posd=pos1 flag=1 end end end if flag==1 and lato>0 then for dx = 0,lato do for dz = 0,lato do local dy=posd.y-1 local f = {x = posd.x+dx, y=dy, z=posd.z+dz} local fg = minetest.env:get_node(f).name while fg=="air" do minetest.env:set_node(f, {name="default:dirt"}) f.y=f.y-1 fg = minetest.env:get_node(f).name end end end end else --underground==true if minp.y<0 then --minetest.chat_send_all("Siamo sottoterra") minetest.chat_send_all("Posmin: "..(minetest.pos_to_string(minp)).." Posmax: "..(minetest.pos_to_string(maxp))) local i, j, k local flag=0 if height~=nil then if height>minp.y and height