mirror of
https://github.com/ShadMOrdre/lib_materials.git
synced 2025-02-22 06:50:21 +01:00
Too many changes to list. Code is being refactored and completely rewritten.
Additional Stone types. Additional Snow/Ice types. Additional Sand types. Rewritten Dirt types. Rewritten Ore types. New Fluids (New water types, oil). Biome Generation moved here from lib_ecology. Ore generation refactored.
This commit is contained in:
parent
97e68a37d7
commit
6f45dd4846
@ -1,2 +1,2 @@
|
||||
default?
|
||||
carpathian_mapgen?
|
||||
stairs?
|
||||
|
75
init.lua
75
init.lua
@ -1,28 +1,77 @@
|
||||
|
||||
|
||||
lib_materials = {}
|
||||
|
||||
lib_materials.version = "5.0"
|
||||
lib_materials.path = minetest.get_modpath(minetest.get_current_modname())
|
||||
lib_materials.gettext, lib_materials.ngettext = dofile(lib_materials.path.."/intllib.lua")
|
||||
local S = lib_materials.gettext
|
||||
local NS = lib_materials.ngettext
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
local NS
|
||||
if minetest.get_modpath("game") then
|
||||
S = game.intllib
|
||||
else
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S, NS = dofile(lib_materials.path.."/intllib.lua")
|
||||
end
|
||||
end
|
||||
lib_materials.intllib = S
|
||||
|
||||
--DEFAULTS
|
||||
--0, 4, 30, 60, 90, 120, 150, 1800
|
||||
lib_materials.ocean_depth = -192
|
||||
lib_materials.beach_depth = -4
|
||||
lib_materials.sea_level = 0
|
||||
lib_materials.maxheight_beach = 4
|
||||
lib_materials.maxheight_coastal = 40
|
||||
lib_materials.maxheight_lowland = 80
|
||||
lib_materials.maxheight_shelf = 120
|
||||
lib_materials.maxheight_highland = 160
|
||||
lib_materials.maxheight_mountain = 200
|
||||
lib_materials.minheight_snow = 380
|
||||
lib_materials.maxheight_snow = 780
|
||||
lib_materials.maxheight_strato = 1800
|
||||
|
||||
lib_materials.temperature_hot = 90
|
||||
lib_materials.temperature_warm = 75
|
||||
lib_materials.temperature_temperate = 50
|
||||
lib_materials.temperature_cool = 25
|
||||
lib_materials.temperature_cold = 10
|
||||
lib_materials.humidity_humid = 90
|
||||
lib_materials.humidity_semihumid = 75
|
||||
lib_materials.humidity_temperate = 50
|
||||
lib_materials.humidity_semiarid = 25
|
||||
lib_materials.humidity_arid = 10
|
||||
|
||||
lib_materials.biome_vertical_blend = 4
|
||||
|
||||
minetest.clear_registered_biomes()
|
||||
minetest.clear_registered_decorations()
|
||||
minetest.clear_registered_ores()
|
||||
|
||||
minetest.log(S("[MOD] lib_materials: Loading..."))
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_sound_defaults.lua")
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_utils.lua")
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_water.lua")
|
||||
|
||||
dofile(lib_materials.path.."/type_dirt.lua")
|
||||
|
||||
dofile(lib_materials.path.."/type_sand.lua")
|
||||
|
||||
dofile(lib_materials.path.."/type_ore.lua")
|
||||
|
||||
dofile(lib_materials.path.."/type_fluids.lua")
|
||||
dofile(lib_materials.path.."/type_stone.lua")
|
||||
dofile(lib_materials.path.."/type_stone_deco.lua")
|
||||
dofile(lib_materials.path.."/type_dirt.lua")
|
||||
dofile(lib_materials.path.."/type_sand.lua")
|
||||
dofile(lib_materials.path.."/type_ice_snow.lua")
|
||||
dofile(lib_materials.path.."/type_ore.lua")
|
||||
dofile(lib_materials.path.."/type_glass.lua")
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_biomes.lua")
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_lakes.lua")
|
||||
|
||||
dofile(lib_materials.path.."/lib_materials_ore_defs.lua")
|
||||
|
||||
|
||||
minetest.log(S("[MOD] lib_materials: Successfully loaded."))
|
||||
|
||||
|
||||
--[[
|
||||
|
1119
lib_materials_biomes.lua
Normal file
1119
lib_materials_biomes.lua
Normal file
File diff suppressed because it is too large
Load Diff
235
lib_materials_lakes.lua
Normal file
235
lib_materials_lakes.lua
Normal file
@ -0,0 +1,235 @@
|
||||
--[[
|
||||
1. We choose a random position in the same way plants are placed. That's the root for our lake.
|
||||
2. From there we go lx in the x direction and lz in the z direction. That gives us a rectangle.
|
||||
3. We check the sides of the rectangle for air and itterate down until the rectangle is closed.
|
||||
4. Now we repeat this itteration, but search for the opposite, not for solid nodes but for air.
|
||||
5. As soon as we found the lower limit, we check if the bottom is sealed. Now we have some jar.
|
||||
6. Now as we made sure no water can escape we can replace all air inside the volume with water.
|
||||
--]]
|
||||
|
||||
--lib_lakes = {}
|
||||
|
||||
local c_air = minetest.get_content_id("air")
|
||||
local c_ignore = minetest.get_content_id("ignore")
|
||||
local c_lava = minetest.get_content_id("default:lava_source")
|
||||
local c_water = minetest.get_content_id("lib_materials:fluid_water_source")
|
||||
local c_ice = minetest.get_content_id("lib_materials:ice_default")
|
||||
local c_murky = minetest.get_content_id("lib_materials:fluid_water_murky_source")
|
||||
local c_dirty = minetest.get_content_id("lib_materials:fluid_water_dirty_source")
|
||||
local c_muddy = minetest.get_content_id("lib_materials:fluid_water_river_muddy_source")
|
||||
local c_quick_source = minetest.get_content_id("lib_materials:fluid_quicksand_source")
|
||||
local c_quick = minetest.get_content_id("lib_materials:quicksand")
|
||||
local c_mud_wet = minetest.get_content_id("lib_materials:mud_wet")
|
||||
local c_mud_dried = minetest.get_content_id("lib_materials:dirt_mud_dried")
|
||||
local c_fluid_id
|
||||
|
||||
--
|
||||
-- Find position
|
||||
--
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
if maxp.y <= 1024 and minp.y >= -32 then
|
||||
local perlin1 = minetest.get_perlin(318, 3, 0.6, 100)
|
||||
-- Lua Voxel Machine
|
||||
local vm = minetest.get_voxel_manip()
|
||||
local vm_minp, vm_maxp = vm:read_from_map({x=minp.x, y=minp.y, z=minp.z-16}, {x=maxp.x+16, y=maxp.y+16, z=maxp.z+16})
|
||||
local a = VoxelArea:new{MinEdge=vm_minp, MaxEdge=vm_maxp}
|
||||
local data = vm:get_data()
|
||||
-- Assume X and Z lengths are equal
|
||||
local divlen = 32
|
||||
local divs = (maxp.x-minp.x)/divlen+1;
|
||||
for divx=0,divs-1 do
|
||||
for divz=0,divs-1 do
|
||||
local x0 = minp.x + math.floor((divx+0)*divlen)
|
||||
local z0 = minp.z + math.floor((divz+0)*divlen)
|
||||
local x1 = minp.x + math.floor((divx+1)*divlen)
|
||||
local z1 = minp.z + math.floor((divz+1)*divlen)
|
||||
-- Determine amount from perlin noise
|
||||
local amount = math.floor(perlin1:get2d({x=x0, y=z0}) * 5 + 10)
|
||||
-- Find random positions based on this random
|
||||
local pr = PseudoRandom(seed+486)
|
||||
for i=0,amount do
|
||||
local x = pr:next(x0, x1)
|
||||
local z = pr:next(z0, z1)
|
||||
local ground_y = nil
|
||||
-- Prevent from starting underground
|
||||
local nn = minetest.get_node({x=x,y=maxp.y,z=z}).name
|
||||
if nn ~= "air" and nn ~= "ignore" then
|
||||
return
|
||||
end
|
||||
-- Find groundlevel
|
||||
for y=maxp.y,minp.y,-1 do
|
||||
local nn = minetest.get_node({x=x,y=y,z=z}).name
|
||||
if nn ~= "air" and nn~= "ignore" then
|
||||
local is_leaves = minetest.registered_nodes[nn].groups.leaves
|
||||
if is_leaves == nil or is_leaves == 0 then
|
||||
ground_y = y
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if ground_y and ground_y >= 2 then
|
||||
local p = {x=x,y=ground_y,z=z}
|
||||
local ground_name = minetest.get_node(p)
|
||||
local node_name = minetest.get_node(p).name
|
||||
if ground_name == "default:water_source" or ground_name == "lib_materials:fluid_water_source" then return end
|
||||
local lx = pr:next(10,30)
|
||||
local lz = pr:next(10,30)
|
||||
if string.match(node_name, "lib_materials:dirt_sandy") then
|
||||
c_fluid_id = c_quick_source
|
||||
end
|
||||
if string.match(node_name, "lib_materials:sand") then
|
||||
c_fluid_id = c_quick
|
||||
end
|
||||
if string.match(node_name, "lib_materials:dirt_with_rainforest_litter") then
|
||||
c_fluid_id = c_murky
|
||||
end
|
||||
if string.match(node_name, "lib_materials:dirt_mud_01") then
|
||||
c_fluid_id = c_muddy
|
||||
end
|
||||
if string.match(node_name, "lib_materials:dirt_clayey") then
|
||||
c_fluid_id = c_muddy
|
||||
end
|
||||
if string.match(node_name, "lib_materials:sand_desert") then
|
||||
c_fluid_id = c_mud_dried
|
||||
end
|
||||
if string.match(node_name, "lib_materials:sand") then
|
||||
c_fluid_id = c_mud_dried
|
||||
end
|
||||
--if string.match(node_name, "lib_materials:dirt_with_grass_warm_semihumid_coastal") or string.match(node_name, "lib_materials:dirt_with_grass_temperate_semihumid_coastal") then
|
||||
-- c_fluid_id = c_dirty
|
||||
--end
|
||||
--if string.match(node_name, "lib_materials:dirt_with_grass_warm_semihumid_lowland") or string.match(node_name, "lib_materials:dirt_with_grass_temperate_semihumid_lowland") then
|
||||
-- c_fluid_id = c_dirty
|
||||
--end
|
||||
--if string.match(node_name, "lib_materials:dirt_with_grass_warm_semihumid_shelf") or string.match(node_name, "lib_materials:dirt_with_grass_temperate_semihumid_shelf") then
|
||||
-- c_fluid_id = c_dirty
|
||||
--end
|
||||
--if string.match(node_name, "lib_materials:dirt_with_grass_warm_semihumid_highland") or string.match(node_name, "lib_materials:dirt_with_grass_temperate_semihumid_highland") then
|
||||
-- c_fluid_id = c_dirty
|
||||
--end
|
||||
if string.match(node_name, "lib_materials:stone_bluestone") then
|
||||
c_fluid_id = c_lava
|
||||
end
|
||||
if string.match(node_name, "snow") then
|
||||
c_fluid_id = c_ice
|
||||
end
|
||||
if ground_y >= 120 then
|
||||
c_fluid_id = c_ice
|
||||
end
|
||||
-- if c_water == "" then
|
||||
|
||||
-- else
|
||||
-- c_water = minetest.get_content_id("default:river_water_source")
|
||||
-- end
|
||||
lib_materials.lakes_fill(data, a, p, lx, lz)
|
||||
--c_fluid_id = ""
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Write to map
|
||||
vm:set_data(data)
|
||||
vm:write_to_map(data)
|
||||
vm:update_map()
|
||||
end
|
||||
end)
|
||||
|
||||
--
|
||||
-- Make lake
|
||||
--
|
||||
|
||||
-- TODO: combine functions into one
|
||||
local function check_x(data, a, x, y, z, lx, lz)
|
||||
for xi = 0, lx do
|
||||
local vi = a:index(x+xi, y, z)
|
||||
if data[vi] == c_air or data[vi] == c_ignore then
|
||||
return true
|
||||
end
|
||||
local vii = a:index(x+xi, y, z+lz)
|
||||
if data[vii] == c_air or data[vii] == c_ignore then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function check_z(data, a, x, y, z, lx, lz)
|
||||
for zi = 0, lz do
|
||||
local vi = a:index(x, y, z+zi)
|
||||
if data[vi] == c_air or data[vi] == c_ignore then
|
||||
return true
|
||||
end
|
||||
local vii = a:index(x+lx, y, z+zi)
|
||||
if data[vii] == c_air or data[vii] == c_ignore then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function leak(data, a, j, lx, lz)
|
||||
for xi = 0, lx do
|
||||
for zi = 0, lz do
|
||||
local vi = a:index(xi, -j, zi)
|
||||
if data[vi] == c_air or data[vi] == c_ignore then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function lib_materials.lakes_fill(data, a, pos, lx, lz)
|
||||
local x, y, z = pos.x, pos.y, pos.z
|
||||
local water_a = VoxelArea:new{MinEdge={x=0, y=-32, z=0}, MaxEdge={x=lx, y=0, z=lz}}
|
||||
local water_buffer = {}
|
||||
-- Find upper start
|
||||
local i = 0
|
||||
while i <= 16 do
|
||||
if check_x(data, a, x, y-i, z, lx, lz) or check_z(data, a, x, y-i, z, lx, lz) then
|
||||
i = i + 1
|
||||
else
|
||||
break
|
||||
end
|
||||
end
|
||||
if i >= 16 then return end
|
||||
-- Itterate downwards
|
||||
local j = i
|
||||
while j <= (i+16) do
|
||||
if check_x(data, a, x, y-j, z, lx, lz) or check_z(data, a, x, y-j, z, lx, lz) then
|
||||
j = j - 1
|
||||
break
|
||||
else
|
||||
j = j + 1
|
||||
end
|
||||
end
|
||||
if j >= i+16 then return end
|
||||
-- print ('[lib_lakes] i = '.. i ..'')
|
||||
-- print ('[lib_lakes] j = '.. j ..'')
|
||||
-- Check bottom
|
||||
if leak(data, a, j, lx, lz) then return end
|
||||
-- Add volume to buffer
|
||||
for xi = 0, lx do
|
||||
for yi = -i, -j, -1 do
|
||||
for zi = 0, lz do
|
||||
water_buffer[water_a:index(xi, yi, zi)] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Add the water
|
||||
for xi = water_a.MinEdge.x, water_a.MaxEdge.x do
|
||||
for yi = water_a.MinEdge.y, water_a.MaxEdge.y do
|
||||
for zi = water_a.MinEdge.z, water_a.MaxEdge.z do
|
||||
if a:contains(x+xi, y+yi, z+zi) then
|
||||
local vi = a:index(x+xi, y+yi, z+zi)
|
||||
if data[vi] == c_air or data[vi] == c_ignore then
|
||||
if water_buffer[water_a:index(xi, yi, zi)] then
|
||||
data[vi] = c_fluid_id
|
||||
-- print ('[lib_lakes] Wasser auf (' .. x+xi .. ',' .. y+yi .. ',' .. z+zi .. ')')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
254
lib_materials_sound_defaults.lua
Normal file
254
lib_materials_sound_defaults.lua
Normal file
@ -0,0 +1,254 @@
|
||||
--
|
||||
-- Sounds
|
||||
--
|
||||
|
||||
function lib_materials.node_sound_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "", gain = 1.0}
|
||||
table.dug = table.dug or
|
||||
{name = "default_dug_node", gain = 0.25}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node_hard", gain = 1.0}
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_stone_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_hard_footstep", gain = 0.3}
|
||||
table.dug = table.dug or
|
||||
{name = "default_hard_footstep", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_dirt_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_dirt_footstep", gain = 0.4}
|
||||
table.dug = table.dug or
|
||||
{name = "default_dirt_footstep", gain = 1.0}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_sand_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_sand_footstep", gain = 0.12}
|
||||
table.dug = table.dug or
|
||||
{name = "default_sand_footstep", gain = 0.24}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_gravel_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_gravel_footstep", gain = 0.4}
|
||||
table.dug = table.dug or
|
||||
{name = "default_gravel_footstep", gain = 1.0}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_wood_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_wood_footstep", gain = 0.3}
|
||||
table.dug = table.dug or
|
||||
{name = "default_wood_footstep", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_leaves_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_grass_footstep", gain = 0.45}
|
||||
table.dug = table.dug or
|
||||
{name = "default_grass_footstep", gain = 0.7}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_glass_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_glass_footstep", gain = 0.3}
|
||||
table.dig = table.dig or
|
||||
{name = "default_glass_footstep", gain = 0.5}
|
||||
table.dug = table.dug or
|
||||
{name = "default_break_glass", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_metal_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_metal_footstep", gain = 0.4}
|
||||
table.dig = table.dig or
|
||||
{name = "default_dig_metal", gain = 0.5}
|
||||
table.dug = table.dug or
|
||||
{name = "default_dug_metal", gain = 0.5}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node_metal", gain = 0.5}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_water_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_water_footstep", gain = 0.2}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lib_materials.node_sound_snow_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "default_snow_footstep", gain = 0.2}
|
||||
table.dig = table.dig or
|
||||
{name = "default_snow_footstep", gain = 0.3}
|
||||
table.dug = table.dug or
|
||||
{name = "default_snow_footstep", gain = 0.3}
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
lib_materials.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Lavacooling
|
||||
--
|
||||
|
||||
lib_materials.cool_lava = function(pos, node)
|
||||
if node.name == "default:lava_source" then
|
||||
minetest.set_node(pos, {name = "default:obsidian"})
|
||||
else -- Lava flowing
|
||||
minetest.set_node(pos, {name = "default:stone"})
|
||||
end
|
||||
minetest.sound_play("default_cool_lava",
|
||||
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("enable_lavacooling") ~= false then
|
||||
minetest.register_abm({
|
||||
label = "Lava cooling",
|
||||
nodenames = {"default:lava_source", "default:lava_flowing"},
|
||||
neighbors = {"group:cools_lava", "group:water"},
|
||||
interval = 2,
|
||||
chance = 2,
|
||||
catch_up = false,
|
||||
action = function(...)
|
||||
lib_materials.cool_lava(...)
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- -- --
|
||||
-- -- -- Convert dirt to something that fits the environment
|
||||
-- -- --
|
||||
-- -- minetest.register_abm({
|
||||
-- -- label = "Grass spread",
|
||||
-- -- nodenames = {"default:dirt"},
|
||||
-- -- neighbors = {
|
||||
-- -- "air",
|
||||
-- -- "group:grass",
|
||||
-- -- "group:dry_grass",
|
||||
-- -- "default:snow",
|
||||
-- -- },
|
||||
-- -- interval = 6,
|
||||
-- -- chance = 50,
|
||||
-- -- catch_up = false,
|
||||
-- -- action = function(pos, node)
|
||||
-- -- -- Check for darkness: night, shadow or under a light-blocking node
|
||||
-- -- -- Returns if ignore above
|
||||
-- -- local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
-- -- if (minetest.get_node_light(above) or 0) < 13 then
|
||||
-- -- return
|
||||
-- -- end
|
||||
|
||||
-- -- -- Look for spreading dirt-type neighbours
|
||||
-- -- local p2 = minetest.find_node_near(pos, 1, "group:spreading_dirt_type")
|
||||
-- -- if p2 then
|
||||
-- -- local n3 = minetest.get_node(p2)
|
||||
-- -- minetest.set_node(pos, {name = n3.name})
|
||||
-- -- return
|
||||
-- -- end
|
||||
|
||||
-- -- -- Else, any seeding nodes on top?
|
||||
-- -- local name = minetest.get_node(above).name
|
||||
-- -- -- Snow check is cheapest, so comes first
|
||||
-- -- if name == "default:snow" then
|
||||
-- -- minetest.set_node(pos, {name = "default:dirt_with_snow"})
|
||||
-- -- -- Most likely case first
|
||||
-- -- elseif minetest.get_item_group(name, "grass") ~= 0 then
|
||||
-- -- minetest.set_node(pos, {name = "default:dirt_with_grass"})
|
||||
-- -- elseif minetest.get_item_group(name, "dry_grass") ~= 0 then
|
||||
-- -- minetest.set_node(pos, {name = "default:dirt_with_dry_grass"})
|
||||
-- -- end
|
||||
-- -- end
|
||||
-- -- })
|
||||
|
||||
|
||||
-- -- --
|
||||
-- -- -- Grass and dry grass removed in darkness
|
||||
-- -- --
|
||||
-- -- minetest.register_abm({
|
||||
-- -- label = "Grass covered",
|
||||
-- -- nodenames = {"group:spreading_dirt_type"},
|
||||
-- -- interval = 8,
|
||||
-- -- chance = 50,
|
||||
-- -- catch_up = false,
|
||||
-- -- action = function(pos, node)
|
||||
-- -- local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
-- -- local name = minetest.get_node(above).name
|
||||
-- -- local nodedef = minetest.registered_nodes[name]
|
||||
-- -- if name ~= "ignore" and nodedef and not ((nodedef.sunlight_propagates or
|
||||
-- -- nodedef.paramtype == "light") and
|
||||
-- -- nodedef.liquidtype == "none") then
|
||||
-- -- minetest.set_node(pos, {name = "default:dirt"})
|
||||
-- -- end
|
||||
-- -- end
|
||||
-- -- })
|
||||
|
||||
|
||||
-- -- --
|
||||
-- -- -- Moss growth on cobble near water
|
||||
-- -- --
|
||||
-- -- minetest.register_abm({
|
||||
-- -- label = "Moss growth",
|
||||
-- -- nodenames = {"default:cobble", "stairs:slab_cobble", "stairs:stair_cobble", "walls:cobble"},
|
||||
-- -- neighbors = {"group:water"},
|
||||
-- -- interval = 16,
|
||||
-- -- chance = 200,
|
||||
-- -- catch_up = false,
|
||||
-- -- action = function(pos, node)
|
||||
-- -- if node.name == "default:cobble" then
|
||||
-- -- minetest.set_node(pos, {name = "default:mossycobble"})
|
||||
-- -- elseif node.name == "stairs:slab_cobble" then
|
||||
-- -- minetest.set_node(pos, {name = "stairs:slab_mossycobble", param2 = node.param2})
|
||||
-- -- elseif node.name == "stairs:stair_cobble" then
|
||||
-- -- minetest.set_node(pos, {name = "stairs:stair_mossycobble", param2 = node.param2})
|
||||
-- -- elseif node.name == "walls:cobble" then
|
||||
-- -- minetest.set_node(pos, {name = "walls:mossycobble", param2 = node.param2})
|
||||
-- -- end
|
||||
-- -- end
|
||||
-- -- })
|
||||
|
||||
|
@ -17,3 +17,20 @@ function table.contains_substring(t, s)
|
||||
end
|
||||
|
||||
|
||||
function get_node_drops(fullRockNode, cobbleRockNode)
|
||||
return {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- drop the cobble variant with 1/3 chance
|
||||
items = {cobbleRockNode},
|
||||
rarity = 3,
|
||||
},
|
||||
{
|
||||
-- drop the full node with 2/3 chance
|
||||
items = {fullRockNode},
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
|
4
mod.conf
Normal file
4
mod.conf
Normal file
@ -0,0 +1,4 @@
|
||||
name=lib_materials
|
||||
description=A collection of naturally occuring materials, including: sand, clay, dirt, stone, ore, metals, glass, various water types, oil, lava, grease, liquid soils, and decorative stones.
|
||||
depends=
|
||||
optional_depends=default,stairs
|
BIN
screenshot.jpg
Normal file
BIN
screenshot.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 KiB |
1516
type_dirt.lua
1516
type_dirt.lua
File diff suppressed because it is too large
Load Diff
1228
type_fluids.lua
Normal file
1228
type_fluids.lua
Normal file
File diff suppressed because it is too large
Load Diff
168
type_glass.lua
Normal file
168
type_glass.lua
Normal file
@ -0,0 +1,168 @@
|
||||
|
||||
|
||||
local S = lib_materials.intllib
|
||||
|
||||
|
||||
--GLASS
|
||||
--[[
|
||||
minetest.register_node("lib_materials:glass_clean", {
|
||||
description = S("Glass - Clean"),
|
||||
tiles = {"moreblocks_clean_glass.png"},
|
||||
drawtype = "glasslike_framed",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
drop = 'lib_materials:clean_glass',
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_coal", {
|
||||
description = S("Glass - Coal"),
|
||||
tiles = {"moreblocks_coal_glass.png"},
|
||||
drawtype = "glasslike_framed",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
drop = 'lib_materials:coal_glass',
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_iron", {
|
||||
description = S("Glass - Iron"),
|
||||
tiles = {"moreblocks_iron_glass.png"},
|
||||
drawtype = "glasslike_framed",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
drop = 'lib_materials:iron_glass',
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
--]]
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_diamond", {
|
||||
description = S("Glass - Framed Diamond"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_diamond.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_round", {
|
||||
description = S("Glass - Framed Round"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_round.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_square", {
|
||||
description = S("Glass - Framed Square"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_square.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_steel_01", {
|
||||
description = S("Glass - Framed Steel 01"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_steel_01_nbea.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_steel_02", {
|
||||
description = S("Glass - Framed Steel 02"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_steel_02_nbea.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_wood_01", {
|
||||
description = S("Glass - Framed Wood 01"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_wood_01_nbea.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_wood_02", {
|
||||
description = S("Glass - Framed Wood 02"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_wood_02_nbea.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_framed_wood_03", {
|
||||
description = S("Glass - Framed Wood 03"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_wood_darkage.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:frame_wood_rose", {
|
||||
description = S("Frame - Wood Rose"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_wood_medieval_rose.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:frame_wood_screen", {
|
||||
description = S("Frame - Wood Screen"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_frame_wood_xdecor.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:glass_stained", {
|
||||
description = S("Glass - Stained"),
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"lib_materials_glass_stained_nbea.png"},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
134
type_ice_snow.lua
Normal file
134
type_ice_snow.lua
Normal file
@ -0,0 +1,134 @@
|
||||
|
||||
|
||||
|
||||
local S = lib_materials.intllib
|
||||
|
||||
|
||||
|
||||
-- Snow
|
||||
minetest.register_node("lib_materials:snow_brick", {
|
||||
description = S("Snow Brick"),
|
||||
tiles = {"lib_materials_snow_brick.png"},
|
||||
paramtype = "light",
|
||||
freezemelt = "default:water_source",
|
||||
is_ground_content = false,
|
||||
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_snow_footstep", gain = 0.15},
|
||||
dug = {name = "default_snow_footstep", gain = 0.2},
|
||||
dig = {name = "default_snow_footstep", gain = 0.2},
|
||||
}),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:snow_brick 4',
|
||||
recipe = {
|
||||
{'lib_materials:snow_block', 'lib_materials:snow_block'},
|
||||
{'lib_materials:snow_block', 'lib_materials:snow_block'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:snow", {
|
||||
description = "Snow",
|
||||
tiles = {"lib_materials_snow.png"},
|
||||
inventory_image = "lib_materials_snowball.png",
|
||||
wield_image = "lib_materials_snowball.png",
|
||||
paramtype = "light",
|
||||
buildable_to = true,
|
||||
floodable = true,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -7 / 16, 0.5},
|
||||
},
|
||||
},
|
||||
groups = {crumbly = 3, falling_node = 1, snowy = 1},
|
||||
sounds = default.node_sound_snow_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
pos.y = pos.y - 1
|
||||
if minetest.get_node(pos).name == "default:dirt_with_grass" then
|
||||
minetest.set_node(pos, {name = "default:dirt_with_snow"})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:snow_block", {
|
||||
description = "Snow Block",
|
||||
tiles = {"lib_materials_snow.png"},
|
||||
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_snow_footstep", gain = 0.15},
|
||||
dug = {name = "default_snow_footstep", gain = 0.2},
|
||||
dig = {name = "default_snow_footstep", gain = 0.2}
|
||||
}),
|
||||
|
||||
on_construct = function(pos)
|
||||
pos.y = pos.y - 1
|
||||
if minetest.get_node(pos).name == "default:dirt_with_grass" then
|
||||
minetest.set_node(pos, {name = "default:dirt_with_snow"})
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Ice
|
||||
minetest.register_node("lib_materials:ice_default", {
|
||||
description = "Ice - Default",
|
||||
tiles = {"lib_materials_ice.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:ice_default2", {
|
||||
description = "Ice - Default 2",
|
||||
tiles = {"lib_materials_ice2.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:ice_block", {
|
||||
description = "Ice - Block",
|
||||
tiles = {"lib_materials_ice_block.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:ice_brick", {
|
||||
description = S("Ice Brick"),
|
||||
tiles = {"lib_materials_ice_brick.png"},
|
||||
paramtype = "light",
|
||||
freezemelt = "default:water_source",
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:ice_brick 4',
|
||||
recipe = {
|
||||
{'lib_materials:ice_default', 'lib_materials:ice_default'},
|
||||
{'lib_materials:ice_default', 'lib_materials:ice_default'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:ice_thin", {
|
||||
description = "Ice - Thin",
|
||||
tiles = {"lib_materials_ice_thin.png"},
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
738
type_ore.lua
738
type_ore.lua
@ -1,155 +1,603 @@
|
||||
|
||||
local S = lib_materials.gettext
|
||||
local S = lib_materials.intllib
|
||||
|
||||
--Metals
|
||||
minetest.register_node("lib_materials:metal_brass_block", {
|
||||
description = S("Metal - Brass Block"),
|
||||
tiles = { "lib_materials_metal_brass_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_bronze_block", {
|
||||
description = S("Metal - Bronze Block"),
|
||||
tiles = {"lib_materials_metal_bronze_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_copper_block", {
|
||||
description = S("Metal - Copper Block"),
|
||||
tiles = {"lib_materials_metal_copper_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_gold_block", {
|
||||
description = S("Metal - Gold Block"),
|
||||
tiles = {"lib_materials_metal_gold_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_iron_cast_block", {
|
||||
description = S("Metal - Cast Iron Block"),
|
||||
tiles = { "lib_materials_metal_iron_cast_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_iron_wrought_block", {
|
||||
description = S("Metal - Wrought Iron Block"),
|
||||
tiles = { "lib_materials_metal_iron_wrought_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_lead_block", {
|
||||
description = S("Metal - Lead Block"),
|
||||
tiles = { "lib_materials_metal_lead_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_rusty", {
|
||||
description = S("Metal - Rusty"),
|
||||
tiles = {"lib_materials_metal_rusty.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=1,level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_rusty_block", {
|
||||
description = S("Metal - Rusty Block"),
|
||||
tiles = {"lib_materials_metal_rusty_block.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1,level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_silver_block", {
|
||||
description = S("Metal - Silver Block"),
|
||||
tiles = { "lib_materials_metal_silver_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_steel_block", {
|
||||
description = S("Metal - Steel Block"),
|
||||
tiles = {"lib_materials_metal_steel_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_steel_carbon_block", {
|
||||
description = S("Metal - Carbon Steel Block"),
|
||||
tiles = { "lib_materials_metal_steel_carbon_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_steel_stainless_block", {
|
||||
description = S("Metal - Stainless Steel Block"),
|
||||
tiles = { "lib_materials_metal_steel_stainless_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_metal_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:metal_tin_block", {
|
||||
description = S("Metal - Tin Block"),
|
||||
tiles = {"lib_materials_metal_tin_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:metal_brass_ingot", {
|
||||
description = S("Metal - Brass Ingot"),
|
||||
inventory_image = "lib_materials_metal_brass_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_bronze_ingot", {
|
||||
description = S("Metal - Bronze Ingot"),
|
||||
inventory_image = "lib_materials_metal_bronze_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_copper_ingot", {
|
||||
description = S("Metal - Copper Ingot"),
|
||||
inventory_image = "lib_materials_metal_copper_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_copper_lump", {
|
||||
description = S("Metal - Copper Lump"),
|
||||
inventory_image = "lib_materials_metal_copper_lump.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_gold_ingot", {
|
||||
description = S("Metal - Gold Ingot"),
|
||||
inventory_image = "lib_materials_metal_gold_ingot.png"
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_gold_lump", {
|
||||
description = S("Metal - Gold Lump"),
|
||||
inventory_image = "lib_materials_metal_gold_lump.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_iron_lump", {
|
||||
description = S("Metal - Iron Lump"),
|
||||
inventory_image = "lib_materials_metal_iron_lump.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_iron_cast_ingot", {
|
||||
description = S("Metal - Cast Iron Ingot"),
|
||||
inventory_image = "lib_materials_metal_iron_cast_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_iron_wrought_ingot", {
|
||||
description = S("Metal - Wrought Iron Ingot"),
|
||||
inventory_image = "lib_materials_metal_iron_wrought_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_lead_lump", {
|
||||
description = S("Metal - Lead Lump"),
|
||||
inventory_image = "lib_materials_metal_lead_lump.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_lead_ingot", {
|
||||
description = S("Metal - Lead Ingot"),
|
||||
inventory_image = "lib_materials_metal_lead_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_silver_lump", {
|
||||
description = S("Metal - Silver Lump"),
|
||||
inventory_image = "lib_materials_metal_silver_lump.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_silver_ingot", {
|
||||
description = S("Metal - Silver Ingot"),
|
||||
inventory_image = "lib_materials_metal_silver_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_steel_ingot", {
|
||||
description = S("Metal - Steel Ingot"),
|
||||
inventory_image = "lib_materials_metal_steel_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_steel_carbon_ingot", {
|
||||
description = S("Metal - Carbon Steel Ingot"),
|
||||
inventory_image = "lib_materials_metal_steel_carbon_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_steel_stainless_ingot", {
|
||||
description = S("Metal - Stainless Steel Ingot"),
|
||||
inventory_image = "lib_materials_metal_steel_stainless_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_tin_ingot", {
|
||||
description = S("Metal - Tin Ingot"),
|
||||
inventory_image = "lib_materials_metal_tin_ingot.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:metal_tin_lump", {
|
||||
description = S("Metal - Tin Lump"),
|
||||
inventory_image = "lib_materials_metal_tin_lump.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:rusty 8',
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:water_source", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:rusty_block 8',
|
||||
recipe = {
|
||||
{"lib_materials:metal_steel_block", "lib_materials:metal_steel_block", "lib_materials:metal_steel_block"},
|
||||
{"lib_materials:metal_steel_block", "default:water_source", "lib_materials:metal_steel_block"},
|
||||
{"lib_materials:metal_steel_block", "lib_materials:metal_steel_block", "lib_materials:metal_steel_block"},
|
||||
},
|
||||
--replacements = {{"columnia:blueprint", "columnia:blueprint"}},
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:metal_lead_lump",
|
||||
output = "lib_materials:metal_lead_ingot",
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:metal_silver_lump",
|
||||
output = "lib_materials:metal_silver_ingot",
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:metal_iron_wrought_ingot",
|
||||
output = "lib_materials:metal_iron_cast_ingot",
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:metal_iron_cast_ingot",
|
||||
cooktime = 2,
|
||||
output = "lib_materials:metal_steel_carbon_ingot",
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:metal_steel_carbon_ingot",
|
||||
cooktime = 2,
|
||||
output = "lib_materials:metal_iron_wrought_ingot",
|
||||
})
|
||||
local function register_block(block, ingot)
|
||||
minetest.register_craft({
|
||||
output = block,
|
||||
recipe = {
|
||||
{ingot, ingot, ingot},
|
||||
{ingot, ingot, ingot},
|
||||
{ingot, ingot, ingot},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = ingot.." 9",
|
||||
recipe = {
|
||||
{block}
|
||||
}
|
||||
})
|
||||
end
|
||||
register_block("lib_materials:metal_brass_block", "lib_materials:metal_brass_ingot")
|
||||
register_block("lib_materials:metal_lead_block", "lib_materials:metal_lead_ingot")
|
||||
register_block("lib_materials:metal_silver_block", "lib_materials:metal_silver_ingot")
|
||||
register_block("lib_materials:metal_iron_wrought_block", "lib_materials:metal_iron_wrought_ingot")
|
||||
register_block("lib_materials:metal_iron_cast_block", "lib_materials:metal_iron_cast_ingot")
|
||||
register_block("lib_materials:metal_steel_carbon_block", "lib_materials:metal_steel_carbon_ingot")
|
||||
register_block("lib_materials:metal_steel_stainless_block", "lib_materials:metal_steel_stainless_ingot")
|
||||
|
||||
--Minerals
|
||||
minetest.register_node("lib_materials:mineral_coal_block", {
|
||||
description = S("Mineral - Coal Block"),
|
||||
tiles = {"lib_materials_mineral_coal_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:mineral_diamond_block", {
|
||||
description = S("Mineral - Diamond Block"),
|
||||
tiles = {"lib_materials_mineral_diamond_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:mineral_mese_block", {
|
||||
description = S("Mineral - Mese Block"),
|
||||
tiles = {"lib_materials_mineral_mese_block.png"},
|
||||
paramtype = "light",
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
light_source = 3,
|
||||
})
|
||||
minetest.register_node("lib_materials:mineral_quartz_block", {
|
||||
description = S("Mineral - Quartz Block"),
|
||||
tiles = {"lib_materials_mineral_quartz_block_top.png", "lib_materials_mineral_quartz_block_bottom.png", "lib_materials_mineral_quartz_block_side.png"},
|
||||
groups = {snappy=1,bendy=2,cracky=1,level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:mineral_quartz_chiseled", {
|
||||
description = S("Mineral - Chiseled Quartz"),
|
||||
tiles = {"lib_materials_mineral_quartz_chiseled_top.png", "lib_materials_mineral_quartz_chiseled_top.png", "lib_materials_mineral_quartz_chiseled_side.png"},
|
||||
groups = {snappy=1,bendy=2,cracky=1,level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:mineral_quartz_pillar", {
|
||||
description = S("Mineral - Quartz Pillar"),
|
||||
tiles = {"lib_materials_mineral_quartz_pillar_top.png", "lib_materials_mineral_quartz_pillar_top.png", "lib_materials_mineral_quartz_pillar_side.png"},
|
||||
groups = {snappy=1,bendy=2,cracky=1,level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
paramtype2 = "facedir"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:mineral_coal_lump", {
|
||||
description = S("Mineral - Coal Lump"),
|
||||
inventory_image = "lib_materials_mineral_coal_lump.png",
|
||||
groups = {coal = 1, flammable = 1}
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_diamond", {
|
||||
description = S("Mineral - Diamond"),
|
||||
inventory_image = "lib_materials_mineral_diamond.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_flint", {
|
||||
description = S("Mineral - Flint"),
|
||||
inventory_image = "lib_materials_mineral_flint.png"
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_mese_crystal", {
|
||||
description = S("Mineral - Mese Crystal"),
|
||||
inventory_image = "lib_materials_mineral_mese_crystal.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_mese_crystal_fragment", {
|
||||
description = S("Mineral - Mese Crystal Fragment"),
|
||||
inventory_image = "lib_materials_mineral_mese_crystal_fragment.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_obsidian_shard", {
|
||||
description = S("Mineral - Obsidian Shard"),
|
||||
inventory_image = "lib_materials_mineral_obsidian_shard.png",
|
||||
})
|
||||
minetest.register_craftitem("lib_materials:mineral_quartz_crystal", {
|
||||
description = S("Mineral - Quartz Crystal"),
|
||||
inventory_image = "lib_materials_mineral_quartz_crystal_full.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:mineral_quartz_block',
|
||||
recipe = {
|
||||
{'lib_materials:mineral_quartz_crystal', 'lib_materials:mineral_quartz_crystal'},
|
||||
{'lib_materials:mineral_quartz_crystal', 'lib_materials:mineral_quartz_crystal'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:mineral_quartz_chiseled 2',
|
||||
recipe = {
|
||||
{'stairs:slab_quartzblock'},
|
||||
{'stairs:slab_quartzblock'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:mineral_quartz_pillar 2',
|
||||
recipe = {
|
||||
{'lib_materials:mineral_quartz_block'},
|
||||
{'lib_materials:mineral_quartz_block'},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'lib_materials:mineral_quartz_pillar 2',
|
||||
recipe = {
|
||||
{'lib_materials:pillar_horizontal'},
|
||||
{'lib_materials:pillar_horizontal'},
|
||||
}
|
||||
})
|
||||
--[[-- stairs.register_stair_and_slab("quartzblock", "lib_materials:mineral_quartz_block",
|
||||
-- {snappy=1,bendy=2,cracky=1,level=2},
|
||||
-- {"quartz_block_top.png", "quartz_block_bottom.png", "quartz_block_side.png"},
|
||||
-- "Quartz stair",
|
||||
-- "Quartz slab",
|
||||
-- default.node_sound_stone_defaults()
|
||||
-- )
|
||||
--]]
|
||||
--[[-- stairs.register_slab("quartzstair", "lib_materials:mineral_quartz_pillar",
|
||||
-- {snappy=1,bendy=2,cracky=1,level=2},
|
||||
-- {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
|
||||
-- "Quartz Pillar stair",
|
||||
-- "Quartz Pillar slab",
|
||||
-- default.node_sound_stone_defaults()
|
||||
-- )
|
||||
--]]
|
||||
|
||||
--Ores
|
||||
minetest.register_node("lib_materials:ore_stone_with_coal", {
|
||||
description = S("Ore - Stone with Coal"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_coal.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'default:coal_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_copper", {
|
||||
description = S("Ore - Stone with Copper"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_copper.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:copper_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_diamond", {
|
||||
description = S("Ore - Stone with Diamond"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_diamond.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = "default:diamond",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_gold", {
|
||||
description = S("Ore - Stone with Gold"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_gold.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = "default:gold_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_iron", {
|
||||
description = S("Ore - Stone with Iron"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_iron.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:iron_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_desert_with_iron", {
|
||||
description = S("Ore - Stone Desert Iron Ore"),
|
||||
tiles = {"lib_materials_stone_desert_default.png^lib_materials_ore_iron.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, not_cuttable=1},
|
||||
drop = 'default:iron_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_lead", {
|
||||
description = S("Ore - Stone with Lead"),
|
||||
tiles = { "lib_materials_stone_default.png^lib_materials_ore_lead.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = "lib_materials:lead_lump",
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_mese", {
|
||||
description = S("Ore - Stone with Mese"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_mese.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = "default:mese_crystal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_quartz", {
|
||||
description = S("Ore - Stone with Quartz"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_quartz.png"},
|
||||
groups = {cracky=3, stone=1},
|
||||
drop = 'lib_materials:quartz_crystal',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_silver", {
|
||||
description = S("Ore - Stone with Silver"),
|
||||
tiles = { "lib_materials_stone_default.png^lib_materials_ore_silver.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = "lib_materials:lead_lump",
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_with_tin", {
|
||||
description = S("Ore - Stone with Tin"),
|
||||
tiles = {"lib_materials_stone_default.png^lib_materials_ore_tin.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = "default:tin_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_lignite", {
|
||||
description = S("Ore - Stone Mudstone with Lignite Coal"),
|
||||
tiles = {"lib_materials_stone_mudstone.png^lib_materials_ore_coal_lignite.png" },
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_black", {
|
||||
description = S("Ore - Stone Mudstone with Black Coal"),
|
||||
tiles = {"lib_materials_stone_mudstone.png^lib_materials_ore_coal.png" },
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_anthracite", {
|
||||
description = S("Ore - Stone Mudstone with Anthracite Coal"),
|
||||
tiles = {"lib_materials_stone_mudstone.png^lib_materials_ore_coal_anthracite.png" },
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_pegmatite_with_cassiterite", {
|
||||
description = S("Ore - Stone Pegmatite with Cassiterite"),
|
||||
tiles = { "lib_materials_stone_pegmatite.png^lib_materials_ore_cassiterite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_chalcopyrite", {
|
||||
description = S("Ore - Stone Skarn with Chalcopyrite"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_chalcopyrite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_galena", {
|
||||
description = S("Ore - Stone Skarn with Galena"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_galena.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_magnesite", {
|
||||
description = S("Ore - Stone Skarn with Magnesite"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_magnesite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_magnetite", {
|
||||
description = S("Ore - Stone Skarn with Magnetite"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_magnetite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_malachyte", {
|
||||
description = S("Ore - Stone Skarn with Malachyte"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_chalcopyrite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node( "lib_materials:ore_stone_skarn_with_sphalerite", {
|
||||
description = S("Ore - Stone Skarn with Sphalerite"),
|
||||
tiles = { "lib_materials_stone_skarn.png^lib_materials_ore_sphalerite.png" },
|
||||
groups = {cracky=3},
|
||||
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Columnia Rusty_Block
|
||||
--[[--MINERALS
|
||||
--
|
||||
-- Skarn deposit
|
||||
---- ~ Tomas Brod
|
||||
|
||||
-- Chalcopyrite
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_chalcopyrite", {
|
||||
-- description = S("Ore - Stone Skarn with Chalcopyrite"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_Chalcopyrite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Malachyte
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_malachyte", {
|
||||
-- description = S("Ore - Stone Skarn with Malachyte"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_Chalcopyrite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Sphalerite
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_sphalerite", {
|
||||
-- description = S("Ore - Stone Skarn with Sphalerite"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_sphalerite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Galena
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_galena", {
|
||||
-- description = S("Ore - Stone Skarn with Galena"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_galena.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Magnetite
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_magnetite", {
|
||||
-- description = S("Ore - Stone Skarn with Magnetite"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_Magnetite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Magnesite
|
||||
-- minetest.register_node( "lib_materials:ore_stone_skarn_with_magnesite", {
|
||||
-- description = S("Ore - Stone Skarn with Magnesite"),
|
||||
-- tiles = { "lib_materials_stone_skarn.png^mineral_Magnesite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
-- -- Vermiculite (fixme: move to CommonRocks)
|
||||
-- minetest.register_node( "lib_materials:mineral_vermiculite", {
|
||||
-- description = S("Mineral - Vermiculite"),
|
||||
-- tiles = { "mineral_Vermiculite.png" },
|
||||
-- groups = {crumbly=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
|
||||
--
|
||||
-- Pegmatite deposit
|
||||
--
|
||||
-- Cassiterite
|
||||
-- minetest.register_node( "lib_materials:ore_stone_pegmatite_with_cassiterite", {
|
||||
-- description = S("Ore - Stone Pegmatite with Cassiterite"),
|
||||
-- tiles = { "lib_materials_stone_pegmatite.png^mineral_cassiterite.png" },
|
||||
-- groups = {cracky=3},
|
||||
-- is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
||||
-- })
|
||||
|
||||
|
||||
-- minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_lignite", {
|
||||
-- description = S("Ore - Stone Mudstone with Lignite Coal"),
|
||||
-- tiles = {"lib_materials_stone_mudstone.png^rocks_lignite.png" },
|
||||
-- is_ground_content = true,
|
||||
-- groups = {crumbly=3},
|
||||
-- })
|
||||
-- minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_black", {
|
||||
-- description = S("Ore - Stone Mudstone with Black Coal"),
|
||||
-- tiles = {"lib_materials_stone_mudstone.png^default_mineral_coal.png" },
|
||||
-- is_ground_content = true,
|
||||
-- groups = {crumbly=3},
|
||||
-- })
|
||||
-- minetest.register_node("lib_materials:ore_stone_mudstone_with_coal_anthracite", {
|
||||
-- description = S("Ore - Stone Mudstone with Anthracite Coal"),
|
||||
-- tiles = {"lib_materials_stone_mudstone.png^rocks_anthracite.png" },
|
||||
-- is_ground_content = true,
|
||||
-- groups = {crumbly=3},
|
||||
-- })
|
||||
--]]
|
||||
--Quartz, --Quartz Crystal, --Ore, --Quartz Block, --Chiseled Quartz, --Quartz Pillar
|
||||
--Crafting, --Quartz Block, --Chiseled Quartz, --Quartz Pillar, --Stairs & Slabs
|
||||
--Add Technic granite, marble, and ore node definitions and craftitems
|
||||
|
||||
minetest.register_node("lib_materials:brass_block", {
|
||||
description = S("Brass Block"),
|
||||
tiles = { "technic_brass_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:lead_block", {
|
||||
description = S("Lead Block"),
|
||||
tiles = { "technic_lead_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:wrought_iron_block", {
|
||||
description = S("Wrought Iron Block"),
|
||||
tiles = { "technic_wrought_iron_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:cast_iron_block", {
|
||||
description = S("Cast Iron Block"),
|
||||
tiles = { "technic_cast_iron_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:carbon_steel_block", {
|
||||
description = S("Carbon Steel Block"),
|
||||
tiles = { "technic_carbon_steel_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stainless_steel_block", {
|
||||
description = S("Stainless Steel Block"),
|
||||
tiles = { "technic_stainless_steel_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, level=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node( "lib_materials:mineral_lead", {
|
||||
description = S("Lead Ore"),
|
||||
tiles = { "default_stone.png^technic_mineral_lead.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
drop = "lib_materials:lead_lump",
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_craftitem("lib_materials:brass_ingot", {
|
||||
description = S("Brass Ingot"),
|
||||
inventory_image = "technic_brass_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:lead_lump", {
|
||||
description = S("Lead Lump"),
|
||||
inventory_image = "technic_lead_lump.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:lead_ingot", {
|
||||
description = S("Lead Ingot"),
|
||||
inventory_image = "technic_lead_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:wrought_iron_ingot", {
|
||||
description = S("Wrought Iron Ingot"),
|
||||
inventory_image = "technic_wrought_iron_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:cast_iron_ingot", {
|
||||
description = S("Cast Iron Ingot"),
|
||||
inventory_image = "technic_cast_iron_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:carbon_steel_ingot", {
|
||||
description = S("Carbon Steel Ingot"),
|
||||
inventory_image = "technic_carbon_steel_ingot.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("lib_materials:stainless_steel_ingot", {
|
||||
description = S("Stainless Steel Ingot"),
|
||||
inventory_image = "technic_stainless_steel_ingot.png",
|
||||
})
|
||||
|
||||
|
||||
|
||||
local function register_block(block, ingot)
|
||||
minetest.register_craft({
|
||||
output = block,
|
||||
recipe = {
|
||||
{ingot, ingot, ingot},
|
||||
{ingot, ingot, ingot},
|
||||
{ingot, ingot, ingot},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = ingot.." 9",
|
||||
recipe = {
|
||||
{block}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
register_block("lib_materials:brass_block", "lib_materials:brass_ingot")
|
||||
register_block("lib_materials:lead_block", "lib_materials:lead_ingot")
|
||||
register_block("lib_materials:wrought_iron_block", "lib_materials:wrought_iron_ingot")
|
||||
register_block("lib_materials:cast_iron_block", "lib_materials:cast_iron_ingot")
|
||||
register_block("lib_materials:carbon_steel_block", "lib_materials:carbon_steel_ingot")
|
||||
register_block("lib_materials:stainless_steel_block", "lib_materials:stainless_steel_ingot")
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:lead_lump",
|
||||
output = "lib_materials:lead_ingot",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:wrought_iron_ingot",
|
||||
output = "lib_materials:cast_iron_ingot",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:cast_iron_ingot",
|
||||
cooktime = 2,
|
||||
output = "lib_materials:carbon_steel_ingot",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'cooking',
|
||||
recipe = "lib_materials:carbon_steel_ingot",
|
||||
cooktime = 2,
|
||||
output = "lib_materials:wrought_iron_ingot",
|
||||
})
|
||||
|
||||
|
@ -1,10 +1,56 @@
|
||||
|
||||
local S = lib_materials.gettext
|
||||
|
||||
local S = lib_materials.intllib
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:sand", {
|
||||
description = "Sand - Sand Default",
|
||||
tiles = {"lib_materials_sand_sand_default.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_beach", {
|
||||
description = "Sand - Beach",
|
||||
tiles = {"lib_materials_sand_sand_default.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_desert", {
|
||||
description = "Sand - Desert Default",
|
||||
tiles = {"lib_materials_sand_desert_default.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_silver", {
|
||||
description = "Sand - Silver Default",
|
||||
tiles = {"lib_materials_sand_silver_default.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_volcanic", {
|
||||
description = ("Sand - Volcanic"),
|
||||
tiles = {"lib_materials_sand_volcanic.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_white", {
|
||||
description = ("Sand - White"),
|
||||
tiles = {"lib_materials_sand_white.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:sand_with_rocks", {
|
||||
description = "Sand and rocks",
|
||||
tiles = {"lib_materials_sand_with_rocks.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
--sounds = default.node_sound_sand_defaults(),
|
||||
drop = {max_items=2, items={{items={"lib_materials:small_rocks"}, rarity=1}}},
|
||||
})
|
||||
|
||||
|
||||
-- Prehistoric Life Sand
|
||||
-- Node Texture Modifier
|
||||
-- Valleys_c Sand
|
||||
-- Some sand with rocks for the river beds.
|
||||
-- This drops small rocks as well.
|
||||
-- if false then
|
||||
@ -15,12 +61,9 @@ local S = lib_materials.gettext
|
||||
-- minetest.register_node("lib_materials:sand_with_rocks", newnode)
|
||||
-- end
|
||||
|
||||
minetest.register_node("lib_materials:sand_with_rocks", {
|
||||
description = "Sand and rocks",
|
||||
tiles = {"vmg_sand_with_rocks.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
--sounds = default.node_sound_sand_defaults(),
|
||||
drop = {max_items=2, items={{items={"lib_materials:small_rocks"}, rarity=1}}},
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
948
type_stone.lua
948
type_stone.lua
@ -1,46 +1,920 @@
|
||||
|
||||
|
||||
local S = lib_materials.gettext
|
||||
local S = lib_materials.intllib
|
||||
|
||||
--[[
|
||||
|
||||
Includes nodes from Technic, Mapgen, Stone, Darkage, Valleys_c, and others.
|
||||
|
||||
stone_brown and stone_sand are creations of Steven G. Merchant (aka Shad MOrdre -- shadmordre@minetest.net or shadmordre@gmail.com) Copyright 2016©
|
||||
|
||||
--]]
|
||||
|
||||
lib_materials.register_stone = function(name, desc, texture, stone_cracky, stone_level)
|
||||
|
||||
minetest.register_node("lib_materials:stone_"..name.."", {
|
||||
description = S("Stone - "..desc..""),
|
||||
tiles = {texture},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = stone_cracky, stone = 1, level = stone_level},
|
||||
drop = 'lib_materials:'..name..'',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--if stairs and lib_materials.enable_stairs then
|
||||
--register_stairs
|
||||
--end
|
||||
|
||||
--if shapes and lib_materials.enable_shapes then
|
||||
--register_shapes
|
||||
--end
|
||||
|
||||
--if shapes and lib_materials.enable_slopes then
|
||||
--register_slopes
|
||||
--end
|
||||
|
||||
--minetest.after(3, lib_architecture.register_nodes, name, desc, texture, "lib_materials:stone_"..name, default.node_sound_stone_defaults())
|
||||
--lib_architecture.register_nodes(name, desc, texture, "lib_materials:"..name.."", default.node_sound_stone_defaults())
|
||||
|
||||
-- natural_slopes.register_slope("lib_materials:"..name.."", {
|
||||
-- groups = {cracky = 3, stone = 1, level = 2},
|
||||
-- tiles = {texture},
|
||||
-- description = ""..desc.." slope",
|
||||
-- sounds = default.node_sound_stone_defaults()({footstep = {['name'] = "default_grass_footstep", ['gain'] = 0.25},})
|
||||
-- },
|
||||
-- 1
|
||||
-- )
|
||||
|
||||
|
||||
end
|
||||
|
||||
minetest.register_node("lib_materials:stone_brown", {
|
||||
description = S("Brown Stone"),
|
||||
tiles = {"lib_materials_stone_brown.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_brown',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
lib_materials.register_stone("travertine", "Travertine", "lib_materials_stone_travertine.png", 3, 1)
|
||||
lib_materials.register_stone("rhyolite", "Rhyolite", "lib_materials_stone_rhyolite.png", 3, 1)
|
||||
lib_materials.register_stone("sandstone_red", "Sandstone Red", "lib_materials_stone_sandstone_red.png", 3, 1)
|
||||
lib_materials.register_stone("serpentine_02", "Serpentine 02", "lib_materials_stone_serpentine_02.png", 3, 1)
|
||||
lib_materials.register_stone("granite_black", "Granite Black", "lib_materials_stone_granite_black.png", 3, 1)
|
||||
lib_materials.register_stone("granite_brown_02", "Granite Brown 02", "lib_materials_stone_granite_brown_02.png", 3, 1)
|
||||
lib_materials.register_stone("granite_04", "Granite 04", "lib_materials_stone_granite_04.png", 3, 1)
|
||||
lib_materials.register_stone("brownstone", "Brownstone", "lib_materials_stone_brownstone.png", 3, 1)
|
||||
|
||||
--CUSTOM
|
||||
minetest.register_node("lib_materials:cobble_stone_desert_default", {
|
||||
tiles = {"lib_materials_stone_desert_default.png^(lib_materials_stone_cobble_default.png^[mask:lib_materials_mask_cobble.png)"},
|
||||
description = "Cobble - Stone Desert Default",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, stone=2},
|
||||
})
|
||||
minetest.register_node("lib_materials:dirt_desert_cobble_stone", {
|
||||
tiles = {"lib_materials_stone_desert_default.png^(lib_materials_dirt.png^[mask:lib_materials_mask_cobble.png)"},
|
||||
description = "Cobble - Stone Desert Default",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, stone=2},
|
||||
})
|
||||
minetest.register_node("lib_materials:dirt_cobble_stone", {
|
||||
tiles = {"lib_materials_stone_cobble_default.png^(lib_materials_dirt.png^[mask:lib_materials_mask_cobble.png)"},
|
||||
description = "Dirt Cobble Stone",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, stone=2},
|
||||
})
|
||||
minetest.register_node("lib_materials:dirt_stone", {
|
||||
tiles = { "lib_materials_stone_default.png^(lib_materials_dirt.png^[mask:lib_materials_mask_stone.png)" },
|
||||
description = "Dirt Stone",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, stone=2},
|
||||
})
|
||||
minetest.register_node("lib_materials:sand_with_stone_desert", {
|
||||
tiles = { "lib_materials_stone_desert_default.png^(lib_materials_sand_desert_default.png^[mask:lib_materials_mask_stone.png)" },
|
||||
description = "Desert Sand with Desert Stone",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, stone=2},
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_sand", {
|
||||
description = S("Sand Stone"),
|
||||
tiles = {"lib_materials_stone_sand.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_sand',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
--Castles mod. (To be converted)
|
||||
minetest.register_node("lib_materials:stone_castle_dungeon", {
|
||||
description = S("Stone - Castle Dungeon"),
|
||||
tiles = {"castle_dungeon_stone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_castle_dungeon',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_castle_pavement", {
|
||||
description = S("Stone - Castle Pavement"),
|
||||
tiles = {"castle_pavement_brick.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:stone_castle_pavement',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_castle_rubble", {
|
||||
description = S("Stone - Castle Rubble"),
|
||||
tiles = {"castle_rubble.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:stone_castle_rubble',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_castle_slate", {
|
||||
description = S("Stone - Castle Slate"),
|
||||
tiles = {"castle_slate.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:stone_castle_slate',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_castle_wall", {
|
||||
description = S("Stone - Castle Wall"),
|
||||
tiles = {"castle_stonewall.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_castle_wall',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node( "lib_materials:granite", {
|
||||
description = S("Granite"),
|
||||
tiles = { "technic_granite.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, granite=1, stone = 1, level = 2},
|
||||
drop = 'lib_materials:granite',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
--DecoBlocks mod. (To be moved to type_deco.lua)
|
||||
minetest.register_node("lib_materials:stone_sandstone_pillar", {
|
||||
description = S("Stone - Sandstone Pillar"),
|
||||
tiles = {
|
||||
"decoblocks_sandstone_pillar_top.png",
|
||||
"decoblocks_sandstone_pillar_top.png",
|
||||
"decoblocks_sandstone_pillar.png",
|
||||
"decoblocks_sandstone_pillar.png",
|
||||
"decoblocks_sandstone_pillar.png",
|
||||
"decoblocks_sandstone_pillar.png",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:stone_castle_rubble',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--GrailTest game
|
||||
minetest.register_node("lib_materials:stone_bluestone", {
|
||||
description = S("Stone - Blue Stone"),
|
||||
tiles = {"lib_materials_stone_bluestone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_bluestone',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_greenstone", {
|
||||
description = S("Stone - Green Stone"),
|
||||
tiles = {"lib_materials_stone_greenstone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_greenstone',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_whitestone", {
|
||||
description = S("Stone - White Stone"),
|
||||
tiles = {"lib_materials_stone_whitestone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_whitestone',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_brown", {
|
||||
description = S("Stone - Brown Stone"),
|
||||
tiles = {"lib_materials_stone_brown.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_brown',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sand", {
|
||||
description = S("Stone - Sand Stone"),
|
||||
tiles = {"lib_materials_stone_sand.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_sand',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
--Default
|
||||
minetest.register_node("lib_materials:stone", {
|
||||
description = S("Stone"),
|
||||
tiles = {"lib_materials_stone_default.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:cobble',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_brick", {
|
||||
description = S("Stone - Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_block", {
|
||||
description = S("Stone - Block"),
|
||||
tiles = {"lib_materials_stone_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_cobble", {
|
||||
description = S("Stone - Cobble"),
|
||||
tiles = {"lib_materials_stone_cobble_default.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_cobble_small", {
|
||||
description = S("Stone - Cobble Small"),
|
||||
tiles = {"lib_materials_stone_default_cobble_small.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_cobble_mossy", {
|
||||
description = S("Stone - Mossy Cobble"),
|
||||
tiles = {"lib_materials_stone_cobble_mossy.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gravel", {
|
||||
description = S("Stone - Gravel"),
|
||||
tiles = {"lib_materials_stone_gravel_default.png"},
|
||||
is_ground_content = false,
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'default:flint'}, rarity = 16},
|
||||
{items = {'lib_materials:stone_gravel'}}
|
||||
}
|
||||
}
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_default_rockwall", {
|
||||
description = S("Rockwall - Stone"),
|
||||
tiles = {"lib_materials_stone_default_rockwall.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert", {
|
||||
description = S("Stone - Desert"),
|
||||
tiles = {"lib_materials_stone_desert_default.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:desert_cobble',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert_brick", {
|
||||
description = S("Stone - Desert Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_desert_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert_block", {
|
||||
description = S("Stone - Desert Block"),
|
||||
tiles = {"lib_materials_stone_desert_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert_cobble", {
|
||||
description = S("Stone - Desert Cobble"),
|
||||
tiles = {"lib_materials_stone_desert_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert_cobble_small", {
|
||||
description = S("Stone - Desert Cobble Small"),
|
||||
tiles = {"lib_materials_stone_desert_cobble_small.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_desert_rockwall", {
|
||||
description = S("Stone - Desert Rockwall"),
|
||||
tiles = {"lib_materials_stone_desert_rockwall.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_obsidian", {
|
||||
description = S("Stone - Obsidian"),
|
||||
tiles = {"lib_materials_stone_obsidian_default.png"},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky = 1, level = 2},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_obsidian_brick", {
|
||||
description = S("Stone - Obsidian Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_obsidian_brick.png"},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky = 1, level = 2},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_obsidian_block", {
|
||||
description = S("Stone - Obsidian Block"),
|
||||
tiles = {"lib_materials_stone_obsidian_block.png"},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky = 1, level = 2},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone", {
|
||||
description = S("Stone - Sandstone"),
|
||||
tiles = {"lib_materials_stone_sandstone_default.png"},
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_brick", {
|
||||
description = S("Stone - Sandstone Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_sandstone_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_block", {
|
||||
description = S("Stone - Sandstone Block"),
|
||||
tiles = {"lib_materials_stone_sandstone_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_desert", {
|
||||
description = S("Stone - Sandstone Desert"),
|
||||
tiles = {"lib_materials_stone_sandstone_desert_default.png"},
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_desert_brick", {
|
||||
description = S("Stone - Sandstone Desert Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_sandstone_desert_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_desert_block", {
|
||||
description = S("Stone - Sandstone Desert Block"),
|
||||
tiles = {"lib_materials_stone_sandstone_desert_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_desert_gravel", {
|
||||
description = S("Stone - Sandstone Desert Gravel"),
|
||||
tiles = {"lib_materials_stone_sandstone_desert_gravel.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:lib_materials:stone_sandstone_desert_gravel',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_silver", {
|
||||
description = S("Stone - Sandstone Silver"),
|
||||
tiles = {"lib_materials_stone_sandstone_silver_default.png"},
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_silver_brick", {
|
||||
description = S("Stone - Sandstone Silver Brick"),
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_sandstone_silver_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_silver", {
|
||||
description = S("Stone - Sandstone Silver Block"),
|
||||
tiles = {"lib_materials_stone_sandstone_silver_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_white", {
|
||||
description = S("Stone - - White Sandstone"),
|
||||
tiles = {"lib_materials_stone_sandstone_white.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_sandstone_white',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_white_brick", {
|
||||
description = S("Stone - - White Sandstone Brick"),
|
||||
tiles = {"lib_materials_stone_sandstone_white_brick.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_sandstone_white_brick',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_white_gravel", {
|
||||
description = S("Stone - - White Sandstone Gravel"),
|
||||
tiles = {"lib_materials_stone_sandstone_white_gravel.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_sandstone_white_gravel',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_adobe", {
|
||||
description = S("Stone - Adobe"),
|
||||
tiles = {"lib_materials_stone_adobe.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_andesite", {
|
||||
description = S("Stone - Andesite"),
|
||||
tiles = {"lib_materials_stone_andesite.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_01", {
|
||||
description = S("Stone - Basalt 01"),
|
||||
tiles = {"lib_materials_stone_basalt_01.png"},
|
||||
is_ground_content = true,
|
||||
drop = get_node_drops("lib_materials:stone_basalt_01","lib_materials:stone_basalt_01_cobble"),
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_01_block", {
|
||||
description = S("Stone - Basalt 01 Block"),
|
||||
tiles = {"lib_materials_stone_basalt_01_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_01_brick", {
|
||||
description = S("Stone - Basalt 01 Brick"),
|
||||
tiles = {"lib_materials_stone_basalt_01_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_01_cobble", {
|
||||
description = S("Stone - Basalt 01 Cobble"),
|
||||
tiles = {"lib_materials_stone_basalt_01_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_02", {
|
||||
description = S("Stone - Basalt 02"),
|
||||
tiles = {"lib_materials_stone_basalt_02.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_basalt_02',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_basalt_03", {
|
||||
description = S("Stone - Basalt 03"),
|
||||
tiles = {"lib_materials_stone_basalt_03.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_chalk", {
|
||||
description = S("Stone - Chalk"),
|
||||
tiles = {"lib_materials_stone_chalk.png"},
|
||||
is_ground_content = true,
|
||||
drop = 'lib_materials:chalk_powder 2',
|
||||
groups = {crumbly=2, cracky=2, not_cuttable=1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_claystone", {
|
||||
description = S("Stone - Claystone"),
|
||||
tiles = {"lib_materials_stone_claystone.png" },
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=1, cracky=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_conglomerate", {
|
||||
description = S("Stone - Conglomerate"),
|
||||
tiles = {"lib_materials_stone_conglomerate.png" },
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_diorite", {
|
||||
description = S("Stone - Diorite"),
|
||||
tiles = {"lib_materials_stone_diorite.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gabbro", {
|
||||
description = S("Stone - Gabbro"),
|
||||
tiles = {"lib_materials_stone_gabbro.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gneiss_01", {
|
||||
description = S("Stone - Gneiss 01"),
|
||||
tiles = {"lib_materials_stone_gneiss_01.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = get_node_drops("lib_materials:stone_gneiss_01", "lib_materials:stone_gneiss_01_cobble"),
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gneiss_01_block", {
|
||||
description = S("Stone - Gneiss 01 Block"),
|
||||
tiles = {"lib_materials_stone_gneiss_01_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gneiss_01_brick", {
|
||||
description = S("Stone - Gneiss 01 Brick"),
|
||||
tiles = {"lib_materials_stone_gneiss_01_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gneiss_01_cobble", {
|
||||
description = S("Stone - Gneiss 01 Cobble"),
|
||||
tiles = {"lib_materials_stone_gneiss_01_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_gneiss_02", {
|
||||
description = S("Stone - Gniess 02"),
|
||||
tiles = {"lib_materials_stone_gneiss_02.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_granite_01", {
|
||||
description = S("Stone - Granite 01 (Technic)"),
|
||||
tiles = { "lib_materials_stone_granite_01.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=1, granite=1, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_granite_01',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_granite_02", {
|
||||
description = S("Stone - Granite 02"),
|
||||
tiles = {"lib_materials_stone_granite_02.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_granite_brown", {
|
||||
description = S("Stone - Granite Brown"),
|
||||
tiles = {"lib_materials_stone_granite_brown.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_granite_03", {
|
||||
description = S("Stone - Granite 03"),
|
||||
tiles = {"lib_materials_stone_granite_03.png" },
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky=3, stone=1},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_laterite", {
|
||||
description = S("Stone - Laterite clay"),
|
||||
tiles = {"lib_materials_stone_laterite.png" },
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
groups = {crumbly=3},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_limestone_01", {
|
||||
description = S("Stone - Limestone 01"),
|
||||
tiles = {"lib_materials_stone_limestone_01.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_limestone_02", {
|
||||
description = S("Stone - Limestone 02"),
|
||||
tiles = {"lib_materials_stone_limestone_02.png" },
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky=2},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_marble_01", {
|
||||
description = S("Stone - Marble 01 (Technic)"),
|
||||
tiles = { "lib_materials_stone_marble_01.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, marble=1, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_marble_01',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_marble_02", {
|
||||
description = S("Stone - Marble 02"),
|
||||
tiles = {"lib_materials_stone_marble_02.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_marble_03", {
|
||||
description = S("Stone - Marble 03"),
|
||||
tiles = {"lib_materials_stone_marble_03.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_marble_03_block", {
|
||||
description = S("Stone - Marble 03 Block"),
|
||||
tiles = {"lib_materials_stone_marble_03_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_mudstone", {
|
||||
description = S("Stone - Mudstone"),
|
||||
tiles = {"lib_materials_stone_mudstone.png" },
|
||||
groups = {cracky=1, crumbly=3},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_pegmatite", {
|
||||
description = S("Stone - Pegmatite"),
|
||||
tiles = {"lib_materials_stone_pegmatite.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_rhyolitic_tuff", {
|
||||
description = S("Stone - Rhyolitic Tuff"),
|
||||
tiles = {"lib_materials_stone_rhyolitic_tuff.png"},
|
||||
is_ground_content = true,
|
||||
legacy_mineral = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{-- player get tuff node if he is lucky :)
|
||||
items = {'lib_materials:stone_rhyolitic_tuff'},
|
||||
rarity = 3,
|
||||
},
|
||||
{-- player will get rubble with 2/3 chance
|
||||
items = {'lib_materials:stone_rhyolitic_tuff_cobble'},
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_rhyolitic_tuff_bricks", {
|
||||
description = S("Stone - Rhyolitic Tuff Bricks"),
|
||||
tiles = {"lib_materials_stone_rhyolitic_tuff_bricks.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_rhyolitic_tuff_cobble", {
|
||||
description = S("Stone - Rhyolitic Tuff Cobble"),
|
||||
tiles = {"lib_materials_stone_rhyolitic_tuff_cobble.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_old_red", {
|
||||
description = S("Stone - Old Red Sandstone"),
|
||||
tiles = {"lib_materials_stone_sandstone_old_red.png"},
|
||||
is_ground_content = true,
|
||||
drop = "lib_materials:stone_sandstone_old_red_cobble",
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_old_red_block", {
|
||||
description = S("Stone - Old Red Sandstone Block"),
|
||||
tiles = {"lib_materials_stone_sandstone_old_red_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_old_red_brick", {
|
||||
description = S("Stone - Old Red Sandstone Brick"),
|
||||
tiles = {"lib_materials_stone_sandstone_old_red_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_sandstone_old_red_cobble", {
|
||||
description = S("Stone - Old Red Sandstone Cobble"),
|
||||
tiles = {"lib_materials_stone_sandstone_old_red_cobble.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, crumbly=2, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_savanna", {
|
||||
description = S("Stone - Savannah Stone"),
|
||||
tiles = {"lib_materials_stone_savannah.png"},
|
||||
groups = {cracky = 3, stone=1},
|
||||
drop = 'lib_materials:stone_savanna_cobble',
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_savanna_cobble", {
|
||||
description = S("Stone - Savanna Cobble"),
|
||||
tiles = {"lib_materials_stone_savanna_cobble.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_savanna_with_ore_coal", {
|
||||
description = S("Stone - Savanna Stone With Coal Ore"),
|
||||
tiles = {"lib_materials_stone_savannah_with_ore_coal.png"},
|
||||
groups = {cracky = 3, stone = 1, ore=1},
|
||||
drop = 'default:coal_lump',
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_savanna_with_ore_iron", {
|
||||
description = S("Stone - Savanna Stone With Iron Ore"),
|
||||
tiles = {"lib_materials_stone_savannah_with_ore_iron.png"},
|
||||
groups = {cracky = 2, stone = 1, ore=1},
|
||||
drop = 'default:iron_lump',
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_schist", {
|
||||
description = S("Stone - Schist"),
|
||||
tiles = {"lib_materials_stone_schist.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_serpentine", {
|
||||
description = S("Stone - Serpentine"),
|
||||
tiles = {"lib_materials_stone_serpentine.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_shale", {
|
||||
description = S("Stone - Shale"),
|
||||
tiles = {"lib_materials_stone_shale.png","lib_materials_stone_shale.png","lib_materials_stone_shale_side.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=2,cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_skarn", {
|
||||
description = S("Stone - Skarn"),
|
||||
tiles = {"lib_materials_stone_skarn.png" },
|
||||
groups = {cracky=3, stone=1},
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_01", {
|
||||
description = S("Stone - Slate 01"),
|
||||
tiles = {"lib_materials_stone_slate_01_top.png","lib_materials_stone_slate_01_top.png","lib_materials_stone_slate_01_side.png"},
|
||||
is_ground_content = true,
|
||||
drop = 'lib_materials:stone_slate_01_cobble',
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_01_block", {
|
||||
description = S("Stone - Slate 01 Block"),
|
||||
tiles = {"lib_materials_stone_slate_01_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_01_brick", {
|
||||
description = S("Stone - Slate 01 Brick"),
|
||||
tiles = {"lib_materials_stone_slate_01_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_01_cobble", {
|
||||
description = S("Stone - Slate 01 Cobble"),
|
||||
tiles = {"lib_materials_stone_slate_01_cobble.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_01_tile", {
|
||||
description = S("Stone - Slate 01 Tile"),
|
||||
tiles = {"lib_materials_stone_slate_01_tile.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_slate_02", {
|
||||
description = S("Stone - Slate 02"),
|
||||
tiles = {"lib_materials_stone_slate_02.png" },
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
groups = {cracky=3},
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_tuff", {
|
||||
description = S("Stone - Tuff"),
|
||||
tiles = {"lib_materials_stone_tuff.png"},
|
||||
is_ground_content = true,
|
||||
legacy_mineral = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{-- player get tuff node if he is lucky :)
|
||||
items = {'lib_materials:stone_tuff'},
|
||||
rarity = 3,
|
||||
},
|
||||
{-- player will get rubble with 2/3 chance
|
||||
items = {'lib_materials:stone_tuff_cobble'},
|
||||
}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_tuff_bricks", {
|
||||
description = S("Stone - Tuff Bricks"),
|
||||
tiles = {"lib_materials_stone_tuff_bricks.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_tuff_bricks_old", {
|
||||
description = S("Stone - Tuff Bricks Old"),
|
||||
tiles = {"lib_materials_stone_tuff_bricks_old.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_tuff_cobble", {
|
||||
description = S("Stone - Tuff Cobble"),
|
||||
tiles = {"lib_materials_stone_tuff_cobble.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:stone_vermiculite", {
|
||||
description = S("Stone - Vermiculite"),
|
||||
tiles = {"lib_materials_stone_vermiculite.png"},
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
--Technic Node - Granite 01, Marble 01
|
||||
--Farlands Nodes - Granite 02, Granite Brown, Limestone 01, Marble 02, Savanna
|
||||
--Rocks mod - Andesite, Basalt 03, Claystone, Conglomerate, Diorite, Gabbro, Gneiss 02, Granite 03, Laterite, Limestone 02, Mudstone, Pegmatite, Skarn, Slate 02,
|
||||
-- Basalt Ex/Mafic hard same as diorite, byt limit=0.5
|
||||
-- Mudstone Sed soft Ocean, beach, river, glaciers
|
||||
-- more rock defs
|
||||
--Darkage Nodes - Adobe, Basalt 01, Chalk, Gneiss 01, Marble 03, Old Red Sandstone (ors), Serpentine, Shale, Schist, Slate 01, Tuff, Rhyolitic Tuff
|
||||
minetest.register_craftitem("lib_materials:mineral_chalk_powder", {
|
||||
description = "Chalk Powder",
|
||||
inventory_image = "lib_materials_mineral_chalk_powder.png",
|
||||
})
|
||||
minetest.register_node("lib_materials:cobble_with_plaster", {
|
||||
description = "Stone - Cobblestone with Plaster",
|
||||
tiles = {"darkage_chalk.png^(default_cobble.png^[mask:darkage_plaster_mask_D.png)", "darkage_chalk.png^(default_cobble.png^[mask:darkage_plaster_mask_B.png)",
|
||||
"darkage_chalk.png^(default_cobble.png^[mask:darkage_plaster_mask_C.png)", "darkage_chalk.png^(default_cobble.png^[mask:darkage_plaster_mask_A.png)",
|
||||
"default_cobble.png", "darkage_chalk.png"},
|
||||
is_ground_content = false,
|
||||
paramtype2 = "facedir",
|
||||
drop = 'default:cobble',
|
||||
groups = {cracky=3, not_cuttable=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_node("lib_materials:chalked_bricks_with_plaster", {
|
||||
description = "Stone - Chalked Bricks with Plaster",
|
||||
tiles = {"darkage_chalk.png^(darkage_chalked_bricks.png^[mask:darkage_plaster_mask_D.png)", "darkage_chalk.png^(darkage_chalked_bricks.png^[mask:darkage_plaster_mask_B.png)",
|
||||
"darkage_chalk.png^(darkage_chalked_bricks.png^[mask:darkage_plaster_mask_C.png)", "darkage_chalk.png^(darkage_chalked_bricks.png^[mask:darkage_plaster_mask_A.png)",
|
||||
"darkage_chalked_bricks.png", "darkage_chalk.png"},
|
||||
is_ground_content = false,
|
||||
paramtype2 = "facedir",
|
||||
drop = 'default:cobble',
|
||||
groups = {cracky=3, not_cuttable=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
-- abm to turn Tuff bricks to old Tuff bricks if water is nearby
|
||||
-- minetest.register_abm({
|
||||
-- nodenames = {"lib_materials:stone_tuff_bricks"},
|
||||
-- neighbors = {"group:water"},
|
||||
-- interval = 16,
|
||||
-- chance = 200,
|
||||
-- catch_up = false,
|
||||
-- action = function(pos, node)
|
||||
-- minetest.set_node(pos, {name = "lib_materials:stone_tuff_bricks_old"})
|
||||
-- end
|
||||
-- })
|
||||
|
||||
minetest.register_node( "lib_materials:marble", {
|
||||
description = S("Marble"),
|
||||
tiles = { "technic_marble.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3, marble=1, stone = 1, level = 2},
|
||||
drop = 'lib_materials:marble',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
775
type_stone_deco.lua
Normal file
775
type_stone_deco.lua
Normal file
@ -0,0 +1,775 @@
|
||||
|
||||
|
||||
local S = lib_materials.intllib
|
||||
|
||||
|
||||
--PYRAMIDS
|
||||
|
||||
local img = {"eye", "men", "sun"}
|
||||
|
||||
for i=1,3 do
|
||||
minetest.register_node("lib_materials:deco_stone"..i, {
|
||||
description = "Sandstone with "..img[i],
|
||||
tiles = {"default_sandstone.png^pyramids_"..img[i]..".png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=2,cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_egypt_01", {
|
||||
description = S("Stone - Egypt 01"),
|
||||
tiles = {"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"decoblocks_sandstone_wall.png",
|
||||
"decoblocks_sandstone_wall.png",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_egypt_02", {
|
||||
description = S("Stone - Egypt 02"),
|
||||
tiles = {"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"decoblocks_sandstone_wall2.png",
|
||||
"decoblocks_sandstone_wall2.png",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_egypt_03", {
|
||||
description = S("Stone - Egypt 03"),
|
||||
tiles = {"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"decoblocks_sandstone_wall3.png",
|
||||
"decoblocks_sandstone_wall3.png",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_egypt_04", {
|
||||
description = S("Stone - Egypt 04"),
|
||||
tiles = {"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"lib_materials_stone_sandstone_default.png",
|
||||
"decoblocks_sandstone_wall4.png",
|
||||
"decoblocks_sandstone_wall4.png",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:stone_brown_angled", {
|
||||
description = S("Stone - Brown Angled"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lib_materials_stone_brown.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = true,
|
||||
legacy_mineral = true,
|
||||
connects_to = { "group:wall", "group:stone", "group:lib_architecture", "group:lib_doors", "group:lib_fences", "group:lib_general", "group:lib_lights"},
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {
|
||||
{-0.01, -0.01, -0.01, 0.01, 0.01, 0.01},
|
||||
},
|
||||
connect_front = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.375},
|
||||
{-0.375, -0.375, -0.375, 0.375, 0.375, -0.25},
|
||||
{-0.25, -0.25, -0.25, 0.25, 0.25, -0.125},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0.125, 0},
|
||||
},
|
||||
connect_back = {
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.375, -0.375, 0.25, 0.375, 0.375, 0.375},
|
||||
{-0.25, -0.25, 0.125, 0.25, 0.25, 0.25},
|
||||
{-0.125, -0.125, 0, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_left = {
|
||||
{-0.5, -0.5, -0.5, -0.375, 0.5, 0.5},
|
||||
{-0.375, -0.375, -0.375, -0.25, 0.375, 0.375},
|
||||
{-0.25, -0.25, -0.25, -0.125, 0.25, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0, 0.125, 0.125},
|
||||
},
|
||||
connect_right = {
|
||||
{0.375, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
{0.25, -0.375, -0.375, 0.375, 0.375, 0.375},
|
||||
{0.125, -0.25, -0.25, 0.25, 0.25, 0.25},
|
||||
{0, -0.125, -0.125, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_bottom = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.375, -0.375, -0.375, 0.375, -0.25, 0.375},
|
||||
{-0.25, -0.25, -0.25, 0.25, -0.125, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0, 0.125},
|
||||
},
|
||||
connect_top = {
|
||||
{-0.5, 0.375, -0.5, 0.5, 0.5, 0.5},
|
||||
{-0.375, 0.25, -0.375, 0.375, 0.375, 0.375},
|
||||
{-0.25, 0.125, -0.25, 0.25, 0.25, 0.25},
|
||||
{-0.125, 0, -0.125, 0.15, 0.125, 0.125},
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "connected",
|
||||
fixed = {
|
||||
{-0.05, -0.05, -0.05, 0.05, 0.05, 0.05},
|
||||
},
|
||||
connect_front = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.375},
|
||||
{-0.375, -0.375, -0.375, 0.375, 0.375, -0.25},
|
||||
{-0.25, -0.25, -0.25, 0.25, 0.25, -0.125},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0.125, 0},
|
||||
},
|
||||
connect_back = {
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.375, -0.375, 0.25, 0.375, 0.375, 0.375},
|
||||
{-0.25, -0.25, 0.125, 0.25, 0.25, 0.25},
|
||||
{-0.125, -0.125, 0, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_left = {
|
||||
{-0.5, -0.5, -0.5, -0.375, 0.5, 0.5},
|
||||
{-0.375, -0.375, -0.375, -0.25, 0.375, 0.375},
|
||||
{-0.25, -0.25, -0.25, -0.125, 0.25, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0, 0.125, 0.125},
|
||||
},
|
||||
connect_right = {
|
||||
{0.375, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
{0.25, -0.375, -0.375, 0.375, 0.375, 0.375},
|
||||
{0.125, -0.25, -0.25, 0.25, 0.25, 0.25},
|
||||
{0, -0.125, -0.125, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_bottom = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.375, -0.375, -0.375, 0.375, -0.25, 0.375},
|
||||
{-0.25, -0.25, -0.25, 0.25, -0.125, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0, 0.125},
|
||||
},
|
||||
connect_top = {
|
||||
{-0.5, 0.375, -0.5, 0.5, 0.5, 0.5},
|
||||
{-0.375, 0.25, -0.375, 0.375, 0.375, 0.375},
|
||||
{-0.25, 0.125, -0.25, 0.25, 0.25, 0.25},
|
||||
{-0.125, 0, -0.125, 0.15, 0.125, 0.125},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "connected",
|
||||
fixed = {
|
||||
{-0.01, -0.01, -0.01, 0.01, 0.01, 0.01},
|
||||
},
|
||||
connect_front = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.375},
|
||||
{-0.375, -0.375, -0.375, 0.375, 0.375, -0.25},
|
||||
{-0.25, -0.25, -0.25, 0.25, 0.25, -0.125},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0.125, 0},
|
||||
},
|
||||
connect_back = {
|
||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.375, -0.375, 0.25, 0.375, 0.375, 0.375},
|
||||
{-0.25, -0.25, 0.125, 0.25, 0.25, 0.25},
|
||||
{-0.125, -0.125, 0, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_left = {
|
||||
{-0.5, -0.5, -0.5, -0.375, 0.5, 0.5},
|
||||
{-0.375, -0.375, -0.375, -0.25, 0.375, 0.375},
|
||||
{-0.25, -0.25, -0.25, -0.125, 0.25, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0, 0.125, 0.125},
|
||||
},
|
||||
connect_right = {
|
||||
{0.375, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
{0.25, -0.375, -0.375, 0.375, 0.375, 0.375},
|
||||
{0.125, -0.25, -0.25, 0.25, 0.25, 0.25},
|
||||
{0, -0.125, -0.125, 0.125, 0.125, 0.125},
|
||||
},
|
||||
connect_bottom = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||
{-0.375, -0.375, -0.375, 0.375, -0.25, 0.375},
|
||||
{-0.25, -0.25, -0.25, 0.25, -0.125, 0.25},
|
||||
{-0.125, -0.125, -0.125, 0.125, 0, 0.125},
|
||||
},
|
||||
connect_top = {
|
||||
{-0.5, 0.375, -0.5, 0.5, 0.5, 0.5},
|
||||
{-0.375, 0.25, -0.375, 0.375, 0.375, 0.375},
|
||||
{-0.25, 0.125, -0.25, 0.25, 0.25, 0.25},
|
||||
{-0.125, 0, -0.125, 0.15, 0.125, 0.125},
|
||||
},
|
||||
},
|
||||
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_circle", {
|
||||
description = S("Circle Stone Bricks"),
|
||||
tiles = {"moreblocks_circle_stone_bricks.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:circle_stone_bricks',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_coal_checker", {
|
||||
description = S("Coal Checker"),
|
||||
tiles = {"default_stone.png^moreblocks_coal_checker.png",
|
||||
"default_stone.png^moreblocks_coal_checker.png",
|
||||
"default_stone.png^moreblocks_coal_checker.png",
|
||||
"default_stone.png^moreblocks_coal_checker.png",
|
||||
"default_stone.png^moreblocks_coal_checker.png^[transformR90",
|
||||
"default_stone.png^moreblocks_coal_checker.png^[transformR90"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:coal_checker',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_coal", {
|
||||
description = S("Coal Stone"),
|
||||
tiles = {"moreblocks_coal_stone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:coal_stone',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_coal_bricks", {
|
||||
description = S("Coal Stone Bricks"),
|
||||
tiles = {"moreblocks_coal_stone_bricks.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:coal_stone_bricks',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_cobble_compressed", {
|
||||
description = S("Compressed Cobblestone"),
|
||||
tiles = {"moreblocks_cobble_compressed.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 1},
|
||||
drop = 'lib_materials:cobble_compressed',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_bricks_grey", {
|
||||
description = S("Grey Stone Bricks"),
|
||||
tiles = {"moreblocks_grey_bricks.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:grey_bricks',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:deco_stone_iron_checker", {
|
||||
description = S("Iron Checker"),
|
||||
tiles = {"default_stone.png^moreblocks_iron_checker.png",
|
||||
"default_stone.png^moreblocks_iron_checker.png",
|
||||
"default_stone.png^moreblocks_iron_checker.png",
|
||||
"default_stone.png^moreblocks_iron_checker.png",
|
||||
"default_stone.png^moreblocks_iron_checker.png^[transformR90",
|
||||
"default_stone.png^moreblocks_iron_checker.png^[transformR90"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:iron_checker',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_iron", {
|
||||
description = S("Iron Stone"),
|
||||
tiles = {"moreblocks_iron_stone.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:iron_stone',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tile_split", {
|
||||
description = S("Split Stone Tile"),
|
||||
tiles = {"moreblocks_split_stone_tile_top.png",
|
||||
"moreblocks_split_stone_tile.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:split_stone_tile',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tile_01", {
|
||||
description = S("Stone Tile"),
|
||||
tiles = {"moreblocks_stone_tile.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:stone_tile',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:tar", {
|
||||
description = S("Tar"),
|
||||
tiles = {"moreblocks_tar.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 2},
|
||||
drop = 'lib_materials:tar',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
--CRAFTING RECIPES
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:circle_stone_bricks 8",
|
||||
recipe = {
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
{"default:stone", "", "default:stone"},
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:stone_tile 4",
|
||||
recipe = {
|
||||
{"default:cobble", "default:cobble"},
|
||||
{"default:cobble", "default:cobble"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:split_stone_tile",
|
||||
recipe = {
|
||||
{"lib_materials:stone_tile"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:grey_bricks 2",
|
||||
type = "shapeless",
|
||||
recipe = {"default:stone", "default:brick"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:grey_bricks 2",
|
||||
type = "shapeless",
|
||||
recipe = {"default:stonebrick", "default:brick"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:coal_stone_bricks 4",
|
||||
recipe = {
|
||||
{"lib_materials:coal_stone", "lib_materials:coal_stone"},
|
||||
{"lib_materials:coal_stone", "lib_materials:coal_stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:iron_stone_bricks 4",
|
||||
recipe = {
|
||||
{"lib_materials:iron_stone", "lib_materials:iron_stone"},
|
||||
{"lib_materials:iron_stone", "lib_materials:iron_stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:plankstone 4",
|
||||
recipe = {
|
||||
{"default:stone", "default:wood"},
|
||||
{"default:wood", "default:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:plankstone 4",
|
||||
recipe = {
|
||||
{"default:wood", "default:stone"},
|
||||
{"default:stone", "default:wood"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:coal_checker 4",
|
||||
recipe = {
|
||||
{"default:stone", "default:coal_lump"},
|
||||
{"default:coal_lump", "default:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:coal_checker 4",
|
||||
recipe = {
|
||||
{"default:coal_lump", "default:stone"},
|
||||
{"default:stone", "default:coal_lump"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:iron_checker 4",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:stone"},
|
||||
{"default:stone", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:iron_checker 4",
|
||||
recipe = {
|
||||
{"default:stone", "default:steel_ingot"},
|
||||
{"default:steel_ingot", "default:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:iron_glass",
|
||||
type = "shapeless",
|
||||
recipe = {"default:steel_ingot", "default:glass"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:glass",
|
||||
type = "shapeless",
|
||||
recipe = {"default:coal_lump", "lib_materials:iron_glass"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:coal_glass",
|
||||
type = "shapeless",
|
||||
recipe = {"default:coal_lump", "default:glass"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:glass",
|
||||
type = "shapeless",
|
||||
recipe = {"default:steel_ingot", "lib_materials:coal_glass"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:clean_glass",
|
||||
type = "shapeless",
|
||||
recipe = {"lib_materials:sweeper", "default:glass"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:coal_stone",
|
||||
type = "shapeless",
|
||||
recipe = {"default:coal_lump", "default:stone"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:stone",
|
||||
type = "shapeless",
|
||||
recipe = {"default:steel_ingot", "lib_materials:coal_stone"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:iron_stone",
|
||||
type = "shapeless",
|
||||
recipe = {"default:steel_ingot", "default:stone"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:stone",
|
||||
type = "shapeless",
|
||||
recipe = {"default:coal_lump", "lib_materials:iron_stone"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lib_materials:cobble_compressed",
|
||||
recipe = {
|
||||
{"default:cobble", "default:cobble", "default:cobble"},
|
||||
{"default:cobble", "default:cobble", "default:cobble"},
|
||||
{"default:cobble", "default:cobble", "default:cobble"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:cobble 9",
|
||||
recipe = {
|
||||
{"lib_materials:cobble_compressed"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking", output = "lib_materials:tar", recipe = "default:gravel",
|
||||
})
|
||||
|
||||
|
||||
--XDECOR Decorative stone types
|
||||
|
||||
minetest.register_node("lib_materials:stone_coal_tile", {
|
||||
description = S("Stone - Coal Tile"),
|
||||
tiles = {
|
||||
"xdecor_coalstone_tile.png",
|
||||
"xdecor_coalstone_tile.png",
|
||||
"xdecor_coalstone_tile.png",
|
||||
"xdecor_coalstone_tile.png",
|
||||
"xdecor_coalstone_tile.png^[transformR90",
|
||||
"xdecor_coalstone_tile.png^[transformR90",
|
||||
},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:coalstone_tile',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_desert_tile", {
|
||||
description = S("Desert Stone Tile"),
|
||||
tiles = {"xdecor_desertstone_tile.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:desertstone_tile',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:clay_hard", {
|
||||
description = S("Hardened Clay"),
|
||||
tiles = {"xdecor_hard_clay.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
drop = 'lib_materials:hard_clay',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tile_02", {
|
||||
description = S("Stone Tile"),
|
||||
tiles = {"xdecor_stone_tile.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_tile',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_rune", {
|
||||
description = S("Runestone"),
|
||||
tiles = {"xdecor_stone_rune.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3, stone = 1, level = 2},
|
||||
drop = 'lib_materials:stone_rune',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:packed_ice", {
|
||||
description = S("Packed Ice"),
|
||||
tiles = {"xdecor_packed_ice.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 1, puts_out_fire=1},
|
||||
drop = 'lib_materials:packed_ice',
|
||||
legacy_mineral = true,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
-- DECO Stone Types
|
||||
|
||||
minetest.register_node("lib_materials:stone_tiles", {
|
||||
description = "Stone - Tiles",
|
||||
tiles = {"lib_materials_stone_tiles.png"},
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tiles_with_dirt", {
|
||||
description = "Stone - Tiles with Dirt",
|
||||
tiles = {"lib_materials_stone_tiles_with_dirt.png"},
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tiles_mossy", {
|
||||
description = "Stone - Mossy Tiles",
|
||||
tiles = {"lib_materials_stone_tiles_mossy.png"},
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_brick_mossy", {
|
||||
description = "Stone - Mossy Brick",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"lib_materials_stone_brick_mossy.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_tiles_crumbled", {
|
||||
description = "Stone - Crumbled Tiles",
|
||||
tiles = {"lib_materials_stone_tiles_crumbled.png"},
|
||||
groups = {crumbly = 1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_granite_02_block", {
|
||||
description = "Stone - Granite 02 Block",
|
||||
tiles = {"lib_materials_stone_granite_02_block.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lib_materials:stone_granite_brown_block", {
|
||||
description = "Stone - Granite Brown Block",
|
||||
tiles = {"lib_materials_stone_granite_brown_block.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("lib_materials:stone_stucco", {
|
||||
description = "Stone - Stucco",
|
||||
tiles = {"lib_materials_stone_stucco.png"},
|
||||
groups = {cracky = 3, stone = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--MOREORES Decorative stone types
|
||||
--To be added
|
||||
|
||||
|
||||
-- ["wood_tile"] = {
|
||||
-- description = S("Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^moreblocks_wood_tile.png",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR90"},
|
||||
-- sounds = sound_wood,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_flipped"] = {
|
||||
-- description = S("Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR180",
|
||||
-- "default_wood.png^moreblocks_wood_tile.png^[transformR180"},
|
||||
-- sounds = sound_wood,
|
||||
-- no_stairs = true,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_center"] = {
|
||||
-- description = S("Centered Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
|
||||
-- sounds = sound_wood,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_full"] = {
|
||||
-- description = S("Full Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = tile_tiles("wood_tile_full"),
|
||||
-- sounds = sound_wood,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_up"] = {
|
||||
-- description = S("Upwards Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^moreblocks_wood_tile_up.png"},
|
||||
-- sounds = sound_wood,
|
||||
-- no_stairs = true,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_down"] = {
|
||||
-- description = S("Downwards Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"},
|
||||
-- sounds = sound_wood,
|
||||
-- no_stairs = true,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_left"] = {
|
||||
-- description = S("Leftwards Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"},
|
||||
-- sounds = sound_wood,
|
||||
-- no_stairs = true,
|
||||
-- },
|
||||
|
||||
-- ["wood_tile_right"] = {
|
||||
-- description = S("Rightwards Wooden Tile"),
|
||||
-- groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
-- tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"},
|
||||
-- sounds = sound_wood,
|
||||
-- no_stairs = true,
|
||||
-- },
|
||||
|
||||
-- ["plankstone"] = {
|
||||
-- description = S("Plankstone"),
|
||||
-- groups = {cracky = 3},
|
||||
-- tiles = tile_tiles("plankstone"),
|
||||
-- sounds = sound_stone,
|
||||
-- },
|
||||
|
||||
-- ["all_faces_tree"] = {
|
||||
-- description = S("All-faces Tree"),
|
||||
-- tiles = {"default_tree_top.png"},
|
||||
-- groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
-- sounds = sound_wood,
|
||||
-- furnace_burntime = 30,
|
||||
-- },
|
||||
|
||||
-- ["all_faces_jungle_tree"] = {
|
||||
-- description = S("All-faces Jungle Tree"),
|
||||
-- tiles = {"default_jungletree_top.png"},
|
||||
-- groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
-- sounds = sound_wood,
|
||||
-- furnace_burntime = 30,
|
||||
-- },
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user