Add sliding door crafts

This commit is contained in:
GreenDimond 2019-09-17 19:51:43 -07:00
parent eef3b5f9ae
commit 66b8e083d3
22 changed files with 113 additions and 0 deletions

111
my_sliding_doors/crafts.lua Normal file
View File

@ -0,0 +1,111 @@
minetest.register_craft({
output = "my_sliding_doors:jpanel1 2",
recipe = {
{"default:stick", "default:paper"},
{"default:paper", "default:paper"},
{"default:paper", "default:stick"}
}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel1 2",
recipe = {
{"default:paper", "default:stick"},
{"default:paper", "default:paper"},
{"default:stick", "default:paper"}
}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel1 2",
type = "shapeless",
recipe = {"my_sliding_doors:door1a"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel1",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel_corner_1"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel2",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel1", "flowers:rose"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel2 2",
type = "shapeless",
recipe = {"my_sliding_doors:door2a"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel2",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel_corner_2"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel3 2",
recipe = {
{"default:stick", "default:stick"},
{"default:paper", "default:paper"},
{"default:stick", "default:stick"}
}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel3 2",
type = "shapeless",
recipe = {"my_sliding_doors:door3a"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel3",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel_corner_3"}
})
minetest.register_craft({
output = "my_sliding_doors:door1a",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel1", "my_sliding_doors:jpanel1"}
})
minetest.register_craft({
output = "my_sliding_doors:door2a",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel2", "my_sliding_doors:jpanel2"}
})
minetest.register_craft({
output = "my_sliding_doors:door2a",
type = "shapeless",
recipe = {"my_sliding_doors:door1a", "flowers:rose", "flowers:rose"}
})
minetest.register_craft({
output = "my_sliding_doors:door3a",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel3", "my_sliding_doors:jpanel3"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel_corner_1",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel1"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel_corner_2",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel2"}
})
minetest.register_craft({
output = "my_sliding_doors:jpanel_corner_3",
type = "shapeless",
recipe = {"my_sliding_doors:jpanel3"}
})

View File

@ -1,3 +1,4 @@
dofile(minetest.get_modpath("my_sliding_doors").."/jdoors1.lua")
dofile(minetest.get_modpath("my_sliding_doors").."/jdoors2.lua")
dofile(minetest.get_modpath("my_sliding_doors").."/crafts.lua")

View File

@ -1 +1,2 @@
name = my_sliding_doors
depends = default, flowers

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 681 B

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 798 B

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 630 B