Add cocoa help

This commit is contained in:
Wuzzy 2017-03-11 17:42:20 +01:00
parent 54c2a1e696
commit cd53fc401b

@ -75,8 +75,9 @@ nodeboxes with multiple boxes. :-(
Using meshes will also clean up the texture mess.
]]
local crop_def = {
description = "Young Cocoa",
_doc_items_create_entry = false,
description = "Premature Cocoa",
_doc_items_create_entry = true,
_doc_items_longdesc = "Cocoas are plants which grow on the side of jungle trees. There are 3 growth stages.",
drawtype = "nodebox",
tiles = {
"[combine:32x32:12,2=mcl_cocoas_cocoa_stage_0.png", "[combine:32x32:12,22=mcl_cocoas_cocoa_stage_0.png",
@ -120,6 +121,7 @@ local crop_def = {
minetest.register_node("mcl_cocoas:cocoa_1", table.copy(crop_def))
crop_def.description = "Medium Cocoa"
crop_def._doc_items_create_entry = false
crop_def.groups.cocoa = 2
crop_def.tiles = {
"[combine:32x32:10,2=mcl_cocoas_cocoa_stage_1.png", "[combine:32x32:10,18=mcl_cocoas_cocoa_stage_1.png",
@ -150,8 +152,8 @@ minetest.register_node("mcl_cocoas:cocoa_2", table.copy(crop_def))
-- Final stage
crop_def.description = "Mature Cocoa"
crop_def._doc_items_longdesc = "A mature cocoa is a plant which grew on a jungle tree to its full size and it is ready to be harvested."
crop_def._doc_items_create_entry = true
crop_def._doc_items_entry_name = "Cocoa"
crop_def.groups.cocoa = 3
crop_def.tiles = {
-- The following 2 textures were derived from the original because the size of the top/bottom is slightly different :-(