AustereTony-MCMods / Oxygen-Core

Core modification and API for Oxygen mod series.
10 stars 5 forks source link

A couple things #22

Open Satan-the-Dragoon opened 4 years ago

Satan-the-Dragoon commented 4 years ago

Firstly, love the idea of this mod series.

Secondly, my thing is the ability to use the cents for my custom currency. For example, I tried to set the price of something random to have a cent value and it doesn't count it. This also may have affected FSMM to do the same thing. Fex has tested it with his mod and my currency and it worked just fine on his end. This led me to believe that your mod may have been to cause.

I was also wondering how to set the currency name from FSMM's foney to mine, if possible. Or if possible how would I code in to my currency a link to your mod? Mind you Im a noob at coding but have some level of understanding. I use mcreator but I do take a look at the code to maybe pick up on it a little.

I know this is a lot but I would really like to contribute at least a little bit to the dev of this. Thanks so much!

AustereTony-MCMods commented 4 years ago

Hello, thank you for your interest in my project.

Oxygen uses java long number for storing currency value, so fractional numbers cannot be used (like in FSMM). Compatibility with FSMM is achieved by dividing and multiplying by 1000 the value of the currency when necessary. Thus, the value of the Oxygen currency is equal to 1 dollar FSMM per unit and it can't be changed.

You can change currency displayed name and icon. "Graphical interfaces contain widgets for currencies: an icon, a tooltip with a name. These properties can be changed through configuration files of the corresponding currency, the files are located in the ".minecraft/config/oxygen/data/client/properties/currency/" folder. To reload properties there is a command: "/oxygenc core -settings -reload-properties"." You can find more information here.