2017-02-16 19:35:50 +00:00
|
|
|
-- Nodes
|
|
|
|
|
2019-03-07 23:22:28 +00:00
|
|
|
local S = minetest.get_translator("mcl_ocean")
|
|
|
|
|
2017-02-16 19:35:50 +00:00
|
|
|
minetest.register_node("mcl_ocean:sea_lantern", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Sea Lantern"),
|
|
|
|
_doc_items_longdesc = S("Sea lanterns are decorative light sources which look great underwater but can be placed anywhere."),
|
2017-02-16 19:35:50 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
stack_max = 64,
|
2019-12-14 17:57:17 +00:00
|
|
|
light_source = minetest.LIGHT_MAX,
|
2017-02-16 19:35:50 +00:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{ items = {'mcl_ocean:prismarine_crystals 3'}, rarity = 2 },
|
|
|
|
{ items = {'mcl_ocean:prismarine_crystals 2'}}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
tiles = {{name="mcl_ocean_sea_lantern.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.25}}},
|
2017-03-11 04:34:58 +00:00
|
|
|
groups = {handy=1, building_block=1, material_glass=1},
|
2017-02-16 19:35:50 +00:00
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
2017-02-22 15:03:59 +00:00
|
|
|
_mcl_blast_resistance = 1.5,
|
2017-02-27 00:45:25 +00:00
|
|
|
_mcl_hardness = 0.3,
|
2017-02-16 19:35:50 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Prismarine"),
|
|
|
|
_doc_items_longdesc = S("Prismarine is used as a building block. It slowly changes its color."),
|
2017-02-16 19:35:50 +00:00
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
2017-07-21 10:44:51 +00:00
|
|
|
-- Texture should have 22 frames for smooth transitions.
|
2017-02-16 19:35:50 +00:00
|
|
|
tiles = {{name="mcl_ocean_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45.0}}},
|
2017-03-11 04:34:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1},
|
2017-02-16 19:35:50 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2017-02-22 15:03:59 +00:00
|
|
|
_mcl_blast_resistance = 30,
|
2017-02-27 00:45:25 +00:00
|
|
|
_mcl_hardness = 1.5,
|
2017-02-16 19:35:50 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine_brick", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Prismarine Bricks"),
|
2017-03-18 16:52:41 +00:00
|
|
|
_doc_items_longdesc = doc.sub.items.temp.build,
|
2017-02-16 19:35:50 +00:00
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
|
|
|
tiles = {"mcl_ocean_prismarine_bricks.png"},
|
2017-03-11 04:34:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1},
|
2017-02-16 19:35:50 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2017-02-22 15:03:59 +00:00
|
|
|
_mcl_blast_resistance = 30,
|
2017-02-27 00:45:25 +00:00
|
|
|
_mcl_hardness = 1.5,
|
2017-02-16 19:35:50 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine_dark", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Dark Prismarine"),
|
2017-03-18 16:52:41 +00:00
|
|
|
_doc_items_longdesc = doc.sub.items.temp.build,
|
2017-02-16 19:35:50 +00:00
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
|
|
|
tiles = {"mcl_ocean_prismarine_dark.png"},
|
2017-03-11 04:34:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1},
|
2017-02-16 19:35:50 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2017-02-22 15:03:59 +00:00
|
|
|
_mcl_blast_resistance = 30,
|
2017-02-27 00:45:25 +00:00
|
|
|
_mcl_hardness = 1.5,
|
2017-02-16 19:35:50 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Craftitems
|
|
|
|
|
|
|
|
minetest.register_craftitem("mcl_ocean:prismarine_crystals", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Prismarine Crystals"),
|
2017-03-18 16:52:41 +00:00
|
|
|
_doc_items_longdesc = doc.sub.items.temp.craftitem,
|
2017-02-16 19:35:50 +00:00
|
|
|
inventory_image = "mcl_ocean_prismarine_crystals.png",
|
|
|
|
stack_max = 64,
|
|
|
|
groups = { craftitem = 1 },
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("mcl_ocean:prismarine_shard", {
|
2019-03-07 23:22:28 +00:00
|
|
|
description = S("Prismarine Shard"),
|
2017-03-18 16:52:41 +00:00
|
|
|
_doc_items_longdesc = doc.sub.items.temp.craftitem,
|
2017-02-16 19:35:50 +00:00
|
|
|
inventory_image = "mcl_ocean_prismarine_shard.png",
|
|
|
|
stack_max = 64,
|
|
|
|
groups = { craftitem = 1 },
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Crafting
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mcl_ocean:sea_lantern',
|
|
|
|
recipe = {
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_crystals'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_crystals', 'mcl_ocean:prismarine_shard'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mcl_ocean:prismarine',
|
|
|
|
recipe = {
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mcl_ocean:prismarine_brick',
|
|
|
|
recipe = {
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mcl_ocean:prismarine_dark',
|
|
|
|
recipe = {
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_dye:black', 'mcl_ocean:prismarine_shard'},
|
|
|
|
{'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard', 'mcl_ocean:prismarine_shard'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|