summaryrefslogtreecommitdiff
path: root/craftitems.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-21 05:02:33 -0700
committerDonBatman <serfdon@gmail.com>2015-10-21 05:02:33 -0700
commit3c9ac0cbc10d8d43cb5cc0ba7580d326aedddace (patch)
tree198f9c6b1c0eb6a338e1fdbb462f48c1c253ec87 /craftitems.lua
First Upload
Diffstat (limited to 'craftitems.lua')
-rw-r--r--craftitems.lua19
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