summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-04-30 13:28:33 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-04-30 13:28:33 +0100
commit82104e68a7fe06e8c441b22dc6f0af3ac0cd9fc0 (patch)
tree9a94c95f7a941dcc36082594aa9eac2274562b25
parent206910a477cae42cc45bb3cee89a1ac8784402ff (diff)
added beetroot and beetroot soup
-rw-r--r--README.txt1
-rw-r--r--beetroot.lua85
-rw-r--r--farming.conf_example1
-rw-r--r--init.lua2
-rw-r--r--mapgen.lua1
-rw-r--r--textures/farming_beetroot.pngbin0 -> 152 bytes
-rw-r--r--textures/farming_beetroot_1.pngbin0 -> 105 bytes
-rw-r--r--textures/farming_beetroot_2.pngbin0 -> 112 bytes
-rw-r--r--textures/farming_beetroot_3.pngbin0 -> 125 bytes
-rw-r--r--textures/farming_beetroot_4.pngbin0 -> 125 bytes
-rw-r--r--textures/farming_beetroot_5.pngbin0 -> 137 bytes
-rw-r--r--textures/farming_beetroot_soup.pngbin0 -> 161 bytes
12 files changed, 90 insertions, 0 deletions
diff --git a/README.txt b/README.txt
index f12be69..211367c 100644
--- a/README.txt
+++ b/README.txt
@@ -13,6 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
Changelog:
+1.36 - Added Beetroot, Beetroot Soup (6x beetroot, 1x bowl)
1.35 - Deprecated bronze/mese/diamond hoe's, added hoe bomb and deprecated hoe's as lucky block prizes
1.34 - Added scarecrow Base (5x sticks in a cross shape)
1.33 - Added cooking utensils (wooden bowl, saucepan, cooking pot, baking tray, skillet, cutting board, mortar & pestle, juicer, glass mixing bowl) for easier food crafts.
diff --git a/beetroot.lua b/beetroot.lua
new file mode 100644
index 0000000..1510a76
--- /dev/null
+++ b/beetroot.lua
@@ -0,0 +1,85 @@
+
+local S = farming.intllib
+
+-- beetroot
+minetest.register_craftitem("farming:beetroot", {
+ description = S("Beetroot"),
+ inventory_image = "farming_beetroot.png",
+ groups = {food_beetroot = 1, flammable = 2},
+ on_place = function(itemstack, placer, pointed_thing)
+ return farming.place_seed(itemstack, placer, pointed_thing, "farming:beetroot_1")
+ end,
+ on_use = minetest.item_eat(1),
+})
+
+-- beetroot soup
+minetest.register_craftitem("farming:beetroot_soup", {
+ description = S("Beetroot Soup"),
+ inventory_image = "farming_beetroot_soup.png",
+ groups = {flammable = 2},
+ on_use = minetest.item_eat(6, "farming:bowl"),
+})
+
+minetest.register_craft({
+ type = "shapeless",
+ output = "farming:beetroot_soup",
+ recipe = {
+ "group:food_beetroot", "group:food_beetroot",
+ "group:food_beetroot", "group:food_beetroot",
+ "group:food_beetroot", "group:food_beetroot","group:food_bowl"
+ }
+})
+
+-- red dye
+minetest.register_craft({
+ type = "shapeless",
+ output = "dye:red",
+ recipe = {"group:food_beetroot"},
+})
+
+local crop_def = {
+ drawtype = "plantlike",
+ tiles = {"farming_beetroot_1.png"},
+ paramtype = "light",
+-- paramtype2 = "meshoptions",
+-- place_param2 = 3,
+ sunlight_propagates = true,
+ waving = 1,
+ walkable = false,
+ buildable_to = true,
+ drop = "",
+ selection_box = farming.select,
+ groups = {
+ snappy = 3, flammable = 2, flora = 1, attached_node = 1,
+ not_in_creative_inventory = 1, growing = 1
+ },
+ sounds = default.node_sound_leaves_defaults()
+}
+
+-- stage 1
+minetest.register_node("farming:beetroot_1", table.copy(crop_def))
+
+-- stage 2
+crop_def.tiles = {"farming_beetroot_2.png"}
+minetest.register_node("farming:beetroot_2", table.copy(crop_def))
+
+-- stage 3
+crop_def.tiles = {"farming_beetroot_3.png"}
+minetest.register_node("farming:beetroot_3", table.copy(crop_def))
+
+-- stage 4
+crop_def.tiles = {"farming_beetroot_4.png"}
+minetest.register_node("farming:beetroot_4", table.copy(crop_def))
+
+-- stage 5
+crop_def.tiles = {"farming_beetroot_5.png"}
+crop_def.groups.growing = 0
+crop_def.drop = {
+ max_items = 4, items = {
+ {items = {'farming:beetroot'}, rarity = 1},
+ {items = {'farming:beetroot'}, rarity = 2},
+ {items = {'farming:beetroot'}, rarity = 3},
+ {items = {'farming:beetroot'}, rarity = 4},
+ }
+}
+minetest.register_node("farming:beetroot_5", table.copy(crop_def))
diff --git a/farming.conf_example b/farming.conf_example
index 449a6df..2505054 100644
--- a/farming.conf_example
+++ b/farming.conf_example
@@ -29,6 +29,7 @@ farming.garlic = true
farming.pepper = true
farming.pineapple = true
farming.peas = true
+farming.beetroot = true
farming.donuts = true
-- rarety of crops on map, default is 0.001 (higher number = more crops)
diff --git a/init.lua b/init.lua
index 962cca9..33a9ca7 100644
--- a/init.lua
+++ b/init.lua
@@ -600,6 +600,7 @@ farming.onion = true
farming.pepper = true
farming.pineapple = true
farming.peas = true
+farming.beetroot = true
farming.donuts = true
farming.rarety = 0.002 -- 0.006
@@ -655,6 +656,7 @@ if farming.onion then dofile(farming.path.."/onion.lua") end
if farming.pepper then dofile(farming.path.."/pepper.lua") end
if farming.pineapple then dofile(farming.path.."/pineapple.lua") end
if farming.peas then dofile(farming.path.."/pea.lua") end
+if farming.beetroot then dofile(farming.path.."/beetroot.lua") end
if farming.chili then dofile(farming.path.."/chili.lua") end
if farming.donuts then dofile(farming.path.."/donut.lua") end
diff --git a/mapgen.lua b/mapgen.lua
index bfe092c..2554a15 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -41,6 +41,7 @@ register_plant("grapebush", 25, 45, nil, "", -1, farming.grapes)
register_plant("onion_5", 5, 22, nil, "", -1, farming.onion)
register_plant("garlic_5", 3, 30, nil, "group:tree", 1, farming.garlic)
register_plant("pea_5", 25, 50, nil, "", -1, farming.peas)
+register_plant("beetroot_5", 1, 15, nil, "", -1, farming.beetroot)
if minetest.get_mapgen_setting("mg_name") == "v6" then
diff --git a/textures/farming_beetroot.png b/textures/farming_beetroot.png
new file mode 100644
index 0000000..6a60168
--- /dev/null
+++ b/textures/farming_beetroot.png
Binary files differ
diff --git a/textures/farming_beetroot_1.png b/textures/farming_beetroot_1.png
new file mode 100644
index 0000000..8b75e10
--- /dev/null
+++ b/textures/farming_beetroot_1.png
Binary files differ
diff --git a/textures/farming_beetroot_2.png b/textures/farming_beetroot_2.png
new file mode 100644
index 0000000..9c1ce1e
--- /dev/null
+++ b/textures/farming_beetroot_2.png
Binary files differ
diff --git a/textures/farming_beetroot_3.png b/textures/farming_beetroot_3.png
new file mode 100644
index 0000000..0f28e5e
--- /dev/null
+++ b/textures/farming_beetroot_3.png
Binary files differ
diff --git a/textures/farming_beetroot_4.png b/textures/farming_beetroot_4.png
new file mode 100644
index 0000000..35f211b
--- /dev/null
+++ b/textures/farming_beetroot_4.png
Binary files differ
diff --git a/textures/farming_beetroot_5.png b/textures/farming_beetroot_5.png
new file mode 100644
index 0000000..c4b8957
--- /dev/null
+++ b/textures/farming_beetroot_5.png
Binary files differ
diff --git a/textures/farming_beetroot_soup.png b/textures/farming_beetroot_soup.png
new file mode 100644
index 0000000..4df562e
--- /dev/null
+++ b/textures/farming_beetroot_soup.png
Binary files differ