Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readCreditedCoins

readCreditedCoins(world): number

Every coin addCoins has credited on world, to any entity: a count that only rises from 0 since the world was made. A spend never lowers it, and a wallet a save restores or a game sets by hand never raises it. A round scores its rise while it plays; a scoreboard or a quest can count coins earned the same way. 0 on a page in a room, where the room credits every coin.

Parameter Type
world World

number