Version 0.41.3
[MineClone/MineClone2/MineClone2-Fixes.git] / mods / ITEMS / mcl_ocean / init.lua
blob82b8126a4aaa8428d63060b5673311ddc61da321
1 -- Nodes
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,
8 stack_max = 64,
9 -- Real light level: 15 (but Minetest caps at 14)
10 light_source = 14,
11 drop = {
12 max_items = 1,
13 items = {
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,
22 _mcl_hardness = 0.3,
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.",
28 stack_max = 64,
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,
35 _mcl_hardness = 1.5,
38 minetest.register_node("mcl_ocean:prismarine_brick", {
39 description = "Prismarine Bricks",
40 _doc_items_longdesc = doc.sub.items.temp.build,
41 stack_max = 64,
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,
47 _mcl_hardness = 1.5,
50 minetest.register_node("mcl_ocean:prismarine_dark", {
51 description = "Dark Prismarine",
52 _doc_items_longdesc = doc.sub.items.temp.build,
53 stack_max = 64,
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,
59 _mcl_hardness = 1.5,
62 -- Craftitems
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",
68 stack_max = 64,
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",
76 stack_max = 64,
77 groups = { craftitem = 1 },
80 -- Crafting
82 minetest.register_craft({
83 output = 'mcl_ocean:sea_lantern',
84 recipe = {
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',
93 recipe = {
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',
101 recipe = {
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',
110 recipe = {
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'},