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),
})
minetest.register_craft({
output = '"food:butter" 1',
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")
--------------------------Apple Juice--------------------------
minetest.register_node("food:apple_juice", {
minetest.register_craftitem("food:apple_juice", {
description = "Apple Juice",
inventory_image = "food_juice_apple.png",
on_use = minetest.item_eat(2),
on_use = minetest.item_eat(2)
})
minetest.register_craft({
output = '"food:apple_juice" 4',
recipe = {
{'""','""','""'},
{'""','"default:apple"','""'},
{'""','"food:cup"','""'},
{"","",""},
{"","default:apple",""},
{"","food:cup",""},
}
})
@ -34,7 +34,7 @@ minetest.register_craft({
----------------------cactus juice----------------------------
minetest.register_node(":food:cactus_juice", {
minetest.register_node("food:cactus_juice", {
description = "Cactuz Juice",
inventory_image = "food_juice_cactus.png",
on_use = minetest.item_eat(2),
@ -60,19 +60,19 @@ minetest.register_craft({
-----------------------------Coffee-----------------------------
minetest.register_craftitem(":food:coffeebean",{
minetest.register_craftitem("food:coffeebean",{
description = "Raw Coffee Bean",
tiles = {"food_coffee.png"},
inventory_image = "food_coffee.png",
})
minetest.register_craftitem(":food:coffeebean_cooked",{
minetest.register_craftitem("food:coffeebean_cooked",{
description = "Cooked Coffee Bean",
tiles = {"food_coffee_cooked.png"},
inventory_image = "food_coffee_cooked.png",
})
minetest.register_node(":food:coffee", {
minetest.register_node("food:coffee", {
description = "Coffee",
inventory_image = "food_coffee_cup.png",
on_use = minetest.item_eat(10),

View File

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

View File

@ -54,13 +54,19 @@ minetest.register_craftitem("food:rhubarb", {
})
end)
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
node_implement("farming","farming:cocoa_bean","food:cocoa",function()
minetest.register_node("food:cocoa", {
description = "Cocoa",
tiles = {"farming_cocoa.png"},
visual_scale = 0.5,
inventory_image = "farming_cocoa.png",
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)
@ -105,6 +111,19 @@ end)
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()
minetest.register_craftitem("food:cup",{
description = "Glass",
@ -112,6 +131,7 @@ node_implement("animalmaterials","animalmaterials:glass","food:cup",function()
inventory_image = "food_cup.png",
})
end)
end)
node_implement("animalmaterials","animalmaterials:egg","food:egg",function()
minetest.register_craftitem("food:egg", {