}
})
+minetest.register_craft({
+ output = 'default:obsidian_shard 9',
+ recipe = {
+ {'default:obsidian'}
+ }
+})
+
+minetest.register_craft({
+ output = 'default:obsidian',
+ recipe = {
+ {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
+ {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
+ {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
+ }
+})
--
-- Crafting (tool repair)
--
recipe = "group:sand",
})
+minetest.register_craft({
+ type = "cooking",
+ output = "default:obsidian_glass",
+ recipe = "default:obsidian_shard",
+})
+
minetest.register_craft({
type = "cooking",
output = "default:stone",
})
minetest.register_alias("default:mese_block", "default:mese")
+
+minetest.register_node("default:obsidian_glass", {
+ description = "Obsidian Glass",
+ drawtype = "glasslike",
+ tiles = {"default_obsidian_glass.png"},
+ is_ground_content = true,
+ paramtype = "light",
+ sunlight_propagates = true,
+ sounds = default.node_sound_glass_defaults(),
+ groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
+})
+
+minetest.register_node("default:obsidian", {
+ description = "Obsidian",
+ tiles = {"default_obsidian.png"},
+ is_ground_content = true,
+ sounds = default.node_sound_stone_defaults(),
+ groups = {cracky=1,level=2},
+})
+
minetest.register_node("default:nyancat", {
description = "Nyan Cat",
tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
inventory_image = "default_scorched_stuff.png",
})
+minetest.register_craftitem("default:obsidian_shard", {
+ description = "Obsidian Shard",
+ inventory_image = "default_obsidian_shard.png",
+})
+
-- Support old code
function default.spawn_falling_node(p, nodename)
spawn_falling_node(p, nodename)
--
default.cool_lava_source = function(pos)
- minetest.env:set_node(pos, {name="default:stone"})
+ minetest.env:set_node(pos, {name="default:obsidian"})
end
default.cool_lava_flowing = function(pos)
- minetest.env:set_node(pos, {name="default:cobble"})
+ minetest.env:set_node(pos, {name="default:stone"})
end
minetest.register_abm({