diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-12 17:07:08 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-12 17:07:08 +0000 |
commit | d7874dce5021a10f79964afe52e0505d286ddb15 (patch) | |
tree | 7a96e6b6db8e32de0506f410265f8d8430c09156 /crafts.lua | |
parent | 006f18c5c102638c56fa88e77eda566ebe6db872 (diff) |
add food groups for better recipe crafting
Diffstat (limited to 'crafts.lua')
-rw-r--r-- | crafts.lua | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -5,6 +5,7 @@ local S = mobs.intllib minetest.register_craftitem("mobs:nametag", { description = S("Name Tag"), inventory_image = "mobs_nametag.png", + groups = {flammable = 2}, }) if minetest.get_modpath("dye") and minetest.get_modpath("farming") then @@ -19,6 +20,7 @@ end minetest.register_craftitem("mobs:leather", { description = S("Leather"), inventory_image = "mobs_leather.png", + groups = {flammable = 2}, }) -- raw meat @@ -26,6 +28,7 @@ minetest.register_craftitem("mobs:meat_raw", { description = S("Raw Meat"), inventory_image = "mobs_meat_raw.png", on_use = minetest.item_eat(3), + groups = {food_meat_raw = 1, flammable = 2}, }) -- cooked meat @@ -33,6 +36,7 @@ minetest.register_craftitem("mobs:meat", { description = S("Meat"), inventory_image = "mobs_meat.png", on_use = minetest.item_eat(8), + groups = {food_meat = 1, flammable = 2}, }) minetest.register_craft({ @@ -46,6 +50,7 @@ minetest.register_craft({ minetest.register_tool("mobs:lasso", { description = S("Lasso (right-click animal to put in inventory)"), inventory_image = "mobs_magic_lasso.png", + groups = {flammable = 2}, }) if minetest.get_modpath("farming") then @@ -65,6 +70,7 @@ minetest.register_alias("mobs:magic_lasso", "mobs:lasso") minetest.register_tool("mobs:net", { description = S("Net (right-click animal to put in inventory)"), inventory_image = "mobs_net.png", + groups = {flammable = 2}, }) if minetest.get_modpath("farming") then @@ -82,6 +88,7 @@ end minetest.register_tool("mobs:shears", { description = S("Steel Shears (right-click to shear)"), inventory_image = "mobs_shears.png", + groups = {flammable = 2}, }) minetest.register_craft({ @@ -96,6 +103,7 @@ minetest.register_craft({ minetest.register_craftitem("mobs:protector", { description = S("Mob Protection Rune"), inventory_image = "mobs_protector.png", + groups = {flammable = 2}, }) minetest.register_craft({ @@ -110,7 +118,8 @@ minetest.register_craft({ -- saddle minetest.register_craftitem("mobs:saddle", { description = S("Saddle"), - inventory_image = "mobs_saddle.png" + inventory_image = "mobs_saddle.png", + groups = {flammable = 2}, }) minetest.register_craft({ |