I just added a rocktail to my itemdef, and i also added rocktail to my food class and for some reason when i click eat, it weilds the rocktail instead of eatings it. How can i fix it? this is the itemdef code
Code:
case 15272:
itemDef.modelID = 48728;
itemDef.name = "Rocktail";
itemDef.description = "Rocktail".getBytes();
itemDef.modelZoom = 1332;
itemDef.modelRotation1 = 499;
itemDef.modelRotation2 = 1926;
itemDef.modelOffset1 = 3;
itemDef.modelOffset2 = 0;
itemDef.aByte154 = -11;
itemDef.groundActions = new String[5];
itemDef.groundActions[2] = "Take";
itemDef.actions = new String[5];
itemDef.actions[4] = "Drop";
itemDef.actions[1] = "Eat";
break;