summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dairy.lua30
-rw-r--r--drinks.lua18
-rw-r--r--init.lua2
-rw-r--r--support.lua34
4 files changed, 67 insertions, 17 deletions
diff --git a/dairy.lua b/dairy.lua
index 017fea1..50f581c 100644
--- a/dairy.lua
+++ b/dairy.lua
@@ -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"'},
+ }
+})
+
+
+
diff --git a/drinks.lua b/drinks.lua
index e689b0d..339f915 100644
--- a/drinks.lua
+++ b/drinks.lua
@@ -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),
diff --git a/init.lua b/init.lua
index 0843b60..6035626 100644
--- a/init.lua
+++ b/init.lua
@@ -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),
diff --git a/support.lua b/support.lua
index cd5bdc3..07839d9 100644
--- a/support.lua
+++ b/support.lua
@@ -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", {