2019-12-17 16:18:10 +00:00
|
|
|
-- Nodes
|
|
|
|
|
2021-05-29 14:12:33 +00:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
2019-12-17 16:18:10 +00:00
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:sea_lantern", {
|
|
|
|
description = S("Sea Lantern"),
|
|
|
|
_doc_items_longdesc = S("Sea lanterns are decorative light sources which look great underwater but can be placed anywhere."),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
stack_max = 64,
|
|
|
|
light_source = minetest.LIGHT_MAX,
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2021-05-29 14:12:33 +00:00
|
|
|
{ items = {"mcl_ocean:prismarine_crystals 3"}, rarity = 2 },
|
|
|
|
{ items = {"mcl_ocean:prismarine_crystals 2"}}
|
2019-12-17 16:18:10 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
tiles = {{name="mcl_ocean_sea_lantern.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.25}}},
|
|
|
|
groups = {handy=1, building_block=1, material_glass=1},
|
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
2020-04-17 19:40:13 +00:00
|
|
|
_mcl_blast_resistance = 0.3,
|
2019-12-17 16:18:10 +00:00
|
|
|
_mcl_hardness = 0.3,
|
2020-11-02 18:09:23 +00:00
|
|
|
_mcl_silk_touch_drop = true,
|
2020-11-06 12:46:52 +00:00
|
|
|
_mcl_fortune_drop = {
|
|
|
|
discrete_uniform_distribution = true,
|
|
|
|
items = {"mcl_ocean:prismarine_crystals"},
|
|
|
|
min_count = 2,
|
|
|
|
max_count = 3,
|
|
|
|
cap = 5,
|
|
|
|
}
|
2019-12-17 16:18:10 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine", {
|
|
|
|
description = S("Prismarine"),
|
|
|
|
_doc_items_longdesc = S("Prismarine is used as a building block. It slowly changes its color."),
|
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
|
|
|
-- Texture should have 22 frames for smooth transitions.
|
|
|
|
tiles = {{name="mcl_ocean_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45.0}}},
|
2023-08-06 19:14:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1, stonecuttable=11},
|
2019-12-17 16:18:10 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2022-06-12 09:30:39 +00:00
|
|
|
_mcl_blast_resistance = 6,
|
2019-12-17 16:18:10 +00:00
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine_brick", {
|
|
|
|
description = S("Prismarine Bricks"),
|
|
|
|
_doc_items_longdesc = doc.sub.items.temp.build,
|
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
|
|
|
tiles = {"mcl_ocean_prismarine_bricks.png"},
|
2023-08-06 19:14:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1, stonecuttable=12},
|
2019-12-17 16:18:10 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2023-09-17 11:49:00 +00:00
|
|
|
_mcl_blast_resistance = 6,
|
2019-12-17 16:18:10 +00:00
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mcl_ocean:prismarine_dark", {
|
|
|
|
description = S("Dark Prismarine"),
|
|
|
|
_doc_items_longdesc = doc.sub.items.temp.build,
|
|
|
|
stack_max = 64,
|
|
|
|
is_ground_content = false,
|
|
|
|
tiles = {"mcl_ocean_prismarine_dark.png"},
|
2023-08-06 19:14:58 +00:00
|
|
|
groups = {pickaxey=1, building_block=1, material_stone=1, stonecuttable=13},
|
2019-12-17 16:18:10 +00:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2023-09-17 11:49:00 +00:00
|
|
|
_mcl_blast_resistance = 6,
|
2019-12-17 16:18:10 +00:00
|
|
|
_mcl_hardness = 1.5,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Craftitems
|
|
|
|
|
|
|
|
minetest.register_craftitem("mcl_ocean:prismarine_crystals", {
|
|
|
|
description = S("Prismarine Crystals"),
|
|
|
|
_doc_items_longdesc = doc.sub.items.temp.craftitem,
|
|
|
|
inventory_image = "mcl_ocean_prismarine_crystals.png",
|
|
|
|
stack_max = 64,
|
|
|
|
groups = { craftitem = 1 },
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("mcl_ocean:prismarine_shard", {
|
|
|
|
description = S("Prismarine Shard"),
|
|
|
|
_doc_items_longdesc = doc.sub.items.temp.craftitem,
|
|
|
|
inventory_image = "mcl_ocean_prismarine_shard.png",
|
|
|
|
stack_max = 64,
|
|
|
|
groups = { craftitem = 1 },
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Crafting
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 14:12:33 +00:00
|
|
|
output = "mcl_ocean:sea_lantern",
|
2019-12-17 16:18:10 +00:00
|
|
|
recipe = {
|
2021-05-29 14:12:33 +00:00
|
|
|
{"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"},
|
2019-12-17 16:18:10 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 14:12:33 +00:00
|
|
|
output = "mcl_ocean:prismarine",
|
2019-12-17 16:18:10 +00:00
|
|
|
recipe = {
|
2021-05-29 14:12:33 +00:00
|
|
|
{"mcl_ocean:prismarine_shard", "mcl_ocean:prismarine_shard"},
|
|
|
|
{"mcl_ocean:prismarine_shard", "mcl_ocean:prismarine_shard"},
|
2019-12-17 16:18:10 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 14:12:33 +00:00
|
|
|
output = "mcl_ocean:prismarine_brick",
|
2019-12-17 16:18:10 +00:00
|
|
|
recipe = {
|
2021-05-29 14:12:33 +00:00
|
|
|
{"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"},
|
2019-12-17 16:18:10 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2021-05-29 14:12:33 +00:00
|
|
|
output = "mcl_ocean:prismarine_dark",
|
2019-12-17 16:18:10 +00:00
|
|
|
recipe = {
|
2021-05-29 14:12:33 +00:00
|
|
|
{"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"},
|
2019-12-17 16:18:10 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|