Add recipes for most of the items

master
migdyn 2019-01-08 23:21:33 +01:00
parent ecf0e985e3
commit 96cc14f1de
4 changed files with 117 additions and 0 deletions

117
init.lua
View File

@ -119,3 +119,120 @@ minetest.register_tool("tapes:mesetape", {
return itemstack
end
})
--CraftItems
minetest.register_craftitem("tapes:fabric_thin", {
description = "Thin Fabric",
inventory_image = "tapes_thinfabric.png",
})
minetest.register_craftitem("tapes:fabric_thick", {
description = "Thick Fabric",
inventory_image = "tapes_thickfabric.png",
})
minetest.register_craftitem("tapes:adhesive_bottle", {
description = "Adhesive",
inventory_image = "tapes_adhesive_normal_bottle.png",
})
minetest.register_craftitem("tapes:adhesive_strong_bottle", {
description = "Strong Adhesive",
inventory_image = "tapes_adhesive_strong_bottle.png",
})
minetest.register_craftitem("tapes:adhesive_mese_bottle", {
description = "Mese Adhesive",
inventory_image = "tapes_adhesive_mese_bottle.png",
})
--Crafts
minetest.register_craft({
output = "tapes:fabric_thin",
recipe = {
{"", "", ""},
{"farming:cotton", "farming:cotton", "farming:cotton"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:fabric_thick",
recipe = {
{"", "", ""},
{"tapes:fabric_thin", "tapes:fabric_thin", "tapes:fabric_thin"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:adhesive_bottle",
recipe = {
{"", "", ""},
{"group:leaves", "group:leaves", "group:leaves"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:adhesive_strong_bottle",
recipe = {
{"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"},
}
})
minetest.register_craft({
output = "tapes:adhesive_mese_bottle",
recipe = {
{"", "", ""},
{"tapes:adhesive_strong_bottle", "default:mese_crystal", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:mesetape",
recipe = {
{"", "", ""},
{"tapes:adhesive_mese_bottle", "default:mese_block", "tapes:adhesive_mese_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:spiketape_orange",
recipe = {
{"", "dye:orange", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thick", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:spiketape_black",
recipe = {
{"", "dye:black", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thick", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:ducttape_black",
recipe = {
{"", "dye:black", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thin", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:surgicaltape",
recipe = {
{"", "", ""},
{"tapes:adhesive_bottle", "tapes:fabric_thick", "tapes:adhesive_bottle"},
{"", "", ""},
}
})

View File

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 718 B