summaryrefslogtreecommitdiff
path: root/farming/cocoa.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
commit249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3 (patch)
tree915217a9657158d2a02eb8d93507944f618d5142 /farming/cocoa.lua
parentaf2fedcf9998bb4a854c2cfd63e4cdad91a6dd5d (diff)
downloaddreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.gz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.bz2
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.xz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.zip
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo, jumping, maptools, mesecons, moreblocks, moretrees, pipeworks, signs_lib, technic, unified_dyes Deleted the peaceful_npc mod, as it is broken and unmaintained.
Diffstat (limited to 'farming/cocoa.lua')
-rw-r--r--farming/cocoa.lua22
1 files changed, 14 insertions, 8 deletions
diff --git a/farming/cocoa.lua b/farming/cocoa.lua
index b394ab2..a8491ac 100644
--- a/farming/cocoa.lua
+++ b/farming/cocoa.lua
@@ -59,6 +59,7 @@ end
minetest.register_craftitem("farming:cocoa_beans", {
description = S("Cocoa Beans"),
inventory_image = "farming_cocoa_beans.png",
+ groups = {food_cocoa = 1, flammable = 2},
on_place = function(itemstack, placer, pointed_thing)
return place_cocoa(itemstack, placer, pointed_thing, "farming:cocoa_1")
end,
@@ -81,7 +82,7 @@ minetest.register_craftitem("farming:cookie", {
minetest.register_craft( {
output = "farming:cookie 8",
recipe = {
- { "farming:wheat", "farming:cocoa_beans", "farming:wheat" },
+ {"group:food_wheat", "group:food_cocoa", "group:food_wheat" },
}
})
@@ -95,7 +96,7 @@ minetest.register_craftitem("farming:chocolate_dark", {
minetest.register_craft( {
output = "farming:chocolate_dark",
recipe = {
- { "farming:cocoa_beans", "farming:cocoa_beans", "farming:cocoa_beans" },
+ {"group:food_cocoa", "group:food_cocoa", "group:food_cocoa"},
}
})
@@ -124,25 +125,30 @@ local crop_def = {
-- stage 1
minetest.register_node("farming:cocoa_1", table.copy(crop_def))
--- stage2
+-- stage 2
crop_def.tiles = {"farming_cocoa_2.png"}
+minetest.register_node("farming:cocoa_2", table.copy(crop_def))
+
+-- stage3
+crop_def.tiles = {"farming_cocoa_3.png"}
crop_def.drop = {
items = {
{items = {'farming:cocoa_beans 1'}, rarity = 1},
}
}
-minetest.register_node("farming:cocoa_2", table.copy(crop_def))
+minetest.register_node("farming:cocoa_3", table.copy(crop_def))
--- stage 3 (final)
-crop_def.tiles = {"farming_cocoa_3.png"}
+-- stage 4 (final)
+crop_def.tiles = {"farming_cocoa_4.png"}
crop_def.groups.growing = 0
crop_def.drop = {
items = {
{items = {'farming:cocoa_beans 2'}, rarity = 1},
{items = {'farming:cocoa_beans 1'}, rarity = 2},
+ {items = {'farming:cocoa_beans 1'}, rarity = 4},
}
}
-minetest.register_node("farming:cocoa_3", table.copy(crop_def))
+minetest.register_node("farming:cocoa_4", table.copy(crop_def))
-- add random cocoa pods to jungle tree's
minetest.register_on_generated(function(minp, maxp)
@@ -180,7 +186,7 @@ minetest.register_on_generated(function(minp, maxp)
--print ("Cocoa Pod added at " .. minetest.pos_to_string(pos))
minetest.swap_node(pos, {
- name = "farming:cocoa_" .. tostring(math.random(1, 3))
+ name = "farming:cocoa_" .. tostring(math.random(1, 4))
})
end