Custom Economy Help (Forge 1.20.1)

  • Thread starter Thread starter /u/Civil_Row2185
  • Start date Start date
U

/u/Civil_Row2185

Guest
Basically, I have a custom economy going currently on my modded smp (I'm a lone dev/owner) and I'm having trouble making the adapting prices not round up to a whole number. I have kubejs and here's the plugin mod although it is a bit of a hidden gem (https://www.curseforge.com/minecraft/mc-mods/plugin-stlye-shop) Any help would be infinitely appreciated!

Description of the economy I've been making:


  1. Players can get coins from quests/player shops


  2. Coins can get converted into a physical bank card with an npc at spawn for convenience


  3. Bank card's balance is secretly on an invisible scoreboard


  4. Players can then use bank cards to buy from the admin shop (basic plugin style shop) while it secretly takes it from the scoreboard


  5. Plugin style shop mod adapts orices based on supply and demand


  6. Where I'm going crazy trying to get it to understand decimals and show that as the live price instead of it rounding to the nearest whole number
submitted by /u/Civil_Row2185
[link] [comments]

Continue reading...
 
Back
Top