Starbound

Starbound

63 ratings
Currency Variations
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
19.759 KB
20 Jul, 2023 @ 2:22pm
22 Jul, 2023 @ 5:21pm
3 Change Notes ( view )

Subscribe to download
Currency Variations

Description
Have you ever wanted that pixels looked and felt like you were actually stealing valuable stuff?
No?
Oh, uhhhh, this is akward....

For users
This mod makes pixels look like a variety of coins and gems when in chests or on the ground.
Any "replacer" mod still works like normal except in the 2 cases above.
Though they are still just pixels and are worth the same, it's neat and can allow for more indepth pixel replacers.

For modders
Adds a new buildscript (buildCurrency.lua) that allows the icon to be randomly selected from some config options.
  • "weights": A list of numbers to determine how likely is each image.
  • "weightIcon": A list of images to be selected.
Check the files in this mod for the specifics, there's like... two.

Ready-support
If you want your mod to work with/without this mod:
  • Create a lua file that contains this code:
    function build(directory, config, parameters, level, seed) pcall(function() require("/items/buildscripts/buildCurrency.lua") build(directory, config, parameters, level, seed) end) return config, parameters end
  • Make the builder of your currency files that new lua file.
  • This will make it work like a normal replacer without this mod, but will use this mod if installed.

Patching
  • See the included "money.currency.patch".
  • Images must be provided.
  • The above trick can be used to make it "support ready".
  • If not then it MUST also require this mod, else the game won't start.

Help needed
If someone knows how to obtain item-count inside a buildscript, it would really help out making this mod change icon depending on how much currency is in the item.

Compatibility
Yes

Uninstalling
Shouldn't be a problem, but pixels on the ground or in chests may become invisible because the images were removed.
New chests won't have this problem.
11 Comments
MithranArkanere 3 Jun @ 10:51am 
Since it doesn't seem like it's possible to check the amount to turn pixels into coins of various denominations, I though "hey, let's go all in on the randomness", and made a bunch images for the pixels that look like the vanilla pixels recolored. 6 colors of the rainbow, black, white and gray, brown and pink.

It looks pretty good, it makes it look a bit like things break into pixels.

So I was thinking, would it be possible to give the pixel icon a compeltely random color every time it's spawned, using just 1 image and recoloring the icon every time, like with equipment and saplings?
Katsuki 22 May @ 8:20am 
Cool! Def using this!
Boss Poltroon 8 Mar, 2024 @ 12:12am 
This actually really adds alot to the feel of the game to a degree I wasnt even expecting when I dl'd it. Great mod!
bidiguilo 15 Oct, 2023 @ 11:21am 
interesting
Mr. Red Bee 14 Sep, 2023 @ 10:48am 
genuinely really good ive always wanted to collect lots of shiny things and this mod fits the bill!
Neddy 23 Aug, 2023 @ 11:05am 
Thank you!
FelmastProMcLane  [author] 22 Jul, 2023 @ 5:21pm 
Pain
Silver Sokolova 22 Jul, 2023 @ 10:23am 
Unfortunately I don't think there's a way to detect item count via buildscripts
DrakonBlake 21 Jul, 2023 @ 8:35am 
It's always nice to have some more variety in the vast expanse of space
FelmastProMcLane  [author] 20 Jul, 2023 @ 3:15pm 
It just alters the pixel item to change the icon randomly.
So it should be compatible with everything at the current moment.