initial commit

This commit is contained in:
juraj
2016-02-20 02:56:14 +01:00
commit 87aa4d12f2
101 changed files with 5638 additions and 0 deletions

3
sealamps/depends.txt Normal file
View File

@ -0,0 +1,3 @@
default
bucket
noairblocks

74
sealamps/init.lua Normal file
View File

@ -0,0 +1,74 @@
-- 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'},
},
})

27
sealamps/readme.txt Normal file
View File

@ -0,0 +1,27 @@
Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
http://creativecommons.org/licenses/by-sa/3.0/
Sealamps: almost completely based on the torch code from minetest/games/minetest_game/mods/default/nodes.lua
Sounds:
sounds = default.node_sound_defaults()
.png's:
Sealamps torch .png's are (based (only the colors are slightly adjusted) on) VanessaE's animated torches (WTFPL):
- default_torch_animated.png
- default_torch_on_ceiling_animated.png
- default_torch_on_floor_animated.png
- default_torch_on_floor.png
Code:
minetest/games/minetest_game/mods/default/nodes.lua --> torch
Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB