Add graphite and sulfur as functional items

This commit is contained in:
KaadmY 2017-05-17 14:48:21 -07:00
parent ed9b0fcd92
commit a01717ba71
12 changed files with 84 additions and 14 deletions

View File

@ -84,7 +84,7 @@ crafting.register_craft(
{
output = "default:ingot_steel 2",
items = {
"default:lump_coal",
"default:sheet_graphite",
"default:ingot_wrought_iron 4",
}
})
@ -93,7 +93,7 @@ crafting.register_craft(
{
output = "default:ingot_carbon_steel 2",
items = {
"default:lump_coal 2",
"default:sheet_graphite 2",
"default:ingot_wrought_iron 7",
}
})
@ -460,8 +460,17 @@ crafting.register_craft(
{
output = "default:fertilizer",
items = {
"default:fern 3",
"default:fiber",
"default:fern 4",
"default:fiber 3",
}
})
crafting.register_craft(
{
output = "default:fertilizer 2",
items = {
"default:lump_sulfur 3",
"default:fiber 3",
}
})

View File

@ -34,6 +34,15 @@ minetest.register_craftitem(
inventory_image = "default_pearl.png",
})
-- Mineral misc.
minetest.register_craftitem(
"default:sheet_graphite",
{
description = "Graphite Sheet",
inventory_image = "default_sheet_graphite.png",
})
-- Mineral lumps
minetest.register_craftitem(
@ -57,13 +66,6 @@ minetest.register_craftitem(
inventory_image = "default_lump_iron.png",
})
minetest.register_craftitem(
"default:lump_graphite",
{
description = "Graphite Lump",
inventory_image = "default_lump_graphite.png",
})
minetest.register_craftitem(
"default:lump_tin",
{

View File

@ -632,7 +632,7 @@ minetest.register_decoration(
flags = "place_center_x, place_center_z",
replacements = {["default:leaves"] = "default:dry_leaves"},
schematic = minetest.get_modpath("default") .. "/schematics/default_bush.mts",
y_min = -32000,
y_min = 0,
y_max = 32000,
rotation = "0",
})
@ -663,7 +663,7 @@ minetest.register_decoration(
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("default")
.. "/schematics/default_small_rock.mts",
y_min = -32000,
y_min = 0,
y_max = 32000,
rotation = "random",
})
@ -678,11 +678,25 @@ minetest.register_decoration(
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("default")
.. "/schematics/default_large_rock.mts",
y_min = -32000,
y_min = 0,
y_max = 32000,
rotation = "random",
})
-- Sulfur decorations
minetest.register_decoration(
{
deco_type = "simple",
place_on = "default:dry_dirt",
sidelen = 16,
fill_ratio = 0.005,
biomes = {"Wasteland"},
decoration = {"default:stone_with_sulfur"},
y_min = 2,
y_max = 14,
})
-- Clam decorations
minetest.register_decoration(
@ -697,6 +711,31 @@ minetest.register_decoration(
y_max = 1,
})
-- Graphite ore
minetest.register_ore( -- Common above sea level mainly
{
ore_type = "scatter",
ore = "default:stone_with_graphite",
wherein = "default:stone",
clust_scarcity = 9*9*9,
clust_num_ores = 8,
clust_size = 8,
y_min = -8,
y_max = 32,
})
minetest.register_ore( -- Slight scattering deeper down
{
ore_type = "scatter",
ore = "default:stone_with_graphite",
wherein = "default:stone",
clust_scarcity = 13*13*13,
clust_num_ores = 6,
clust_size = 8,
y_min = -31000,
y_max = -32,
})
-- Coal ore

View File

@ -5,6 +5,26 @@
-- Ores
minetest.register_node(
"default:stone_with_sulfur",
{
description = "Stone with Sulfur",
tiles = {"default_stone.png^default_mineral_sulfur.png"},
groups = {cracky = 2, stone = 1, not_in_craftingguide = 1},
drop = "default:lump_sulfur",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node(
"default:stone_with_graphite",
{
description = "Stone with Graphite",
tiles = {"default_stone.png^default_mineral_graphite.png"},
groups = {cracky = 2, stone = 1, not_in_craftingguide = 1},
drop = "default:sheet_graphite",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node(
"default:stone_with_coal",
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.