Sign in
mod

Farming

by Potluck · version 1 · Checked for all ages

Grow your own: Interact on grass to dig farmland (a hoe digs a square at once), then plant wheat, carrots, potatoes, beans, pumpkins, melons, sugar cane, cocoa, rice or beets. Crops grow faster by day, near water, in rain and in spring and summer, and stop outdoors in winter (a greenhouse keeps them going). A watering can brings them on and a sickle reaps a square at once. Tall grass gives seeds, and wild crops and berry bushes come up around you.

1name = "Farming"
2by = "Potluck"
3kind = "mod"
4about = "Grow your own: Interact on grass to dig farmland (a hoe digs a square at once), then plant wheat, carrots, potatoes, beans, pumpkins, melons, sugar cane, cocoa, rice or beets. Crops grow faster by day, near water, in rain and in spring and summer, and stop outdoors in winter (a greenhouse keeps them going). A watering can brings them on and a sickle reaps a square at once. Tall grass gives seeds, and wild crops and berry bushes come up around you."
5main = "main.luau"
6version = 1
7license = "CC-BY-4.0"
8
9[needs]
10world = "0.25"
11tweak = "0.1"
12store = "0.1"
13ui = "0.2"
14sound = "0.1"
15sky = "0.1"
16
17# The crops, their shoots and berry bushes, each drawn in letters: plants
18# are two crossed pictures, and a pumpkin a solid block with a top.
19[blocks.wheat_shoots]
20name = "Wheat shoots"
21kind = "plant"
22shape = "plant"
23hardness = 0
24colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440" }
25picture = """
26................
27................
28................
29................
30................
31................
32........h.......
33...h....h..h....
34...h....h..h....
35...h...hg..h....
36...g...hg..g..h.
37...hgh.gg..gg.h.
38...gghg.g.g.g.g.
39..g.ggg.d.g.gg..
40..d.dgd.d.d.dd..
41..d.ddd.d.d.dd..
42"""
43
44[blocks.carrot_shoots]
45name = "Carrot shoots"
46kind = "plant"
47shape = "plant"
48hardness = 0
49colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", o = "#d8741c" }
50picture = """
51................
52................
53................
54................
55........h.......
56......hg........
57....h..gh..gh...
58..hg..hg..hg....
59...gh..gh..gh..h
60..hg..hg..hg.hg.
61...gh..gh..g..g.
62..h.g.hg.hg.hg..
63....g..g..g..g..
64....d..d..d..g..
65....d..d..d.d...
66....d..oo.d.d...
67"""
68
69[blocks.potato_shoots]
70name = "Potato shoots"
71kind = "plant"
72shape = "plant"
73hardness = 0
74colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440" }
75picture = """
76................
77................
78................
79................
80................
81................
82......hhhh......
83..gg..hhhh..gg..
84..hhhg..g.ghhh..
85..ghhg..g.ghhg..
86....hhhgghhhg...
87....ghhhhhhgg...
88....g.g.dg..g...
89.....d..d..d....
90.....d..d..d....
91.....d..d..d....
92"""
93
94[blocks.potatoes]
95name = "Potatoes"
96kind = "plant"
97shape = "plant"
98hardness = 0
99colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", p = "#b48450", q = "#7a5430" }
100picture = """
101................
102.........gg.....
103......ggghhh....
104.....hhhhhhg....
105.ggg.ghhhgg.ggg.
106.hhhg.gggg.ghhh.
107.ghggghhhhggghg.
108..ghhhhhhhhhhg..
109..gghhhgghhhgg..
110..g.ggg..ggg.g..
111..g...g..d...g..
112..g...d..d..g...
113...d..d..d..d...
114...qq.dppp.qq...
115..qppqdpppqppq..
116...qq.d.qdqppq..
117"""
118
119[blocks.bean_shoots]
120name = "Bean shoots"
121kind = "plant"
122shape = "plant"
123hardness = 0
124colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440" }
125picture = """
126................
127................
128................
129................
130................
131................
132.......gg..g....
133......g.g.hhh...
134......g.ghhh....
135....g..gg.g.....
136...ghhg.g.g.....
137....ghhggg......
138......g.g.......
139........d.......
140........d.......
141........d.......
142"""
143
144[blocks.beans]
145name = "Beans"
146kind = "plant"
147shape = "plant"
148hardness = 0
149colors = { g = "#4f8a2c", h = "#76b440", s = "#7a5a34", b = "#c0dc58", c = "#7a9a30" }
150picture = """
151........sg......
152...gg...g..b....
153...hhhggs..b....
154...ghhhgs..cg...
155.....gggsghhh...
156........shhhg...
157...gg...sgb.....
158...hhhg.sgb.....
159...ghhh.g.b.....
160.....gbgs.cgg...
161......bgsghhh...
162....g.bgshhhg...
163...hhhc.sgb.....
164...ghhh.sgb.....
165.....g..sgc.....
166........g.......
167"""
168
169[blocks.pumpkin_vine]
170name = "Pumpkin vine"
171kind = "plant"
172shape = "plant"
173hardness = 0
174colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", y = "#f2c430" }
175picture = """
176................
177................
178................
179................
180................
181................
182................
183................
184........y.......
185.......yyy......
186..ggg.hhgh.ggg..
187.ghhhgghhgghhhg.
188..hhhhhhhhhhhh..
189...ghhhhhhhhg...
190..d.dggddggd.d..
191...d..d..d..d...
192"""
193
194[blocks.berry_bush]
195name = "Berry bush"
196kind = "plant"
197shape = "plant"
198hardness = 0.3
199colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", s = "#7a5a34", r = "#b0244e", m = "#6a1030", w = "#f07a98" }
200picture = """
201................
202.....w..........
203.....rrddwd.....
204...dddmhgrrdd...
205..ddwggghhmwdd..
206..ddrrgggggrrd..
207.ddggmgghgggmdd.
208.ddgggggggggrrd.
209.ddghhwggggggmd.
210.ddgggrrggwghdd.
211.ddwgggmhgrrhwd.
212..drrghgghgmdrr.
213..ddmghwhggdddm.
214...ddddrrdddd...
215.....dddmdd.....
216......sssss.....
217"""
218
219[blocks.bare_berry_bush]
220name = "Bare berry bush"
221kind = "plant"
222shape = "plant"
223hardness = 0.3
224colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", s = "#7a5a34" }
225picture = """
226................
227................
228.....dddddd.....
229...ddddhgdddd...
230..dddggghhgddd..
231..ddhhggggghdd..
232.ddggggghggghdd.
233.ddggggggggggdd.
234.ddghhhggggggdd.
235.ddggggggggghdd.
236.ddggggghggghdd.
237..ddgghgghggdd..
238..dddghghggddd..
239...ddddggdddd...
240.....dddddd.....
241......sssss.....
242"""
243
244[blocks.pumpkin]
245name = "Pumpkin"
246kind = "wood"
247hardness = 1
248colors = { d = "#9a4a0c", p = "#d86e18", o = "#f09030", s = "#5a4020", g = "#4f8a2c" }
249top = """
250dddddddddddddddd
251dpppdpppdpppdppd
252dpopdpopdpopdppd
253dpopdpopdpopdppd
254dpopppopppopdppd
255dpopppopppopdppd
256dpopppogppopdppd
257dpopppgsspopdppd
258dpopppossgopdppd
259dpopppopgpopdppd
260dpopppopppopdppd
261dpopppopppopdppd
262dpopdpopdpopdppd
263dpopdpopdpopdppd
264dpppdpppdpppdppd
265dddddddddddddddd
266"""
267side = """
268dddddddddddddddd
269dpopdpopdpopdpop
270dpopdpopdpopdpop
271dpopdpopdpopdpop
272dpopdpopdpopdpop
273dpopdpopdpopdpop
274dpopdpopdpopdpop
275dpopdpopdpopdpop
276dpopdpopdpopdpop
277dpopdpopdpopdpop
278dpopdpopdpopdpop
279dpopdpopdpopdpop
280dpopdpopdpopdpop
281dpopdpopdpopdpop
282dpopdpopdpopdpop
283dddddddddddddddd
284"""
285bottom = """
286dddddddddddddddd
287dpopdpopdpopdpop
288dpopdpopdpopdpop
289dpopdpopdpopdpop
290dpopdpopdpopdpop
291dpopdpopdpopdpop
292dpopdpopdpopdpop
293dpopdpopdpopdpop
294dpopdpopdpopdpop
295dpopdpopdpopdpop
296dpopdpopdpopdpop
297dpopdpopdpopdpop
298dpopdpopdpopdpop
299dpopdpopdpopdpop
300dpopdpopdpopdpop
301dddddddddddddddd
302"""
303
304[blocks.melon_vine]
305name = "Melon vine"
306kind = "plant"
307shape = "plant"
308hardness = 0
309colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", m = "#4f9a3a", n = "#8cc860" }
310picture = """
311................
312................
313................
314................
315................
316................
317...h............
318..hh............
319...h.g.hh.......
320....hghg...hh...
321.....g..ggh.....
322.....g...hhhh...
323...hhhhhhg......
324.....gmnmm......
325.....gmmnm......
326.....gmmmm......
327"""
328
329[blocks.melon]
330name = "Melon"
331kind = "wood"
332hardness = 1
333colors = { d = "#2f6a24", p = "#4a9a38", o = "#7cc450", s = "#6a4a20" }
334top = """
335dddddddddddddddd
336dpopdpopdpopdpod
337dpopdpopdpopdpod
338dpopdpopdpopdpod
339dpopdpopdpopdpod
340dpopdpopdpopdpod
341dpopdpopdpopdpod
342dpopdposspopdpod
343dpopdpopspopdpod
344dpopdposspopdpod
345dpopdpopdpopdpod
346dpopdpopdpopdpod
347dpopdpopdpopdpod
348dpopdpopdpopdpod
349dpopdpopdpopdpod
350dddddddddddddddd
351"""
352side = """
353dpopdpopdpopdpop
354dpopdpopdpopdpop
355dpopdpopdpopdpop
356dpopdpopdpopdpop
357dpopdpopdpopdpop
358dpopdpopdpopdpop
359dpopdpopdpopdpop
360dpopdpopdpopdpop
361dpopdpopdpopdpop
362dpopdpopdpopdpop
363dpopdpopdpopdpop
364dpopdpopdpopdpop
365dpopdpopdpopdpop
366dpopdpopdpopdpop
367dpopdpopdpopdpop
368dpopdpopdpopdpop
369"""
370bottom = """
371dpopdpopdpopdpop
372dpopdpopdpopdpop
373dpopdpopdpopdpop
374dpopdpopdpopdpop
375dpopdpopdpopdpop
376dpopdpopdpopdpop
377dpopdpopdpopdpop
378dpopdpopdpopdpop
379dpopdpopdpopdpop
380dpopdpopdpopdpop
381dpopdpopdpopdpop
382dpopdpopdpopdpop
383dpopdpopdpopdpop
384dpopdpopdpopdpop
385dpopdpopdpopdpop
386dpopdpopdpopdpop
387"""
388
389[blocks.cane_shoots]
390name = "Sugar cane shoots"
391kind = "plant"
392shape = "plant"
393hardness = 0
394colors = { d = "#3a6a22", g = "#6aa83a", h = "#9ad060", n = "#c6e898" }
395picture = """
396................
397................
398................
399................
400................
401................
402................
403................
404........h.......
405........gh......
406....h...g..h....
407....gh..g..gh...
408....g...n..n....
409....n...g..g....
410....g...g..g....
411....g...g..g....
412"""
413
414[blocks.sugar_cane]
415name = "Sugar cane"
416kind = "plant"
417shape = "plant"
418hardness = 0
419colors = { d = "#3a6a22", g = "#6aa83a", h = "#9ad060", n = "#c6e898" }
420picture = """
421.....h.gh.hh....
422.h.gh.hghh......
423..hddh.ddh.dd.hh
424...gh..gh.hghh..
425...gh..gh..gh...
426...gh..gh..gh...
427...dd..dd..dd...
428...gh..gh..gh...
429...gh..gh..gh...
430...gh..gh..gh...
431...dd..dd..dd...
432...gh..gh..gh...
433...gh..gh..gh...
434...gh..gh..gh...
435...dd..dd..dd...
436...gh..gh..gh...
437"""
438
439[blocks.cocoa_shoots]
440name = "Cocoa shoots"
441kind = "plant"
442shape = "plant"
443hardness = 0
444colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", b = "#7a4a24", c = "#a8682c", e = "#d89040" }
445picture = """
446................
447................
448................
449................
450................
451.......hh.......
452.......g..hh....
453....hh.g.h......
454......hgd.......
455.......gd.......
456....gg.gd.gg....
457......ggdg......
458.......gd.......
459.......gd.......
460.......gd.......
461.......gd.......
462"""
463
464[blocks.cocoa]
465name = "Cocoa"
466kind = "plant"
467shape = "plant"
468hardness = 0
469colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", b = "#7a4a24", c = "#a8682c", e = "#d89040" }
470picture = """
471................
472............h...
473.......g..hh....
474....hh.gdh......
475......hgd.......
476.......gd.......
477...ec..gd..ec...
478...ccg.gd.gcc...
479...cb.ggdg.cb...
480.......gd.......
481.......gd.......
482....ec.gd.ec....
483....cc.gd.cc....
484....cb.gd.cb....
485.......gd.......
486.......gd.......
487"""
488
489[blocks.rice_shoots]
490name = "Rice shoots"
491kind = "plant"
492shape = "plant"
493hardness = 0
494colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", y = "#e6cc58", z = "#b89a30", w = "#7aaa4a" }
495picture = """
496................
497................
498................
499................
500................
501................
502................
503................
504................
505................
506....hg.hg.hg.h..
507..gw..w..w..w...
508...w..w..w..w...
509...w..w..w..w...
510...w..w..w..w...
511...w..w..w..w...
512"""
513
514[blocks.rice]
515name = "Rice"
516kind = "plant"
517shape = "plant"
518hardness = 0
519colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", y = "#e6cc58", z = "#b89a30", w = "#7aaa4a" }
520picture = """
521...........y....
522.....y.....z....
523.....z..y...y...
524..y...y.z..wz...
525..z..wz..y.wyy..
526...y.wy.wz.w.z..
527..wz.w..wy.w..y.
528..wy.w..w..w.wz.
529..w..w..w..w.wy.
530..w..w..w..w.w..
531..w..w..w..w.w..
532..w..w..w..w.w..
533..w..w..w..w.w..
534..w..w..w..w.w..
535..w..w..w..w.w..
536..w..w..w..w.w..
537"""
538
539[blocks.beet_shoots]
540name = "Beet shoots"
541kind = "plant"
542shape = "plant"
543hardness = 0
544colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", r = "#a01c48", q = "#6a1030", p = "#d84a78", v = "#a83a50" }
545picture = """
546................
547................
548................
549................
550................
551................
552................
553................
554................
555...h.h.hh.h.h...
556....hgh..hgh....
557.....g....g.....
558.....g.v..g.....
559.....g..v.g.....
560.....g....g.....
561.....g....g.....
562"""
563
564[blocks.beets]
565name = "Beets"
566kind = "plant"
567shape = "plant"
568hardness = 0
569colors = { d = "#2f5a1c", g = "#4f8a2c", h = "#76b440", r = "#a01c48", q = "#6a1030", p = "#d84a78", v = "#a83a50" }
570picture = """
571....h...h...h...
572....h...h...h...
573.hh.hhhhhhhhh.hh
574...hhh.hhh.hhh..
575....g...g...g...
576....g...g...g...
577....g...g...g...
578....g...g...g...
579....g...g...g...
580..rrrrrrrrrrrrr.
581..rprrrprrrprrr.
582..rrrrrrrrrrrrr.
583...qqq.qqq.qqq..
584....q...q...q...
585....q...q...q...
586....q...q...q...
587"""
588
589[items.melon_slice]
590name = "Melon slice"
591kind = "food"
592food = 3
593says = "You ate a juicy slice of melon."
594recipe = { Melon = 1 }
595makes = 4
596colors = { r = "#e8446a", p = "#4a9a38", n = "#b8e08a", k = "#2a1a14" }
597picture = """
598................
599................
600................
601................
602................
603..pprrrrrrrrpp..
604...prrrrrrkrpp..
605...prrkrrrrrpp..
606...prrrrrkrrpp..
607....rrrkrrrrp...
608....ppppppppp...
609.....nnnnnnn....
610................
611................
612................
613................
614"""
615
616[items.sugar]
617name = "Sugar"
618kind = "material"
619recipe = { "Sugar cane" = 1 }
620makes = 2
621colors = { w = "#f4f0e4", t = "#cfc8b4" }
622picture = """
623................
624................
625................
626................
627................
628................
629................
630....ww.ww.ww....
631....wtwwwwtw....
632....wwwwtwww....
633....wwwwwwww....
634....wwtwwwww....
635....wwwwwwww....
636................
637................
638................
639"""
640
641[items.cookies]
642name = "Cookies"
643kind = "food"
644food = 7
645says = "You ate some cookies. Still warm."
646cook = { Wheat = 2, Cocoa = 1, Sugar = 1 }
647makes = 4
648colors = { c = "#d0983c", k = "#4a2a14" }
649picture = """
650................
651................
652................
653................
654....ccc.........
655...ccckc........
656...cckcc.ccc....
657...ckcccccckc...
658....ccc.cckcc...
659.....cccckccc...
660....ccckcccc....
661....cckcc.......
662....ckccc.......
663.....ccc........
664................
665................
666"""
667
668[items.chocolate]
669name = "Chocolate"
670kind = "food"
671food = 6
672says = "You ate some chocolate. Rich and sweet."
673cook = { Cocoa = 2, Sugar = 1, "Milk bucket" = 1 }
674makes = 3
675colors = { b = "#6a3a1c", d = "#4a2410", e = "#8a5430" }
676picture = """
677................
678................
679................
680................
681................
682...ebebebebeb...
683...bbdbbdbbdb...
684...bbdbbdbbdb...
685...dddddddddd...
686...bbdbbdbbdb...
687...bbdbbdbbdb...
688...dddddddddd...
689................
690................
691................
692................
693"""
694
695[items.rice_bowl]
696name = "Rice bowl"
697kind = "food"
698food = 9
699says = "You ate a bowl of rice and beans."
700cook = { Rice = 2, Beans = 1, Carrots = 1 }
701makes = 2
702colors = { u = "#8a5a3a", w = "#f6f2e2" }
703picture = """
704................
705................
706................
707................
708................
709........w.......
710....ww.w..w.....
711...w.w.w.www....
712..uwwwwwwwwwwu..
713...uuuuuuuuuuu..
714...uuuuuuuuuuu..
715....uuuuuuuuu...
716......uuuuu.....
717................
718................
719................
720"""
721
722[items.beet_soup]
723name = "Beet soup"
724kind = "food"
725food = 8
726says = "You ate some beet soup. Earthy and warm."
727cook = { Beets = 3, Potatoes = 1, "Milk bucket" = 1 }
728makes = 2
729colors = { u = "#8a5a3a", r = "#b02458", p = "#e86a90", s = "#dcdcdc" }
730picture = """
731................
732................
733................
734................
735......s.s.s.....
736.......s.s......
737................
738................
739..urrrrrrrrrru..
740...uuupuupuuuu..
741...uuuuupuuuuu..
742....uuuuuuuuu...
743......uuuuu.....
744................
745................
746................
747"""