Add and use the stick group
authorShadowNinja <noreply@gmail.com>
Mon, 16 Sep 2013 03:49:56 +0000 (23:49 -0400)
committerShadowNinja <noreply@gmail.com>
Fri, 1 Nov 2013 15:34:24 +0000 (11:34 -0400)
mods/default/crafting.lua
mods/default/craftitems.lua
mods/farming/init.lua
mods/screwdriver/init.lua

index 868623f7aa86248df030058af3d79bc1f9b993ac..c4f353a14ec1537cc903eccae41e7422bcec56cd 100644 (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'},
        }
 })
 
index 5826d669d0cfd2f7605741b835f266a1bcd18833..2d3652e29cb7a91b955134d36ac9058ab4283cf2 100644 (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", {
index edef3aa3dd80ee37b99593090721ffbe867e6745..275eb6466412249ad0683131e0c6cffaecc2362d 100644 (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"},
        }
 })
 
index 1a11b922ff6e29b1879876a3eb7cae5fa80cd102..af40d0935af36e687dc0d6f38db92de403500698 100644 (file)
@@ -158,7 +158,7 @@ minetest.register_craft({
 output = "screwdriver:screwdriver",
 recipe = {
 {"default:steel_ingot"},
-{"default:stick"}
+{"group:stick"}
 }
 })