Skip to content

Commit

Permalink
DevTest: Add food item to test food replacement (#10642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 committed Dec 18, 2020
1 parent d5a481b commit 025035d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions games/devtest/mods/testfood/init.lua
Expand Up @@ -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"),
})

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 025035d

Please sign in to comment.