Add two trophies.
This commit is contained in:
parent
f3393d36fc
commit
ac2096246e
4 changed files with 33 additions and 2 deletions
35
nodes.lua
35
nodes.lua
|
@ -410,8 +410,8 @@ minetest.register_craftitem("fun_caves:crucible", {
|
||||||
description = "Crucible",
|
description = "Crucible",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"crucible.png"},
|
tiles = {"fun_caves_crucible.png"},
|
||||||
inventory_image = "crucible.png",
|
inventory_image = "fun_caves_crucible.png",
|
||||||
groups = {dig_immediate = 3},
|
groups = {dig_immediate = 3},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -441,6 +441,14 @@ local treasures = {
|
||||||
{'fun_caves:perfect_aquamarine', 'fun_caves:perfect_garnet', 'fun_caves:perfect_zoisite', 'fun_caves:coral_gem', 'default:obsidian'},
|
{'fun_caves:perfect_aquamarine', 'fun_caves:perfect_garnet', 'fun_caves:perfect_zoisite', 'fun_caves:coral_gem', 'default:obsidian'},
|
||||||
}
|
}
|
||||||
local filler = {'default:apple 10', 'default:coal_lump 10', 'default:wood 10'}
|
local filler = {'default:apple 10', 'default:coal_lump 10', 'default:wood 10'}
|
||||||
|
local trophies = {
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
{'fun_caves:unobtainium', 'fun_caves:philosophers_stone'},
|
||||||
|
}
|
||||||
local chest_formspec =
|
local chest_formspec =
|
||||||
"size[8,9]" ..
|
"size[8,9]" ..
|
||||||
default.gui_bg ..
|
default.gui_bg ..
|
||||||
|
@ -468,6 +476,29 @@ newnode.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
for i = 1, math.random(4) do
|
for i = 1, math.random(4) do
|
||||||
inv:add_item('main', filler[math.random(#filler)])
|
inv:add_item('main', filler[math.random(#filler)])
|
||||||
end
|
end
|
||||||
|
if math.random(10) == 1 then
|
||||||
|
inv:add_item('main', trophies[level][math.random(#trophies[level])])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.register_node("fun_caves:coffer", newnode)
|
minetest.register_node("fun_caves:coffer", newnode)
|
||||||
|
|
||||||
|
minetest.register_craftitem("fun_caves:unobtainium", {
|
||||||
|
description = "Unobtainium",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
tiles = {"fun_caves_unobtainium.png"},
|
||||||
|
inventory_image = "fun_caves_unobtainium.png",
|
||||||
|
groups = {dig_immediate = 3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("fun_caves:philosophers_stone", {
|
||||||
|
description = "Philosopher's Stone",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
tiles = {"fun_caves_phil_stone.png"},
|
||||||
|
inventory_image = "fun_caves_phil_stone.png",
|
||||||
|
groups = {dig_immediate = 3},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 984 B |
BIN
textures/fun_caves_phil_stone.png
Normal file
BIN
textures/fun_caves_phil_stone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
textures/fun_caves_unobtainium.png
Normal file
BIN
textures/fun_caves_unobtainium.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue