TerraFirmaCraft

TerraFirmaCraft

2M Downloads

A snippet of CraftTweaker code for registering foods

drhaber opened this issue ยท 1 comments

commented
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.

commented

Both the github wiki and the TNG wiki are open to anyone to edit.