Index: Bindings.cpp
===================================================================
--- Bindings.cpp	(revision 1672)
+++ Bindings.cpp	(working copy)
@@ -1,6 +1,6 @@
 /*
 ** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 07/07/13 16:40:05.
+** Generated automatically by tolua++-1.0.92 on 07/11/13 20:55:03.
 */
 
 #ifndef __cplusplus
@@ -2561,6 +2561,36 @@
 }
 #endif //#ifndef TOLUA_DISABLE
 
+/* function: StringToMobType */
+#ifndef TOLUA_DISABLE_tolua_AllToLua_StringToMobType00
+static int tolua_AllToLua_StringToMobType00(lua_State* tolua_S)
+{
+#ifndef TOLUA_RELEASE
+ tolua_Error tolua_err;
+ if (
+     !tolua_iscppstring(tolua_S,1,0,&tolua_err) ||
+     !tolua_isnoobj(tolua_S,2,&tolua_err)
+ )
+  goto tolua_lerror;
+ else
+#endif
+ {
+  const AString a_BiomeString = ((const AString)  tolua_tocppstring(tolua_S,1,0));
+  {
+   int tolua_ret = (int)  StringToMobType(a_BiomeString);
+   tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
+   tolua_pushcppstring(tolua_S,(const char*)a_BiomeString);
+  }
+ }
+ return 2;
+#ifndef TOLUA_RELEASE
+ tolua_lerror:
+ tolua_error(tolua_S,"#ferror in function 'StringToMobType'.",&tolua_err);
+ return 0;
+#endif
+}
+#endif //#ifndef TOLUA_DISABLE
+
 /* function: StringToDimension */
 #ifndef TOLUA_DISABLE_tolua_AllToLua_StringToDimension00
 static int tolua_AllToLua_StringToDimension00(lua_State* tolua_S)
@@ -6786,6 +6816,39 @@
 }
 #endif //#ifndef TOLUA_DISABLE
 
+/* method: SetHealth of class  cEntity */
+#ifndef TOLUA_DISABLE_tolua_AllToLua_cEntity_SetHealth00
+static int tolua_AllToLua_cEntity_SetHealth00(lua_State* tolua_S)
+{
+#ifndef TOLUA_RELEASE
+ tolua_Error tolua_err;
+ if (
+     !tolua_isusertype(tolua_S,1,"cEntity",0,&tolua_err) ||
+     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
+     !tolua_isnoobj(tolua_S,3,&tolua_err)
+ )
+  goto tolua_lerror;
+ else
+#endif
+ {
+  cEntity* self = (cEntity*)  tolua_tousertype(tolua_S,1,0);
+  int a_Health = ((int)  tolua_tonumber(tolua_S,2,0));
+#ifndef TOLUA_RELEASE
+  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHealth'", NULL);
+#endif
+  {
+   self->SetHealth(a_Health);
+  }
+ }
+ return 0;
+#ifndef TOLUA_RELEASE
+ tolua_lerror:
+ tolua_error(tolua_S,"#ferror in function 'SetHealth'.",&tolua_err);
+ return 0;
+#endif
+}
+#endif //#ifndef TOLUA_DISABLE
+
 /* method: SetMaxHealth of class  cEntity */
 #ifndef TOLUA_DISABLE_tolua_AllToLua_cEntity_SetMaxHealth00
 static int tolua_AllToLua_cEntity_SetMaxHealth00(lua_State* tolua_S)
@@ -28275,6 +28338,7 @@
   tolua_function(tolua_S,"ItemTypeToString",tolua_AllToLua_ItemTypeToString00);
   tolua_function(tolua_S,"ItemToFullString",tolua_AllToLua_ItemToFullString00);
   tolua_function(tolua_S,"StringToBiome",tolua_AllToLua_StringToBiome00);
+  tolua_function(tolua_S,"StringToMobType",tolua_AllToLua_StringToMobType00);
   tolua_function(tolua_S,"StringToDimension",tolua_AllToLua_StringToDimension00);
   tolua_function(tolua_S,"DamageTypeToString",tolua_AllToLua_DamageTypeToString00);
   tolua_function(tolua_S,"StringToDamageType",tolua_AllToLua_StringToDamageType00);
@@ -28519,6 +28583,7 @@
    tolua_function(tolua_S,"KilledBy",tolua_AllToLua_cEntity_KilledBy00);
    tolua_function(tolua_S,"Heal",tolua_AllToLua_cEntity_Heal00);
    tolua_function(tolua_S,"GetHealth",tolua_AllToLua_cEntity_GetHealth00);
+   tolua_function(tolua_S,"SetHealth",tolua_AllToLua_cEntity_SetHealth00);
    tolua_function(tolua_S,"SetMaxHealth",tolua_AllToLua_cEntity_SetMaxHealth00);
    tolua_function(tolua_S,"GetMaxHealth",tolua_AllToLua_cEntity_GetMaxHealth00);
    tolua_function(tolua_S,"StartBurning",tolua_AllToLua_cEntity_StartBurning00);
Index: Bindings.h
===================================================================
--- Bindings.h	(revision 1672)
+++ Bindings.h	(working copy)
@@ -1,6 +1,6 @@
 /*
 ** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 07/07/13 16:40:06.
+** Generated automatically by tolua++-1.0.92 on 07/11/13 20:55:04.
 */
 
 /* Exported function */
Index: BlockID.cpp
===================================================================
--- BlockID.cpp	(revision 1672)
+++ BlockID.cpp	(working copy)
@@ -321,6 +321,56 @@
 
 
 
+int StringToMobType(const AString & a_MobString)
+{
+	static struct {
+		int m_MobType;
+		const char * m_String;
+	} MobMap [] =
+	{
+		{E_ENTITY_TYPE_CREEPER,       "Creeper"},
+		{E_ENTITY_TYPE_SKELETON,      "Skeleton"},
+		{E_ENTITY_TYPE_SPIDER,        "Spider"},
+		{E_ENTITY_TYPE_GIANT,         "Giant"},
+		{E_ENTITY_TYPE_ZOMBIE,        "Zombie"},
+		{E_ENTITY_TYPE_SLIME,         "Slime"},
+		{E_ENTITY_TYPE_GHAST,         "Ghast"},
+		{E_ENTITY_TYPE_ZOMBIE_PIGMAN, "ZombiePigman"},
+		{E_ENTITY_TYPE_ENDERMAN,      "Enderman"},
+		{E_ENTITY_TYPE_CAVE_SPIDER,   "CaveSpider"},
+		{E_ENTITY_TYPE_SILVERFISH,    "SilverFish"},
+		{E_ENTITY_TYPE_BLAZE,         "Blaze"},
+		{E_ENTITY_TYPE_MAGMA_CUBE,    "MagmaCube"},
+		{E_ENTITY_TYPE_ENDER_DRAGON,  "EnderDragon"},
+		{E_ENTITY_TYPE_WITHER,        "Wither"},
+		{E_ENTITY_TYPE_BAT,           "Bat"},
+		{E_ENTITY_TYPE_WITCH,         "Witch"},
+		{E_ENTITY_TYPE_PIG,           "Pig"},
+		{E_ENTITY_TYPE_SHEEP,         "Sheep"},
+		{E_ENTITY_TYPE_COW,           "Cow"},
+		{E_ENTITY_TYPE_CHICKEN,       "Chicken"},
+		{E_ENTITY_TYPE_SQUID,         "Squid"},
+		{E_ENTITY_TYPE_WOLF,          "Wolf"},
+		{E_ENTITY_TYPE_MOOSHROOM,     "Mushroom"},
+		{E_ENTITY_TYPE_SNOW_GOLEM,    "SnowGolem"},
+		{E_ENTITY_TYPE_OCELOT,        "Ocelot"},
+		{E_ENTITY_TYPE_IRON_GOLEM,    "IronGolem"}, 
+		{E_ENTITY_TYPE_VILLAGER,      "Villager"},
+	};
+	for (int i = 0; i < ARRAYCOUNT(MobMap); i++)
+	{
+		if (NoCaseCompare(MobMap[i].m_String, a_MobString) == 0)
+		{
+			return MobMap[i].m_MobType;
+		}
+	}  // for i - BiomeMap[]
+	return (int)-1;
+}
+
+
+
+
+
 eDimension StringToDimension(const AString & a_DimensionString)
 {
 	// First try decoding as a number
Index: BlockID.h
===================================================================
--- BlockID.h	(revision 1672)
+++ BlockID.h	(working copy)
@@ -688,6 +688,9 @@
 /// Translates a biome string to biome enum. Takes either a number or a biome alias (built-in). Returns -1 on failure.
 extern EMCSBiome StringToBiome(const AString & a_BiomeString);
 
+/// Translates a mob string to mobtype.
+extern int StringToMobType(const AString & a_BiomeString);
+
 /// Translates a dimension string to dimension enum. Takes either a number or a dimension alias (built-in). Returns -1000 on failure
 extern eDimension StringToDimension(const AString & a_DimensionString);
 
