Initial commit

This commit is contained in:
2023-02-19 21:41:32 +01:00
commit 74d5334e72
1522 changed files with 753891 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
local S = minetest.get_translator("testfood")
minetest.register_craftitem("testfood:good1", {
description = S("Good Food (+1)"),
inventory_image = "testfood_good.png",
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("testfood:good5", {
description = S("Good Food (+5)"),
inventory_image = "testfood_good2.png",
on_use = minetest.item_eat(5),
})
minetest.register_craftitem("testfood:bad1", {
description = S("Bad Food (-1)"),
inventory_image = "testfood_bad.png",
on_use = minetest.item_eat(-1),
})
minetest.register_craftitem("testfood:bad5", {
description = S("Bad Food (-5)"),
inventory_image = "testfood_bad2.png",
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"),
})

View File

@@ -0,0 +1,2 @@
name = testfood
description = For testing food items

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B