mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
9518d47662
- Add missing translation - Fix broken translations - Fix unacurate description - Correct/improve/change for cohesion french translation Translations templates have been updated,other translations must be updated. <!-- Please follow our contributing guidelines first: https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#how-you-can-help-as-a-programmer By submitting this pull request, you agree to follow our Code of Conduct: https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md --> Tell us about your pull request! Reference related issues, if necessary ### Testing Tell us how to test your changes! Co-authored-by: 3raven <elise_declerck@laposte.net> Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3643 Reviewed-by: AFCMS <afcm.contact@gmail.com> Co-authored-by: 3raven <3raven@noreply.git.minetest.land> Co-committed-by: 3raven <3raven@noreply.git.minetest.land>
40 lines
1.4 KiB
Lua
40 lines
1.4 KiB
Lua
local modname = minetest.get_current_modname()
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
-- mcl_itemframes API
|
|
dofile(modpath .. "/item_frames_API.lua")
|
|
|
|
-- actual api initialization.
|
|
mcl_itemframes.create_base_definitions()
|
|
|
|
-- necessary to maintain compatibility amongst older versions.
|
|
mcl_itemframes.backwards_compatibility()
|
|
|
|
-- Define the standard frames.
|
|
mcl_itemframes.create_custom_frame("false", "item_frame", false,
|
|
"mcl_itemframes_item_frame.png", mcl_colors.WHITE, S("Can hold an item."),
|
|
S("Item Frame"), "")
|
|
mcl_itemframes.create_custom_frame("false", "glow_item_frame", true,
|
|
"mcl_itemframes_glow_item_frame.png", mcl_colors.WHITE, S("Can hold an item and glows."),
|
|
S("Glowing Item Frame"), "")
|
|
|
|
-- Register the base frame's recipes.
|
|
-- was going to make it a specialized function, but minetest refuses to play nice.
|
|
minetest.register_craft({
|
|
output = "mcl_itemframes:item_frame",
|
|
recipe = {
|
|
{ "mcl_core:stick", "mcl_core:stick", "mcl_core:stick" },
|
|
{ "mcl_core:stick", "mcl_mobitems:leather", "mcl_core:stick" },
|
|
{ "mcl_core:stick", "mcl_core:stick", "mcl_core:stick" },
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = 'mcl_itemframes:glow_item_frame',
|
|
recipe = { 'mcl_mobitems:glow_ink_sac', 'mcl_itemframes:item_frame' },
|
|
})
|
|
|
|
mcl_itemframes.custom_register_lbm()
|