-
Notifications
You must be signed in to change notification settings - Fork 1
/
Blocks.cs
1909 lines (1902 loc) · 97.3 KB
/
Blocks.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.IO;
namespace MinecraftTextureStudio
{
public class Blocks
{
public static void loadBlocks()
{
FrmMain.blockList = new List<string>();
FrmMain.blocks = new Hashtable();
addBlock("Destroy", 0);
addBlock("Stone", 1);
addBlock("Grass Block", 2);
addBlock("Dirt", 3);
addBlock("Cobblestone", 4);
addBlock("Oak Plank", 5);
addBlock("Birch Plank", 5);
addBlock("Jungle Wood Plank", 5);
addBlock("Spruce Plank", 5);
addBlock("Acacia Plank", 5);
addBlock("Dark Oak Plank", 5);
addBlock("Acacia Sapling", 6);
addBlock("Birch Sapling", 6);
addBlock("Jungle Sapling", 6);
addBlock("Oak Sapling", 6);
addBlock("Dark Oak Sapling", 6);
addBlock("Spruce Sapling", 6);
addBlock("Bedrock", 7);
addBlock("Water Still", 8);
addBlock("Water Flowing", 9);
addBlock("Lava Still", 10);
addBlock("Lava Flowing", 11);
addBlock("Sand", 12);
addBlock("Gravel", 13);
addBlock("Gold Ore", 14);
addBlock("Iron Ore", 15);
addBlock("Coal Ore", 16);
addBlock("Oak", 17);
addBlock("Birch", 17);
addBlock("Jungle Wood", 17);
addBlock("Spruce", 17);
addBlock("Acacia", 17);
addBlock("Big Oak", 17);
addBlock("Leaves Acacia", 18);
addBlock("Leaves Acacia Opaque", 18);
addBlock("Leaves Big Oak", 18);
addBlock("Leaves Big Oak Opaque", 18);
addBlock("Leaves Birch", 18);
addBlock("Leaves Birch Opaque", 18);
addBlock("Leaves Jungle", 18);
addBlock("Leaves Jungle Opaque", 18);
addBlock("Leaves Oak", 18);
addBlock("Leaves Oak Opaque", 18);
addBlock("Leaves Spruce", 18);
addBlock("Leaves Spruce Opaque", 18);
addBlock("Sponge", 19);
addBlock("Glass", 20);
addBlock("White Stained Glass", 20);
addBlock("Orange Stained Glass", 20);
addBlock("Magenta Stained Glass", 20);
addBlock("Light Blue Stained Glass", 20);
addBlock("Yellow Stained Glass", 20);
addBlock("Lime Stained Glass", 20);
addBlock("Pink Stained Glass", 20);
addBlock("Gray Stained Glass", 20);
addBlock("Light Gray Stained Glass", 20);
addBlock("Cyan Stained Glass", 20);
addBlock("Purple Stained Glass", 20);
addBlock("Blue Stained Glass", 20);
addBlock("Brown Stained Glass", 20);
addBlock("Green Stained Glass", 20);
addBlock("Red Stained Glass", 20);
addBlock("Black Stained Glass", 20);
addBlock("Lapis Lazuli Ore", 21);
addBlock("Lapis Lazuli Block", 22);
addBlock("Dispenser Horizontal", 23);
addBlock("Dispenser Vertical", 23);
addBlock("Sandstone", 24);
addBlock("Smooth Sandstone", 24);
addBlock("Carved Sandstone", 24);
addBlock("Noteblock", 25);
addBlock("Bed", 26);
addBlock("Golden Rail", 27);
addBlock("Detector Rail", 28);
addBlock("Sticky Piston", 29);
addBlock("Cobweb", 30);
addBlock("Grass", 31);
addBlock("Dead Bush", 32);
addBlock("Piston", 33);
addBlock("Piston Extended", 34);
addBlock("Wool", 35);
addBlock("Orange Wool", 35);
addBlock("Magenta Wool", 35);
addBlock("Light Blue Wool", 35);
addBlock("Yellow Wool", 35);
addBlock("Lime Wool", 35);
addBlock("Pink Wool", 35);
addBlock("Gray Wool", 35);
addBlock("Light Gray Wool", 35);
addBlock("Cyan Wool", 35);
addBlock("Blue Wool", 35);
addBlock("Brown Wool", 35);
addBlock("Green Wool", 35);
addBlock("Red Wool", 35);
addBlock("Black Wool", 35);
//36 has no visual component
addBlock("Dandelion", 37);
addBlock("Poppy", 38);
addBlock("Blue Orchid", 38);
addBlock("Allium", 38);
addBlock("Azure Bluet", 38);
addBlock("Red Tulip", 38);
addBlock("Orange Tulip", 38);
addBlock("White Tulip", 38);
addBlock("Pink Tulip", 38);
addBlock("Oxeye Daisy", 38);
addBlock("Brown Mushroom", 39);
addBlock("Red Mushroom", 40);
addBlock("Gold Block", 41);
addBlock("Iron Block", 42);
addBlock("Double Stone Slab", 43);
addBlock("Stone Slab", 44);
addBlock("Sandstone Slab", 44);
addBlock("Cobblestone Slab", 44);
addBlock("Bricks Slab", 44);
addBlock("Stone Bricks Slab", 44);
addBlock("Nether Brick Slab", 44);
addBlock("Quartz Slab", 44);
addBlock("Bricks", 45);
addBlock("TNT", 46);
addBlock("Bookshelf", 47);
addBlock("Moss Stone", 48);
addBlock("Obsidian", 49);
addBlock("Torch", 50);
addBlock("Fire", 51);
addBlock("Monster Spawner", 52);
addBlock("Oak Wood Stairs", 53);
addBlock("Chest", 54);
addBlock("Double Chest", 54);
addBlock("Redstone Cross", 55);
addBlock("Redstone Line", 55);
addBlock("Diamond Ore", 56);
addBlock("Diamond Block", 57);
addBlock("Crafting Table", 58);
addBlock("Wheat Stage 0", 59);
addBlock("Wheat Stage 1", 59);
addBlock("Wheat Stage 2", 59);
addBlock("Wheat Stage 3", 59);
addBlock("Wheat Stage 4", 59);
addBlock("Wheat Stage 5", 59);
addBlock("Wheat Stage 6", 59);
addBlock("Wheat Stage 7", 59);
addBlock("Farmland Dry", 60);
addBlock("Farmland Wet", 60);
addBlock("Furnace Off", 61);
addBlock("Furnace On", 62);
addBlock("Standing Sign", 63);
addBlock("Wooden Door", 64);
addBlock("Ladders", 65);
addBlock("Rail", 66);
addBlock("Rail Turned", 66);
addBlock("Stone Stairs", 67);
addBlock("Wall Sign", 68);
addBlock("Lever", 69);
addBlock("Stone Pressure Plate", 70);
addBlock("Iron Door", 71);
addBlock("Wooden Pressure Plate", 72);
addBlock("Redstone Ore", 73);
//74 is lit redstone
addBlock("Redstone Torch Off", 75);
addBlock("Redstone Torch On", 76);
addBlock("Button", 77);
addBlock("Snow", 78);
addBlock("Dirt (Snow)", 78);
addBlock("Ice", 79);
addBlock("Snow (block)", 80);
addBlock("Cactus", 81);
addBlock("Clay Block", 82);
addBlock("Sugar Cane", 83);
addBlock("Jukebox", 84);
addBlock("Fence", 85);
addBlock("Pumpkin Off", 86);
addBlock("Netherrack", 87);
addBlock("Soul Sand", 88);
addBlock("Glowstone", 89);
addBlock("Portal", 90);
addBlock("Pumpkin On", 91);
addBlock("Cake", 92);
addBlock("Redstone Repeater Off", 93);
addBlock("Redstone Repeater On", 94);
//95 is stained glass
addBlock("Trapdoor", 96);
//97 is monster egg, same texture as cobblestone
addBlock("Stone Bricks", 98);
addBlock("Huge Brown Mushroom", 99);
addBlock("Huge Red Mushroom", 100);
addBlock("Iron Bars", 101);
addBlock("Glass Pane", 102);
addBlock("Melon", 103);
addBlock("Pumpkin Stem Connected", 104);
addBlock("Pumpkin Stem Disconnected", 104);
addBlock("Melon Stem Connected", 105);
addBlock("Melon Stem Disconnected", 105);
addBlock("Vines", 106);
addBlock("Fence Gate", 107);
addBlock("Brick Stairs", 108);
addBlock("Stone Brick Stairs", 109);
addBlock("Mycelium", 110);
addBlock("Lily Pad", 111);
addBlock("Nether Brick", 112);
addBlock("Nether Brick Fence", 113);
addBlock("Nether Brick Stairs", 114);
addBlock("Nether Wart Stage 0", 115);
addBlock("Nether Wart Stage 1", 115);
addBlock("Nether Wart Stage 2", 115);
addBlock("Enchantment Table", 116);
addBlock("Brewing Stand Empty", 117);
addBlock("Brewing Stand Potion", 117);
addBlock("Cauldron", 118);
//119 is end portal
addBlock("End Portal Block", 120);
addBlock("End Stone", 121);
addBlock("Dragon Egg", 122);
addBlock("Redstone Lamp Off", 123);
addBlock("Redstone Lamp On", 123);
//125 is a double wooden slab
addBlock("Oak Wood Slab", 126);
addBlock("Spruce Wood Slab", 126);
addBlock("Birch Wood Slab", 126);
addBlock("Jungle Wood Slab", 126);
addBlock("Acacia Wood Slab", 126);
addBlock("Dark Oak Wood Slab", 126);
addBlock("Cocoa Stage 0", 127);
addBlock("Cocoa Stage 1", 127);
addBlock("Cocoa Stage 2", 127);
addBlock("Sandstone Stairs", 128);
addBlock("Emerald Ore", 129);
addBlock("Ender Chest", 130);
addBlock("Tripwire Hook", 131);
addBlock("Tripwire", 132);
addBlock("Emerald Block", 133);
addBlock("Spruce Wood Stairs", 134);
addBlock("Birch Wood Stairs", 135);
addBlock("Jungle Wood Stairs", 136);
addBlock("Command Block", 137);
addBlock("Beacon", 138);
addBlock("Cobblestone Wall", 139);
addBlock("Flower Pot", 140);
addBlock("Carrots Stage 0", 141);
addBlock("Carrots Stage 1", 141);
addBlock("Carrots Stage 2", 141);
addBlock("Carrots Stage 3", 141);
addBlock("Potatoes Stage 0", 142);
addBlock("Potatoes Stage 1", 142);
addBlock("Potatoes Stage 2", 142);
addBlock("Potatoes Stage 3", 142);
addBlock("Wooden Button", 143);
addBlock("Skeleton Skull", 144);
addBlock("Wither Skeleton Skull", 144);
addBlock("Zombie Head", 144);
addBlock("Head", 144);
addBlock("Creeper Head", 144);
addBlock("Anvil", 145);
addBlock("Trapped Chest", 146);
addBlock("Double Trapped Chest", 146);
addBlock("Weighted Pressure Plate (Light)", 147);
addBlock("Weighted Pressure Plate (Heavy)", 148);
addBlock("Redstone Comparator Off", 149);
addBlock("Redstone Comparator On", 150);
addBlock("Daylight Sensor", 151);
addBlock("Redstone Block", 152);
addBlock("Nether Quartz Ore", 153);
addBlock("Hopper", 154);
addBlock("Quartz Block", 155);
addBlock("Quartz Stairs", 156);
addBlock("Activator Rail", 157);
addBlock("Dropper Horizontal", 158);
addBlock("Dropper Vertical", 158);
addBlock("Black Hardened Clay", 159);
addBlock("Blue Hardened Clay", 159);
addBlock("Brown Hardened Clay", 159);
addBlock("Cyan Hardened Clay", 159);
addBlock("Gray Hardened Clay", 159);
addBlock("Green Hardened Clay", 159);
addBlock("Light Blue Hardened Clay", 159);
addBlock("Lime Hardened Clay", 159);
addBlock("Magenta Hardened Clay", 159);
addBlock("Orange Hardened Clay", 159);
addBlock("Pink Hardened Clay", 159);
addBlock("Purple Hardened Clay", 159);
addBlock("Red Hardened Clay", 159);
addBlock("Silver Hardened Clay", 159);
addBlock("White Hardened Clay", 159);
addBlock("Yellow Hardened Clay", 159);
addBlock("White Stained Glass Pane", 160);
addBlock("Orange Stained Glass Pane", 160);
addBlock("Magenta Stained Glass Pane", 160);
addBlock("Light Blue Stained Glass Pane", 160);
addBlock("Yellow Stained Glass Pane", 160);
addBlock("Lime Stained Glass Pane", 160);
addBlock("Pink Stained Glass Pane", 160);
addBlock("Gray Stained Glass Pane", 160);
addBlock("Light Gray Stained Glass Pane", 160);
addBlock("Cyan Stained Glass Pane", 160);
addBlock("Purple Stained Glass Pane", 160);
addBlock("Blue Stained Glass Pane", 160);
addBlock("Brown Stained Glass Pane", 160);
addBlock("Green Stained Glass Pane", 160);
addBlock("Red Stained Glass Pane", 160);
addBlock("Black Stained Glass Pane", 160);
//161 is another leaves block type
//162 is another logs block type
addBlock("Acacia Wood Stairs", 163);
addBlock("Dark Oak Wood Stairs", 164);
//165 is slime block
//166 is barrier
//167 is iron trapdoor
//168 is unused
//169 is unused
addBlock("Hay Block", 170);
addBlock("Carpet", 171);
addBlock("Orange Carpet", 171);
addBlock("Magenta Carpet", 171);
addBlock("Light Blue Carpet", 171);
addBlock("Yellow Carpet", 171);
addBlock("Lime Carpet", 171);
addBlock("Pink Carpet", 171);
addBlock("Gray Carpet", 171);
addBlock("Light Gray Carpet", 171);
addBlock("Cyan Carpet", 171);
addBlock("Purple Carpet", 171);
addBlock("Blue Carpet", 171);
addBlock("Brown Carpet", 171);
addBlock("Green Carpet", 171);
addBlock("Red Carpet", 171);
addBlock("Black Carpet", 171);
addBlock("Hardened Clay", 172);
addBlock("Coal Block", 173);
addBlock("Packed Ice", 174);
addBlock("Sunflower", 175);
addBlock("Lilac", 175);
addBlock("Rose Bush", 175);
addBlock("Peony", 175);
addBlock("Tall Grass", 175);
addBlock("Large Fern", 175);
addBlock("Inverted Daylight Sensor", 178);
addBlock("Red Sandstone", 179);
addBlock("Red Sandstone Stairs", 180);
//addBlock("Double Red Sandstone Slab", 181);
addBlock("Red Sandstone Slab", 182);
addBlock("Spruce Fence Gate", 183);
addBlock("Birch Fence Gate", 184);
addBlock("Jungle Fence Gate", 185);
addBlock("Dark Oak Fence Gate", 186);
addBlock("Acacia Fence Gate", 187);
addBlock("Spruce Fence", 188);
addBlock("Birch Fence", 189);
addBlock("Jungle Fence", 190);
addBlock("Dark Oak Fence", 191);
addBlock("Acacia Fence", 192);
addBlock("Spruce Door", 193);
addBlock("Birch Door", 194);
addBlock("Jungle Door", 195);
addBlock("Acacia Door", 196);
addBlock("Dark Oak Door", 197);
}
public static void addBlock(string name, int index)
{
List<string> textures = Blocks.getTextures(name);
bool allFound = true;
foreach (string texture in textures)
{
if (!File.Exists(texture))
{
allFound = false;
Console.WriteLine(texture + " not found");
}
}
if (allFound)
{
FrmMain.blocks.Add(name, index);
FrmMain.blockList.Add(name);
}
}
public static List<string> getTextures(string blockName)
{
List<string> textures = new List<string>();
if (blockName == "Stone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stone.png");
}
else if (blockName == "Grass Block")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\grass_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\grass_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\dirt.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\grass_side_overlay.png");
}
else if (blockName == "Cobblestone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\cobblestone.png");
}
else if (blockName == "Oak Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
}
else if (blockName == "Birch Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_birch.png");
}
else if (blockName == "Jungle Wood Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_jungle.png");
}
else if (blockName == "Spruce Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_spruce.png");
}
else if (blockName == "Acacia Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_acacia.png");
}
else if (blockName == "Dark Oak Plank")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_big_oak.png");
}
else if (blockName == "Acacia Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_acacia.png");
}
else if (blockName == "Birch Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_birch.png");
}
else if (blockName == "Jungle Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_jungle.png");
}
else if (blockName == "Oak Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_oak.png");
}
else if (blockName == "Dark Oak Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_roofed_oak.png");
}
else if (blockName == "Spruce Sapling")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sapling_spruce.png");
}
else if (blockName == "Dirt")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\dirt.png");
}
else if (blockName == "Bedrock")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bedrock.png");
}
else if (blockName == "Water Still")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\water_still.png");
}
else if (blockName == "Water Flowing")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\water_flow.png");
}
else if (blockName == "Lava Still")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\lava_still.png");
}
else if (blockName == "Lava Flowing")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\lava_flow.png");
}
else if (blockName == "Sand")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sand.png");
}
else if (blockName == "Gravel")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\gravel.png");
}
else if (blockName == "Gold Ore")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\gold_ore.png");
}
else if (blockName == "Iron Ore")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\iron_ore.png");
}
else if (blockName == "Coal Ore")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\coal_ore.png");
}
else if (blockName == "Oak")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_oak.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_oak_top.png");
}
else if (blockName == "Birch")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_birch.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_birch_top.png");
}
else if (blockName == "Jungle Wood")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_jungle.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_jungle_top.png");
}
else if (blockName == "Spruce")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_spruce.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_spruce_top.png");
}
else if (blockName == "Acacia")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_acacia.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_acacia_top.png");
}
else if (blockName == "Big Oak")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_big_oak.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\log_big_oak_top.png");
}
else if (blockName == "Leaves Acacia")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_acacia.png");
}
else if (blockName == "Leaves Acacia Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_acacia_opaque.png");
}
else if (blockName == "Leaves Big Oak")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_big_oak.png");
}
else if (blockName == "Leaves Big Oak Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_big_oak_opaque.png");
}
else if (blockName == "Leaves Birch")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_birch.png");
}
else if (blockName == "Leaves Birch Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_birch_opaque.png");
}
else if (blockName == "Leaves Jungle")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_jungle.png");
}
else if (blockName == "Leaves Jungle Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_jungle_opaque.png");
}
else if (blockName == "Leaves Oak")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_oak.png");
}
else if (blockName == "Leaves Oak Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_oak_opaque.png");
}
else if (blockName == "Leaves Spruce")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_spruce.png");
}
else if (blockName == "Leaves Spruce Opaque")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\leaves_spruce_opaque.png");
}
else if (blockName == "Lapis Lazuli Ore")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\lapis_ore.png");
}
else if (blockName == "Lapis Lazuli Block")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\lapis_block.png");
}
else if (blockName == "Sponge")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sponge.png");
}
else if (blockName == "Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass.png");
}
else if (blockName == "White Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_white.png");
}
else if (blockName == "Orange Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_orange.png");
}
else if (blockName == "Magenta Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_magenta.png");
}
else if (blockName == "Light Blue Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_light_blue.png");
}
else if (blockName == "Yellow Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_yellow.png");
}
else if (blockName == "Lime Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_lime.png");
}
else if (blockName == "Pink Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_pink.png");
}
else if (blockName == "Gray Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_gray.png");
}
else if (blockName == "Light Gray Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_silver.png");
}
else if (blockName == "Cyan Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_cyan.png");
}
else if (blockName == "Purple Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_purple.png");
}
else if (blockName == "Blue Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_blue.png");
}
else if (blockName == "Brown Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_brown.png");
}
else if (blockName == "Green Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_green.png");
}
else if (blockName == "Red Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_red.png");
}
else if (blockName == "Black Stained Glass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\glass_black.png");
}
else if (blockName == "Dispenser Horizontal")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\furnace_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\furnace_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\dispenser_front_horizontal.png");
}
else if (blockName == "Dispenser Vertical")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\furnace_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\dispenser_front_vertical.png");
}
else if (blockName == "Sandstone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_normal.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_bottom.png");
}
else if (blockName == "Smooth Sandstone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_smooth.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_bottom.png");
}
else if (blockName == "Carved Sandstone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_carved.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_bottom.png");
}
else if (blockName == "Sticky Piston")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_top_sticky.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\furnace_top.png");
}
else if (blockName == "Noteblock")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\noteblock.png");
}
else if (blockName == "Bed")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_head_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_head_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_head_end.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_feet_end.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_feet_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bed_feet_top.png");
}
else if (blockName == "Golden Rail")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\rail_golden.png");
}
else if (blockName == "Detector Rail")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\rail_detector.png");
}
else if (blockName == "Grass")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\tallgrass.png");
}
else if (blockName == "Cobweb")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\web.png");
}
else if (blockName == "Dead Bush")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\deadbush.png");
}
else if (blockName == "Piston")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_top_normal.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\furnace_top.png");
}
else if (blockName == "Piston Extended")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_top_normal.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_bottom.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\piston_inner.png");
}
else if (blockName == "Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_white.png");
}
else if (blockName == "Orange Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_orange.png");
}
else if (blockName == "Magenta Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_magenta.png");
}
else if (blockName == "Light Blue Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_light_blue.png");
}
else if (blockName == "Yellow Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_yellow.png");
}
else if (blockName == "Lime Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_lime.png");
}
else if (blockName == "Pink Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_pink.png");
}
else if (blockName == "Gray Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_gray.png");
}
else if (blockName == "Light Gray Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_silver.png");
}
else if (blockName == "Cyan Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_cyan.png");
}
else if (blockName == "Blue Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_blue.png");
}
else if (blockName == "Brown Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_brown.png");
}
else if (blockName == "Green Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_green.png");
}
else if (blockName == "Red Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_red.png");
}
else if (blockName == "Black Wool")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\wool_colored_black.png");
}
else if (blockName == "Dandelion")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_dandelion.png");
}
else if (blockName == "Poppy")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_rose.png");
}
else if (blockName == "Blue Orchid")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_blue_orchid.png");
}
else if (blockName == "Allium")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_allium.png");
}
else if (blockName == "Azure Bluet")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_houstonia.png");
}
else if (blockName == "Red Tulip")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_tulip_red.png");
}
else if (blockName == "Orange Tulip")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_tulip_orange.png");
}
else if (blockName == "White Tulip")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_tulip_white.png");
}
else if (blockName == "Pink Tulip")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_tulip_pink.png");
}
else if (blockName == "Oxeye Daisy")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\flower_oxeye_daisy.png");
}
else if (blockName == "Brown Mushroom")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\mushroom_brown.png");
}
else if (blockName == "Red Mushroom")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\mushroom_red.png");
}
else if (blockName == "Gold Block")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\gold_block.png");
}
else if (blockName == "Iron Block")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\iron_block.png");
}
else if (blockName == "Double Stone Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stone_slab_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stone_slab_top.png");
}
else if (blockName == "Stone Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stone_slab_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stone_slab_top.png");
}
else if (blockName == "Sandstone Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_normal.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_bottom.png");
}
else if (blockName == "Cobblestone Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\cobblestone.png");
}
else if (blockName == "Bricks Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\brick.png");
}
else if (blockName == "Stone Bricks Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\stonebrick.png");
}
else if (blockName == "Nether Brick Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\nether_brick.png");
}
else if (blockName == "Quartz Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\quartz_block_top.png");
}
else if (blockName == "Oak Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
}
else if (blockName == "Spruce Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_spruce.png");
}
else if (blockName == "Birch Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_birch.png");
}
else if (blockName == "Jungle Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_jungle.png");
}
else if (blockName == "Acacia Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_acacia.png");
}
else if (blockName == "Dark Oak Wood Slab")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_big_oak.png");
}
else if (blockName == "Bricks")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\brick.png");
}
else if (blockName == "TNT")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\tnt_side.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\tnt_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\tnt_bottom.png");
}
else if (blockName == "Bookshelf")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\bookshelf.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
}
else if (blockName == "Moss Stone")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\cobblestone_mossy.png");
}
else if (blockName == "Obsidian")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\obsidian.png");
}
else if (blockName == "Torch")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\torch_on.png");
}
else if (blockName == "Fire")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\fire_layer_0.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\fire_layer_1.png");
}
else if (blockName == "Monster Spawner")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\mob_spawner.png");
}
else if (blockName == "Oak Wood Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
}
else if (blockName == "Stone Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\cobblestone.png");
}
else if (blockName == "Sandstone Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_normal.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_top.png");
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\sandstone_bottom.png");
}
else if (blockName == "Spruce Wood Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_spruce.png");
}
else if (blockName == "Birch Wood Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_birch.png");
}
else if (blockName == "Jungle Wood Stairs")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_jungle.png");
}
else if (blockName == "Wooden Button")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\blocks\\planks_oak.png");
}
else if (blockName == "Skeleton Skull")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\entity\\skeleton\\skeleton.png");
}
else if (blockName == "Wither Skeleton Skull")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\entity\\skeleton\\wither_skeleton.png");
}
else if (blockName == "Zombie Head")
{
textures.Add(FrmMain.directory + "\\assets\\minecraft\\textures\\entity\\zombie\\zombie.png");
}
else if (blockName == "Head")