mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
adds obsidian
This commit is contained in:
parent
17aa43a064
commit
bf1a806b42
6 changed files with 65 additions and 11 deletions
|
@ -509,6 +509,14 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'default:obsidian_glass',
|
||||||
|
recipe = {
|
||||||
|
{'', '', ''},
|
||||||
|
{'default:obsidian_shard', 'default:obsidian_shard', ''},
|
||||||
|
{'default:obsidian_shard', 'default:obsidian_shard', ''},
|
||||||
|
}
|
||||||
|
})
|
||||||
--
|
--
|
||||||
-- Crafting (tool repair)
|
-- Crafting (tool repair)
|
||||||
--
|
--
|
||||||
|
@ -527,6 +535,12 @@ minetest.register_craft({
|
||||||
recipe = "group:sand",
|
recipe = "group:sand",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "default:obsidian_rock",
|
||||||
|
recipe = "default:obsidian_shard",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "default:stone",
|
output = "default:stone",
|
||||||
|
@ -1040,6 +1054,24 @@ minetest.register_node("default:cloud", {
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:obsidian_glass", {
|
||||||
|
description = "Obsidian Glass",
|
||||||
|
tiles = {"default_obsidian_glass.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = true,
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:obsidian_rock", {
|
||||||
|
description = "Obsidian Rock",
|
||||||
|
tiles = {"default_obsidian_rock.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
sounds = default.node_sound_glass_defaults(),
|
||||||
|
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("default:water_flowing", {
|
minetest.register_node("default:water_flowing", {
|
||||||
description = "Flowing Water",
|
description = "Flowing Water",
|
||||||
inventory_image = minetest.inventorycube("default_water.png"),
|
inventory_image = minetest.inventorycube("default_water.png"),
|
||||||
|
@ -1696,6 +1728,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)
|
||||||
|
@ -1712,17 +1749,6 @@ function default.register_falling_node(nodename, texture)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--ABMs
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = {"default:lava_flowing"},
|
|
||||||
neighbors = {"default:water_flowing"},
|
|
||||||
interval = 2,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos)
|
|
||||||
miinetest.env:add_node(pos, {name = "default:stone"})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Global callbacks
|
-- Global callbacks
|
||||||
--
|
--
|
||||||
|
@ -1747,4 +1773,32 @@ function on_punchnode(p, node)
|
||||||
end
|
end
|
||||||
minetest.register_on_punchnode(on_punchnode)
|
minetest.register_on_punchnode(on_punchnode)
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Lavacooling
|
||||||
|
--
|
||||||
|
|
||||||
|
default.cool_lava_source = function(pos)
|
||||||
|
minetest.env:set_node(pos, {name="default:obsidian_glass"})
|
||||||
|
end
|
||||||
|
|
||||||
|
default.cool_lava_flowing = function(pos)
|
||||||
|
minetest.env:set_node(pos, {name="default:stone"})
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_abm({
|
||||||
|
nodenames = {"default:lava_flowing"},
|
||||||
|
neighbors = {"group:water"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = default.cool_lava_flowing,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_abm({
|
||||||
|
nodenames = {"default:lava_source"},
|
||||||
|
neighbors = {"group:water"},
|
||||||
|
interval = 1,
|
||||||
|
chance = 1,
|
||||||
|
action = default.cool_lava_source,
|
||||||
|
})
|
||||||
|
|
||||||
-- END
|
-- END
|
||||||
|
|
BIN
mods/default/models/Thumbs.db
Normal file
BIN
mods/default/models/Thumbs.db
Normal file
Binary file not shown.
BIN
mods/default/textures/Thumbs.db
Normal file
BIN
mods/default/textures/Thumbs.db
Normal file
Binary file not shown.
BIN
mods/default/textures/default_obsidian_glass.png
Normal file
BIN
mods/default/textures/default_obsidian_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 322 B |
BIN
mods/default/textures/default_obsidian_rock.png
Normal file
BIN
mods/default/textures/default_obsidian_rock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 222 B |
BIN
mods/default/textures/default_obsidian_shard.png
Normal file
BIN
mods/default/textures/default_obsidian_shard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 351 B |
Loading…
Add table
Reference in a new issue