fix chests and loot
This commit is contained in:
parent
e7a7499377
commit
5f01f30474
@ -41,4 +41,5 @@
|
||||
## Alpha v0.3-dev
|
||||
|
||||
- Add basic Lightning -Xeno333
|
||||
- Fix fire drop
|
||||
- Fix fire drop
|
||||
- Added unlocking chests so that they don't have problems anymore
|
@ -86,7 +86,7 @@ local function dec(pr, x, y, z, data, area, place_list, tempv, cave)
|
||||
if tempv > 0 and not (tempv > 20) then
|
||||
-- Grass
|
||||
if c <= 20 then
|
||||
data[area:index(x, y+1, z)] = grass_tall
|
||||
data[area:index(x, y+1, z)] = chest
|
||||
elseif c < 100 then
|
||||
data[area:index(x, y+1, z)] = grass_short
|
||||
|
||||
|
@ -449,6 +449,7 @@ core.register_node("1042_nodes:chest", {
|
||||
"listring[context;main]"
|
||||
)
|
||||
|
||||
meta:set_string("init", "true")
|
||||
end,
|
||||
|
||||
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
|
||||
@ -475,7 +476,8 @@ core.register_node("1042_nodes:chest", {
|
||||
end
|
||||
end
|
||||
|
||||
-- Add loot
|
||||
core.chat_send_player(player:get_player_name(), core.colorize("#00ff00", "Chest unlocked!"))
|
||||
return
|
||||
end
|
||||
|
||||
core.show_formspec(player:get_player_name(), "chest_inv", core.get_meta(pos):get_string("formspec"))
|
||||
|
@ -44,7 +44,7 @@ core.register_node("1042_tools:sword",{
|
||||
|
||||
groups = {weapon = 1, falling_node = 1, breakable_by_hand = 2},
|
||||
})
|
||||
core_1042.register_loot({name = "1042_1042_toolsnodes:sword"})
|
||||
core_1042.register_loot({name = "1042_tools:sword"})
|
||||
|
||||
core.register_craft({
|
||||
output = "1042_tools:sword",
|
||||
@ -92,7 +92,7 @@ core.register_node("1042_tools:pick",{
|
||||
|
||||
groups = {weapon = 1, falling_node = 1, breakable_by_hand = 2},
|
||||
})
|
||||
core_1042.register_loot({name = "1042_1042_toolsnodes:pick"})
|
||||
core_1042.register_loot({name = "1042_tools:pick"})
|
||||
|
||||
core.register_craft({
|
||||
output = "1042_tools:pick",
|
||||
|
Loading…
x
Reference in New Issue
Block a user