A glimmer cocoon turns up now and then in a gloom nest or a crystal bud. Hold it and Interact looking at the sky, and a glimmerfly comes out: a little moth that glows, follows you around and lights the dark around you, so gloomlings keep away. Use it to have it stay and light a spot, or follow again.
| 1 | name = "Glimmerflies" |
| 2 | by = "Potluck" |
| 3 | kind = "creature" |
| 4 | about = "A glimmer cocoon turns up now and then in a gloom nest or a crystal bud. Hold it and Interact looking at the sky, and a glimmerfly comes out: a little moth that glows, follows you around and lights the dark around you, so gloomlings keep away. Use it to have it stay and light a spot, or follow again." |
| 5 | main = "main.luau" |
| 6 | version = 1 |
| 7 | license = "CC-BY-4.0" |
| 8 | |
| 9 | [needs] |
| 10 | world = "0.27" |
| 11 | tweak = "0.1" |
| 12 | store = "0.1" |
| 13 | ui = "0.2" |
| 14 | sound = "0.2" |
| 15 | |
| 16 | # what a glimmerfly comes out of |
| 17 | [items.cocoon] |
| 18 | name = "Glimmer cocoon" |
| 19 | stack = 4 |
| 20 | colors = { k = "#2a3a30", a = "#c8e8d0", b = "#a0d0b0", g = "#e8fff0", s = "#6a8a70" } |
| 21 | picture = """ |
| 22 | ................ |
| 23 | .......s........ |
| 24 | .......s........ |
| 25 | ......kkk....... |
| 26 | .....kaaak...... |
| 27 | ....kabgbak..... |
| 28 | ....kaggbak..... |
| 29 | ....kabgbak..... |
| 30 | ....kaagbak..... |
| 31 | ....kabbbak..... |
| 32 | .....kabak...... |
| 33 | .....kaaak...... |
| 34 | ......kak....... |
| 35 | .......k........ |
| 36 | ................ |
| 37 | ................ |
| 38 | """ |
| 39 | |
| 40 | # a moth's soft wing beat, for when one hatches or is told to stay |
| 41 | [sounds.flutter] |
| 42 | caption = "A glimmerfly flutters" |
| 43 | wave = "noise" |
| 44 | notes = ["C6", "-", "C6", "-", "C6", "-", "C6", "-", "C6"] |
| 45 | each = 0.05 |
| 46 | attack = 0.004 |
| 47 | decay = 0.04 |
| 48 | lowpass = 2600 |
| 49 | highpass = 700 |