mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
DevTest: Add food item to test food replacement (#10642)
This commit is contained in:
parent
d5a481b4e6
commit
025035db5c
@ -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"),
|
||||
})
|
||||
|
||||
|
BIN
games/devtest/mods/testfood/textures/testfood_replace.png
Normal file
BIN
games/devtest/mods/testfood/textures/testfood_replace.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 135 B |
Loading…
Reference in New Issue
Block a user