mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 10:25:21 +02:00
DevTest: Add food item to test food replacement (#10642)
This commit is contained in:
@@ -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"),
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user