A snippet of CraftTweaker code for registering foods
drhaber opened this issue ยท 1 comments
var FoodItem = IItemStack;
var Carbs = float;
var Fat = float;
var Protien = float;
var Vitamins = float;
var Minerals = float;
var Calories = float;
var Water = float;
var Decay = float;
registerFood(FoodItem, [Carbs,Fat,Protien,Vitamins,Minerals], Calories, Water, Decay);
I wrote this with goal of making the task of adding food values to other mod's item's easier, and I am offering it for the wiki.