Bugs and Vessel Support

Corrected bugs notified by wowiamdiamonds added vessels support
This commit is contained in:
Rubenwardy 2012-09-10 18:54:04 +01:00
parent e0391e6ecb
commit cf48b7dbad
4 changed files with 67 additions and 17 deletions

View File

@ -22,6 +22,7 @@ minetest.register_craftitem("food:cheese", {
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
}) })
minetest.register_craft({ minetest.register_craft({
output = '"food:butter" 1', output = '"food:butter" 1',
recipe = { recipe = {
@ -38,5 +39,34 @@ minetest.register_craft({
minetest.register_craftitem("food:chocolate_dark", {
description = "Dark Chocolate",
inventory_image = "food_choco_dark.png",
on_use = minetest.item_eat(2),
})
minetest.register_craftitem("food:chocolate_milk", {
description = "Milk Chocolate",
inventory_image = "food_choco_dark.png",
on_use = minetest.item_eat(3),
})
minetest.register_craft({
output = '"food:chocolate_dark" 1',
recipe = {
{'"food:cocoa"','"food:cocoa"','"food:cocoa"'},
}
})
minetest.register_craft({
output = '"food:chocolate_milk" 1',
recipe = {
{"",'"food:milk"',""},
{'"food:cocoa"','"food:cocoa"','"food:cocoa"'},
}
})

View File

@ -14,18 +14,18 @@
print ("RubenFood [Master] - Loading Juices") print ("RubenFood [Master] - Loading Juices")
--------------------------Apple Juice-------------------------- --------------------------Apple Juice--------------------------
minetest.register_node("food:apple_juice", { minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice", description = "Apple Juice",
inventory_image = "food_juice_apple.png", inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2)
}) })
minetest.register_craft({ minetest.register_craft({
output = '"food:apple_juice" 4', output = '"food:apple_juice" 4',
recipe = { recipe = {
{'""','""','""'}, {"","",""},
{'""','"default:apple"','""'}, {"","default:apple",""},
{'""','"food:cup"','""'}, {"","food:cup",""},
} }
}) })
@ -34,7 +34,7 @@ minetest.register_craft({
----------------------cactus juice---------------------------- ----------------------cactus juice----------------------------
minetest.register_node(":food:cactus_juice", { minetest.register_node("food:cactus_juice", {
description = "Cactuz Juice", description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png", inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2), on_use = minetest.item_eat(2),
@ -60,19 +60,19 @@ minetest.register_craft({
-----------------------------Coffee----------------------------- -----------------------------Coffee-----------------------------
minetest.register_craftitem(":food:coffeebean",{ minetest.register_craftitem("food:coffeebean",{
description = "Raw Coffee Bean", description = "Raw Coffee Bean",
tiles = {"food_coffee.png"}, tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png", inventory_image = "food_coffee.png",
}) })
minetest.register_craftitem(":food:coffeebean_cooked",{ minetest.register_craftitem("food:coffeebean_cooked",{
description = "Cooked Coffee Bean", description = "Cooked Coffee Bean",
tiles = {"food_coffee_cooked.png"}, tiles = {"food_coffee_cooked.png"},
inventory_image = "food_coffee_cooked.png", inventory_image = "food_coffee_cooked.png",
}) })
minetest.register_node(":food:coffee", { minetest.register_node("food:coffee", {
description = "Coffee", description = "Coffee",
inventory_image = "food_coffee_cup.png", inventory_image = "food_coffee_cup.png",
on_use = minetest.item_eat(10), on_use = minetest.item_eat(10),

View File

@ -58,7 +58,7 @@ minetest.register_craft({
}) })
----------------------------Cigerete---------------------------- ----------------------------Cigerete----------------------------
minetest.register_node(":food:cigarette", { minetest.register_node("food:cigarette", {
description = "Cigarette", description = "Cigarette",
inventory_image = "food_cigar.png", inventory_image = "food_cigar.png",
on_use = minetest.item_eat(-4), on_use = minetest.item_eat(-4),

View File

@ -54,13 +54,19 @@ minetest.register_craftitem("food:rhubarb", {
}) })
end) end)
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function() node_implement("farming","farming:cocoa_bean","food:cocoa",function()
minetest.register_craftitem("food:meat_raw", { minetest.register_node("food:cocoa", {
description = "Raw meat", description = "Cocoa",
image = "animalmaterials_meat_raw.png", tiles = {"farming_cocoa.png"},
on_use = minetest.item_eat(1), visual_scale = 0.5,
groups = { meat=1, eatable=1 }, inventory_image = "farming_cocoa.png",
stack_max=25 wield_image = "farming_cocoa.png",
drawtype = "torchlike",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy=3,dig_immediate=3,flammable=2},
sounds = default.node_sound_defaults(),
}) })
end) end)
@ -105,6 +111,19 @@ end)
print "RubenFood [Support] - Animal Mod" print "RubenFood [Support] - Animal Mod"
node_implement("animalmaterials","animalmaterials:meat_raw","food:meat_raw",function()
minetest.register_craftitem("food:meat_raw", {
description = "Raw meat",
image = "animalmaterials_meat_raw.png",
on_use = minetest.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max=25
})
end)
node_implement("vessels","vessels:drinking_glass","food:cup",function()
node_implement("animalmaterials","animalmaterials:glass","food:cup",function() node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
minetest.register_craftitem("food:cup",{ minetest.register_craftitem("food:cup",{
description = "Glass", description = "Glass",
@ -112,6 +131,7 @@ node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
inventory_image = "food_cup.png", inventory_image = "food_cup.png",
}) })
end) end)
end)
node_implement("animalmaterials","animalmaterials:egg","food:egg",function() node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
minetest.register_craftitem("food:egg", { minetest.register_craftitem("food:egg", {