Add and use the stick group

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

View File

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

View File

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

View File

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