1
0
mirror of https://github.com/rubenwardy/food.git synced 2025-01-10 08:30:16 +01:00

Dofiles and cigarete

This commit is contained in:
Zaraki98 2013-09-03 18:22:23 +02:00
parent 31acc8712e
commit db29458b2a

View File

@ -24,10 +24,11 @@ dofile(minetest.get_modpath("food").."/food/soup.lua")
dofile(minetest.get_modpath("food").."/snacks/crumbles.lua")
dofile(minetest.get_modpath("food").."/snacks/cakes.lua")
dofile(minetest.get_modpath("food").."/snacks/tarts.lua")
dofile(minetest.get_modpath("food").."/snacks/misc.lua")
dofile(minetest.get_modpath("food").."/drinks/juice.lua")
dofile(minetest.get_modpath("food").."/drinks/hot.lua")
dofile(minetest.get_modpath("food").."/drinks/milkshakes.lua")
----------------------------Cup------------------------------
@ -100,4 +101,20 @@ minetest.register_craft({
}
})
----------------------------Cigarete----------------------------
minetest.register_craftitem("food:cigarette", {
description = "Cigarette",
inventory_image = "food_cigar.png",
on_use = minetest.item_eat(-4),
})
minetest.register_craft({
output = '"food:cigarette" 1',
recipe = {
{'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'},
}
})
print("Food: Mainframe loaded")