1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00
server-nalc/mods/sea/sealamps/init.lua
Ombridride 72ad0dc7b7 - Delete useless files/mods
- Add builtin_falling (by Davedevils) for an amazing bugfix
- Tweak node.lua from the subgame MFF and « sea » mod for
builtin_falling
- Remove news.lua from _misc
- Remove _misc_me (empty now)
- Add a new mod named « news » and tweak this mod, it works now, add
texture for the news (Thank you Davedevils)
2014-11-03 01:46:14 +01:00

74 lines
2.2 KiB
Lua

-- NODES
minetest.register_node("sealamps:torch", {
description = "Sea torch",
drawtype = "torchlike",
tiles = {
{name="sealamps_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
{name="sealamps_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
{name="sealamps_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
},
inventory_image = "sealamps_torch_on_floor.png",
wield_image = "sealamps_torch_on_floor.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = LIGHT_MAX-1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
},
groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1,hot=2,sea=1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
})
minetest.register_node("sealamps:lantern", {
description = "Sea lantern",
drawtype = "torchlike",
tiles = {
{name="sealamps_lantern_on_floor.png"},
{name="sealamps_lantern_on_ceiling.png"},
{name="sealamps_lantern.png"}
},
inventory_image = "sealamps_lantern_on_floor.png",
wield_image = "sealamps_lantern_on_floor.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = LIGHT_MAX-1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
},
groups = {choppy=2,dig_immediate=3,attached_node=1,hot=2,sea=1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
})
-- CRAFTING
minetest.register_craft({
output = 'sealamps:torch 8',
recipe = {
{'bucket:bucket_lava'},
{'default:coal_lump'},
{'default:stick'}
},
replacements = { {'bucket:bucket_lava', 'bucket:bucket_empty'}, },
})
minetest.register_craft({
output = 'sealamps:lantern 4',
recipe = {
{'default:steel_ingot', 'default:bronze_ingot', 'default:glass'},
},
})