Add and use the stick group

This commit is contained in:
ShadowNinja 2013-09-15 23:49:56 -04:00
parent 066d23cdfd
commit 7b8ad5786c
4 changed files with 60 additions and 59 deletions

View File

@ -24,8 +24,8 @@ minetest.register_craft({
minetest.register_craft({
output = 'default:fence_wood 2',
recipe = {
{'default:stick', 'default:stick', 'default:stick'},
{'default:stick', 'default:stick', 'default:stick'},
{'group:stick', 'group:stick', 'group:stick'},
{'group:stick', 'group:stick', 'group:stick'},
}
})
@ -34,7 +34,7 @@ minetest.register_craft({
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'group:wood', 'group:wood', 'group:wood'},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
}
})
@ -42,7 +42,7 @@ minetest.register_craft({
output = 'default:torch 4',
recipe = {
{'default:coal_lump'},
{'default:stick'},
{'group:stick'},
}
})
@ -50,8 +50,8 @@ minetest.register_craft({
output = 'default:pick_wood',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -59,8 +59,8 @@ minetest.register_craft({
output = 'default:pick_stone',
recipe = {
{'group:stone', 'group:stone', 'group:stone'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -68,8 +68,8 @@ minetest.register_craft({
output = 'default:pick_steel',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -77,8 +77,8 @@ minetest.register_craft({
output = 'default:pick_bronze',
recipe = {
{'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -86,8 +86,8 @@ minetest.register_craft({
output = 'default:pick_mese',
recipe = {
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -95,8 +95,8 @@ minetest.register_craft({
output = 'default:pick_diamond',
recipe = {
{'default:diamond', 'default:diamond', 'default:diamond'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
@ -104,8 +104,8 @@ minetest.register_craft({
output = 'default:shovel_wood',
recipe = {
{'group:wood'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -113,8 +113,8 @@ minetest.register_craft({
output = 'default:shovel_stone',
recipe = {
{'group:stone'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -122,8 +122,8 @@ minetest.register_craft({
output = 'default:shovel_steel',
recipe = {
{'default:steel_ingot'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -131,8 +131,8 @@ minetest.register_craft({
output = 'default:shovel_bronze',
recipe = {
{'default:bronze_ingot'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -140,8 +140,8 @@ minetest.register_craft({
output = 'default:shovel_mese',
recipe = {
{'default:mese_crystal'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -149,8 +149,8 @@ minetest.register_craft({
output = 'default:shovel_diamond',
recipe = {
{'default:diamond'},
{'default:stick'},
{'default:stick'},
{'group:stick'},
{'group:stick'},
}
})
@ -158,8 +158,8 @@ minetest.register_craft({
output = 'default:axe_wood',
recipe = {
{'group:wood', 'group:wood'},
{'group:wood', 'default:stick'},
{'', 'default:stick'},
{'group:wood', 'group:stick'},
{'', 'group:stick'},
}
})
@ -167,8 +167,8 @@ minetest.register_craft({
output = 'default:axe_stone',
recipe = {
{'group:stone', 'group:stone'},
{'group:stone', 'default:stick'},
{'', 'default:stick'},
{'group:stone', 'group:stick'},
{'', 'group:stick'},
}
})
@ -176,8 +176,8 @@ minetest.register_craft({
output = 'default:axe_steel',
recipe = {
{'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:stick'},
{'', 'default:stick'},
{'default:steel_ingot', 'group:stick'},
{'', 'group:stick'},
}
})
@ -185,8 +185,8 @@ minetest.register_craft({
output = 'default:axe_bronze',
recipe = {
{'default:bronze_ingot', 'default:bronze_ingot'},
{'default:bronze_ingot', 'default:stick'},
{'', 'default:stick'},
{'default:bronze_ingot', 'group:stick'},
{'', 'group:stick'},
}
})
@ -194,8 +194,8 @@ minetest.register_craft({
output = 'default:axe_mese',
recipe = {
{'default:mese_crystal', 'default:mese_crystal'},
{'default:mese_crystal', 'default:stick'},
{'', 'default:stick'},
{'default:mese_crystal', 'group:stick'},
{'', 'group:stick'},
}
})
@ -203,8 +203,8 @@ minetest.register_craft({
output = 'default:axe_diamond',
recipe = {
{'default:diamond', 'default:diamond'},
{'default:diamond', 'default:stick'},
{'', 'default:stick'},
{'default:diamond', 'group:stick'},
{'', 'group:stick'},
}
})
@ -213,7 +213,7 @@ minetest.register_craft({
recipe = {
{'group:wood'},
{'group:wood'},
{'default:stick'},
{'group:stick'},
}
})
@ -222,7 +222,7 @@ minetest.register_craft({
recipe = {
{'group:stone'},
{'group:stone'},
{'default:stick'},
{'group:stick'},
}
})
@ -231,7 +231,7 @@ minetest.register_craft({
recipe = {
{'default:steel_ingot'},
{'default:steel_ingot'},
{'default:stick'},
{'group:stick'},
}
})
@ -240,7 +240,7 @@ minetest.register_craft({
recipe = {
{'default:bronze_ingot'},
{'default:bronze_ingot'},
{'default:stick'},
{'group:stick'},
}
})
@ -249,7 +249,7 @@ minetest.register_craft({
recipe = {
{'default:mese_crystal'},
{'default:mese_crystal'},
{'default:stick'},
{'group:stick'},
}
})
@ -258,7 +258,7 @@ minetest.register_craft({
recipe = {
{'default:diamond'},
{'default:diamond'},
{'default:stick'},
{'group:stick'},
}
})
@ -266,7 +266,7 @@ minetest.register_craft({
output = 'default:rail 15',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{'default:steel_ingot', 'default:stick', 'default:steel_ingot'},
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
{'default:steel_ingot', '', 'default:steel_ingot'},
}
})
@ -474,9 +474,9 @@ minetest.register_craft({
minetest.register_craft({
output = 'default:ladder',
recipe = {
{'default:stick', '', 'default:stick'},
{'default:stick', 'default:stick', 'default:stick'},
{'default:stick', '', 'default:stick'},
{'group:stick', '', 'group:stick'},
{'group:stick', 'group:stick', 'group:stick'},
{'group:stick', '', 'group:stick'},
}
})

View File

@ -3,6 +3,7 @@
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
groups = {stick=1},
})
minetest.register_craftitem("default:paper", {

View File

@ -146,8 +146,8 @@ minetest.register_craft({
output = "farming:hoe_wood",
recipe = {
{"group:wood", "group:wood"},
{"", "default:stick"},
{"", "default:stick"},
{"", "group:stick"},
{"", "group:stick"},
}
})
@ -155,8 +155,8 @@ minetest.register_craft({
output = "farming:hoe_stone",
recipe = {
{"group:stone", "group:stone"},
{"", "default:stick"},
{"", "default:stick"},
{"", "group:stick"},
{"", "group:stick"},
}
})
@ -164,8 +164,8 @@ minetest.register_craft({
output = "farming:hoe_steel",
recipe = {
{"default:steel_ingot", "default:steel_ingot"},
{"", "default:stick"},
{"", "default:stick"},
{"", "group:stick"},
{"", "group:stick"},
}
})
@ -173,8 +173,8 @@ minetest.register_craft({
output = "farming:hoe_bronze",
recipe = {
{"default:bronze_ingot", "default:bronze_ingot"},
{"", "default:stick"},
{"", "default:stick"},
{"", "group:stick"},
{"", "group:stick"},
}
})

View File

@ -158,7 +158,7 @@ minetest.register_craft({
output = "screwdriver:screwdriver",
recipe = {
{"default:steel_ingot"},
{"default:stick"}
{"group:stick"}
}
})