summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--depends.txt3
-rw-r--r--init.lua1
-rw-r--r--snacks/misc.lua36
-rw-r--r--support.lua16
-rw-r--r--textures/farming_banana.pngbin0 -> 515 bytes
-rw-r--r--textures/food_banana_split.pngbin0 -> 273 bytes
-rw-r--r--textures/food_banana_split_raw.pngbin0 -> 285 bytes
7 files changed, 54 insertions, 2 deletions
diff --git a/depends.txt b/depends.txt
index a916278..331d858 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,2 +1 @@
-default
-bucket \ No newline at end of file
+default \ No newline at end of file
diff --git a/init.lua b/init.lua
index fb5bc88..ea33011 100644
--- a/init.lua
+++ b/init.lua
@@ -24,6 +24,7 @@ dofile(minetest.get_modpath("food").."/food/baking.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")
diff --git a/snacks/misc.lua b/snacks/misc.lua
new file mode 100644
index 0000000..9c33cfb
--- /dev/null
+++ b/snacks/misc.lua
@@ -0,0 +1,36 @@
+-- RUBENFOOD MOD
+-- A mod written by rubenwardy that adds
+-- food to the minetest game
+-- =====================================
+-- >> rubenfood/snacks/crumbles.lua
+-- adds crumbles
+-- =====================================
+-- [regis-food] Rhubarb Crumble
+-- =====================================
+
+print "Food [Master] - Loading Splits"
+
+-- Banana Split
+
+minetest.register_craftitem("food:banana_split_raw", {
+ description = "Banana Split Raw",
+ inventory_image = "food_banana_split_raw.png",
+})
+
+minetest.register_craftitem("food:banana_split", {
+ description = "Banana Split",
+ inventory_image = "food_banana_split.png",
+ groups={food=1},
+ on_use = minetest.item_eat(3),
+})
+
+minetest.register_craft({
+ output = "food:banana_split_raw",
+ recipe = {{"food:chocolate_milk"},{"food:banana"}},
+ replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}},
+})
+minetest.register_craft({
+ type = "cooking",
+ output = "food:banana_split",
+ recipe = "food:banana_split_raw",
+})
diff --git a/support.lua b/support.lua
index 4f3e095..8ad064d 100644
--- a/support.lua
+++ b/support.lua
@@ -102,6 +102,22 @@ minetest.register_craftitem("food:cocoa", {
})
end)
+node_implement("farming_plus","farming_plus:banana","food:banana",function()
+mminetest.register_node("food:banana", {
+ description = "Banana",
+ tiles = {"farming_banana.png"},
+ inventory_image = "farming_banana.png",
+ wield_image = "farming_banana.png",
+ drawtype = "torchlike",
+ paramtype = "light",
+ sunlight_propagates = true,
+ walkable = false,
+ groups = {fleshy=3,dig_immediate=3,flammable=2},
+ sounds = default.node_sound_defaults(),
+ on_use = minetest.item_eat(6),
+})
+end)
+
diff --git a/textures/farming_banana.png b/textures/farming_banana.png
new file mode 100644
index 0000000..f775e14
--- /dev/null
+++ b/textures/farming_banana.png
Binary files differ
diff --git a/textures/food_banana_split.png b/textures/food_banana_split.png
new file mode 100644
index 0000000..fdec0fb
--- /dev/null
+++ b/textures/food_banana_split.png
Binary files differ
diff --git a/textures/food_banana_split_raw.png b/textures/food_banana_split_raw.png
new file mode 100644
index 0000000..7585f7a
--- /dev/null
+++ b/textures/food_banana_split_raw.png
Binary files differ