[Suggestion] EMC calculation. An idea for mod compitality
zlepper opened this issue ยท 2 comments
For an increased compitality with other mods how about adding a system along these lines, if possible:
EE gives every base material an EMC value (or can grab it form some online table)
Then it uses those values to calculate the EMC value of stuff created from that.
for example: buildcraft. Wooden conduction pipe. recipe contains 1 glass and 2 Wooden planks. The wooden planks would each have a value of 4. And the glass would have a value of 1.
EE would then say 4+4+1 = 9 and then divide that number with the amount of pipes made, in this case 8.
9/8 = 1.125 And since EE can't use float values (not sure about this) if would round it down to 1. (This would also prevent automatic crafting loops.)
Then EE would do this with all Items on the first load, and if new mods are detected it would check the crafting recipies from that mod and add the EMC value to those items too.
Not sure if this could at all be implimented without some editing to the minecraft.jar but it sure would make life a lot easier for a lot of us.
If you need any more details i would be happy to provide
I think he already does this, it was mentioned somewhere that the EMC API was dynamically calculated and supported modification of the values for iron, wood, etc etc.