Hens peck about the Green and lay eggs on the grass now and then: pick them up, cook them, or bake them into pies and cakes. Pat one for a feather now and then. Hold seeds and they come to you; feed two of them seeds and they make a chick, which grows into a hen.
| 1 | name = "Hens" |
| 2 | by = "Potluck" |
| 3 | kind = "creature" |
| 4 | about = "Hens peck about the Green and lay eggs on the grass now and then: pick them up, cook them, or bake them into pies and cakes. Pat one for a feather now and then. Hold seeds and they come to you; feed two of them seeds and they make a chick, which grows into a hen." |
| 5 | main = "main.luau" |
| 6 | version = 1 |
| 7 | license = "CC-BY-4.0" |
| 8 | |
| 9 | [needs] |
| 10 | world = "0.22" |
| 11 | tweak = "0.1" |
| 12 | store = "0.1" |
| 13 | sound = "0.2" |
| 14 | |
| 15 | # An egg, laid on the ground: a little box, speckled. |
| 16 | [blocks.egg] |
| 17 | name = "Egg" |
| 18 | kind = "soft" |
| 19 | hardness = 0 |
| 20 | solid = false |
| 21 | boxes = [[6, 0, 6, 10, 5, 10], [7, 5, 7, 9, 6, 9]] |
| 22 | colors = { e = "#efe4cf", f = "#c8a880" } |
| 23 | picture = """ |
| 24 | eeeeeeeeeeeeeeee |
| 25 | eeeeefeeeeeeeeee |
| 26 | eeeeeeeeeefeeeee |
| 27 | eeeeeeeeeeeeeeee |
| 28 | eeefeeeeeeeeeeee |
| 29 | eeeeeeeeeeeeeeee |
| 30 | eeeeeeeeeeeeeefe |
| 31 | eeeeeeeeeeeeeeee |
| 32 | eeeeeeeeeeeeeeee |
| 33 | eeeeeefeeeeeeeee |
| 34 | eeeeeeeeeeeeeeee |
| 35 | eeeeeeeeeeeefeee |
| 36 | eeeeeeeeeeeeeeee |
| 37 | eefeeeeeeeeeeeee |
| 38 | eeeeeeeeefeeeeee |
| 39 | eeeeeeeeeeeeeeee |
| 40 | """ |
| 41 | |
| 42 | # a hen's cluck: two short calls |
| 43 | [sounds.cluck] |
| 44 | caption = "A hen clucks" |
| 45 | wave = "square" |
| 46 | notes = [700, 560] |
| 47 | each = 0.09 |
| 48 | length = 0.2 |
| 49 | attack = 0.004 |
| 50 | decay = 0.05 |
| 51 | lowpass = 1800 |
| 52 | |
| 53 | [[sounds.cluck.layers]] |
| 54 | wave = "noise" |
| 55 | pitch = 900 |
| 56 | length = 0.2 |
| 57 | attack = 0.004 |
| 58 | decay = 0.04 |
| 59 | gain = 0.3 |
| 60 | lowpass = 1400 |
| 61 | |
| 62 | # a chick's peep |
| 63 | [sounds.peep] |
| 64 | caption = "A chick peeps" |
| 65 | wave = "sine" |
| 66 | pitch = [2600, 3100] |
| 67 | length = 0.09 |
| 68 | attack = 0.005 |
| 69 | decay = 0.04 |