Add light sticks, bring back crafting.

Crystal
Stick
Stick
This commit is contained in:
HeroOfTheWinds 2014-05-15 11:37:03 -10:00
parent 61cb23d95f
commit 484c8452b4
7 changed files with 780 additions and 0 deletions

View file

@ -296,6 +296,34 @@ minetest.register_node("moontest:light", {
drop = "moontest:light_crystal",
})
minetest.register_node("moontest:light_stick", {
description = "Torch",
drawtype = "torchlike",
tiles = {"moontest_light_stick_on_floor.png", "moontest_light_stick_on_ceiling.png", "moontest_light_stick.png"},
--tiles = {
--{name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
--{name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
--{name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
--},
inventory_image = "moontest_light_stick_on_floor.png",
wield_image = "moontest_light_stick_on_floor.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
light_source = LIGHT_MAX-2,
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},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
})
-- Items