Starbound

Starbound

Not enough ratings
Die mod
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
21.878 KB
29 Oct, 2016 @ 4:46am
22 Jan, 2017 @ 7:47am
3 Change Notes ( view )

Subscribe to download
Die mod

Description
I missed the possibility to generate random numbers to distribute loot in multiplayer.

Instructions:
Craft a die and throw it.
Wait until the die is still.
Pick up the die to display a random number between one and hundred.

Improvments:
- added light effect
- changed color of text from orange to white

Fixed Bug:
- damage on pick up
Popular Discussions View All (2)
2
5 Jul, 2019 @ 5:20am
bug report
MR_Monkey
2
3 Jun, 2022 @ 4:10am
feature requests
MR_Monkey
27 Comments
Zumoku 3 Aug, 2020 @ 5:40pm 
Yeaaaazz!! this is exsactly what I was looking for!! Awesome mod!!
Soblow 5 Jul, 2019 @ 11:43am 
I tried in vanilla and with my "light" modpack, and it works normaly, but with the full modpack, the die just stand here for 1 min, then I can pick it up.
This might be a mod conflict, but I have no way to tell exactly, as there is REALLY nothing in logs (at least, nothing is added between when I launch the die and when I retrieve it)
MR_Monkey  [author] 5 Jul, 2019 @ 5:20am 
@Doctor Tee / Soblow did you try to pick up the die by walking over it? I tested this in version 1.4.3 (windows x86_64). I could not reproduce the bug you described.
Soblow 3 Jul, 2019 @ 7:43am 
It doesn't seem to work with 1.4 (The die stays on the ground for 1 min, but no text appear)
MR_Monkey  [author] 6 May, 2017 @ 3:01am 
@Lord Zarnox i tested the function math.random(lower, upper)
at https://www.lua.org/cgi-bin/demo . lower and upper are possible values.
"Is that inclusive or exclusive (including 1 and 100 or not including them)?"
It is inclusive 1 and 100.
MR_Monkey  [author] 6 May, 2017 @ 2:05am 
@Lord Zarnox I use

math.randomseed(os.clock()*100000000000)
local r = tostring(math.random(1,100))

http://lua-users.org/wiki/MathLibraryTutorial

says that "math.random(lower, upper) generates integer numbers between lower and upper."

I am not sure. But i think 1 and 100 are possible.
Zarnox 5 May, 2017 @ 3:30pm 
Is that inclusive or exclusive (including 1 and 100 or not including them)?
MR_Monkey  [author] 27 Apr, 2017 @ 11:36pm 
@Sdb62 "Pick up the die to display a random number between one and hundred."
sdb62 27 Apr, 2017 @ 8:21pm 
How many numbers?
Zarnox 22 Jan, 2017 @ 1:45pm 
You're welcome.