zombies4test/foods/init.lua

43 lines
845 B
Lua
Raw Normal View History

2023-01-23 04:13:39 +03:00
--- CANNED :
minetest.register_craftitem("foods:canned_tomato", {
description = " Canned Tomato",
inventory_image = "beans_canned.png",
on_use = minetest.item_eat(5)
})
minetest.register_craftitem("foods:canned_beans", {
description = "Canned Beans",
inventory_image = "canned_tomato.png",
on_use = minetest.item_eat(7)
})
--- CHIPS :
minetest.register_craftitem("foods:chips", {
description = "Chips",
inventory_image = "chips.png",
on_use = minetest.item_eat(7)
})
--- CANDY :
minetest.register_craftitem("foods:candy", {
description = "Candy",
inventory_image = "candy.png",
on_use = minetest.item_eat(3)
})
minetest.register_craftitem("foods:chocolate_bar", {
description = "Chocolate Bar",
inventory_image = "chocolate_bar.png",
on_use = minetest.item_eat(3)
})