forked from Mirrorlandia_minetest/minetest
25 lines
683 B
Lua
25 lines
683 B
Lua
local S = minetest.get_translator("testfood")
|
|
|
|
minetest.register_craftitem("testfood:good1", {
|
|
description = S("Good Food (+1)"),
|
|
inventory_image = "testfood_good.png",
|
|
on_use = minetest.item_eat(1),
|
|
})
|
|
minetest.register_craftitem("testfood:good5", {
|
|
description = S("Good Food (+5)"),
|
|
inventory_image = "testfood_good2.png",
|
|
on_use = minetest.item_eat(5),
|
|
})
|
|
|
|
minetest.register_craftitem("testfood:bad1", {
|
|
description = S("Bad Food (-1)"),
|
|
inventory_image = "testfood_bad.png",
|
|
on_use = minetest.item_eat(-1),
|
|
})
|
|
minetest.register_craftitem("testfood:bad5", {
|
|
description = S("Bad Food (-5)"),
|
|
inventory_image = "testfood_bad2.png",
|
|
on_use = minetest.item_eat(-5),
|
|
})
|
|
|