-
Notifications
You must be signed in to change notification settings - Fork 3
EMC
Nearly every obtainable item has an EMC (Energy/Matter Covalence) value. Some items are worth more, and some are worth less. For example, diamonds have an EMC value of 8192, and cobblestone has an EMC value of 1. This means that to create a diamond, you would need 8192 cobblestone (and you can use 1 diamond to create 8192 cobblestone). Items can be converted to the equivalent amount of EMC, and vice versa.
EMC can be stored with the player (referred to as "personal EMC") by putting items into a Transmutation Table(t) or a Deconstructor without a Star inside. Your personal EMC is displayed in the bottom right corner of the screen (to avoid interfering with the debug text and MineClone's effects). Personal EMC is used for Constructors, Transmutation Table(t)s, and various other things. Due to technical limitations (and me being too lazy to create a complicated solution), personal EMC is limited at 1,000,000,000,000. The limit used to be 2,147,483,647, AKA the 32-bit integer limit, but I figured out a way to increase it.
EMC can also be stored inside Klein Stars and Magnum Stars
All base EMC values can be found in zzzz_exchangeclone_init/base_emc_values.lua
. Items that can be crafted from those items automatically have their EMC values registered. This includes cooking in a furnace, and (if using Technic Beta), most Technic recipes.
Surprisingly, the automatic EMC values don't really take that long to calculate. The log below is the result of loading ExchangeClone in Mineclone2 (along with a couple of other mods because I was too lazy to disable them). As you can see, it only took about 3 seconds (at least on my computer) to register everything. Of course, adding more mods and other stuff will make it slower.
2023-12-26 17:08:02: ACTION[Main]: [ExchangeClone] Registering own stuff
2023-12-26 17:08:02: ACTION[Main]: [ExchangeClone] Done (34.61 milliseconds)
2023-12-26 17:08:05: ACTION[Main]: [ExchangeClone] Registering energy values
2023-12-26 17:08:05: ACTION[Main]: [ExchangeClone] Iteration #1
2023-12-26 17:08:07: ACTION[Main]: [ExchangeClone] Iteration #2
2023-12-26 17:08:07: ACTION[Main]: [ExchangeClone] Iteration #3
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Iteration #4
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Iteration #5
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Iteration #6
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Iteration #7
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Iteration #8
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] No change, stopping.
2023-12-26 17:08:08: ACTION[Main]: [ExchangeClone] Done registering energy values (3.051089 seconds)