From 876014b8e8941f6de69f07e3b4cc354e9bdf3e57 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 7 Jun 2012 21:07:21 +0000 Subject: Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too. git-svn-id: http://mc-server.googlecode.com/svn/trunk@573 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index 0fca98771..85823f27e 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -243,6 +243,12 @@ public: void GrowTreeByBiome (int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export void GrowTreeImage(const sSetBlockVector & a_Blocks); + + /// Grows the plant at the specified block to its ripe stage (bonemeal used) + void GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export + + /// Grows a melon or a pumpkin next to the block specified (assumed to be the stem) + void GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockType); // tolua_export int GetBiomeAt (int a_BlockX, int a_BlockZ); // tolua_export -- cgit v1.2.3