forked from R74nCom/sandboxels
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaChefsDream.js
6422 lines (6182 loc) · 202 KB
/
aChefsDream.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Created by SquareScreamYT <@918475812884344852> and RealerRaddler <@914371295561535508>
Thanks to Alice <@697799964985786450>, nousernamefound <@316383921346707468>, Adora the Transfem <@778753696804765696> and Fioushemastor <@738828785482203189> for helping :)
v1.10.1
you can support me at my youtube: https://youtube.com/@sqec
Upcoming Features:
- spring onions
- soy sauce/wasabi
- white rice noodles
- matcha leaves, powder, tea
- cacao pods
- agar (makes juice into jelly)
- pigs, ham and bacon
- garlic
- stainless steel
- chili
- pepper plants
- hot chocolate
- cows and beef
- celery
- marshmallows, normal, cooked and burnt
- kiwis
- guavas
- lychees
- dragonfuits
- dates
- figs
- avocados
- apricots and plums
- curry/chicken tikka masala
- raisins
- peaches
- cucumbers
- eggplants
Changelog (v1.0)
- added chickens
- lays chicken eggs
- added chicks
- hatches from chicken eggs
- grows into chickens
- added chicken eggs
- added frozen chicken eggs
- added hard boiled eggs
- made by putting chicken eggs in hot water
- added soup
- made from broth and water
- added noodles
- made by putting batter in hot water
- added chicken meat
- raw chicken meat
- cooked chicken meat
- battered raw chicken
- made by mixing raw chicken and batter
- raw chicken nuggets
- made by mixing battered raw chicken with crumbs
- (cooked) chicken nuggets
- added crushed worm
- chicken food
- made by smashing worms or mixing worms with rocks
- added frozen crushed worms
- added fried potato
- made by putting potatoes in hot cooking oil
- added smoked chicken
- made by putting raw chicken with smoke
- added boiled chicken
- made by putting raw chicken in hot water
- added fried chicken
- made by putting raw chicken in hot cooking oil
- added steamed chicken
- made by putting raw chicken with steam
- added olives
- added olives
- olives can be smashed into cooking oil
- added olive wood
- added olive branches
- added olive leaves
- added cooking oil
Changelog (v1.1)
- added apples and related stuff
- apples
- applewood
- apple branches
- apple leaves
- apple juice
- made by smashing apples
- apple seeds
- apple slices
- made by cutting apples
- apple jam
- made by putting sugar in apple juice
- added knife tool
- cuts, peels, etc. pixels
- readded potato skin and peeled potato
- changed fried potato recipe from potato to skinned potato\
- added pepper
- added cake
- made by mixing baked batter and cream
- added icing sugar
- made by smashing sugar
- added icing
- made by shift-mixing icing sugar
- noodles description
- bug fix (freezing crushed worms makes them alive)
Changelog (v1.2)
- added boilers
- added steamers
- added smokers
- added oranges and related stuff
- oranges
- orange wood
- orange branches
- orange leaves
- orange juice
- made by smashing orange
- orange seeds
- orange slices
- made by cutting oranges
- orange peels
- byproduct of cutting oranges into orange slices
- marmalade
- made by putting sugar in orange peels and orange slices
- apple and orange juice now turn into juice ice under 0 degrees
- apple juice now boils into sugar and steam
- apple juice now boils at 100 instead of 400
- added coral and coral stems
- added tuna
- added cooked and raw tuna
- added smoked tuna
- made by putting raw tuna with smoke
- added boiled tuna
- made by putting raw tuna in hot water
- added fried tuna
- made by putting raw tuna in hot cooking oil
- added steamed tuna
- made by putting raw tuna with steam
- added salmon
- added cooked and raw salmon
- added smoked salmon
- made by putting raw salmon with smoke
- added boiled salmon
- made by putting raw salmon in hot water
- added fried salmon
- made by putting raw salmon in hot cooking oil
- added steamed salmon
- made by putting raw salmon with steam
- added grape juice
- added cream of tartar
- added wine
- added corn syrup
Changelog (v1.3)
- added shrimp
- added coconuts
- added coconut stems
- added coconut leaves
- added coconut tree tops
- added coconut milk and coconut juice
- added cut coconuts
- salmon and tuna meats no longer melt
- added knife description
- added lemons and related stuff
- lemons
- lemon wood
- lemon branches
- lemon leaves
- lemon juice
- made by smashing lemons
- lemon seeds
- lemon slices
- made by cutting lemons
- lemon zest
- byproduct of cutting lemons
- lemon marmalade can now be made by mixing lemon slices or lemon zest with sugar
- added carrots
- added carrot seeds and leaves
- added carrot juice
- added dry icing
Changelog (v1.3.1)
- added lemonade
Changelog (v1.3.2)
- added apple cider vinegar
- added turnips
- added turnip seeds and leaves
- added turnip juice
Changelog (v1.4)
- added baking powder
- added corn starch
- added maple syrup
- added pancakes
- added pancake mix
- added pancake batter
- added normal pancakes
- added crispy pancakes
- added burnt pancakes
- added strawberries
- added strawberries
- added strawberry seeds, stem, and leaves
- added strawberry juice
- added whipped cream
- chicken eggs no longer hatch under 20 degrees
- added ginger
- added ginger juice
- added ginger rhizomes, pseudostems and leaves
Changelog (v1.5)
- added blueberries
- added blueberries
- added blueberry seeds, stem, and leaves
- added blueberry juice
- added strawberry and blueberry jam
- added cut blueberries
- added advanced dough
- added carbonic acid
- added cookies and cookie dough
- replaced cooking oil with nut oil
- added boba and boba dough
Changelog (v1.6)
- added freeze and warm tool
- added olive seeds
- juice mixing functionality
- wine can now be made by mixing grape juice and alcohol
- added bananas and related stuff
- bananas
- hanging banana peduncle and banana peduncle
- banana stem and banana stem top
- banana leaves
- cut banana
- banana juice
- banana bread
Changelog (v1.7)
- added chocolate chips
- added sprinkles
- added banana milk (yellow fruit milk)
- added passion fruits
- added passion fruit vines and seeds (new climbing vines feature!)
- added mangoes
- added mango juice
- added mango wood, branch, leaves and seeds
- added pineapples
- added pineapple leaves, seed and juice
Changelog (v1.8)
- added lime and lime juice
- added lime zest and slices
- added escargot
- added broccoli
- added broccoli stem, cut broccoli and broccoli seed
- added freeze drying and freeze dried fruits
- added soapy water
Changelog (v1.9)
- added onion
- added cut onion
- added fried onion
- added rice
- added porridge
- added cooked and burnt rice
- added rice plants and rice panicles
- added rice seeds
- added msg
- added seaweed
- added dried seaweed
- added seaweed stem and seeds
- fix egg and noodle bug
Changelog (v1.10)
- tweaked seaweed behavior
- tweaked tomato and grape vines
- added peppermint
- added peppermint leaves and stems
- added peppermint seeds
- added vanilla
- added vanilla seeds, stem, leaves
- added vanilla flower
- added vanilla pod
- added vanilla essence
Changelog (v1.10.1)
- unhid vanilla essence
- added peppermint candy
- vanilla essence can now turn ice cream light yellow
- added peppermint candy
- added tapioca
- added tapioca stems, leaves, and seed
*/
/*
elements.test = {
//other needed properties
cutInto: "elem"
}
*/
function interpolateRgb(rgb1, rgb2, ratio) {
const interpolatedRgb = {
r: Math.round(rgb1.r + (rgb2.r - rgb1.r) * ratio),
g: Math.round(rgb1.g + (rgb2.g - rgb1.g) * ratio),
b: Math.round(rgb1.b + (rgb2.b - rgb1.b) * ratio),
};
return interpolatedRgb;
}
function getRGB(rgb){
let rgb2 = rgb.replace(")", "").replace("rgb(", "").replace(/,/g, "r").split("r")
return { r: parseInt(rgb2[0]), g: parseInt(rgb2[1]), b: parseInt(rgb2[2]) };
}
elements.knife = {
color: "#adb5bd",
// other needed properties
tool: (pixel) => {
//store cutInto as a variable for legibility
var cutInto = elements[pixel.element].cutInto;
//if there’s no cutInto, it should equal undefined, which is falsey and !undefined = true
if (!cutInto) { return };
//if cutInto is an array, randomly pick one of its elements
if(cutInto instanceof Array) { cutInto = cutInto[Math.floor(Math.random() * cutInto.length)] };
//change pixel into the (chosen) element
//changePixel(pixel, cutInto)
//var cutIntoEmit = elements[pixel.element].cutIntoEmit;
//if (!cutIntoEmit) { return };
//if(cutIntoEmit instanceof Array) { cutIntoEmit = cutIntoEmit[Math.floor(Math.random() * cutIntoEmit.length)] };
//var thiselement = pixel.element;
if (shiftDown) {
if (Math.random() < 0.5) {
changePixel(pixel, cutInto)
//if (elements[thiselement].cutIntoEmit && Math.random() < 0.5 && isEmpty(pixel.x,pixel.y-1)) {
// createPixel(elements[thiselement].cutIntoEmit,pixel.x,pixel.y-1);
//}
}
}
else if (!shiftDown) {
if (Math.random() < 0.1) {
changePixel(pixel, cutInto)
//if (elements[thiselement].cutIntoEmit && Math.random() < 0.5 && isEmpty(pixel.x,pixel.y-1)) {
// createPixel(elements[thiselement].cutIntoEmit,pixel.x,pixel.y-1);
//}
}
}
},
category:"tools",
canPlace: false,
desc: "Use on pixels to cut them, if possible."
}
elements.freeze_dry = {
color: "#3a65b5",
tool: function(pixel) {
if (elements[pixel.element].freezeDryInto !== undefined) {
if (Math.random() < 0.2) {
var freezeDryInto = elements[pixel.element].freezeDryInto;
if (Array.isArray(freezeDryInto)) {
freezeDryInto = freezeDryInto[Math.floor(Math.random() * freezeDryInto.length)];
}
if (freezeDryInto === null) {
deletePixel(pixel.x,pixel.y);
return;
}
var previouselement = pixel.element;
changePixel(pixel,freezeDryInto);
pixelTempCheck(pixel);
if (elements[previouselement].freezeDryIntoColor) {
pixel.color = pixelColorPick(pixel, elements[previouselement].freezeDryIntoColor);
}
}
}
},
category: "tools",
excludeRandom: true,
desc: "Use on pixels to freeze dry them, if possible."
}
eLists.JUICEMIXABLE = ["juice"];
elements.chicken = {
color: ["#c29046", "#f5d271", "#d4bd7d"],
behavior: [
"M2%1|M2%2|M2%1",
"M2%10|XX|M2%10",
"XX|M1%33|XX",
],
category:"life",
state: "solid",
reactions: {
"meat": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"chicken_nugget": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"grass": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"worm": { elem2: "crushed_worm", chance:0.3},
"cooked_meat": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"fish": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"rat": { elem2:null, chance:0.05, func:behaviors.FEEDPIXEL },
"snail": { elem2:null, chance:0.05, func:behaviors.FEEDPIXEL },
"frog": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"slug": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"grape": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"wheat_seed": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"flower_seed": { elem2:null, chance:0.32, func:behaviors.FEEDPIXEL },
"corn_seed": { elem2:null, chance:0.35, func:behaviors.FEEDPIXEL },
"corn": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"crumb": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"potato_seed": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"grass_seed": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"pumpkin_seed": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"pumpkin": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"nut": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"dead_bug": { elem2:null, chance:0.35, func:behaviors.FEEDPIXEL },
"bee": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"ant": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"flea": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"termite": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"lichen": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"oxygen": { elem2:"carbon_dioxide", chance:0.3 },
"mercury": { elem1:"rotten_meat", chance:0.1 },
"bleach": { elem1:"rotten_meat", chance:0.1 },
"infection": { elem1:"rotten_meat", chance:0.025 },
"uranium": { elem1:"rotten_meat", chance:0.1 },
"cyanide": { elem1:"rotten_meat", chance:0.1 },
"chlorine": { elem1:"meat", chance:0.1 },
"dirty_water": { elem1:"rotten_meat", chance:0.0001 },
},
egg: "chicken_egg",
foodNeed: 10,
temp: 40,
tempHigh: 75,
stateHigh: "cooked_chicken",
tempLow: -18,
stateLow: "frozen_meat",
breakInto: "raw_chicken",
burn:85,
burnTime:450,
state: "solid",
density: 1117,
conduct: 0.3,
cutInto: "raw_chicken",
};
elements.chicken_egg = {
color: ["#e0d3ab","#d9cdb5"],
behavior: [
"XX|XX|XX",
"XX|FX%5|XX",
"M2%30|M1|M2%30",
],
tick: function(pixel) {
if (Math.random() < 0.1 && pixel.temp > 20 && pixel.temp < 35) {
changePixel(pixel,"chick")
}
doDefaults(pixel);
},
category: "food",
state: "solid",
temp: 20,
tempLow: -18,
stateLow: "frozen_chicken_egg",
breakInto: ["yolk"],
tempHigh: 400,
stateHigh: ["calcium", "ash"],
burn:50,
burnTime:450,
state: "solid",
density: 900,
conduct: 0.1,
reactions: {
"water": { elem2:null, elem1:"hard_boiled_egg", chance:10, tempMin:80 }
}
};
elements.water.reactions.egg = { elem1:null, elem2:"hard_boiled_egg", chance:10, tempMin:80 }
elements.frozen_chicken_egg = {
color: ["#e0d3cf","#d9cdd3"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
temp: -20,
tempHigh: 10,
stateHigh: "chicken_egg",
breakInto: ["calcium", "hard_yolk"],
burn:50,
burnTime:450,
state: "solid",
density: 900,
conduct: 0.1,
hidden: true,
};
elements.hard_boiled_egg = {
color: ["#e0d3ab","#d9cdb5","#e4d4b4","#f3f3ef"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
hidden: "TRUE",
tempHigh: 1000,
stateHigh: ["ash", "smoke"],
density: 820.33,
isFood: true,
hidden: true,
};
elements.chick = {
color: ["#ffdf85", "#ffef5c"],
behavior: [
"M2%1|M2%2|M2%1",
"M2%10|FX%5 AND CH:chicken%0.1|M2%10",
"XX|M1%33|XX",
],
category: "life",
state: "solid",
egg: "chicken_egg",
foodNeed: 20,
temp: 40,
tempHigh: 75,
stateHigh: "cooked_meat",
tempLow: -18,
stateLow: "frozen_meat",
breakInto: "blood",
burn:85,
burnTime:450,
state: "solid",
density: 900,
conduct: 0.1,
reactions: {
"crushed_worm": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL},
"meat": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"chicken_nugget": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"grass": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"worm": { elem2: "crushed_worm", chance:0.3},
"cooked_meat": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"fish": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"rat": { elem2:null, chance:0.05, func:behaviors.FEEDPIXEL },
"snail": { elem2:null, chance:0.05, func:behaviors.FEEDPIXEL },
"frog": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"slug": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"grape": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"wheat_seed": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"flower_seed": { elem2:null, chance:0.32, func:behaviors.FEEDPIXEL },
"corn_seed": { elem2:null, chance:0.35, func:behaviors.FEEDPIXEL },
"corn": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"crumb": { elem2:null, chance:0.25, func:behaviors.FEEDPIXEL },
"potato_seed": { elem2:null, chance:0.4, func:behaviors.FEEDPIXEL },
"grass_seed": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"pumpkin_seed": { elem2:null, chance:0.3, func:behaviors.FEEDPIXEL },
"pumpkin": { elem2:null, chance:0.1, func:behaviors.FEEDPIXEL },
"nut": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"dead_bug": { elem2:null, chance:0.35, func:behaviors.FEEDPIXEL },
"bee": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"ant": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"flea": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"termite": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"lichen": { elem2:null, chance:0.2, func:behaviors.FEEDPIXEL },
"oxygen": { elem2:"carbon_dioxide", chance:0.3 },
"mercury": { elem1:"rotten_meat", chance:0.1 },
"bleach": { elem1:"rotten_meat", chance:0.1 },
"infection": { elem1:"rotten_meat", chance:0.025 },
"uranium": { elem1:"rotten_meat", chance:0.1 },
"cyanide": { elem1:"rotten_meat", chance:0.1 },
"chlorine": { elem1:"meat", chance:0.1 },
"dirty_water": { elem1:"rotten_meat", chance:0.0001 },
}
};
elements.soup = {
color: "#fbd189",
behavior: behaviors.LIQUID,
tempHigh: 130,
stateHigh: ["steam","steam","steam","fragrance"],
tempLow: 0,
category: "food",
state: "liquid",
density: 1052,
conduct: 0.03,
stain: -0.01,
isFood: true,
hidden: true,
}
if (!elements.broth.reactions) elements.broth.reactions = {};
elements.broth.reactions.water = { elem1: "soup", elem2: "soup" }
elements.noodles = {
desc: "whatever noodles",
color: ["#F3BA4F", "#F7D161"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
temp: 30,
breakInto: ["crumb"],
tempHigh: 130,
stateHigh: ["toast"],
burn:50,
burnTime:450,
state: "solid",
density: 900,
conduct: 0.1,
hidden: true,
};
if (!elements.batter.reactions) elements.batter.reactions = {};
elements.batter.reactions.water = {elem1: "noodles", tempMin: 70}
elements.battered_raw_chicken = {
color: ["#eacfa9", "#ecd2af"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:25,
tempHigh: 600,
stateHigh: ["ash","smoke"],
reactions: {
"crumb": { elem1: "raw_chicken_nugget", elem2: null },
},
hidden: true,
};
elements.steamed_chicken = {
color:["#cfba8f", "#d2b788"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:50,
tempHigh: 600,
stateHigh: ["ash","smoke"],
isFood: true,
hidden: true,
}
elements.smoked_chicken = {
color:["#AF4523", "#AC481F"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp:55,
tempHigh: 600,
stateHigh: ["ash","smoke"],
isFood: true,
hidden: true,
}
elements.crushed_worm = {
color: ["#e56932", "#c0714e"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp: 20,
tempHigh: 50,
stateHigh: ["ash", "smoke"],
tempLow: -4,
stateLow: "frozen_crushed_worm",
density: 200.33,
isFood: true,
hidden: true,
};
elements.worm.reactions.rock = { elem1: "crushed_worm" }
elements.worm.breakInto = "crushed_worm"
elements.frozen_crushed_worm = {
color: ["#2fcbae", "#3edabd", "#b2d5d9"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp: -4,
tempHigh: 20,
stateHigh: "crushed_worm",
density: 200.33,
isFood: false,
hidden: true,
};
elements.cooked_chicken = {
color: ["#c17c20", "#ebad2b", "#f7b846"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp: 40,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
hidden: true,
};
elements.raw_chicken = {
color: ["#dfc8bd", "#e2cdc0", "#b9a195"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
burnInto: "cooked_chicken",
temp:25,
tempHigh: 600,
stateHigh: ["cooked_chicken"],
reactions: {
"batter": { elem1: "battered_raw_chicken", elem2: null },
"smoke": {elem1: "smoked_chicken"},
"steam": {elem1: "steamed_chicken"},
"water": {elem1: "boiled_chicken", tempMin: 70},
"nut_oil": {elem1: "fried_chicken", tempMin: 70}
}
};
elements.boiled_chicken = {
color: ["#F9CC84", "#EDCE89", "#F8CB78"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
isFood: true,
temp: 65,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
hidden: true,
}
elements.fried_chicken = {
color: ["#E87D1A", "#E77106", "#E77106"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
isFood: true,
temp: 90,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
hidden: true,
}
elements.raw_chicken_nugget = {
color: ["#d6bc7e", "#d2b47a", "#c7a969"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
burnInto: "chicken_nugget",
temp:25,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
hidden: true,
reactions: {
"nut_oil": {elem1: "chicken_nugget", tempMin: 70}
}
};
elements.chicken_nugget = {
color: ["#D77105", "#D77105", "#EB8C2C", "#EB8C2C"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp: 40,
tempHigh: 600,
stateHigh: ["ash", "smoke"],
tempLow: -20,
stateLow: "frozen_chicken_nugget",
isFood: true,
density: 100,
hidden: true,
};
elements.frozen_chicken_nugget = {
color: ["#45a69c", "#73d9cd", "#3f9f95", "#389d8e"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
temp: -20,
tempHigh: 40,
stateHigh: "chicken_nugget",
isFood: false,
density: 100,
hidden: true,
};
elements.olive_wood = {
color: "#632e1f",
behavior: behaviors.WALL,
tempHigh: 400,
stateHigh: ["ember","charcoal","fire","fire","fire"],
category: "solids",
burn: 5,
burnTime: 300,
burnInto: ["ember","charcoal","fire"],
state: "solid",
hardness: 0.15,
breakInto: "sawdust",
breakIntoColor: ["#dba66e","#cc8a64"],
}
elements.olive_branch = {
color: "#632e1f",
behavior: [
"CR:olive_leaves,olive_branch%2|CR:olive_leaves,olive_leaves,olive_leaves,olive_branch%2|CR:olive_leaves,olive_branch%2",
"XX|XX|XX",
"XX|XX|XX",
],
tempHigh: 100,
stateHigh: "olive_wood",
tempLow: -30,
stateLow: "olive_wood",
category: "life",
burn: 40,
burnTime: 50,
burnInto: ["sap","ember","charcoal"],
hidden: true,
state: "solid",
density: 1500,
hardness: 0.15,
breakInto: ["sap","sawdust"],
hidden: true,
}
elements.olive_leaves = {
color: ["#407603","#376502","#2e5502"],
behavior: [
"XX|XX|XX",
"XX|XX|XX",
"XX|CR:olive%0.15|XX",
],
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035}
},
category:"life",
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -1.66,
stateLow: "frozen_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "dead_plant",
state: "solid",
density: 1050,
seed: "olive_seed",
hidden: true
}
elements.olive = {
color: ["#6e8b3d","#7c9d45"],
behavior: behaviors.POWDER,
reactions: {
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 },
"rock": { elem1:"nut_oil", elem2:"rock", chance:0.035, color1: "#ffc844" },
},
category:"food",
tempHigh: 100,
stateHigh: "dead_plant",
burn:65,
burnTime:60,
burnInto: "dead_plant",
breakInto: "nut_oil",
breakIntoColor: "#ffc844",
density: 1050,
isFood: false
}
elements.olive_seed = {
color: "#854610",
tick: function(pixel) {
if (isEmpty(pixel.x,pixel.y+1)) {
movePixel(pixel,pixel.x,pixel.y+1);
}
else {
if (Math.random() < 0.02 && pixel.age > 50 && pixel.temp < 100) {
if (!outOfBounds(pixel.x,pixel.y+1)) {
var dirtPixel = pixelMap[pixel.x][pixel.y+1];
if (dirtPixel.element === "dirt" || dirtPixel.element === "mud" || dirtPixel.element === "sand" || dirtPixel.element === "wet_sand" || dirtPixel.element === "clay_soil" || dirtPixel.element === "mycelium") {
changePixel(dirtPixel,"root");
}
}
if (isEmpty(pixel.x,pixel.y-1)) {
movePixel(pixel,pixel.x,pixel.y-1);
createPixel(Math.random() > 0.5 ? "olive_wood" : "olive_branch",pixel.x,pixel.y+1);
}
}
else if (pixel.age > 1000) {
changePixel(pixel,"olive_wood");
}
pixel.age++;
}
doDefaults(pixel);
},
properties: {
"age":0
},
tempHigh: 100,
stateHigh: "dead_plant",
tempLow: -2,
stateLow: "frozen_plant",
burn: 65,
burnTime: 15,
category: "life",
state: "solid",
density: 1500,
cooldown: defaultCooldown,
seed: true,
behavior: [
"XX|XX|XX",
"XX|FX%10|XX",
"XX|M1|XX",
],
};
/*
elements.cooking_oil = {
color: "#ffc844",
behavior: behaviors.LIQUID,
category: "liquids",
tempHigh: 400,
stateHigh: "fire",
burn: 70,
burnTime: 300,
burnInto: ["carbon_dioxide","fire"],
viscosity: 250,
state: "liquid",
density: 825,
temp: 30,
reactions: {
"peeled_potato": {elem2: "fried_potato", tempMin: 70}
}
},
*/
elements.pepper = {
color: ["#1f190a", "#2b200d", "#362712", "#3b2211"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
isFood: true,
temp: 20,
hidden: true,
tempHigh: 250,
stateHigh: ["ash", "smoke"],
}
elements.potato.cutInto = ["peeled_potato","peeled_potato","peeled_potato","potato_skin"]//{elem1: ["potato_skin","peeled_potato"] }
elements.potato_skin = {
color: ["#DC8A5A", "#A86C36", "#DC9A59", "#A76B35"],
behavior: behaviors.POWDER,
category: "food",
state: "solid",
isFood: true,
temp: 20,
hidden: true,
density: 1100,
tempHigh: 250,
stateHigh: ["ash", "smoke"],
}
elements.peeled_potato = {
color: ["#D6C39F", "#D1C09D", "#D1C09D", "#CDBF9E"],
behavior: behaviors.STURDYPOWDER,
category: "food",
state: "solid",
isFood: true,
temp: 20,
hidden: true,
breakInto: "mashed_potato",
tempHigh: 176,
stateHigh: "baked_potato",
density: 1100,
reactions: {
"nut_oil": { elem1: "fried_potato", tempMin: 70 }