craftable_lava/init.lua
Darin fa7d0e3113
Added recipe for lava source
Lava buckets get stuck in many machines that can use lava as a power source. Lava source blocks don't have this issue.
2023-07-29 14:56:55 +00:00

43 lines
1.3 KiB
Lua

print("Craftable Lava is Enabled")
minetest.register_node("craftable_lava:hot_stone", {
description = "Hot Stone",
tiles = {"default_stone.png^craftable_lava_hot_stone.png"},
--[[tiles = {
{
name = "craftable_lava_hot_stone_animation.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1.5
},
},
},]]--
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
light_source = 4,
})
minetest.register_craft({
type = "cooking",
output = "craftable_lava:hot_stone",
recipe = "default:stone",
cooktime = 7,
})
minetest.register_craft({
output = "bucket:bucket_lava",
recipe = {{"craftable_lava:hot_stone", "craftable_lava:hot_stone", "craftable_lava:hot_stone"},
{"craftable_lava:hot_stone", "bucket:bucket_empty", "craftable_lava:hot_stone"},
{"craftable_lava:hot_stone", "craftable_lava:hot_stone", "craftable_lava:hot_stone"}},
})
minetest.register_craft({
output = "default:lava_source",
recipe = {{"craftable_lava:hot_stone", "craftable_lava:hot_stone", "craftable_lava:hot_stone"},
{"craftable_lava:hot_stone", "craftable_lava:hot_stone", "craftable_lava:hot_stone"},
{"craftable_lava:hot_stone", "craftable_lava:hot_stone", "craftable_lava:hot_stone"}},
})