2022-05-15 00:34:08 +03:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
-- Loom Code. Used to craft banner designs easier. Still needs a GUI. https://minecraft.fandom.com/wiki/Loom
|
2022-05-26 08:29:28 +03:00
|
|
|
|
2022-05-15 00:34:08 +03:00
|
|
|
minetest.register_node("mcl_loom:loom", {
|
|
|
|
description = S("Loom"),
|
|
|
|
_tt_help = S("Used to create banner designs"),
|
|
|
|
_doc_items_longdesc = S("This is the shepherd villager's work station. It is used to create banner designs."),
|
|
|
|
tiles = {
|
|
|
|
"loom_top.png", "loom_bottom.png",
|
|
|
|
"loom_side.png", "loom_side.png",
|
2022-07-03 18:53:00 +03:00
|
|
|
"loom_side.png", "loom_front.png"
|
2022-05-15 00:34:08 +03:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
2022-05-29 22:53:11 +03:00
|
|
|
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
|
|
|
|
_mcl_blast_resistance = 2.5,
|
|
|
|
_mcl_hardness = 2.5
|
2022-07-03 18:53:00 +03:00
|
|
|
})
|
2022-05-26 08:29:28 +03:00
|
|
|
|
2022-05-15 00:34:08 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mcl_loom:loom",
|
|
|
|
recipe = {
|
|
|
|
{ "", "", "" },
|
|
|
|
{ "mcl_mobitems:string", "mcl_mobitems:string", "" },
|
|
|
|
{ "group:wood", "group:wood", "" },
|
|
|
|
}
|
2022-05-15 00:48:33 +03:00
|
|
|
})
|