@@ -68,8 +68,10 @@ public static class World
68
68
{ "golden_rail" , new [ ] { "powered_rail" } } ,
69
69
{ "redstone_lamp" , new [ ] { "redstone_lamp_off" } } ,
70
70
{ "lit_redstone_lamp" , new [ ] { "redstone_lamp_on" } } ,
71
- { "powered_repeater" , new [ ] { "repeater_on" , /*"redstone_torch_on"*/ } } ,
72
- { "unpowered_repeater" , new [ ] { "repeater_off" , /*"redstone_torch_off"*/ } } ,
71
+ { "powered_repeater" , new [ ] { "repeater_on" , "redstone_torch_on" } } ,
72
+ { "unpowered_repeater" , new [ ] { "repeater_off" , "redstone_torch_off" } } ,
73
+ { "powered_comparator" , new [ ] { "comparator_on" , } } ,
74
+ { "unpowered_comparator" , new [ ] { "comparator_off" , } } ,
73
75
{ "dark_oak_fence_gate" , new [ ] { "planks_big_oak" } } ,
74
76
{ "wheat" , new [ ] { "wheat_stage_7" } } ,
75
77
{ "carrots" , new [ ] { "carrots_stage_3" } } ,
@@ -102,9 +104,10 @@ public static class World
102
104
{ "smooth_stone" , new [ ] { "stone_slab_top" } } , // maybe not idk
103
105
// terracotta
104
106
{ "white_glazed_terracotta" , new [ ] { "glazed_terracotta_white" } } ,
107
+ { "red_glazed_terracotta" , new [ ] { "glazed_terracotta_red" } } ,
108
+ { "black_glazed_terracotta" , new [ ] { "glazed_terracotta_black" } } ,
105
109
// flowers
106
110
{ "yellow_flower" , new [ ] { "flower_dandelion" } } ,
107
- { "red_flower" , new [ ] { "flower_rose" } } ,
108
111
{ "buttercup" , new [ ] { "flower_buttercup" } } ,
109
112
// fence
110
113
{ "fence" , new [ ] { "planks" } } ,
@@ -482,6 +485,37 @@ public static class World
482
485
}
483
486
}
484
487
} ,
488
+ { "red_flower" , ( int data ) =>
489
+ {
490
+ int type = data & 0b_1111 ;
491
+ switch ( type ) {
492
+ case 0 :
493
+ return new [ ] { "flower_rose" } ;
494
+ case 1 :
495
+ return new [ ] { "flower_blue_orchid" } ;
496
+ case 2 :
497
+ return new [ ] { "flower_allium" } ;
498
+ case 3 :
499
+ return new [ ] { "flower_houstonia" } ;
500
+ case 4 :
501
+ return new [ ] { "flower_tulip_red" } ;
502
+ case 5 :
503
+ return new [ ] { "flower_tulip_orange" } ;
504
+ case 6 :
505
+ return new [ ] { "flower_tulip_white" } ;
506
+ case 7 :
507
+ return new [ ] { "flower_tulip_pink" } ;
508
+ case 8 :
509
+ return new [ ] { "flower_oxeye_daisy" } ;
510
+ case 9 :
511
+ return new [ ] { "flower_cornflower" } ;
512
+ case 10 :
513
+ return new [ ] { "flower_lily_of_the_valley" } ;
514
+ default :
515
+ return new [ ] { "flower_rose" } ;
516
+ }
517
+ }
518
+ } ,
485
519
{ "glass" , ( int data ) =>
486
520
{
487
521
int type = data & 0b_1111 ;
@@ -1023,6 +1057,7 @@ public static class World
1023
1057
{ "cactus" , 21 } ,
1024
1058
{ "water" , 22 } ,
1025
1059
{ "rail" , 25 } ,
1060
+ { "web" , 27 } ,
1026
1061
} ;
1027
1062
1028
1063
public static readonly bool [ ] RendererIsFullBlockLookUp = new bool [ ]
@@ -1054,6 +1089,7 @@ public static class World
1054
1089
false ,
1055
1090
false , // rail
1056
1091
false , // rail other
1092
+ false ,
1057
1093
} ;
1058
1094
1059
1095
public delegate void RenderBlock ( Vector3 pos , Vector3i cp /*chunk pos, pre multiplied*/ , int [ ] tex , int data , ref List < Vertex > vertices , ref List < uint > triangles ) ;
@@ -1601,7 +1637,7 @@ public static class World
1601
1637
}
1602
1638
1603
1639
uint tex = ( uint ) texA [ 0 ] ;
1604
- uint torchTex = tex ; // (uint)texA[1];
1640
+ uint torchTex = ( uint ) texA [ 1 ] ;
1605
1641
for ( int p = 0 ; p < 6 ; p ++ ) {
1606
1642
uint firstVertIndex = ( uint ) verts . Count ;
1607
1643
if ( p == 2 || p == 3 ) { // top/bottom
@@ -2012,6 +2048,25 @@ public static class World
2012
2048
blockRenderers [ 25 ] ( pos , cp , texA , data , ref vertices , ref triangles ) ;
2013
2049
}
2014
2050
} ,
2051
+ { 27 , ( Vector3 pos , Vector3i cp , int [ ] texA , int data , ref List < Vertex > vertices , ref List < uint > triangles ) => // cobweb
2052
+ {
2053
+ uint tex = ( uint ) texA [ 0 ] ;
2054
+ Vector3 offset = - Vector3 . One / 2f ;
2055
+ for ( int p = 0 ; p < 4 ; p ++ ) {
2056
+ uint firstVertIndex = ( uint ) vertices . Count ;
2057
+ vertices . Add ( new Vertex ( pos + VoxelData . voxelVerts [ VoxelData . Cobweb . tris [ p , 0 ] ] + offset , VoxelData . voxelUvs [ 0 ] , tex ) ) ;
2058
+ vertices . Add ( new Vertex ( pos + VoxelData . voxelVerts [ VoxelData . Cobweb . tris [ p , 1 ] ] + offset , VoxelData . voxelUvs [ 1 ] , tex ) ) ;
2059
+ vertices . Add ( new Vertex ( pos + VoxelData . voxelVerts [ VoxelData . Cobweb . tris [ p , 2 ] ] + offset , VoxelData . voxelUvs [ 2 ] , tex ) ) ;
2060
+ vertices . Add ( new Vertex ( pos + VoxelData . voxelVerts [ VoxelData . Cobweb . tris [ p , 3 ] ] + offset , VoxelData . voxelUvs [ 3 ] , tex ) ) ;
2061
+ triangles . Add ( firstVertIndex ) ;
2062
+ triangles . Add ( firstVertIndex + 1 ) ;
2063
+ triangles . Add ( firstVertIndex + 2 ) ;
2064
+ triangles . Add ( firstVertIndex + 2 ) ;
2065
+ triangles . Add ( firstVertIndex + 1 ) ;
2066
+ triangles . Add ( firstVertIndex + 3 ) ;
2067
+ }
2068
+ }
2069
+ } ,
2015
2070
} ;
2016
2071
2017
2072
public static BuildPlate plate ;
0 commit comments