-
Notifications
You must be signed in to change notification settings - Fork 1
/
lotr_textures.py.template
2038 lines (1866 loc) · 121 KB
/
lotr_textures.py.template
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
# { LotrSupportInOverviewer 11
# @(#) LotrSupportInOverviewer:lotr_textures.py v1.10 (2016-11-28) / Hubert Tournier
################################################################################
# Opaque single-texture full blocks without data value: ########################
################################################################################
block(blockid=<lotr:tile.oreCopper>, top_image="assets/lotr/textures/blocks/oreCopper.png")
block(blockid=<lotr:tile.oreTin>, top_image="assets/lotr/textures/blocks/oreTin.png")
block(blockid=<lotr:tile.oreSilver>, top_image="assets/lotr/textures/blocks/oreSilver.png")
block(blockid=<lotr:tile.oreMithril>, top_image="assets/lotr/textures/blocks/oreMithril.png")
block(blockid=<lotr:tile.oreNaurite>, top_image="assets/lotr/textures/blocks/oreNaurite.png")
block(blockid=<lotr:tile.oreQuendite>, top_image="assets/lotr/textures/blocks/oreQuendite.png")
block(blockid=<lotr:tile.oreGlowstone>, top_image="assets/lotr/textures/blocks/oreGlowstone.png")
block(blockid=<lotr:tile.remains>, top_image="assets/lotr/textures/blocks/remains.png")
block(blockid=<lotr:tile.oreSulfur>, top_image="assets/lotr/textures/blocks/oreSulfur.png")
block(blockid=<lotr:tile.oreSaltpeter>, top_image="assets/lotr/textures/blocks/oreSaltpeter.png")
block(blockid=<lotr:tile.quagmire>, top_image="assets/lotr/textures/blocks/quagmire.png")
block(blockid=<lotr:tile.goran>, top_image="assets/lotr/textures/blocks/goran.png")
block(blockid=<lotr:tile.thatch>, top_image="assets/lotr/textures/blocks/thatch.png")
block(blockid=<lotr:tile.termiteMound>, top_image="assets/lotr/textures/blocks/termiteMound.png")
block(blockid=<lotr:tile.mordorDirt>, top_image="assets/lotr/textures/blocks/mordorDirt.png")
block(blockid=<lotr:tile.mordorGravel>, top_image="assets/lotr/textures/blocks/mordorGravel.png")
block(blockid=<lotr:tile.dwarvenDoor>, top_image="assets/minecraft/textures/blocks/stone.png")
################################################################################
# Opaque single-texture full blocks with data value: ###########################
################################################################################
@material(blockid=<lotr:tile.rock>, data=range(5), solid=True)
def rock_values(self, blockid, data):
# Mordor Rock
t = self.load_image_texture("assets/lotr/textures/blocks/rock_mordor.png")
if data == 1: # Gondor Rock
t = self.load_image_texture("assets/lotr/textures/blocks/rock_gondor.png")
elif data == 2: # Rohan Rock
t = self.load_image_texture("assets/lotr/textures/blocks/rock_rohan.png")
elif data == 3: # Sarlluin
t = self.load_image_texture("assets/lotr/textures/blocks/rock_blue.png")
elif data == 4: # Sarncaran
t = self.load_image_texture("assets/lotr/textures/blocks/rock_red.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.oreMorgulIron>, data=range(2), solid=True)
def oreMorgulIron_values(self, blockid, data):
# Morgul Iron Ore
t = self.load_image_texture("assets/lotr/textures/blocks/oreMorgulIron.png")
if data == 1: # Morgul Iron Ore (Mordor)
t = self.load_image_texture("assets/lotr/textures/blocks/oreMorgulIron_mordor.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.oreGulduril>, data=range(2), solid=True)
def oreGulduril_values(self, blockid, data):
# Gulduril Ore
t = self.load_image_texture("assets/lotr/textures/blocks/oreGulduril.png")
if data == 1: # Gulduril Ore (Mordor)
t = self.load_image_texture("assets/lotr/textures/blocks/oreGulduril_mordor.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.oreStorage>, data=range(16), solid=True)
def oreStorage_values(self, blockid, data):
# Block of Copper
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_copper.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_copper.png"))
if data == 1: # Block of Tin
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_tin.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_tin.png"))
elif data == 2: # Block of Bronze
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_bronze.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_bronze.png"))
elif data == 3: # Block of Silver
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_silver.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_silver.png"))
elif data == 4: # Block of Mithril
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_mithril.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_mithril.png"))
elif data == 5: # Block of Orc Steel
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_orcSteel.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_orcSteel_side.png"))
elif data == 6: # Block of Quendite
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_quendite.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_quendite.png"))
elif data == 7: # Block of Dwarven Steel
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_dwarfSteel.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_dwarfSteel.png"))
elif data == 8: # Block of Galvorn
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_galvorn.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_galvorn.png"))
elif data == 9: # Block of Uruk Steel
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_urukSteel.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_urukSteel.png"))
elif data == 10: # Block of Naurite
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_naurite.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_naurite.png"))
elif data == 11: # Block of Gulduril
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_gulduril.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_gulduril.png"))
elif data == 12: # Block of Morgul Steel
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_morgulSteel.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_morgulSteel_side.png"))
elif data == 13: # Block of Sulfur
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_sulfur.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_sulfur.png"))
elif data == 14: # Block of Salpeter
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_saltpeter.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_saltpeter.png"))
elif data == 15: # Block of Blue Dwarven Steel
img = self.build_block(self.load_image_texture("assets/lotr/textures/blocks/oreStorage_blueDwarfSteel.png"), self.load_image_texture("assets/lotr/textures/blocks/oreStorage_blueDwarfSteel.png"))
return img
@material(blockid=<lotr:tile.oreStorage2>, data=range(2), solid=True)
def oreStorage2_values(self, blockid, data):
# Block of Black Uruk Steel
t = self.load_image_texture("assets/lotr/textures/blocks/oreStorage2_blackUrukSteel.png")
if data == 1: # Block of Elven Steel
t = self.load_image_texture("assets/lotr/textures/blocks/oreStorage2_elfSteel.png")
return self.build_block(t, t)
##### Caveat: The glowing effect of Gulduril bricks is not represented #####
@material(blockid=<lotr:tile.guldurilBrick>, data=range(6), solid=True)
def guldurilBrick_values(self, blockid, data):
# Gulduril Mordor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_mordor.png")
if data == 1: # Gulduril Cracked Mordor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_mordorCracked.png")
elif data == 2: # Gulduril Angmar Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmar.png")
elif data == 3: # Gulduril Cracked Angmar Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmarCracked.png")
elif data == 4: # Gulduril Dol Guldur Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldur.png")
elif data == 5: # Gulduril Cracked Dol Guldur Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldurCracked.png")
return self.build_block(t, t)
@material(blockid=[<lotr:tile.leaves>, <lotr:tile.leaves2>, <lotr:tile.leaves3>, <lotr:tile.leaves4>, <lotr:tile.leaves5>, <lotr:tile.fruitLeaves>], data=range(16), transparent=True, solid=True)
def lotr_leaves(self, blockid, data):
# mask out the bits 4 and 8
# they are used for player placed and check-for-decay blocks
data = data & 0x7
t = self.load_image_texture("assets/minecraft/textures/blocks/leaves_oak.png")
if blockid == <lotr:tile.leaves>:
if data == 0 or data == 4: # Shire Pine Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves_shirePine_fancy.png")
elif data == 1 or data == 5: # Mallorn Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves_mallorn_fancy.png")
elif data == 2 or data == 6: # Mirk-oak Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves_mirkOak_fancy.png")
elif data == 3 or data == 7: # Red Mirk-oak Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves_mirkOakRed_fancy.png")
elif blockid == <lotr:tile.leaves2>:
if data == 0 or data == 4: # Lebethron Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves2_lebethron_fancy.png")
elif data == 1 or data == 5: # Beech Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves2_beech_fancy.png")
elif data == 2 or data == 6: # Holly Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves2_holly_fancy.png")
elif data == 3 or data == 7: # Banana Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves2_banana_fancy.png")
elif blockid == <lotr:tile.leaves3>:
if data == 0 or data == 4: # Maple Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves3_maple_fancy.png")
elif data == 1 or data == 5: # Larch Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves3_larch_fancy.png")
elif data == 2 or data == 6: # Date Palm Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves3_datePalm_fancy.png")
elif data == 3 or data == 7: # Mangrove Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves3_mangrove_fancy.png")
elif blockid == <lotr:tile.leaves4>:
if data == 0 or data == 4: # Chestnut Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves4_chestnut_fancy.png")
elif data == 1 or data == 5: # Baobab Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves4_baobab_fancy.png")
elif data == 2 or data == 6: # Cedar Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves4_cedar_fancy.png")
elif data == 3 or data == 7: # Fir Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves4_fir_fancy.png")
elif blockid == <lotr:tile.leaves5>:
if data == 0 or data == 4: # Pine Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/leaves5_pine_fancy.png")
elif blockid == <lotr:tile.fruitLeaves>:
if data == 0 or data == 4: # Apple Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/fruitLeaves_apple_fancy.png")
elif data == 1 or data == 5: # Pear Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/fruitLeaves_pear_fancy.png")
elif data == 2 or data == 6: # Cherry Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/fruitLeaves_cherry_fancy.png")
elif data == 3 or data == 7: # Mango Leaves
t = self.load_image_texture("assets/lotr/textures/blocks/fruitLeaves_mango_fancy.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.planks>, data=range(16), solid=True)
def planks_values(self, blockid, data):
# Shire Pine Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_shirePine.png")
if data == 1: # Mallorn Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_mallorn.png")
elif data == 2: # Mirk-oak Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_mirkOak.png")
elif data == 3: # Charred Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_charred.png")
elif data == 4: # Apple Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_apple.png")
elif data == 5: # Pear Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_pear.png")
elif data == 6: # Cherry Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_cherry.png")
elif data == 7: # Mango Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_mango.png")
elif data == 8: # Lebethron Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_lebethron.png")
elif data == 9: # Beech Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_beech.png")
elif data == 10: # Holly Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_holly.png")
elif data == 11: # Banana Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_banana.png")
elif data == 12: # Maple Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_maple.png")
elif data == 13: # Larch Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_larch.png")
elif data == 14: # Date Palm Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_datePalm.png")
elif data == 15: # Mangrove Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks_mangrove.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.planks2>, data=range(5), solid=True)
def planks2_values(self, blockid, data):
# Chestnut Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks2_chestnut.png")
if data == 1: # Baobab Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks2_baobab.png")
elif data == 2: # Cedar Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks2_cedar.png")
elif data == 3: # Fir Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks2_fir.png")
elif data == 4: # Pine Wood Planks
t = self.load_image_texture("assets/lotr/textures/blocks/planks2_pine.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.brick>, data=range(16), solid=True)
def brick_values(self, blockid, data):
# Mordor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_mordor.png")
if data == 1: # Gondor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_gondor.png")
elif data == 2: # Mossy Gondor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_gondorMossy.png")
elif data == 3: # Cracked Gondor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_gondorCracked.png")
elif data == 4: # Rohan Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_rohan.png")
elif data == 5: # Carved Gondor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_gondorRuins.png")
elif data == 6: # Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_dwarven.png")
elif data == 7: # Cracked Mordor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_mordorCracked.png")
elif data == 8: # Silver-trimmed Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_dwarvenSilver.png")
elif data == 9: # Gold-trimmed Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_dwarvenGold.png")
elif data == 10: # Mithril-trimmed Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_dwarvenMithril.png")
elif data == 11: # Galadhrim Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrim.png")
elif data == 12: # Mossy Galadhrim Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrimMossy.png")
elif data == 13: # Cracked Galadhrim Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrimCracked.png")
elif data == 14: # Sarlluin Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_blueRock.png")
elif data == 15: # Near Harad Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick_nearHarad.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.brick2>, data=range(16), solid=True)
def brick2_values(self, blockid, data):
# Angmar Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmar.png")
if data == 1: # Cracked Angmar Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmarCracked.png")
elif data == 2: # Sarncaran Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_redRock.png")
elif data == 3: # Arnor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnor.png")
elif data == 4: # Mossy Arnor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnorMossy.png")
elif data == 5: # Cracked Arnor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnorCracked.png")
elif data == 6: # Carved Arnor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnorCarved.png")
elif data == 7: # Uruk Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_uruk.png")
elif data == 8: # Dol Guldur Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldur.png")
elif data == 9: # Cracked Dol Guldur Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldurCracked.png")
elif data == 10: # Carved Mordor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_mordorCarved.png")
elif data == 11: # Black Gondor Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_blackGondor.png")
elif data == 12: # Carved Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_dwarvenCarved.png")
elif data == 13: # Carved High Elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_highElvenCarved.png")
elif data == 14: # Carved Wood-elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_woodElvenCarved.png")
elif data == 15: # Carved Galadhrim Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick2_galadhrimCarved.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.brick3>, data=range(13), solid=True)
def brick3_values(self, blockid, data):
# Carved Sarlluin Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_blueCarved.png")
if data == 1: # Carved Sarncaran Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_redCarved.png")
elif data == 2: # High Elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElven.png")
elif data == 3: # Mossy High Elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElvenMossy.png")
elif data == 4: # Cracked High Elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElvenCracked.png")
elif data == 5: # Wood-elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElven.png")
elif data == 6: # Mossy Wood-elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElvenMossy.png")
elif data == 7: # Cracked Wood-elven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElvenCracked.png")
elif data == 8: # Carved Near Harad Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_nearHaradCarved.png")
elif data == 9: # Dol Amroth Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_dolAmroth.png")
elif data == 10: # Moredain Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_moredain.png")
elif data == 11: # Cracked near Harad Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_nearHaradCracked.png")
elif data == 12: # Glowing Dwarven Brick
t = self.load_image_texture("assets/lotr/textures/blocks/brick3_dwarvenGlowing.png")
return self.build_block(t, t)
@material(blockid=<lotr:tile.utumnoBrick>, data=range(6), solid=True)
def utumnoBrick_values(self, blockid, data):
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_fire.png")
if data == 1:
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_burning.png")
elif data == 2:
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_ice.png")
elif data == 3:
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_iceGlowing.png")
elif data == 4:
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_obsidian.png")
elif data == 5:
t = self.load_image_texture("assets/lotr/textures/blocks/utumnoBrick_obsidianFire.png")
return self.build_block(t, t)
################################################################################
# Opaque bi-texture full blocks: ###############################################
################################################################################
@material(blockid=<lotr:tile.angmarCraftingTable>, data=range(1), solid=True)
def angmarCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/angmarCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/angmarCraftingTable_side.png"))
@material(blockid=<lotr:tile.blueDwarvenCraftingTable>, data=range(1), solid=True)
def blueDwarvenCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/blueDwarvenCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/blueDwarvenCraftingTable_side.png"))
@material(blockid=<lotr:tile.dolAmrothCraftingTable>, data=range(1), solid=True)
def dolAmrothCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/dolAmrothCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/dolAmrothCraftingTable_side.png"))
@material(blockid=<lotr:tile.dolGuldurCraftingTable>, data=range(1), solid=True)
def dolGuldurCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/dolGuldurCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/dolGuldurCraftingTable_side.png"))
@material(blockid=<lotr:tile.dunlendingCraftingTable>, data=range(1), solid=True)
def dunlendingCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/dunlendingCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/dunlendingCraftingTable_side.png"))
@material(blockid=<lotr:tile.dwarvenCraftingTable>, data=range(1), solid=True)
def dwarvenCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/dwarvenCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/dwarvenCraftingTable_side.png"))
@material(blockid=<lotr:tile.elvenCraftingTable>, data=range(1), solid=True)
def elvenCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/elvenCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/elvenCraftingTable_side.png"))
@material(blockid=<lotr:tile.gondorianCraftingTable>, data=range(1), solid=True)
def gondorianCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/gondorianCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/gondorianCraftingTable_side.png"))
@material(blockid=<lotr:tile.gundabadCraftingTable>, data=range(1), solid=True)
def gundabadCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/gundabadCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/gundabadCraftingTable_side.png"))
@material(blockid=<lotr:tile.halfTrollCraftingTable>, data=range(1), solid=True)
def halfTrollCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/halfTrollCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/halfTrollCraftingTable_side.png"))
@material(blockid=<lotr:tile.highElvenCraftingTable>, data=range(1), solid=True)
def highElvenCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/highElvenCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/highElvenCraftingTable_side.png"))
@material(blockid=<lotr:tile.moredainCraftingTable>, data=range(1), solid=True)
def moredainCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/moredainCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/moredainCraftingTable_side.png"))
@material(blockid=<lotr:tile.morgulCraftingTable>, data=range(1), solid=True)
def morgulCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/morgulCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/morgulCraftingTable_side.png"))
@material(blockid=<lotr:tile.nearHaradCraftingTable>, data=range(1), solid=True)
def nearHaradCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/nearHaradCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/nearHaradCraftingTable_side.png"))
@material(blockid=<lotr:tile.rangerCraftingTable>, data=range(1), solid=True)
def rangerCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/rangerCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/rangerCraftingTable_side.png"))
@material(blockid=<lotr:tile.rohirricCraftingTable>, data=range(1), solid=True)
def rohirricCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/rohirricCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/rohirricCraftingTable_side.png"))
@material(blockid=<lotr:tile.urukCraftingTable>, data=range(1), solid=True)
def urukCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/urukCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/urukCraftingTable_side.png"))
@material(blockid=<lotr:tile.woodElvenCraftingTable>, data=range(1), solid=True)
def woodElvenCraftingTable(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/woodElvenCraftingTable_top.png"), self.load_image_texture("assets/lotr/textures/blocks/woodElvenCraftingTable_side.png"))
@material(blockid=<lotr:tile.quenditeGrass>, data=range(1), solid=True)
def quenditeGrass(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/quenditeGrass_top.png"), self.load_image_texture("assets/lotr/textures/blocks/quenditeGrass_side.png"))
@material(blockid=<lotr:tile.hearth>, data=range(1), solid=True)
def hearth(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/hearth_top.png"), self.load_image_texture("assets/lotr/textures/blocks/hearth_side.png"))
##### Caveat: the tap side is undistinguished from the other sides #####
@material(blockid=<lotr:tile.barrel>, data=range(1), solid=True)
def barrel(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/barrel_top.png"), self.load_image_texture("assets/lotr/textures/blocks/barrel_side.png"))
@material(blockid=<lotr:tile.entJar>, data=range(1), solid=True)
def entJar(self, blockid, data):
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/entJar_top.png"), self.load_image_texture("assets/lotr/textures/blocks/entJar_side.png"))
##### Caveat: no color differences between bomb strengths and handles are not shown #####
@material(blockid=<lotr:tile.orcBomb>, data=range(16), solid=True)
def orcBomb(self, blockid, data):
if data == 0 or data == 1 or data == 2:
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/orcBomb_top.png"), self.load_image_texture("assets/lotr/textures/blocks/orcBomb_side.png"))
elif data == 8 or data == 9 or data == 10:
return self.build_block(self.load_image_texture("assets/lotr/textures/blocks/orcBomb_fire_top.png"), self.load_image_texture("assets/lotr/textures/blocks/orcBomb_fire_side.png"))
################################################################################
# Opaque bi-texture full blocks with orientation: ##############################
################################################################################
@material(blockid=[<lotr:tile.wood>,<lotr:tile.wood2>,<lotr:tile.wood3>,<lotr:tile.wood4>,<lotr:tile.wood5>,<lotr:tile.fruitWood>,<lotr:tile.rottenLog>], data=range(16), solid=True)
def lotr_wood(self, blockid, data):
# extract orientation and wood type from data bits
wood_type = data & 3
wood_orientation = data & 12
if self.rotation == 1:
if wood_orientation == 4: wood_orientation = 8
elif wood_orientation == 8: wood_orientation = 4
elif self.rotation == 3:
if wood_orientation == 4: wood_orientation = 8
elif wood_orientation == 8: wood_orientation = 4
# choose textures
top = self.load_image_texture("assets/minecraft/textures/blocks/log_oak_top.png")
side = self.load_image_texture("assets/minecraft/textures/blocks/log_oak.png")
if blockid == <lotr:tile.wood>:
if wood_type == 0: # Shire Pine Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood_shirePine_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood_shirePine_side.png")
elif wood_type == 1: # Mallorn Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood_mallorn_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood_mallorn_side.png")
elif wood_type == 2: # Mirk-oak Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood_mirkOak_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood_mirkOak_side.png")
elif wood_type == 3: # Charred Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood_charred_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood_charred_side.png")
elif blockid == <lotr:tile.wood2>:
if wood_type == 0: # Lebethron Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood2_lebethron_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood2_lebethron_side.png")
elif wood_type == 1: # Beech Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood2_beech_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood2_beech_side.png")
elif wood_type == 2: # Holly Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood2_holly_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood2_holly_side.png")
elif wood_type == 3: # Banana Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood2_banana_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood2_banana_side.png")
elif blockid == <lotr:tile.wood3>:
if wood_type == 0: # Maple Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood3_maple_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood3_maple_side.png")
elif wood_type == 1: # Larch Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood3_larch_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood3_larch_side.png")
elif wood_type == 2: # Date Palm Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood3_datePalm_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood3_datePalm_side.png")
elif wood_type == 3: # Mangrove Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood3_mangrove_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood3_mangrove_side.png")
elif blockid == <lotr:tile.wood4>:
if wood_type == 0: # Chestnut Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood4_chestnut_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood4_chestnut_side.png")
elif wood_type == 1: # Baobab Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood4_baobab_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood4_baobab_side.png")
elif wood_type == 2: # Cedar Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood4_cedar_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood4_cedar_side.png")
elif wood_type == 3: # Fir Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood4_fir_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood4_fir_side.png")
elif blockid == <lotr:tile.wood5>:
if wood_type == 0: # Pine Wood
top = self.load_image_texture("assets/lotr/textures/blocks/wood5_pine_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/wood5_pine_side.png")
elif blockid == <lotr:tile.fruitWood>:
if wood_type == 0: # Apple Wood
top = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_apple_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_apple_side.png")
elif wood_type == 1: # Pear Wood
top = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_pear_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_pear_side.png")
elif wood_type == 2: # Cherry Wood
top = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_cherry_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_cherry_side.png")
elif wood_type == 3: # Mango Wood
top = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_mango_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/fruitWood_mango_side.png")
elif blockid == <lotr:tile.rottenLog>:
if wood_type == 0: #
top = self.load_image_texture("assets/lotr/textures/blocks/rottenLog_rotten_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/rottenLog_rotten_side.png")
# choose orientation and paste textures
if wood_orientation == 0:
return self.build_block(top, side)
elif wood_orientation == 4: # east-west orientation
return self.build_full_block(side.rotate(90), None, None, top, side.rotate(90))
elif wood_orientation == 8: # north-south orientation
return self.build_full_block(side, None, None, side.rotate(270), top)
##### Caveat: we don't distinguish from the top, middle and bottom of pillar's sides #####
@material(blockid=[<lotr:tile.pillar>, <lotr:tile.utumnoPillar>], data=range(14), solid=True)
def lotr_pillars(self, blockid, data):
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_dwarven_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_dwarven_side.png")
if blockid == <lotr:tile.pillar>:
if data == 1:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_galadhrim_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_galadhrim_side.png")
elif data == 2:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_galadhrimCracked_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_galadhrimCracked_side.png")
elif data == 3:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_blueRock_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_blueRock_side.png")
elif data == 4:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_redRock_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_redRock_side.png")
elif data == 5:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_nearHarad_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_nearHarad_side.png")
elif data == 6:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_gondor_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_gondor_side.png")
elif data == 7:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_mordor_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_mordor_side.png")
elif data == 8:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_rohan_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_rohan_side.png")
elif data == 9:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_blackGondor_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_blackGondor_side.png")
elif data == 10:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_highElven_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_highElven_side.png")
elif data == 11:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_highElvenCracked_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_highElvenCracked_side.png")
elif data == 12:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_woodElven_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_woodElven_side.png")
elif data == 13:
top = self.load_image_texture("assets/lotr/textures/blocks/pillar_woodElvenCracked_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/pillar_woodElvenCracked_side.png")
elif blockid == <lotr:tile.utumnoPillar>:
if data == 0:
top = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_fire_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_fire_side.png")
elif data == 1:
top = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_ice_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_ice_side.png")
elif data == 2:
top = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_obsidian_face.png")
side = self.load_image_texture("assets/lotr/textures/blocks/utumnoPillar_obsidian_side.png")
return self.build_block(top, side)
################################################################################
# Opaque tri-texture full blocks with orientation: #############################
################################################################################
@material(blockid=[<lotr:tile.hobbitOven>, <lotr:tile.dwarvenForge>, <lotr:tile.elvenForge>, <lotr:tile.orcForge>], data=range(6), solid=True)
def threeSidesOpaqueItems(self, blockid, data):
# first, do the rotation if needed
if self.rotation == 1:
if data == 2: data = 5
elif data == 3: data = 4
elif data == 4: data = 2
elif data == 5: data = 3
elif self.rotation == 2:
if data == 2: data = 3
elif data == 3: data = 2
elif data == 4: data = 5
elif data == 5: data = 4
elif self.rotation == 3:
if data == 2: data = 4
elif data == 3: data = 5
elif data == 4: data = 3
elif data == 5: data = 2
if blockid == <lotr:tile.hobbitOven>:
top = self.load_image_texture("assets/lotr/textures/blocks/hobbitOven_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/hobbitOven_side.png")
front = self.load_image_texture("assets/lotr/textures/blocks/hobbitOven_front.png")
elif blockid == <lotr:tile.dwarvenForge>:
top = self.load_image_texture("assets/lotr/textures/blocks/dwarvenForge_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/dwarvenForge_side.png")
front = self.load_image_texture("assets/lotr/textures/blocks/dwarvenForge_front.png")
elif blockid == <lotr:tile.elvenForge>:
top = self.load_image_texture("assets/lotr/textures/blocks/elvenForge_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/elvenForge_side.png")
front = self.load_image_texture("assets/lotr/textures/blocks/elvenForge_front.png")
elif blockid == <lotr:tile.orcForge>:
top = self.load_image_texture("assets/lotr/textures/blocks/orcForge_top.png")
side = self.load_image_texture("assets/lotr/textures/blocks/orcForge_side.png")
front = self.load_image_texture("assets/lotr/textures/blocks/orcForge_front.png")
if data == 3: # pointing west
return self.build_full_block(top, None, None, side, front)
elif data == 4: # pointing north
return self.build_full_block(top, None, None, front, side)
else: # in any other direction the front can't be seen
return self.build_full_block(top, None, None, side, side)
################################################################################
# Transparent single-texture full blocks with data value: ######################
################################################################################
@material(blockid=<lotr:tile.berryBush>, data=range(16), solid=True, transparent=True)
def berryBush(self, blockid, data):
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_blueberry_bare.png")
if data == 0: # Blueberry Bush Bare
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_blueberry_bare.png")
elif data == 1: # Blackberry Bush Bare
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_blackberry_bare.png")
elif data == 2: # Raspberry Bush Bare
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_raspberry_bare.png")
elif data == 3: # Cranberry Bush Bare
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_cranberry_bare.png")
elif data == 4: # Elderberry Bush Bare
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_elderberry_bare.png")
elif data == 8: # Blueberry Bush
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_blueberry.png")
elif data == 9: # Blackberry Bush
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_blackberry.png")
elif data == 10: # Raspberry Bush
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_raspberry.png")
elif data == 11: # Cranberry Bush
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_cranberry.png")
elif data == 12: # Elderberry Bush
t = self.load_image_texture("assets/lotr/textures/blocks/berryBush_elderberry.png")
return self.build_block(t, t)
################################################################################
# Transparent single texture sprites: ##########################################
################################################################################
@material(blockid=[<lotr:tile.sapling>,<lotr:tile.sapling2>,<lotr:tile.sapling3>,<lotr:tile.sapling4>,<lotr:tile.sapling5>,<lotr:tile.fruitSapling>,<lotr:tile.corruptMallorn>], data=range(16), transparent=True)
def lotr_saplings(self, blockid, data):
# default sapling
tex = self.load_image_texture("assets/minecraft/textures/blocks/sapling_oak.png")
if blockid == <lotr:tile.sapling>:
if data & 0x3 == 0: # Shire Pine Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling_shirePine.png")
elif data & 0x3 == 1: # Mallorn Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling_mallorn.png")
elif data & 0x3 == 2: # Mirk-oak Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling_mirkOak.png")
elif data & 0x3 == 3: # Red Mirk-oak Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling_mirkOakRed.png")
elif blockid == <lotr:tile.sapling2>:
if data & 0x3 == 0: # Lebethron Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling2_lebethron.png")
elif data & 0x3 == 1: # Beech Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling2_beech.png")
elif data & 0x3 == 2: # Holly Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling2_holly.png")
elif data & 0x3 == 3: # Banana Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling2_banana.png")
elif blockid == <lotr:tile.sapling3>:
if data & 0x3 == 0: # Maple Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling3_maple.png")
elif data & 0x3 == 1: # Larch Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling3_larch.png")
elif data & 0x3 == 2: # Date Palm Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling3_datePalm.png")
elif data & 0x3 == 3: # Mangrove Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling3_mangrove.png")
elif blockid == <lotr:tile.sapling4>:
if data & 0x3 == 0: # Chestnut Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling4_chestnut.png")
elif data & 0x3 == 1: # Baobab Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling4_baobab.png")
elif data & 0x3 == 2: # Cedar Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling4_cedar.png")
elif data & 0x3 == 3: # Fir Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling4_fir.png")
elif blockid == <lotr:tile.sapling5>:
if data & 0x3 == 0: # Pine Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/sapling5_pine.png")
elif blockid == <lotr:tile.fruitSapling>:
if data & 0x3 == 0: # Apple Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/fruitSapling_apple.png")
elif data & 0x3 == 1: # Pear Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/fruitSapling_pear.png")
elif data & 0x3 == 2: # Cherry Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/fruitSapling_cherry.png")
elif data & 0x3 == 3: # Mango Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/fruitSapling_mango.png")
elif blockid == <lotr:tile.corruptMallorn>:
if data & 0x3 == 0: # Corrupt Mallorn Sapling
tex = self.load_image_texture("assets/lotr/textures/blocks/corruptMallorn.png")
return self.build_sprite(tex)
sprite(blockid=<lotr:tile.asphodel>, imagename="assets/lotr/textures/blocks/asphodel.png")
sprite(blockid=<lotr:tile.aridGrass>, imagename="assets/lotr/textures/blocks/aridGrass.png")
sprite(blockid=<lotr:tile.athelas>, imagename="assets/lotr/textures/blocks/athelas.png")
sprite(blockid=<lotr:tile.bluebell>, imagename="assets/lotr/textures/blocks/bluebell.png")
sprite(blockid=<lotr:tile.deadMarshPlant>, imagename="assets/lotr/textures/blocks/deadMarshPlant.png")
sprite(blockid=<lotr:tile.dwarfHerb>, imagename="assets/lotr/textures/blocks/dwarfHerb.png")
sprite(blockid=<lotr:tile.elanor>, imagename="assets/lotr/textures/blocks/elanor.png")
sprite(blockid=<lotr:tile.flaxPlant>, imagename="assets/lotr/textures/blocks/flaxPlant.png")
sprite(blockid=<lotr:tile.mordorGrass>, imagename="assets/lotr/textures/blocks/mordorGrass.png")
sprite(blockid=<lotr:tile.mordorThorn>, imagename="assets/lotr/textures/blocks/mordorThorn.png")
sprite(blockid=<lotr:tile.morgulShroom>, imagename="assets/lotr/textures/blocks/morgulShroom.png")
sprite(blockid=<lotr:tile.niphredil>, imagename="assets/lotr/textures/blocks/niphredil.png")
sprite(blockid=<lotr:tile.pipeweedPlant>, imagename="assets/lotr/textures/blocks/pipeweedPlant.png")
sprite(blockid=<lotr:tile.shireHeather>, imagename="assets/lotr/textures/blocks/shireHeather.png")
sprite(blockid=<lotr:tile.simbelmyne>, imagename="assets/lotr/textures/blocks/simbelmyne.png")
sprite(blockid=<lotr:tile.webUngoliant>, imagename="assets/lotr/textures/blocks/webUngoliant.png")
##### Caveat: a bit ugly but will do... #####
sprite(blockid=<lotr:tile.mug>, imagename="assets/lotr/textures/items/mug.png")
@material(blockid=<lotr:tile.mordorMoss>, data=range(16), transparent=True)
def mordorMoss(self, blockid, data):
texture = self.load_image_texture("assets/lotr/textures/blocks/mordorMoss.png")
return self.build_full_block((texture,15),texture,texture,texture,texture)
@material(blockid=<lotr:tile.fangornRiverweed>, data=range(16), transparent=True)
def fangornRiverweed(self, blockid, data):
texture = self.load_image_texture("assets/lotr/textures/blocks/fangornRiverweed.png")
return self.build_full_block((texture,15),texture,texture,texture,texture)
@material(blockid=<lotr:tile.thatchFloor>, data=range(16), transparent=True)
def thatchFloor(self, blockid, data):
texture = self.load_image_texture("assets/lotr/textures/blocks/thatchFloor.png")
return self.build_full_block((texture,15),texture,texture,texture,texture)
##### Caveat: a bit ugly but will do... #####
@material(blockid=<lotr:tile.plate>, data=range(16), transparent=True)
def lotr_plate(self, blockid, data):
texture = self.load_image_texture("assets/lotr/textures/blocks/plate_top.png")
return self.build_full_block((texture,15),texture,texture,texture,texture)
@material(blockid=<lotr:tile.pipeweed>, data=range(16), transparent=True)
def pipeweed(self, blockid, data):
if data == 0 or data == 1:
tex = self.load_image_texture("assets/lotr/textures/blocks/pipeweed_0.png")
elif data == 2 or data == 3:
tex = self.load_image_texture("assets/lotr/textures/blocks/pipeweed_1.png")
elif data == 4 or data == 5 or data == 6:
tex = self.load_image_texture("assets/lotr/textures/blocks/pipeweed_2.png")
else:
tex = self.load_image_texture("assets/lotr/textures/blocks/pipeweed_3.png")
return self.build_sprite(tex)
@material(blockid=<lotr:tile.lettuce>, data=range(16), transparent=True)
def lettuce(self, blockid, data):
if data == 0 or data == 1:
tex = self.load_image_texture("assets/lotr/textures/blocks/lettuce_0.png")
elif data == 2 or data == 3:
tex = self.load_image_texture("assets/lotr/textures/blocks/lettuce_1.png")
elif data == 4 or data == 5 or data == 6:
tex = self.load_image_texture("assets/lotr/textures/blocks/lettuce_2.png")
else:
tex = self.load_image_texture("assets/lotr/textures/blocks/lettuce_3.png")
return self.build_sprite(tex)
@material(blockid=<lotr:tile.flax>, data=range(16), transparent=True)
def flax(self, blockid, data):
if data == 0 or data == 1:
tex = self.load_image_texture("assets/lotr/textures/blocks/flax_0.png")
elif data == 2 or data == 3:
tex = self.load_image_texture("assets/lotr/textures/blocks/flax_1.png")
elif data == 4 or data == 5 or data == 6:
tex = self.load_image_texture("assets/lotr/textures/blocks/flax_2.png")
else:
tex = self.load_image_texture("assets/lotr/textures/blocks/flaxPlant.png")
return self.build_sprite(tex)
@material(blockid=<lotr:tile.fangornPlant>, data=range(6), transparent=True)
def fangornPlant(self, blockid, data):
if data == 0: # Tears of Yavanna
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_green.png")
elif data == 1: # Fangorn's Beard
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_brown.png")
elif data == 2: # Huorn Leaf
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_gold.png")
elif data == 3: # Elfsong
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_yellow.png")
elif data == 4: # Sunfruit
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_red.png")
elif data == 5: # Moonflower
tex = self.load_image_texture("assets/lotr/textures/blocks/fangornPlant_silver.png")
return self.build_sprite(tex)
@material(blockid=<lotr:tile.haradFlower>, data=range(4), transparent=True)
def haradFlower(self, blockid, data):
if data == 0: # Red Sand Gem
tex = self.load_image_texture("assets/lotr/textures/blocks/haradFlower_red.png")
elif data == 1: # Yellow Sand Gem
tex = self.load_image_texture("assets/lotr/textures/blocks/haradFlower_yellow.png")
elif data == 2: # Harad Daisy
tex = self.load_image_texture("assets/lotr/textures/blocks/haradFlower_daisy.png")
elif data == 3: # Southbells
tex = self.load_image_texture("assets/lotr/textures/blocks/haradFlower_pink.png")
return self.build_sprite(tex)
@material(blockid=<lotr:tile.orcTorch>, data=range(2), transparent=True)
def orcTorch(self, blockid, data):
if data == 0:
tex = self.load_image_texture("assets/lotr/textures/blocks/orcTorch_bottom.png")
elif data == 1:
tex = self.load_image_texture("assets/lotr/textures/blocks/orcTorch_top.png")
return self.build_sprite(tex)
################################################################################
# Transparent bi texture sprites: ##############################################
################################################################################
##### Caveat: the top part of Flame of Harad and Hibiscus have the same data value than Yellow Iris, so they all have yellow tops #####
@material(blockid=<lotr:tile.doubleFlower>, data=range(16), transparent=True)
def lotr_double_flowers(self, blockid, data):
if data & 0x8:
part = "top"
else:
part = "bottom"
if data == 1 or data == 8:
plant = "yellowIris"
elif data == 2 or data == 9:
plant = "pink"
elif data == 3 or data == 10:
plant = "red"
else: # error!
plant = "red"
png = "assets/lotr/textures/blocks/doubleFlower_%s_%s.png" % (plant,part)
texture = self.load_image_texture(png)
img = self.build_billboard(texture)
return img
################################################################################
# Werdoes ######################################################################
################################################################################
@material(blockid=[<lotr:tile.stairsPine>, <lotr:tile.stairsMordorBrick>, <lotr:tile.stairsGondorBrick>, <lotr:tile.stairsMallorn>, <lotr:tile.stairsGondorBrickMossy>, <lotr:tile.stairsGondorBrickCracked>, <lotr:tile.stairsRohanBrick>, <lotr:tile.stairsDwarvenBrick>, <lotr:tile.stairsApple>, <lotr:tile.stairsPear>, <lotr:tile.stairsCherry>, <lotr:tile.stairsMirkOak>, <lotr:tile.stairsCharred>, <lotr:tile.stairsLebethron>, <lotr:tile.stairsBeech>, <lotr:tile.stairsMordorBrickCracked>, <lotr:tile.stairsElvenBrick>, <lotr:tile.stairsElvenBrickMossy>, <lotr:tile.stairsElvenBrickCracked>, <lotr:tile.stairsHolly>, <lotr:tile.stairsBlueRockBrick>, <lotr:tile.stairsAngmarBrick>, <lotr:tile.stairsAngmarBrickCracked>, <lotr:tile.stairsMango>, <lotr:tile.stairsBanana>, <lotr:tile.stairsMaple>, <lotr:tile.stairsLarch>, <lotr:tile.stairsRedRockBrick>, <lotr:tile.stairsNearHaradBrick>, <lotr:tile.stairsDatePalm>, <lotr:tile.stairsThatch>, <lotr:tile.stairsArnorBrick>, <lotr:tile.stairsArnorBrickMossy>, <lotr:tile.stairsArnorBrickCracked>, <lotr:tile.stairsUrukBrick>, <lotr:tile.stairsDolGuldurBrick>, <lotr:tile.stairsDolGuldurBrickCracked>, <lotr:tile.stairsMangrove>, <lotr:tile.stairsChestnut>, <lotr:tile.stairsBaobab>, <lotr:tile.stairsCedar>, <lotr:tile.stairsBlackGondorBrick>, <lotr:tile.stairsHighElvenBrick>, <lotr:tile.stairsHighElvenBrickMossy>, <lotr:tile.stairsHighElvenBrickCracked>, <lotr:tile.stairsWoodElvenBrick>, <lotr:tile.stairsWoodElvenBrickMossy>, <lotr:tile.stairsWoodElvenBrickCracked>, <lotr:tile.stairsDolAmrothBrick>, <lotr:tile.stairsFir>, <lotr:tile.stairsPinePine>, <lotr:tile.stairsMoredainBrick>, <lotr:tile.stairsNearHaradBrickCracked>], data=range(128), transparent=True, solid=True, nospawn=True)
def lotr_stairs(self, blockid, data):
# preserve the upside-down bit
upside_down = data & 0x4
# find solid quarters within the top or bottom half of the block
# NW NE SE SW
quarters = [data & 0x8, data & 0x10, data & 0x20, data & 0x40]
# rotate the quarters so we can pretend northdirection is always upper-left
numpy.roll(quarters, [0,1,3,2][self.rotation])
nw,ne,se,sw = quarters
if blockid == <lotr:tile.stairsPine>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_shirePine.png").copy()
elif blockid == <lotr:tile.stairsMordorBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_mordor.png").copy()
elif blockid == <lotr:tile.stairsGondorBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_gondor.png").copy()
elif blockid == <lotr:tile.stairsMallorn>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_mallorn.png").copy()
elif blockid == <lotr:tile.stairsGondorBrickMossy>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_gondorMossy.png").copy()
elif blockid == <lotr:tile.stairsGondorBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_gondorCracked.png").copy()
elif blockid == <lotr:tile.stairsRohanBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_rohan.png").copy()
elif blockid == <lotr:tile.stairsDwarvenBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_dwarven.png").copy()
elif blockid == <lotr:tile.stairsApple>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_apple.png").copy()
elif blockid == <lotr:tile.stairsPear>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_pear.png").copy()
elif blockid == <lotr:tile.stairsCherry>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_cherry.png").copy()
elif blockid == <lotr:tile.stairsMirkOak>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_mirkOak.png").copy()
elif blockid == <lotr:tile.stairsCharred>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_charred.png").copy()
elif blockid == <lotr:tile.stairsLebethron>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_lebethron.png").copy()
elif blockid == <lotr:tile.stairsBeech>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_beech.png").copy()
elif blockid == <lotr:tile.stairsMordorBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_mordorCracked.png").copy()
elif blockid == <lotr:tile.stairsElvenBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrim.png").copy()
elif blockid == <lotr:tile.stairsElvenBrickMossy>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrimMossy.png").copy()
elif blockid == <lotr:tile.stairsElvenBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_galadhrimCracked.png").copy()
elif blockid == <lotr:tile.stairsHolly>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_holly.png").copy()
elif blockid == <lotr:tile.stairsBlueRockBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_blueRock.png").copy()
elif blockid == <lotr:tile.stairsAngmarBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmar.png").copy()
elif blockid == <lotr:tile.stairsAngmarBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_angmarCracked.png").copy()
elif blockid == <lotr:tile.stairsMango>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_mango.png").copy()
elif blockid == <lotr:tile.stairsBanana>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_banana.png").copy()
elif blockid == <lotr:tile.stairsMaple>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_maple.png").copy()
elif blockid == <lotr:tile.stairsLarch>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_larch.png").copy()
elif blockid == <lotr:tile.stairsRedRockBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_redRock.png").copy()
elif blockid == <lotr:tile.stairsNearHaradBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick_nearHarad.png").copy()
elif blockid == <lotr:tile.stairsDatePalm>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_datePalm.png").copy()
elif blockid == <lotr:tile.stairsThatch>:
texture = self.load_image_texture("assets/lotr/textures/blocks/thatch.png").copy()
elif blockid == <lotr:tile.stairsArnorBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnor.png").copy()
elif blockid == <lotr:tile.stairsArnorBrickMossy>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnorMossy.png").copy()
elif blockid == <lotr:tile.stairsArnorBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_arnorCracked.png").copy()
elif blockid == <lotr:tile.stairsUrukBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_uruk.png").copy()
elif blockid == <lotr:tile.stairsDolGuldurBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldur.png").copy()
elif blockid == <lotr:tile.stairsDolGuldurBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_dolGuldurCracked.png").copy()
elif blockid == <lotr:tile.stairsMangrove>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks_mangrove.png").copy()
elif blockid == <lotr:tile.stairsChestnut>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks2_chestnut.png").copy()
elif blockid == <lotr:tile.stairsBaobab>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks2_baobab.png").copy()
elif blockid == <lotr:tile.stairsCedar>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks2_cedar.png").copy()
elif blockid == <lotr:tile.stairsBlackGondorBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick2_blackGondor.png").copy()
elif blockid == <lotr:tile.stairsHighElvenBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElven.png").copy()
elif blockid == <lotr:tile.stairsHighElvenBrickMossy>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElvenMossy.png").copy()
elif blockid == <lotr:tile.stairsHighElvenBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_highElvenCracked.png").copy()
elif blockid == <lotr:tile.stairsWoodElvenBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElven.png").copy()
elif blockid == <lotr:tile.stairsWoodElvenBrickMossy>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElvenMossy.png").copy()
elif blockid == <lotr:tile.stairsWoodElvenBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_woodElvenCracked.png").copy()
elif blockid == <lotr:tile.stairsDolAmrothBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_dolAmroth.png").copy()
elif blockid == <lotr:tile.stairsFir>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks2_fir.png").copy()
elif blockid == <lotr:tile.stairsPinePine>:
texture = self.load_image_texture("assets/lotr/textures/blocks/planks2_pine.png").copy()
elif blockid == <lotr:tile.stairsMoredainBrick>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_moredain.png").copy()
elif blockid == <lotr:tile.stairsNearHaradBrickCracked>:
texture = self.load_image_texture("assets/lotr/textures/blocks/brick3_nearHaradCracked.png").copy()
outside_l = texture.copy()
outside_r = texture.copy()
inside_l = texture.copy()
inside_r = texture.copy()