Add files via upload

This commit is contained in:
Shad MOrdre 2019-09-06 15:27:34 -07:00 committed by GitHub
parent 3d97afb470
commit f7ec5af6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 196 additions and 268 deletions

View File

@ -114,7 +114,7 @@ minetest.log(S("[MOD] lib_materials: Loading..."))
dofile(lib_materials.path.."/lib_materials_vessels.lua")
--dofile(lib_materials.path.."/lib_materials_water_dynamics.lua")
--dofile(lib_materials.path.."/lib_materials_water_dynamics.lua")
dofile(lib_materials.path.."/lib_materials_fire.lua")
@ -137,7 +137,7 @@ minetest.log(S("[MOD] lib_materials: Loading..."))
dofile(lib_materials.path.."/lib_materials_ecosystems.lua")
--dofile(lib_materials.path.."/voxel_BAK.lua")
--dofile(lib_materials.path.."/voxel_BAK.lua")
--dofile(lib_materials.path.."/lib_materials_lakes.lua")
@ -151,7 +151,7 @@ minetest.log(S("[MOD] lib_materials: Loading..."))
dofile(lib_materials.path.."/lib_materials_utils.lua")
--dofile(lib_materials.path.."/lib_materials_rivers.lua")
--dofile(lib_materials.path.."/lib_materials_rivers.lua")
dofile(lib_materials.path.."/lib_materials_abms.lua")

View File

@ -585,13 +585,12 @@ for i, stone in ipairs(lib_materials.read_csv("|", lib_materials.path .. "/nodes
local full = node_name .. "_with_" .. id
local new_cloned_node = table.copy(minetest.registered_nodes["lib_materials:"..node_name..""])
new_cloned_node.description = descript .. " with " .. sl[1]
new_cloned_node.description = descript .. " with " .. sl[2]
if sl[4] then
new_cloned_node.tiles = {
new_tile1 .. "^" .. sl[3],
new_tile1,
new_tile1 .. "^" .. sl[4]
new_tile1 .. "^" .. sl[4],
}
else
new_cloned_node.tiles = {
@ -637,6 +636,12 @@ for i, stone in ipairs(lib_materials.read_csv("|", lib_materials.path .. "/nodes
}
minetest.register_node("lib_materials:" .. full .. "", new_cloned_node)
if full == "dirt_with_grass" then
minetest.register_alias("default:dirt_with_grass", "lib_materials:"..full.."")
end
if full == "dirt_with_grass_dry" then
minetest.register_alias("default:dirt_with_dry_grass", "lib_materials:"..full.."")
end
end
for _, sd in pairs(stone_dirts) do
@ -760,7 +765,7 @@ for i, stone in ipairs(lib_materials.read_csv("|", lib_materials.path .. "/nodes
if alias_mod and alias_node then
minetest.register_alias(""..alias_mod..":"..alias_node.."", "lib_materials:"..node_name.."")
minetest.register_alias(""..alias_node.."", "lib_materials:"..node_name.."")
--minetest.register_alias(""..alias_node.."", "lib_materials:"..node_name.."")
end

View File

@ -13,15 +13,8 @@ local S = lib_materials.intllib
walkable = false,
buildable_to = true,
floodable = true,
groups = {chippy = 1, flakey = 1, knappy = 1, oddly_breakable_by_hand = 1},
groups = {chippy = 1, flakey = 1, knappy = 1, ground_litter = 1, rock = 1, oddly_breakable_by_hand = 1},
sounds = lib_materials.node_sound_stone_defaults(),
drop = {
max_items = 1,
items = {
{items = {"lib_materials:litter_rock"}},
{items = {"lib_materials:tool_rock"}, rarity = 20},
}
},
node_box = {
type = "fixed",
fixed = {
@ -41,15 +34,8 @@ local S = lib_materials.intllib
walkable = false,
buildable_to = true,
floodable = true,
groups = {chippy = 1, flakey = 1, knappy = 1, oddly_breakable_by_hand = 1},
groups = {chippy = 1, flakey = 1, knappy = 1, ground_litter = 1, rock = 1, oddly_breakable_by_hand = 1},
sounds = lib_materials.node_sound_stone_defaults(),
drop = {
max_items = 1,
items = {
{items = {"lib_materials:litter_rocks"}},
{items = {"lib_materials:tool_rock"}, rarity = 20},
}
},
node_box = {
type = "fixed",
fixed = {
@ -58,44 +44,6 @@ local S = lib_materials.intllib
},
})
minetest.register_node("lib_materials:litter_tool_rock", {
description = S("Litter - Rock Tool"),
drawtype = "nodebox",
tiles = {"lib_materials_litter_rock.png"},
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
buildable_to = true,
floodable = true,
groups = {chippy = 1, flakey = 1, knappy = 1, oddly_breakable_by_hand = 1},
sounds = lib_materials.node_sound_stone_defaults(),
drop = {
max_items = 1,
items = {
{items = {"lib_materials:tool_rock"}},
{items = {"lib_materials:tool_rock_chipper"}, rarity = 10},
{items = {"lib_materials:tool_rock_biface"}, rarity = 10},
}
},
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,-0.49,0.5}
}
},
})
minetest.register_node("lib_materials:litter_stick", {
description = S("Litter - Stick"),
drawtype = "nodebox",
@ -107,16 +55,8 @@ local S = lib_materials.intllib
walkable = false,
buildable_to = true,
floodable = true,
groups = {choppy = 1, snappy = 1, oddly_breakable_by_hand = 1},
groups = {choppy = 1, snappy = 1, ground_litter = 1, stick = 1, oddly_breakable_by_hand = 1},
sounds = lib_materials.node_sound_wood_defaults(),
drop = {
max_items = 1,
items = {
{items = {"lib_materials:litter_stick"}},
{items = {"lib_materials:tool_stick"}, rarity = 20},
{items = {"lib_materials:tool_rod_wood"}, rarity = 20},
}
},
node_box = {
type = "fixed",
fixed = {
@ -129,13 +69,6 @@ local S = lib_materials.intllib
-- Push an element onto a stack (table).
function push(t, x)
t[#t+1] = x
@ -145,7 +78,7 @@ end
----------------------
-- Decorative Rocks --
----------------------
--[[
-- I'm feeling a bit zen...
-- Create a simple sphereoid from nodeboxes.
@ -207,6 +140,7 @@ local function step_sphere(grid, pos, diameters, embed)
rock[6] = pos.z + diameters.z - step.z
push(grid, rock)
end
--]]
-- Place a small nodebox.
local function small_cube(grid, pos, diameters)
@ -291,46 +225,46 @@ minetest.register_node("lib_materials:litter_small_rocks", {
---- Create some larger rocks that can be mined.
--local tiles = {"default_stone.png", "default_desert_stone.png", "default_sandstone.png"}
--local sel = {{-0.4,-0.5,-0.4,0.4,0.0,0.3}, {-0.4,-0.5,-0.4,0.2,-0.1,0.3}, {-0.3,-0.5,-0.3,0.2,-0.2,0.3}}
local tiles = {"lib_materials_stone_default.png", "lib_materials_stone_desert_default.png", "lib_materials_stone_sandstone_default.png", "lib_materials_stone_cobble_default.png"}
local sel = {{-0.4,-0.5,-0.4,0.4,0.0,0.3}, {-0.4,-0.5,-0.4,0.2,-0.1,0.3}, {-0.3,-0.5,-0.3,0.2,-0.2,0.3}}
--
--for count = 1,9 do
-- local stone = tiles[(count % #tiles) + 1]
-- --local grid = {}
-- --step_sphere(grid, {x=-0.25,y=-0.5,z=-0.25}, {x=0.5, y=0.3, z=0.5})
for count = 1,9 do
local stone = tiles[(count % #tiles) + 1]
--local grid = {}
--step_sphere(grid, {x=-0.25,y=-0.5,z=-0.25}, {x=0.5, y=0.3, z=0.5})
minetest.register_node("lib_materials:medium_rock"..count, {
description = "Medium Rock",
tiles = {stone},
is_ground_content = true,
walkable = true,
paramtype = "light",
--drawtype = "mesh",
drawtype = "nodebox",
--mesh = "rock0"..math.ceil(count / 3)..".b3d",
node_box = {
type = "fixed",
fixed = {
-0.25, -0.5, -0.25, 0.25, -0.25, 0.25,
},
},
selection_box = {type="fixed", fixed=sel[math.ceil(count / 3)]},
groups = {stone=1, cracky=3},
drop = "lib_materials:stone_cobble",
sounds = lib_materials.node_sound_stone_defaults(),
})
--
-- minetest.register_node("lib_materials:medium_rock"..count, {
-- description = "Medium Rock",
-- tiles = {stone},
-- is_ground_content = true,
-- walkable = true,
-- paramtype = "light",
-- --drawtype = "mesh",
-- drawtype = "nodebox",
-- --mesh = "rock0"..math.ceil(count / 3)..".b3d",
-- node_box = {
-- type = "fixed",
-- fixed = {
-- -0.25, -0.5, -0.25, 0.25, -0.25, 0.25,
-- },
-- },
-- selection_box = {type="fixed", fixed=sel[math.ceil(count / 3)]},
-- groups = {stone=1, cracky=3},
-- drop = "lib_materials:stone_cobble",
-- sounds = lib_materials.node_sound_stone_defaults(),
-- })
--
-- minetest.register_decoration({
-- deco_type = "simple",
-- decoration = "lib_materials:medium_rock"..count,
-- sidelen = 80,
-- place_on = {"group:soil", "group:sand"},
-- fill_ratio = 0.001,
-- biomes = {"sandstone_grassland", "tundra", "taiga", "stone_grassland", "coniferous_forest", "deciduous_forest", "desert", "cold_desert", "savanna", "rainforest", "desertstone_grassland", },
-- flags = "place_center_x, place_center_z",
-- rotation = "random",
-- })
--end
minetest.register_decoration({
deco_type = "simple",
decoration = "lib_materials:medium_rock"..count,
sidelen = 80,
place_on = {"group:soil", "group:sand", "group:stone"},
fill_ratio = 0.001,
--biomes = {"sandstone_grassland", "tundra", "taiga", "stone_grassland", "coniferous_forest", "deciduous_forest", "desert", "cold_desert", "savanna", "rainforest", "desertstone_grassland", },
flags = "place_center_x, place_center_z",
rotation = "random",
})
end
-- Small rocks can be used to create cobblestone, if you like.
@ -349,18 +283,6 @@ minetest.register_craft({
minetest.register_decoration({
deco_type = "simple",
decoration = "lib_materials:litter_rock",

View File

@ -230,6 +230,7 @@ frame_wood_screen|Frame - Wood Screen|xdecor||lib_materials_frame_wood_xdecor.pn
glass_stained|Glass - Stained|nbea||lib_materials_glass_stained_nbea.png||glasslike_framed|light||||||||TRUE||TRUE||||snappy=2,cracky=3,oddly_breakable_by_hand=3|snappy 2,cracky 3,oddly_breakable_by_hand 3|||glass|3|||2||3||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## Snow and Ice Nodes ##|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
snow|Snow|default|snow|lib_materials_snow.png|||||||||||||||||crumbly=3,puts_out_fire=1,cools_lava=1,snowy=1|crumbly 3,puts_out_fire 1,cools_lava 1,snowy 1|||snow|3|||2||3|||||||||1|||||||||||||1|1|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
snow_block|Snow Block|default|snowblock|lib_materials_snow.png|||light||||||||||||FALSE||crumbly=3,puts_out_fire=1,cools_lava=1|crumbly 3,puts_out_fire 1,cools_lava 1|||snow||3|||||||||||||1|||||||||||||1|1|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
snow_brick|Snow Brick|default|snowblock|lib_materials_snow_brick.png|||light||||||||||||FALSE||crumbly=3,puts_out_fire=1,cools_lava=1|crumbly 3,puts_out_fire 1,cools_lava 1|||snow||3|||||||||||||1|||||||||||||1|1|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ice|Ice|default|ice|lib_materials_ice.png|||light||||||||||||FALSE||crumbly=3,puts_out_fire=1,cools_lava=1|crumbly 3,puts_out_fire 1,cools_lava 1|||glass||3|||||||||||||1|||||||||||||1|1|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ice_2|Ice 2|||lib_materials_ice2.png|||light||||||||||||FALSE||cracky=3,puts_out_fire=1,cools_lava=1|cracky 3,puts_out_fire 1,cools_lava 1|||glass|3|||||||||||||1|1|||||||||||||1|1|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

1 #Node_Name Description Alias_Mod Alias_Node Tile_String Particle_Img Draw_Type Param_Type ParamType2 LightSource Walkable Pointable Climbable Diggable Buildable Use_Alpha Alpha Sun_Prop Damage_Per_Second Grnd_Cnt Legacy Groups Groups2 Max_Drops Drops Sounds Group_Cracky Group_Crumbly Group_Choppy Group_Snappy Group_Bendy Group_Oddly_Breakable_by_Hand Group_Level Group_Stone Group_Sand Group_Glass Group_Ore Group_Metal Group_Mineral Group_Ice Group_Snowy Group_Dirt Group_Grass Group_Soil Group_BakedClay Group_Liquid Group_Lava Group_Igniter Group_Mud Group_Oil Group_Flammable Group_Quicksand Group_Water Group_Puts_Out_Fire Group_Cools_Lava Group_Falling_Node Group_Not_In_Creative_Inventory Group_Drown Group_Disable_Jump Group_Mohs Group_RockType Grp_MatType LiquidType LiquidViscosity LiquidRange LiquidRenew LiquidAltSource LiquidAltFlow PostEffectColor vframe_asp_w vframe_asp_h vframe_len
230 glass_stained Glass - Stained nbea lib_materials_glass_stained_nbea.png glasslike_framed light TRUE TRUE snappy=2,cracky=3,oddly_breakable_by_hand=3 snappy 2,cracky 3,oddly_breakable_by_hand 3 glass 3 2 3
231 ## Snow and Ice Nodes ##
232 snow Snow default snow lib_materials_snow.png crumbly=3,puts_out_fire=1,cools_lava=1,snowy=1 crumbly 3,puts_out_fire 1,cools_lava 1,snowy 1 snow 3 2 3 1 1 1
233 snow_block Snow Block default snowblock lib_materials_snow.png light FALSE crumbly=3,puts_out_fire=1,cools_lava=1 crumbly 3,puts_out_fire 1,cools_lava 1 snow 3 1 1 1
234 snow_brick Snow Brick default snowblock lib_materials_snow_brick.png light FALSE crumbly=3,puts_out_fire=1,cools_lava=1 crumbly 3,puts_out_fire 1,cools_lava 1 snow 3 1 1 1
235 ice Ice default ice lib_materials_ice.png light FALSE crumbly=3,puts_out_fire=1,cools_lava=1 crumbly 3,puts_out_fire 1,cools_lava 1 glass 3 1 1 1
236 ice_2 Ice 2 lib_materials_ice2.png light FALSE cracky=3,puts_out_fire=1,cools_lava=1 cracky 3,puts_out_fire 1,cools_lava 1 glass 3 1 1 1 1