Sign in
creature

Hens

by Potluck · version 1 · Checked for all ages

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.

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