mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
add food groups for better recipe crafting
This commit is contained in:
parent
006f18c5c1
commit
d7874dce50
11
crafts.lua
11
crafts.lua
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
minetest.register_craftitem("mobs:nametag", {
|
minetest.register_craftitem("mobs:nametag", {
|
||||||
description = S("Name Tag"),
|
description = S("Name Tag"),
|
||||||
inventory_image = "mobs_nametag.png",
|
inventory_image = "mobs_nametag.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("dye") and minetest.get_modpath("farming") then
|
if minetest.get_modpath("dye") and minetest.get_modpath("farming") then
|
||||||
@ -19,6 +20,7 @@ end
|
|||||||
minetest.register_craftitem("mobs:leather", {
|
minetest.register_craftitem("mobs:leather", {
|
||||||
description = S("Leather"),
|
description = S("Leather"),
|
||||||
inventory_image = "mobs_leather.png",
|
inventory_image = "mobs_leather.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- raw meat
|
-- raw meat
|
||||||
@ -26,6 +28,7 @@ minetest.register_craftitem("mobs:meat_raw", {
|
|||||||
description = S("Raw Meat"),
|
description = S("Raw Meat"),
|
||||||
inventory_image = "mobs_meat_raw.png",
|
inventory_image = "mobs_meat_raw.png",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
|
groups = {food_meat_raw = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- cooked meat
|
-- cooked meat
|
||||||
@ -33,6 +36,7 @@ minetest.register_craftitem("mobs:meat", {
|
|||||||
description = S("Meat"),
|
description = S("Meat"),
|
||||||
inventory_image = "mobs_meat.png",
|
inventory_image = "mobs_meat.png",
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
|
groups = {food_meat = 1, flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -46,6 +50,7 @@ minetest.register_craft({
|
|||||||
minetest.register_tool("mobs:lasso", {
|
minetest.register_tool("mobs:lasso", {
|
||||||
description = S("Lasso (right-click animal to put in inventory)"),
|
description = S("Lasso (right-click animal to put in inventory)"),
|
||||||
inventory_image = "mobs_magic_lasso.png",
|
inventory_image = "mobs_magic_lasso.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("farming") then
|
if minetest.get_modpath("farming") then
|
||||||
@ -65,6 +70,7 @@ minetest.register_alias("mobs:magic_lasso", "mobs:lasso")
|
|||||||
minetest.register_tool("mobs:net", {
|
minetest.register_tool("mobs:net", {
|
||||||
description = S("Net (right-click animal to put in inventory)"),
|
description = S("Net (right-click animal to put in inventory)"),
|
||||||
inventory_image = "mobs_net.png",
|
inventory_image = "mobs_net.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("farming") then
|
if minetest.get_modpath("farming") then
|
||||||
@ -82,6 +88,7 @@ end
|
|||||||
minetest.register_tool("mobs:shears", {
|
minetest.register_tool("mobs:shears", {
|
||||||
description = S("Steel Shears (right-click to shear)"),
|
description = S("Steel Shears (right-click to shear)"),
|
||||||
inventory_image = "mobs_shears.png",
|
inventory_image = "mobs_shears.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -96,6 +103,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem("mobs:protector", {
|
minetest.register_craftitem("mobs:protector", {
|
||||||
description = S("Mob Protection Rune"),
|
description = S("Mob Protection Rune"),
|
||||||
inventory_image = "mobs_protector.png",
|
inventory_image = "mobs_protector.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -110,7 +118,8 @@ minetest.register_craft({
|
|||||||
-- saddle
|
-- saddle
|
||||||
minetest.register_craftitem("mobs:saddle", {
|
minetest.register_craftitem("mobs:saddle", {
|
||||||
description = S("Saddle"),
|
description = S("Saddle"),
|
||||||
inventory_image = "mobs_saddle.png"
|
inventory_image = "mobs_saddle.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Loading…
Reference in New Issue
Block a user