add mod : miam

master
D ø u G y 2017-05-19 16:12:16 +02:00
parent 8225a31003
commit 29c44d2cf3
4 changed files with 22 additions and 0 deletions

22
Mods/miam/init.lua Normal file
View File

@ -0,0 +1,22 @@
-- Mod Name : miam
-- Mod Description : adds some food items
-- Mod Author : DouGy
minetest.register_craftitem("miam:orange", {
description = "Orange",
inventory_image = "miam_orange.png",
on_use = minetest.item_eat(5)
})
minetest.register_craftitem("miam:lemon", {
description = "Lemon",
inventory_image = "miam_lemon.png",
on_use = minetest.item_eat(10)
})
minetest.register_craftitem("miam:cherry", {
description = "Cherry",
inventory_image = "miam_cherry.png",
on_use = minetest.item_eat(15)
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B