VoxeLibre/mods/ITEMS/mcl_itemframes/init.lua

41 lines
1.4 KiB
Lua
Raw Normal View History

2022-10-26 13:44:48 +02:00
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
2015-06-29 19:55:56 +02:00
2022-10-26 13:44:48 +02:00
local S = minetest.get_translator(minetest.get_current_modname())
2015-06-29 19:55:56 +02:00
2022-10-26 13:44:48 +02:00
-- 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()
2015-06-29 19:55:56 +02:00
-- 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.
2022-10-26 13:44:48 +02:00
-- was going to make it a specialized function, but minetest refuses to play nice.
2017-01-12 03:04:58 +01:00
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" },
}
2017-01-12 03:04:58 +01:00
})
2022-10-26 13:44:48 +02:00
minetest.register_craft({
type = "shapeless",
output = 'mcl_itemframes:glow_item_frame',
recipe = { 'mcl_mobitems:glow_ink_sac', 'mcl_itemframes:item_frame' },
})
2018-05-13 00:57:32 +02:00
mcl_itemframes.custom_register_lbm()