3 minetest
.register_node("mcl_ocean:sea_lantern", {
4 description
= "Sea Lantern",
5 _doc_items_longdesc
= "Sea lanterns are decorative light sources which look great underwater but can be placed anywhere.",
6 paramtype2
= "facedir",
7 is_ground_content
= false,
9 -- Real light level: 15 (but Minetest caps at 14)
14 { items
= {'mcl_ocean:prismarine_crystals 3'}, rarity
= 2 },
15 { items
= {'mcl_ocean:prismarine_crystals 2'}}
18 tiles
= {{name
="mcl_ocean_sea_lantern.png", animation
={type="vertical_frames", aspect_w
=32, aspect_h
=32, length
=1.25}}},
19 groups
= {handy
=1, building_block
=1, material_glass
=1},
20 sounds
= mcl_sounds
.node_sound_glass_defaults(),
21 _mcl_blast_resistance
= 1.5,
25 minetest
.register_node("mcl_ocean:prismarine", {
26 description
= "Prismarine",
27 _doc_items_longdesc
= "Prismarine is used as a building block. It slowly changes its color.",
29 is_ground_content
= false,
30 -- Texture should have 22 frames for smooth transitions.
31 tiles
= {{name
="mcl_ocean_prismarine_anim.png", animation
={type="vertical_frames", aspect_w
=32, aspect_h
=32, length
=45.0}}},
32 groups
= {pickaxey
=1, building_block
=1, material_stone
=1},
33 sounds
= mcl_sounds
.node_sound_stone_defaults(),
34 _mcl_blast_resistance
= 30,
38 minetest
.register_node("mcl_ocean:prismarine_brick", {
39 description
= "Prismarine Bricks",
40 _doc_items_longdesc
= doc
.sub
.items
.temp
.build
,
42 is_ground_content
= false,
43 tiles
= {"mcl_ocean_prismarine_bricks.png"},
44 groups
= {pickaxey
=1, building_block
=1, material_stone
=1},
45 sounds
= mcl_sounds
.node_sound_stone_defaults(),
46 _mcl_blast_resistance
= 30,
50 minetest
.register_node("mcl_ocean:prismarine_dark", {
51 description
= "Dark Prismarine",
52 _doc_items_longdesc
= doc
.sub
.items
.temp
.build
,
54 is_ground_content
= false,
55 tiles
= {"mcl_ocean_prismarine_dark.png"},
56 groups
= {pickaxey
=1, building_block
=1, material_stone
=1},
57 sounds
= mcl_sounds
.node_sound_stone_defaults(),
58 _mcl_blast_resistance
= 30,
64 minetest
.register_craftitem("mcl_ocean:prismarine_crystals", {
65 description
= "Prismarine Crystals",
66 _doc_items_longdesc
= doc
.sub
.items
.temp
.craftitem
,
67 inventory_image
= "mcl_ocean_prismarine_crystals.png",
69 groups
= { craftitem
= 1 },
72 minetest
.register_craftitem("mcl_ocean:prismarine_shard", {
73 description
= "Prismarine Shard",
74 _doc_items_longdesc
= doc
.sub
.items
.temp
.craftitem
,
75 inventory_image
= "mcl_ocean_prismarine_shard.png",
77 groups
= { craftitem
= 1 },
82 minetest
.register_craft({
83 output
= 'mcl_ocean:sea_lantern',
85 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_shard'},
86 {'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_crystals'},
87 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_shard'},
91 minetest
.register_craft({
92 output
= 'mcl_ocean:prismarine',
94 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
95 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
99 minetest
.register_craft({
100 output
= 'mcl_ocean:prismarine_brick',
102 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
103 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
104 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
108 minetest
.register_craft({
109 output
= 'mcl_ocean:prismarine_dark',
111 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
112 {'mcl_ocean:prismarine_shard', 'mcl_dye:black', 'mcl_ocean:prismarine_shard'},
113 {'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},