zł and LSD - two moneys

Started by PszczolkaErina on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
zł and LSD - two moneys

I'm making a money mod with two currencies called "zł" and "LSD", also written "£sd", not to be confused with drugs.

zł currency: 1 zloty (abbrev. zł) = 100 groschen (abbrev. gr), 1 groschen = 100 mirioschen (abbrev. mi)
LSD currency: 1 pound (abbrev. L or £)= 20 shillings (abbrev. s), 1 shillings = 12 pence (abbrev. d).

 

In the case of LSD (the money, not the drug), there can also be a fractional value written after the Pence. That value can be ¼Pence, ½Pence, or ¾Pence.

Each currency will have its own items representing money.

I want each money item to have its own designated zł value and £sd value, for example, the 1 pound note will have a value of 5 zł in zł currency and £1 in £sd currency. I also want some other items (including vanilla items) to have their own values, like the emerald which is 1 of every currency (so 1 zł in zł and £1 in £sd).

I want some number variables (for each unit) and string variables (for each currency).

How I want money to be displayed:

zł money, below one groschen,  [NUMBER OF MIRIOSCHEN] mi.

zł money, below one zloty, [NUMBER OF GROSCHEN] gr (written as a decimal with two decimal places and a comma instead of a decimal point)

zł money, one zloty or higher, [NUMBER OF ZLOTYS] zł (written as a decimal with four decimal places and a comma instead of a decimal point)

£sd money, below one shilling, [NUMBER OF PENCE][FRACTIONAL VALUE OF PENCE]d

£sd money, below one pound, [NUMBER OF SHILLINGS]/[NUMBER OF PENCE][FRACTIONAL VALUE OF PENCE]

£sd money, one pound or higher, £[NUMBER OF POUNDS]/[NUMBER OF SHILLINGS]/[NUMBER OF PENCE][FRACTIONAL VALUE OF PENCE].