Page 1 of 1

game.addproductionstat / game.addconsumptionstat

Posted: Wed Jul 01, 2015 1:08 am
by ljdp
API to add production and consumption statistics to the production stats gui when you press 'P'.
This will be useful for mods that generate and consume items via non-standard entities. For example treefarm.

Code: Select all

game.addproductionstat{ item = "raw-wood", count = 10 }
game.addconsumptionstat{ item = "iron-ore", count = 5 }