1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Add obsidian

This commit is contained in:
jojoa1997 2013-03-10 17:01:58 -04:00 committed by PilzAdam
parent e43573b46b
commit e82c122822
5 changed files with 53 additions and 2 deletions

View File

@ -93,6 +93,11 @@ PilzAdam (WTFPL):
default_jungleleaves.png default_jungleleaves.png
default_junglesapling.png default_junglesapling.png
default_junglewood.png default_junglewood.png
default_obsidian_glass.png
default_obsidian_shard.png
jojoa1997 (WTFPL):
default_obsidian.png
Glass breaking sounds (CC BY 3.0): Glass breaking sounds (CC BY 3.0):
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/ 1: http://www.freesound.org/people/cmusounddesign/sounds/71947/

View File

@ -516,6 +516,21 @@ minetest.register_craft({
} }
}) })
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) -- Crafting (tool repair)
-- --
@ -534,6 +549,12 @@ minetest.register_craft({
recipe = "group:sand", recipe = "group:sand",
}) })
minetest.register_craft({
type = "cooking",
output = "default:obsidian_glass",
recipe = "default:obsidian_shard",
})
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "default:stone", output = "default:stone",
@ -1641,6 +1662,26 @@ minetest.register_node("default:mese", {
}) })
minetest.register_alias("default:mese_block", "default:mese") 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", { minetest.register_node("default:nyancat", {
description = "Nyan Cat", description = "Nyan Cat",
tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
@ -1769,6 +1810,11 @@ minetest.register_craftitem("default:scorched_stuff", {
inventory_image = "default_scorched_stuff.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 -- Support old code
function default.spawn_falling_node(p, nodename) function default.spawn_falling_node(p, nodename)
spawn_falling_node(p, nodename) spawn_falling_node(p, nodename)
@ -1814,11 +1860,11 @@ minetest.register_on_punchnode(on_punchnode)
-- --
default.cool_lava_source = function(pos) default.cool_lava_source = function(pos)
minetest.env:set_node(pos, {name="default:stone"}) minetest.env:set_node(pos, {name="default:obsidian"})
end end
default.cool_lava_flowing = function(pos) default.cool_lava_flowing = function(pos)
minetest.env:set_node(pos, {name="default:cobble"}) minetest.env:set_node(pos, {name="default:stone"})
end end
minetest.register_abm({ minetest.register_abm({

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B