added coalblock/dust/lump + crafts + new torch craft + glowing coalblock for furnace

This commit is contained in:
cale 2016-03-20 10:22:11 +01:00
parent f1636f8e77
commit 61c0b5e1ea
9 changed files with 57 additions and 2 deletions

View File

@ -164,6 +164,41 @@ minetest.register_craft({
}
})
-- coal
minetest.register_craft({
output = "default:coal_dust 3",
recipe = {
{"default:stone_with_coal"},
}
})
minetest.register_craft({
output = "default:coal_lump",
recipe = {
{"default:coal_dust", "default:coal_dust", "default:coal_dust"},
}
})
minetest.register_craft({
output = "default:coalblock",
recipe = {
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
}
})
minetest.register_craft({
output = "default:coalblock_glowing",
recipe = {
{"default:coalblock", "torch:torch"},
}
})
--workbench
minetest.register_craft({

View File

@ -23,6 +23,11 @@ minetest.register_craftitem("default:coal_lump", {
inventory_image = "default_coal_lump.png",
})
minetest.register_craftitem("default:coal_dust", {
description = "Coal Dust",
inventory_image = "default_coal_dust.png",
})
minetest.register_craftitem("default:iron_lump", {
description = "Iron Lump",
inventory_image = "default_iron_lump.png",

View File

@ -838,6 +838,21 @@ minetest.register_node("default:stone_with_ruby", {
drop = "default:ruby",
})
-- coalblock
minetest.register_node("default:coalblock", {
description = "Coalblock",
tiles = {"default_coalblock.png"},
groups = {cracky = 2},
})
minetest.register_node("default:coalblock_glowing", {
description = "Coalblock (GLOWING)",
tiles = {"default_coalblock_glowing.png"},
light_source = 7,
groups = {cracky = 2},
})
--quartz
minetest.register_node("default:quartz", {

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

View File

@ -30,7 +30,7 @@ minetest.register_abm({
action = function(pos, node, active_object_count, active_object_count_wider)
local mymeta = minetest.get_meta(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "lava:lava_source" then
if minetest.get_node(pos).name == "lava:lava_source" or minetest.get_node(pos).name == "default:coalblock_glowing" then
local dir = vector.multiply(minetest.facedir_to_dir(minetest.get_node({x = pos.x, y= pos.y+1, z=pos.z}).param2), -1)
local patternpos = vector.add(pos, dir)

View File

@ -56,7 +56,7 @@ minetest.register_abm({
})
minetest.register_craft({
output = "torch:torch",
output = "torch:torch 4",
recipe = {
{"", "default:coal_lump", ""},
{"", "default:string_strong", ""},