Add lzr_treasure, add chests
|
@ -10,11 +10,11 @@ External mods used:
|
|||
---
|
||||
|
||||
Textures:
|
||||
- Water, wood, tree, stone, tools, hand, gold block, ship lightbox, player textures, crates, seaweed, purple coral, crab grass, fire come from “PixelBOX” texture pack by jp (CC0)
|
||||
- Water, wood, tree, stone, tools, hand, gold block, wooden chest, locked wooden chest, ship lightbox, player textures, crates, seaweed, purple coral, crab grass, fire come from “PixelBOX” texture pack by jp (CC0)
|
||||
- Textures in `lzr_decor` mod made by jp (CC0)
|
||||
- Barricade made by jp (CC0)
|
||||
- Barricade, dark chest made by jp (CC0)
|
||||
- Crosshair, wieldhand, `smoke_puff.png`: trivial textures by Wuzzy (CC0)
|
||||
- Emitter, detector textures: Derivate works of xdecor textures by jp (CC0)
|
||||
- Emitter, detector, dark locked chest textures: Derivate works of xdecor textures by jp (CC0)
|
||||
- Mirror textures: by Wuzzy (CC0)
|
||||
- Screwdriver texture: by 12Me21 (CC0)
|
||||
- Hotbar textures are a recolored version from from the hotbar textures of the Isabella Texture Pack by Bonemouse (http://www.minecraftforum.net/topic/242175-Isabella/) (CC BY 3.0)
|
||||
|
|
|
@ -375,10 +375,4 @@ minetest.register_node("lzr_decor:ocean_lantern", {
|
|||
sounds = lzr_sounds.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lzr_decor:gold_block", {
|
||||
description = S("Gold Block"),
|
||||
tiles = {"default_gold_block.png"},
|
||||
groups = { breakable = 1 },
|
||||
sounds = lzr_sounds.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
local S = minetest.get_translator("lzr_treasure")
|
||||
|
||||
-- Register chests --
|
||||
|
||||
local register_chest = function(id, def)
|
||||
minetest.register_node("lzr_treasure:"..id, {
|
||||
description = def.description,
|
||||
paramtype2 = "facedir",
|
||||
tiles = def.tiles,
|
||||
groups = { breakable = 1, chest = 1 },
|
||||
sounds = def.sounds,
|
||||
on_rotate = screwdriver.rotate_simple,
|
||||
})
|
||||
end
|
||||
|
||||
register_chest("chest_dark", {
|
||||
description = S("Dark Chest"),
|
||||
tiles = {
|
||||
"xdecor_enderchest_top.png", "xdecor_enderchest_top.png",
|
||||
"xdecor_enderchest_side.png", "xdecor_enderchest_side.png",
|
||||
"xdecor_enderchest_side.png", "xdecor_enderchest_front.png"
|
||||
},
|
||||
sounds = lzr_sounds.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
register_chest("chest_dark_locked", {
|
||||
description = S("Locked Dark Chest"),
|
||||
tiles = {
|
||||
"xdecor_enderchest_top.png", "xdecor_enderchest_top.png",
|
||||
"xdecor_enderchest_side.png", "xdecor_enderchest_side.png",
|
||||
"xdecor_enderchest_side.png", "lzr_treasure_enderchest_lock.png"
|
||||
},
|
||||
sounds = lzr_sounds.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
register_chest("chest_wood", {
|
||||
description = S("Wooden Chest"),
|
||||
tiles = {
|
||||
"default_chest_top.png", "default_chest_top.png",
|
||||
"default_chest_side.png", "default_chest_side.png",
|
||||
"default_chest_side.png", "default_chest_front.png"
|
||||
},
|
||||
sounds = lzr_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
register_chest("chest_wood_locked", {
|
||||
description = S("Locked Wooden Chest"),
|
||||
tiles = {
|
||||
"default_chest_top.png", "default_chest_top.png",
|
||||
"default_chest_side.png", "default_chest_side.png",
|
||||
"default_chest_side.png", "default_chest_lock.png"
|
||||
},
|
||||
sounds = lzr_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- Register treasure blocks --
|
||||
|
||||
minetest.register_node("lzr_treasure:gold_block", {
|
||||
description = S("Gold Block"),
|
||||
tiles = {"default_gold_block.png"},
|
||||
groups = { breakable = 1 },
|
||||
sounds = lzr_sounds.node_sound_metal_defaults(),
|
||||
})
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
name = lzr_treasure
|
||||
depends = lzr_sounds, screwdriver2
|
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.7 KiB |