Add simple food poisoning to some food items

This commit is contained in:
Wuzzy 2017-02-28 04:53:52 +01:00
parent 02bb8adbe3
commit 6ec9da0fae
5 changed files with 24 additions and 7 deletions

View file

@ -83,9 +83,11 @@ minetest.register_craftitem("mcl_farming:potato_item_poison", {
description = "Poisonous Potato",
stack_max = 64,
inventory_image = "farming_potato_poison.png",
on_place = minetest.item_eat(2),
on_secondary_use = minetest.item_eat(2),
groups = { food = 2, eatable = 2 },
-- TODO: Cause status effects
-- TODO: Raise to 2
on_place = minetest.item_eat(0),
on_secondary_use = minetest.item_eat(0),
groups = { food = 2, eatable = 0 },
})
minetest.register_craft({