diff options
Diffstat (limited to 'craftitems.lua')
-rw-r--r-- | craftitems.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/craftitems.lua b/craftitems.lua new file mode 100644 index 0000000..34948d8 --- /dev/null +++ b/craftitems.lua @@ -0,0 +1,19 @@ +local pelletitems = { + {"cherrys", "Cherrys","2"}, + {"apple", "Apple","3"}, + {"peach", "Peach","4"}, + {"strawberry", "Strawberry","2"}, + } +for i in ipairs (pelletitems) do + local itm = pelletitems[i][1] + local desc = pelletitems[i][1] + local hlth = pelletitems[i][1] + + +minetest.register_craftitem("mypacman:"..itm,{ + description = desc, + inventory_image = "mypacman_"..itm..".png", + on_use = minetest.item_eat(2), + groups = {not_in_creative_inventory = 1}, +}) +end |