nahkd123 / stonks

Global market mod for top selling block game
https://nahkd123.github.io/stonks/
MIT License
2 stars 0 forks source link

Question: Scoreboard as economy system #53

Closed BrewDawg12 closed 5 months ago

BrewDawg12 commented 5 months ago

How do you make it so a score on a scoreboard is the $ on the market?

nahkd123 commented 5 months ago

If I understand your question correctly, you are trying to use scoreboard score as money for Stonks.

Open config/stonks/config in plain text editor and add new scoreboard economy adapter, which is described in https://nahkd123.github.io/stonks/References/Adapters/ScoreboardEconomyAdapter/

For example, to use playerBalance objective for economy:

useAdapter stonks.fabric.adapter.provided.ScoreboardEconomyAdapter
    objective playerBalance

    // Decimal points (Eg: 2 decimal points means 200 score == $2.00)
    decimals 2
BrewDawg12 commented 5 months ago

@nahkd123 Thank You, Great Mod By The Way