Introducing Tuff and Rhyolitic Tuff
Tuff and Rhyolitic Tuff are materials used in the Medival to build churches or houses of rich people. Tuff, Tuff bricks and tuff ruble are now available in Darkage.
51
init.lua
@ -228,3 +228,54 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
-- Tuff
|
||||
minetest.register_craft({
|
||||
output = "darkage:tuff 2",
|
||||
recipe = {
|
||||
{"darkage:gneiss", "default:stone"},
|
||||
{"default:stone", "darkage:gneiss"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "darkage:tuff",
|
||||
recipe = "darkage:tuff_rubble",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "darkage:tuff",
|
||||
recipe = "darkage:old_tuff_bricks",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "darkage:tuff_bricks",
|
||||
recipe = {
|
||||
{"darkage:tuff", "darkage:tuff"},
|
||||
{"darkage:tuff", "darkage:tuff"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Rhyolitic Tuff
|
||||
minetest.register_craft({
|
||||
output = "darkage:rhyolitic_tuff 2",
|
||||
recipe = {
|
||||
{"darkage:gneiss", "default:desert_stone"},
|
||||
{"default:desert_stone", "darkage:gneiss"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "darkage:rhyolitic_tuff",
|
||||
recipe = "darkage:rhyolitic_tuff_rubble",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "darkage:rhyolitic_tuff_bricks",
|
||||
recipe = {
|
||||
{"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
|
||||
{"darkage:rhyolitic_tuff", "darkage:rhyolitic_tuff"},
|
||||
}
|
||||
})
|
||||
|
42
mapgen.lua
@ -157,6 +157,10 @@ local function generate_claylike(data, varea, name, minp, maxp, seed, chance, mi
|
||||
end
|
||||
end
|
||||
|
||||
local mgparams = minetest.get_mapgen_params()
|
||||
local seed = mgparams.seed
|
||||
|
||||
|
||||
-- Generate desert stone with iron in derset.
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
@ -188,6 +192,44 @@ minetest.register_ore({
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "darkage:tuff",
|
||||
wherein = {"default:stone", "default:dirt", "default:gravel", "default:stone_with_coal"},
|
||||
column_height_max = 20,
|
||||
column_height_min = 15,
|
||||
y_min = -200,
|
||||
y_max = 200,
|
||||
noise_threshold = 0.5,
|
||||
noise_params = {
|
||||
offset = 0.35,
|
||||
scale = 0.19,
|
||||
seed = seed+12,
|
||||
spread = {x = 45, y = 45, z = 45},
|
||||
octaves = 1,
|
||||
persistence = 0.6
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "sheet",
|
||||
ore = "darkage:rhyolitic_tuff",
|
||||
wherein = {"default:stone", "default:dirt", "default:gravel", "default:stone_with_coal"},
|
||||
column_height_max = 20,
|
||||
column_height_min = 15,
|
||||
y_min = -2000,
|
||||
y_max = 200,
|
||||
noise_threshold = 0.53,
|
||||
noise_params = {
|
||||
offset = 0.35,
|
||||
scale = 0.2,
|
||||
seed = seed+13,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
octaves = 1,
|
||||
persistence = 0.6
|
||||
},
|
||||
})
|
||||
|
||||
-- Generate strati
|
||||
local function generate_strati(minp, maxp, seed)
|
||||
|
||||
|
111
nodes.lua
@ -233,3 +233,114 @@ minetest.register_node("darkage:marble_tile", {
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
--[[
|
||||
Tuff
|
||||
]]
|
||||
minetest.register_node("darkage:tuff", {
|
||||
description = "Tuff",
|
||||
tiles = {"darkage_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 = {'darkage:tuff'},
|
||||
rarity = 3,
|
||||
},
|
||||
{
|
||||
-- player will get rubble with 2/3 chance
|
||||
items = {'darkage:tuff_rubble'},
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:tuff_bricks", {
|
||||
description = "Tuff Bricks",
|
||||
tiles = {"darkage_tuff_bricks.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
-- abm to turn Tuff bricks to old Tuff bricks if water is nearby
|
||||
minetest.register_abm({
|
||||
nodenames = {"darkage:tuff_bricks"},
|
||||
neighbors = {"group:water"},
|
||||
interval = 16,
|
||||
chance = 200,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
minetest.set_node(pos, {name = "darkage:old_tuff_bricks"})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:tuff_rubble", {
|
||||
description = "Tuff Rubble",
|
||||
tiles = {"darkage_tuff_rubble.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
--[[
|
||||
Rhyolitic Tuff
|
||||
]]
|
||||
minetest.register_node("darkage:rhyolitic_tuff", {
|
||||
description = "Rhyolitic Tuff",
|
||||
tiles = {"darkage_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 = {'darkage:rhyolitic_tuff'},
|
||||
rarity = 3,
|
||||
},
|
||||
{
|
||||
-- player will get rubble with 2/3 chance
|
||||
items = {'darkage:rhyolitic_tuff_rubble'},
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_node("darkage:rhyolitic_tuff_bricks", {
|
||||
description = "Rhyolitic Tuff Bricks",
|
||||
tiles = {"darkage_rhyolitic_tuff_bricks.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:old_tuff_bricks", {
|
||||
description = "Old Tuff Bricks",
|
||||
tiles = {"darkage_old_tuff_bricks.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
minetest.register_node("darkage:rhyolitic_tuff_rubble", {
|
||||
description = "Rhyolitic Tuff Rubble",
|
||||
tiles = {"darkage_rhyolitic_tuff_rubble.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_gravel_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
BIN
other_textures/darkage_tuff.xcf
Normal file
@ -22,6 +22,11 @@ create_stair("darkage:basalt_cobble")
|
||||
create_stair("darkage:shale")
|
||||
create_stair("darkage:ors")
|
||||
create_stair("darkage:ors_cobble")
|
||||
create_stair("darkage:tuff_bricks")
|
||||
create_stair("darkage:old_tuff_bricks")
|
||||
create_stair("darkage:rhyolitic_tuff_bricks")
|
||||
create_stair("darkage:tuff")
|
||||
create_stair("darkage:rhyolitic_tuff")
|
||||
|
||||
|
||||
-- Straw
|
||||
|
BIN
textures/darkage_old_tuff_bricks.png
Normal file
After Width: | Height: | Size: 868 B |
BIN
textures/darkage_rhyolitic_tuff.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
textures/darkage_rhyolitic_tuff_bricks.png
Normal file
After Width: | Height: | Size: 948 B |
BIN
textures/darkage_rhyolitic_tuff_rubble.png
Normal file
After Width: | Height: | Size: 1012 B |
BIN
textures/darkage_tuff.png
Normal file
After Width: | Height: | Size: 726 B |
BIN
textures/darkage_tuff_bricks.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
textures/darkage_tuff_rubble.png
Normal file
After Width: | Height: | Size: 999 B |
@ -43,4 +43,7 @@ end
|
||||
register_wall("darkage:basalt_cobble")
|
||||
register_wall("darkage:ors_cobble")
|
||||
register_wall("darkage:stone_brick")
|
||||
register_wall("darkage:slate_cobble")
|
||||
register_wall("darkage:slate_cobble")
|
||||
register_wall("darkage:tuff_bricks")
|
||||
register_wall("darkage:old_tuff_bricks")
|
||||
register_wall("darkage:rhyolitic_tuff_bricks")
|
||||
|