mirror of
https://github.com/ShadMOrdre/lib_materials.git
synced 2025-02-22 23:10:21 +01:00
Add files via upload
This commit is contained in:
parent
3d97afb470
commit
f7ec5af6b4
@ -585,13 +585,12 @@ for i, stone in ipairs(lib_materials.read_csv("|", lib_materials.path .. "/nodes
|
|||||||
local full = node_name .. "_with_" .. id
|
local full = node_name .. "_with_" .. id
|
||||||
local new_cloned_node = table.copy(minetest.registered_nodes["lib_materials:"..node_name..""])
|
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
|
if sl[4] then
|
||||||
new_cloned_node.tiles = {
|
new_cloned_node.tiles = {
|
||||||
new_tile1 .. "^" .. sl[3],
|
new_tile1 .. "^" .. sl[3],
|
||||||
new_tile1,
|
new_tile1 .. "^" .. sl[4],
|
||||||
new_tile1 .. "^" .. sl[4]
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
new_cloned_node.tiles = {
|
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)
|
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
|
end
|
||||||
|
|
||||||
for _, sd in pairs(stone_dirts) do
|
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
|
if alias_mod and alias_node then
|
||||||
minetest.register_alias(""..alias_mod..":"..alias_node.."", "lib_materials:"..node_name.."")
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,15 +13,8 @@ local S = lib_materials.intllib
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
floodable = 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(),
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -41,15 +34,8 @@ local S = lib_materials.intllib
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
floodable = 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(),
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
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", {
|
minetest.register_node("lib_materials:litter_stick", {
|
||||||
description = S("Litter - Stick"),
|
description = S("Litter - Stick"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -107,16 +55,8 @@ local S = lib_materials.intllib
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
floodable = 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(),
|
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 = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -129,13 +69,6 @@ local S = lib_materials.intllib
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Push an element onto a stack (table).
|
-- Push an element onto a stack (table).
|
||||||
function push(t, x)
|
function push(t, x)
|
||||||
t[#t+1] = x
|
t[#t+1] = x
|
||||||
@ -145,7 +78,7 @@ end
|
|||||||
----------------------
|
----------------------
|
||||||
-- Decorative Rocks --
|
-- Decorative Rocks --
|
||||||
----------------------
|
----------------------
|
||||||
|
--[[
|
||||||
-- I'm feeling a bit zen...
|
-- I'm feeling a bit zen...
|
||||||
|
|
||||||
-- Create a simple sphereoid from nodeboxes.
|
-- 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
|
rock[6] = pos.z + diameters.z - step.z
|
||||||
push(grid, rock)
|
push(grid, rock)
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
-- Place a small nodebox.
|
-- Place a small nodebox.
|
||||||
local function small_cube(grid, pos, diameters)
|
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.
|
---- Create some larger rocks that can be mined.
|
||||||
--local tiles = {"default_stone.png", "default_desert_stone.png", "default_sandstone.png"}
|
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}}
|
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
|
for count = 1,9 do
|
||||||
-- local stone = tiles[(count % #tiles) + 1]
|
local stone = tiles[(count % #tiles) + 1]
|
||||||
-- --local grid = {}
|
--local grid = {}
|
||||||
-- --step_sphere(grid, {x=-0.25,y=-0.5,z=-0.25}, {x=0.5, y=0.3, z=0.5})
|
--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, {
|
minetest.register_decoration({
|
||||||
-- description = "Medium Rock",
|
deco_type = "simple",
|
||||||
-- tiles = {stone},
|
decoration = "lib_materials:medium_rock"..count,
|
||||||
-- is_ground_content = true,
|
sidelen = 80,
|
||||||
-- walkable = true,
|
place_on = {"group:soil", "group:sand", "group:stone"},
|
||||||
-- paramtype = "light",
|
fill_ratio = 0.001,
|
||||||
-- --drawtype = "mesh",
|
--biomes = {"sandstone_grassland", "tundra", "taiga", "stone_grassland", "coniferous_forest", "deciduous_forest", "desert", "cold_desert", "savanna", "rainforest", "desertstone_grassland", },
|
||||||
-- drawtype = "nodebox",
|
flags = "place_center_x, place_center_z",
|
||||||
-- --mesh = "rock0"..math.ceil(count / 3)..".b3d",
|
rotation = "random",
|
||||||
-- node_box = {
|
})
|
||||||
-- type = "fixed",
|
end
|
||||||
-- 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
|
|
||||||
|
|
||||||
|
|
||||||
-- Small rocks can be used to create cobblestone, if you like.
|
-- Small rocks can be used to create cobblestone, if you like.
|
||||||
@ -349,18 +283,6 @@ minetest.register_craft({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
decoration = "lib_materials:litter_rock",
|
decoration = "lib_materials:litter_rock",
|
||||||
|
@ -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||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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 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|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|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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|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|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user