DevTest: Add food item to test food replacement (#10642)

This commit is contained in:
Wuzzy 2020-12-18 19:38:39 +01:00 committed by GitHub
parent d5a481b4e6
commit 025035db5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -22,3 +22,10 @@ minetest.register_craftitem("testfood:bad5", {
on_use = minetest.item_eat(-5),
})
minetest.register_craftitem("testfood:replace1", {
description = S("Replacing Food (+1)").."\n"..
S("Replaced with 'Good Food (+1)' when eaten"),
inventory_image = "testfood_replace.png",
on_use = minetest.item_eat(1, "testfood:good1"),
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B