Imported from trollstream "ContentDB"
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,183 @@
|
|||
dofile(minetest.get_modpath("banner").."/loom.lua")
|
||||
|
||||
local banner = {}
|
||||
local dyes = {
|
||||
{"white", "White", nil},
|
||||
{"grey", "Grey", "basecolor_grey"},
|
||||
{"black", "Black", "basecolor_black"},
|
||||
{"red", "Red", "basecolor_red"},
|
||||
{"yellow", "Yellow", "basecolor_yellow"},
|
||||
{"green", "Green", "basecolor_green"},
|
||||
{"cyan", "Cyan", "basecolor_cyan"},
|
||||
{"blue", "Blue", "basecolor_blue"},
|
||||
{"magenta", "Magenta", "basecolor_magenta"},
|
||||
{"orange", "Orange", "excolor_orange"},
|
||||
{"violet", "Violet", "excolor_violet"},
|
||||
{"brown", "Brown", "unicolor_dark_orange"},
|
||||
{"pink", "Pink", "unicolor_light_red"},
|
||||
{"dark_grey", "Dark Grey", "unicolor_darkgrey"},
|
||||
{"dark_green", "Dark Green", "unicolor_dark_green"},
|
||||
}
|
||||
|
||||
minetest.register_node("banner:hanger", {
|
||||
description = "Banner Hanger",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
inventory_image = "banner_top.png",
|
||||
wield_image = "banner_top.png",
|
||||
paramtype2 = "wallmounted",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, -0.4375}, -- NodeBox1
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.5},
|
||||
},
|
||||
tiles = {"hanger.png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
for _, row in ipairs(dyes) do
|
||||
local name2 = row[1]
|
||||
local desc2 = row[2]
|
||||
for _, row in ipairs(dyes) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
local craft_color_group = row[1]
|
||||
-- Node Definition
|
||||
if name == name2 then
|
||||
minetest.register_node("banner:"..name, {
|
||||
description = desc.." Point Banner",
|
||||
walkable = false,
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
inventory_image = "pointbanner_"..name..".png",
|
||||
wield_image = "pointbanner_"..name..".png",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.5},
|
||||
},
|
||||
tiles = {"pointbanner_"..name..".png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
end
|
||||
if name ~= name2 then
|
||||
minetest.register_node("banner:"..name.."_"..name2.."check", {
|
||||
description = desc.." and "..desc2.." Checkered Point Banner",
|
||||
walkable = false,
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
inventory_image = "pointbanner_"..name2..".png^pointbanner_"..name.."_check.png",
|
||||
wield_image = "pointbanner_"..name2..".png^pointbanner_"..name.."_check.png",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.5},
|
||||
},
|
||||
tiles = {"pointbanner_"..name2..".png^pointbanner_"..name.."_check.png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "banner:"..name.."_"..name2.."check",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"banner:"..name,"default:stick","banner:"..name2},
|
||||
{"","",""},
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
for _, row in ipairs(dyes) do
|
||||
local name2 = row[1]
|
||||
local desc2 = row[2]
|
||||
for _, row in ipairs(dyes) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
local craft_color_group = row[1]
|
||||
-- Node Definition
|
||||
if name == name2 then
|
||||
minetest.register_node("banner:"..name.."_square", {
|
||||
description = desc.." Square Banner",
|
||||
walkable = false,
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
inventory_image = "squarebanner_"..name..".png",
|
||||
wield_image = "squarebanner_"..name..".png",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.5},
|
||||
},
|
||||
tiles = {"squarebanner_"..name..".png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
end
|
||||
if name ~= name2 then
|
||||
minetest.register_node("banner:"..name.."_"..name2.."check_square", {
|
||||
description = desc.." and "..desc2.." Checkered Square Banner",
|
||||
walkable = false,
|
||||
drawtype = "signlike",
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
inventory_image = "squarebanner_"..name2..".png^squarebanner_"..name.."_check.png",
|
||||
wield_image = "squarebanner_"..name2..".png^squarebanner_"..name.."_check.png",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.5},
|
||||
},
|
||||
tiles = {"squarebanner_"..name2..".png^squarebanner_"..name.."_check.png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "banner:"..name.."_"..name2.."check_square",
|
||||
recipe = {
|
||||
{"","",""},
|
||||
{"banner:"..name.."_square","default:stick","banner:"..name2.."_square"},
|
||||
{"","",""},
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
for _, row in ipairs(dyes) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
minetest.register_craft({
|
||||
output = "banner:"..name.." 7",
|
||||
recipe = {
|
||||
{"wool:"..name,"wool:"..name,"wool:"..name},
|
||||
{"wool:"..name,"wool:"..name,"wool:"..name},
|
||||
{"","wool:"..name,""},
|
||||
}
|
||||
})
|
||||
end
|
||||
for _, row in ipairs(dyes) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
minetest.register_craft({
|
||||
output = "banner:"..name.."_square 7",
|
||||
recipe = {
|
||||
{"wool:"..name,"wool:"..name,"wool:"..name},
|
||||
{"wool:"..name,"wool:"..name,"wool:"..name},
|
||||
{"wool:"..name,"","wool:"..name},
|
||||
}
|
||||
})
|
||||
end
|
||||
minetest.register_craft({
|
||||
output = "banner:hanger 7",
|
||||
recipe = {
|
||||
{"","default:steel_ingot",""},
|
||||
{"default:stick","default:stick","default:stick"},
|
||||
{"","",""},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,377 @@
|
|||
local dyes = {
|
||||
{"white", "White", nil},
|
||||
{"grey", "Grey", "basecolor_grey"},
|
||||
{"black", "Black", "basecolor_black"},
|
||||
{"red", "Red", "basecolor_red"},
|
||||
{"yellow", "Yellow", "basecolor_yellow"},
|
||||
{"green", "Green", "basecolor_green"},
|
||||
{"cyan", "Cyan", "basecolor_cyan"},
|
||||
{"blue", "Blue", "basecolor_blue"},
|
||||
{"magenta", "Magenta", "basecolor_magenta"},
|
||||
{"orange", "Orange", "excolor_orange"},
|
||||
{"violet", "Violet", "excolor_violet"},
|
||||
{"brown", "Brown", "unicolor_dark_orange"},
|
||||
{"pink", "Pink", "unicolor_light_red"},
|
||||
{"dark_grey", "Dark Grey", "unicolor_darkgrey"},
|
||||
{"dark_green", "Dark Green", "unicolor_dark_green"},
|
||||
}
|
||||
|
||||
|
||||
weave = {}
|
||||
give = {}
|
||||
minetest.register_node("banner:loom_1", {
|
||||
description = ("Loom"),
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.125, -0.5, 0.5, -0.0625, 0.5}, -- Base
|
||||
{-0.5, -0.5, -0.5, -0.3125, 0.5, -0.3125}, -- support
|
||||
{0.3125, -0.5, -0.5, 0.5, 0.5, -0.3125}, -- support2
|
||||
{-0.5, 0.375, -0.4375, 0.5, 0.4375, -0.375}, -- bobbin_holder
|
||||
{-0.25, 0.3125, -0.5, 0.25, 0.5, -0.3125}, -- bobbin
|
||||
{0.3125, -0.5, 0.3125, 0.5, 0.5, 0.5}, -- support3
|
||||
{-0.5, -0.5, 0.3125, -0.3125, 0.5, 0.5}, -- support4
|
||||
{-0.5, 0.375, 0.375, 0.5, 0.4375, 0.4375}, -- bobbin_holder2
|
||||
{-0.25, 0.3125, 0.3125, 0.25, 0.5, 0.5}, -- bobbin2
|
||||
},
|
||||
},
|
||||
tiles = {"loom_top_1.png",
|
||||
"loom_top.png",
|
||||
"loom_front.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 2,oddly_breakable_by_hand = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_punch = function(pos)
|
||||
minetest.set_node(pos, {name="banner:loom_2"})
|
||||
end,
|
||||
after_place_node = function(pos, placer)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
meta:set_string("owner", (placer:get_player_name() or ""));
|
||||
meta:set_string("infotext", "Loom in mode 1 (owned by " .. (placer:get_player_name() or "") .. ")");
|
||||
timer:start(10)
|
||||
end,
|
||||
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.env:get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if not inv:is_empty("craft1") then
|
||||
return false
|
||||
elseif not inv:is_empty("craft2") then
|
||||
return false
|
||||
elseif not inv:is_empty("res") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
meta:set_string("formspec", "invsize[10.5,10;]"..
|
||||
"background[-0.15,-0.25;10.90,10.75;loom_top.png]"..
|
||||
|
||||
"label[1.5,0.5; Weave Banners]"..
|
||||
"list[current_name;craft1;2,1;1,1; ]"..
|
||||
"list[current_name;craft2;2,2;1,1; ]"..
|
||||
"button[4,1;1.5,1;make;Weave]"..
|
||||
"list[current_name;res;7.5,1.5;1,1;]"..
|
||||
|
||||
"list[current_player;main;1,6;8,4;]")
|
||||
meta:set_string("infotext", "Loom")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("craft1", 1)
|
||||
inv:set_size("craft2", 1)
|
||||
inv:set_size("res", 1)
|
||||
end,
|
||||
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
|
||||
local craftstack1 = inv:get_stack("craft1", 1)
|
||||
local craftstack2 = inv:get_stack("craft2", 1)
|
||||
local resstack = inv:get_stack("res", 1)
|
||||
|
||||
local craftstackone = craftstack1:get_name()
|
||||
local craftstacktwo = craftstack2:get_name()
|
||||
--print(craftstackone)
|
||||
--print(craftstacktwo)
|
||||
|
||||
if craftstackone == "wool:white" then
|
||||
craftstackone = "white"
|
||||
elseif craftstackone == "wool:grey" then
|
||||
craftstackone = "grey"
|
||||
elseif craftstackone == "wool:black" then
|
||||
craftstackone = "black"
|
||||
elseif craftstackone == "wool:red" then
|
||||
craftstackone = "red"
|
||||
elseif craftstackone == "wool:yellow" then
|
||||
craftstackone = "yellow"
|
||||
elseif craftstackone == "wool:green" then
|
||||
craftstackone = "green"
|
||||
elseif craftstackone == "wool:cyan" then
|
||||
craftstackone = "cyan"
|
||||
elseif craftstackone == "wool:blue" then
|
||||
craftstackone = "blue"
|
||||
elseif craftstackone == "wool:magenta" then
|
||||
craftstackone = "magenta"
|
||||
elseif craftstackone == "wool:orange" then
|
||||
craftstackone = "orange"
|
||||
elseif craftstackone == "wool:violet" then
|
||||
craftstackone = "violet"
|
||||
elseif craftstackone == "wool:brown" then
|
||||
craftstackone = "brown"
|
||||
elseif craftstackone == "wool:pink" then
|
||||
craftstackone = "pink"
|
||||
elseif craftstackone == "wool:dark_grey" then
|
||||
craftstackone = "dark_grey"
|
||||
elseif craftstackone == "wool:dark_green" then
|
||||
craftstackone = "dark_green"
|
||||
else
|
||||
craftstackone = "ERROR NOT WOOL"
|
||||
end
|
||||
--print(craftstackone)
|
||||
|
||||
if craftstacktwo == "wool:white" then
|
||||
craftstacktwo = "white"
|
||||
elseif craftstacktwo == "wool:grey" then
|
||||
craftstacktwo = "grey"
|
||||
elseif craftstacktwo == "wool:black" then
|
||||
craftstacktwo = "black"
|
||||
elseif craftstacktwo == "wool:red" then
|
||||
craftstacktwo = "red"
|
||||
elseif craftstacktwo == "wool:yellow" then
|
||||
craftstacktwo = "yellow"
|
||||
elseif craftstacktwo == "wool:green" then
|
||||
craftstacktwo = "green"
|
||||
elseif craftstacktwo == "wool:cyan" then
|
||||
craftstacktwo = "cyan"
|
||||
elseif craftstacktwo == "wool:blue" then
|
||||
craftstacktwo = "blue"
|
||||
elseif craftstacktwo == "wool:magenta" then
|
||||
craftstacktwo = "magenta"
|
||||
elseif craftstacktwo == "wool:orange" then
|
||||
craftstacktwo = "orange"
|
||||
elseif craftstacktwo == "wool:violet" then
|
||||
craftstacktwo = "violet"
|
||||
elseif craftstacktwo == "wool:brown" then
|
||||
craftstacktwo = "brown"
|
||||
elseif craftstacktwo == "wool:pink" then
|
||||
craftstacktwo = "pink"
|
||||
elseif craftstacktwo == "wool:dark_grey" then
|
||||
craftstacktwo = "dark_grey"
|
||||
elseif craftstacktwo == "wool:dark_green" then
|
||||
craftstacktwo = "dark_green"
|
||||
else
|
||||
craftstacktwo = "ERROR NOT WOOL"
|
||||
end
|
||||
--print(craftstacktwo)
|
||||
|
||||
if craftstackone == craftstacktwo then
|
||||
give = "banner:"..craftstackone
|
||||
--print(give)
|
||||
weave = "1"
|
||||
elseif craftstackone ~= craftstacktwo then
|
||||
give = "banner:"..craftstackone.."_"..craftstacktwo.."check"
|
||||
--print(give)
|
||||
weave = "1"
|
||||
else
|
||||
print("something has gone terribly wrong here")
|
||||
end
|
||||
if weave == "1" then
|
||||
inv:add_item("res",give)
|
||||
craftstack1:take_item()
|
||||
inv:set_stack("craft1",1,craftstack1)
|
||||
craftstack2:take_item()
|
||||
inv:set_stack("craft2",1,craftstack2)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
})
|
||||
minetest.register_node("banner:loom_2", {
|
||||
description = ("Loom"),
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.125, -0.5, 0.5, -0.0625, 0.5}, -- Base
|
||||
{-0.5, -0.5, -0.5, -0.3125, 0.5, -0.3125}, -- support
|
||||
{0.3125, -0.5, -0.5, 0.5, 0.5, -0.3125}, -- support2
|
||||
{-0.5, 0.375, -0.4375, 0.5, 0.4375, -0.375}, -- bobbin_holder
|
||||
{-0.25, 0.3125, -0.5, 0.25, 0.5, -0.3125}, -- bobbin
|
||||
{0.3125, -0.5, 0.3125, 0.5, 0.5, 0.5}, -- support3
|
||||
{-0.5, -0.5, 0.3125, -0.3125, 0.5, 0.5}, -- support4
|
||||
{-0.5, 0.375, 0.375, 0.5, 0.4375, 0.4375}, -- bobbin_holder2
|
||||
{-0.25, 0.3125, 0.3125, 0.25, 0.5, 0.5}, -- bobbin2
|
||||
},
|
||||
},
|
||||
tiles = {"loom_top_2.png",
|
||||
"loom_top.png",
|
||||
"loom_front.png"},
|
||||
paramtype = "light",
|
||||
drop = "banner:loom_1",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 2,oddly_breakable_by_hand = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_punch = function(pos, puncher)
|
||||
minetest.set_node(pos, {name="banner:loom_1"})
|
||||
end,
|
||||
after_place_node = function(pos, placer)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
meta:set_string("owner", (placer:get_player_name() or ""));
|
||||
meta:set_string("infotext", "Loom in mode 2 (owned by " .. (placer:get_player_name() or "") .. ")");
|
||||
timer:start(10)
|
||||
end,
|
||||
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.env:get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
if not inv:is_empty("craft1") then
|
||||
return false
|
||||
elseif not inv:is_empty("craft2") then
|
||||
return false
|
||||
elseif not inv:is_empty("res") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
meta:set_string("formspec", "invsize[10.5,10;]"..
|
||||
"background[-0.15,-0.25;10.90,10.75;loom_top.png]"..
|
||||
|
||||
"label[1.5,0.5; Weave Banners]"..
|
||||
"list[current_name;craft1;2,1;1,1; ]"..
|
||||
"list[current_name;craft2;2,2;1,1; ]"..
|
||||
"button[4,1;1.5,1;make;Weave]"..
|
||||
"list[current_name;res;7.5,1.5;1,1;]"..
|
||||
|
||||
"list[current_player;main;1,6;8,4;]")
|
||||
meta:set_string("infotext", "Loom")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("craft1", 1)
|
||||
inv:set_size("craft2", 1)
|
||||
inv:set_size("res", 1)
|
||||
end,
|
||||
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
|
||||
local craftstack1 = inv:get_stack("craft1", 1)
|
||||
local craftstack2 = inv:get_stack("craft2", 1)
|
||||
local resstack = inv:get_stack("res", 1)
|
||||
|
||||
local craftstackone = craftstack1:get_name()
|
||||
local craftstacktwo = craftstack2:get_name()
|
||||
--print(craftstackone)
|
||||
--print(craftstacktwo)
|
||||
|
||||
if craftstackone == "wool:white" then
|
||||
craftstackone = "white"
|
||||
elseif craftstackone == "wool:grey" then
|
||||
craftstackone = "grey"
|
||||
elseif craftstackone == "wool:black" then
|
||||
craftstackone = "black"
|
||||
elseif craftstackone == "wool:red" then
|
||||
craftstackone = "red"
|
||||
elseif craftstackone == "wool:yellow" then
|
||||
craftstackone = "yellow"
|
||||
elseif craftstackone == "wool:green" then
|
||||
craftstackone = "green"
|
||||
elseif craftstackone == "wool:cyan" then
|
||||
craftstackone = "cyan"
|
||||
elseif craftstackone == "wool:blue" then
|
||||
craftstackone = "blue"
|
||||
elseif craftstackone == "wool:magenta" then
|
||||
craftstackone = "magenta"
|
||||
elseif craftstackone == "wool:orange" then
|
||||
craftstackone = "orange"
|
||||
elseif craftstackone == "wool:violet" then
|
||||
craftstackone = "violet"
|
||||
elseif craftstackone == "wool:brown" then
|
||||
craftstackone = "brown"
|
||||
elseif craftstackone == "wool:pink" then
|
||||
craftstackone = "pink"
|
||||
elseif craftstackone == "wool:dark_grey" then
|
||||
craftstackone = "dark_grey"
|
||||
elseif craftstackone == "wool:dark_green" then
|
||||
craftstackone = "dark_green"
|
||||
else
|
||||
craftstackone = "ERROR NOT WOOL"
|
||||
end
|
||||
print(craftstackone)
|
||||
|
||||
if craftstacktwo == "wool:white" then
|
||||
craftstacktwo = "white"
|
||||
elseif craftstacktwo == "wool:grey" then
|
||||
craftstacktwo = "grey"
|
||||
elseif craftstacktwo == "wool:black" then
|
||||
craftstacktwo = "black"
|
||||
elseif craftstacktwo == "wool:red" then
|
||||
craftstacktwo = "red"
|
||||
elseif craftstacktwo == "wool:yellow" then
|
||||
craftstacktwo = "yellow"
|
||||
elseif craftstacktwo == "wool:green" then
|
||||
craftstacktwo = "green"
|
||||
elseif craftstacktwo == "wool:cyan" then
|
||||
craftstacktwo = "cyan"
|
||||
elseif craftstacktwo == "wool:blue" then
|
||||
craftstacktwo = "blue"
|
||||
elseif craftstacktwo == "wool:magenta" then
|
||||
craftstacktwo = "magenta"
|
||||
elseif craftstacktwo == "wool:orange" then
|
||||
craftstacktwo = "orange"
|
||||
elseif craftstacktwo == "wool:violet" then
|
||||
craftstacktwo = "violet"
|
||||
elseif craftstacktwo == "wool:brown" then
|
||||
craftstacktwo = "brown"
|
||||
elseif craftstacktwo == "wool:pink" then
|
||||
craftstacktwo = "pink"
|
||||
elseif craftstacktwo == "wool:dark_grey" then
|
||||
craftstacktwo = "dark_grey"
|
||||
elseif craftstacktwo == "wool:dark_green" then
|
||||
craftstacktwo = "dark_green"
|
||||
else
|
||||
craftstacktwo = "ERROR NOT WOOL"
|
||||
end
|
||||
--print(craftstacktwo)
|
||||
|
||||
if craftstackone == craftstacktwo then
|
||||
give = "banner:"..craftstackone.."_square"
|
||||
--print(give)
|
||||
weave = "1"
|
||||
elseif craftstackone ~= craftstacktwo then
|
||||
give = "banner:"..craftstackone.."_"..craftstacktwo.."check_square"
|
||||
--print(give)
|
||||
weave = "1"
|
||||
else
|
||||
print("something has gone terribly wrong here")
|
||||
end
|
||||
if weave == "1" then
|
||||
inv:add_item("res",give)
|
||||
craftstack1:take_item()
|
||||
inv:set_stack("craft1",1,craftstack1)
|
||||
craftstack2:take_item()
|
||||
inv:set_stack("craft2",1,craftstack2)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = 'banner:loom_1',
|
||||
recipe = {
|
||||
{'group:wool', 'default:steel_ingot', 'group:wool'},
|
||||
{'group:wood', 'group:wool', 'group:wood'},
|
||||
{'group:wood', "", 'group:wood'},
|
||||
},
|
||||
})
|
After Width: | Height: | Size: 228 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 679 B |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 471 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 498 B |
After Width: | Height: | Size: 475 B |
After Width: | Height: | Size: 479 B |
After Width: | Height: | Size: 484 B |
After Width: | Height: | Size: 485 B |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 547 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 570 B |
After Width: | Height: | Size: 573 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 583 B |
After Width: | Height: | Size: 400 B |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 575 B |
After Width: | Height: | Size: 580 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 557 B |
After Width: | Height: | Size: 452 B |
After Width: | Height: | Size: 466 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 430 B |
After Width: | Height: | Size: 361 B |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 431 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 435 B |
After Width: | Height: | Size: 339 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 297 B |