summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2016-05-20 12:33:10 +0200
committerRogier <rogier777@gmail.com>2016-06-27 23:23:54 +0200
commitc87a169fdd1ff0b6a08407ff2564f52c15def3cf (patch)
tree6ef611288ae912212c99017ff1a4481ca7a31ee3
parentafab0692df2d99c36473568602d1cc4059aa2e65 (diff)
Add recipes with dates (and nuts, and coconut)
Using a combination of dates, nuts and coconut, an extremely high energy date-nut cake can be baked (32 units of food). It's main purpose is to be a very concentrated transport mechanism of food, but it can be used for instant replenishment of a starving soul. In practise, it will be used to craft date-nut energy bars, which merely have a good nutritional value (4 units). Because of its exceptional nature, the cake requires special ingredients (all three types of nuts, as well as coconuts), and given the ingredients, 3 steps are needed (including one cooking step) to bake it. All of the ingredients themselves, except dates, are not found in nature, but must also be prepared.
-rw-r--r--LICENSE3
-rw-r--r--crafts.lua77
-rw-r--r--depends.txt1
-rw-r--r--textures/moretrees_date_nut_bar.pngbin0 -> 685 bytes
-rw-r--r--textures/moretrees_date_nut_batter.pngbin0 -> 608 bytes
-rw-r--r--textures/moretrees_date_nut_cake.pngbin0 -> 695 bytes
-rw-r--r--textures/moretrees_date_nut_snack.pngbin0 -> 450 bytes
7 files changed, 80 insertions, 1 deletions
diff --git a/LICENSE b/LICENSE
index 7966b3f..b7c0f1f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -7,10 +7,11 @@ All source code:
Date palm code (date_palm.lua)
© 2016, Rogier <rogier777@gmail.com>
Published under the terms and conditions of the WTFPL.
-All date palm textures:
+All date & date palm textures and date-based food:
© 2016, Rogier <rogier777@gmail.com>
Published under the terms and conditions of CC-BY-SA-3.0 Unported.
- Three of the date palm textures are modifications of existing moretrees textures
+ - The date cake batter is a modification of the acorn muffin batter
All sapling textures (textures/*_sapling.png):
© 2013, Tim Huppertz <mitroman@naturalnet.de>
Published under the terms and conditions of CC-BY-SA-3.0 Unported.
diff --git a/crafts.lua b/crafts.lua
index 68b556e..9a0982b 100644
--- a/crafts.lua
+++ b/crafts.lua
@@ -69,6 +69,29 @@ minetest.register_craftitem("moretrees:date", {
on_use = minetest.item_eat(1),
})
+minetest.register_craftitem("moretrees:date_nut_snack", {
+ description = S("Date & nut snack"),
+ inventory_image = "moretrees_date_nut_snack.png",
+ on_use = minetest.item_eat(4),
+})
+
+minetest.register_craftitem("moretrees:date_nut_batter", {
+ description = S("Date-nut cake batter"),
+ inventory_image = "moretrees_date_nut_batter.png",
+})
+
+minetest.register_craftitem("moretrees:date_nut_cake", {
+ description = S("Date-nut cake"),
+ inventory_image = "moretrees_date_nut_cake.png",
+ on_use = minetest.item_eat(32),
+})
+
+minetest.register_craftitem("moretrees:date_nut_bar", {
+ description = S("Date-nut energy bar"),
+ inventory_image = "moretrees_date_nut_bar.png",
+ on_use = minetest.item_eat(4),
+})
+
minetest.register_craftitem("moretrees:acorn_muffin_batter", {
description = S("Acorn Muffin batter"),
inventory_image = "moretrees_acorn_muffin_batter.png",
@@ -117,6 +140,60 @@ end
minetest.register_craft({
type = "shapeless",
+ output = "moretrees:date_nut_snack",
+ recipe = {
+ "moretrees:date",
+ "moretrees:date",
+ "moretrees:date",
+ "moretrees:spruce_nuts",
+ "moretrees:cedar_nuts",
+ "moretrees:fir_nuts",
+ }
+})
+
+-- The date-nut cake is an exceptional food item due to its highly
+-- concentrated nature (32 food units). Because of that, it requires
+-- many different ingredients, and, starting from the base ingredients
+-- found or harvested in nature, it requires many steps to prepare.
+local flour
+if minetest.registered_nodes["farming:flour"] then
+ flour = "farming:flour"
+else
+ flour = "moretrees:acorn_muffin_batter"
+end
+minetest.register_craft({
+ type = "shapeless",
+ output = "moretrees:date_nut_batter",
+ recipe = {
+ "moretrees:date_nut_snack",
+ "moretrees:date_nut_snack",
+ "moretrees:date_nut_snack",
+ "moretrees:coconut_milk",
+ "moretrees:date_nut_snack",
+ "moretrees:raw_coconut",
+ "moretrees:coconut_milk",
+ flour,
+ "moretrees:raw_coconut",
+ },
+ replacements = {
+ { "moretrees:coconut_milk", "vessels:drinking_glass 2" }
+ }
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "moretrees:date_nut_cake",
+ recipe = "moretrees:date_nut_batter",
+})
+
+minetest.register_craft({
+ type = "shapeless",
+ output = "moretrees:date_nut_bar 8",
+ recipe = {"moretrees:date_nut_cake"},
+})
+
+minetest.register_craft({
+ type = "shapeless",
output = "moretrees:acorn_muffin_batter",
recipe = {
"moretrees:acorn",
diff --git a/depends.txt b/depends.txt
index 6d36526..7896571 100644
--- a/depends.txt
+++ b/depends.txt
@@ -4,4 +4,5 @@ vessels
stairs?
moreblocks?
intllib?
+farming?
diff --git a/textures/moretrees_date_nut_bar.png b/textures/moretrees_date_nut_bar.png
new file mode 100644
index 0000000..6895001
--- /dev/null
+++ b/textures/moretrees_date_nut_bar.png
Binary files differ
diff --git a/textures/moretrees_date_nut_batter.png b/textures/moretrees_date_nut_batter.png
new file mode 100644
index 0000000..47d8e08
--- /dev/null
+++ b/textures/moretrees_date_nut_batter.png
Binary files differ
diff --git a/textures/moretrees_date_nut_cake.png b/textures/moretrees_date_nut_cake.png
new file mode 100644
index 0000000..5084e71
--- /dev/null
+++ b/textures/moretrees_date_nut_cake.png
Binary files differ
diff --git a/textures/moretrees_date_nut_snack.png b/textures/moretrees_date_nut_snack.png
new file mode 100644
index 0000000..1766dab
--- /dev/null
+++ b/textures/moretrees_date_nut_snack.png
Binary files differ