summaryrefslogtreecommitdiff
path: root/cocoa.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2015-04-09 09:56:10 +0100
committertenplus1 <kinsellaja@yahoo.com>2015-04-09 09:56:10 +0100
commit450c2be4c331387d6d91841e52df0e30083ed4dc (patch)
tree5188b66333ef3958c2d97f590b9fd831062a8328 /cocoa.lua
parent851234eb2c709e450e035a012b62f54a77608f0d (diff)
Simplified cocoa farming
Diffstat (limited to 'cocoa.lua')
-rw-r--r--cocoa.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/cocoa.lua b/cocoa.lua
index 30f2307..0c76f26 100644
--- a/cocoa.lua
+++ b/cocoa.lua
@@ -1,8 +1,4 @@
--- Override default jungletree, add tree=2 for cocoa placement
-
-minetest.override_item("default:jungletree", {groups = {tree=2,choppy=2,oddly_breakable_by_hand=1,flammable=2}})
-
-- Place Cocoa
function place_cocoa(itemstack, placer, pointed_thing, plantname)
@@ -21,7 +17,7 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname)
end
-- check if pointing at jungletree
- if minetest.get_item_group(under.name, "tree") ~= 2 then
+ if under.name ~= "default:jungletree" then
return
end