added coalblock/dust/lump + crafts + new torch craft + glowing coalblock for furnace
This commit is contained in:
parent
f1636f8e77
commit
61c0b5e1ea
@ -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({
|
||||
|
@ -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",
|
||||
|
@ -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", {
|
||||
|
BIN
mods/default/textures/default_coal_dust.png
Normal file
BIN
mods/default/textures/default_coal_dust.png
Normal file
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 |
BIN
mods/default/textures/default_coalblock.png
Normal file
BIN
mods/default/textures/default_coalblock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 281 B |
BIN
mods/default/textures/default_coalblock_glowing.png
Normal file
BIN
mods/default/textures/default_coalblock_glowing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 331 B |
@ -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)
|
||||
|
||||
|
@ -56,7 +56,7 @@ minetest.register_abm({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "torch:torch",
|
||||
output = "torch:torch 4",
|
||||
recipe = {
|
||||
{"", "default:coal_lump", ""},
|
||||
{"", "default:string_strong", ""},
|
||||
|
Loading…
x
Reference in New Issue
Block a user