@@ -6,7 +6,6 @@ const spruce = Color.intToRgb(6396257)
6
6
const birch = Color . intToRgb ( 8431445 )
7
7
const foliage = Color . intToRgb ( 4764952 )
8
8
const water = Color . intToRgb ( 4159204 )
9
- const attached_stem = Color . intToRgb ( 8431445 )
10
9
const lily_pad = Color . intToRgb ( 2129968 )
11
10
12
11
const redstone = ( power : number ) : Color => {
@@ -18,7 +17,7 @@ const redstone = (power: number): Color => {
18
17
}
19
18
20
19
const stem = ( age : number ) : Color => {
21
- return [ age / 8 , 1 - age / 32 , age * 64 ]
20
+ return [ age / 8 , 1 - age / 32 , age / 64 ]
22
21
}
23
22
24
23
export const BlockColors : {
@@ -46,8 +45,8 @@ export const BlockColors: {
46
45
water_cauldron : ( ) => water ,
47
46
redstone_wire : ( props ) => redstone ( parseInt ( props [ 'power' ] ?? '0' ) ) ,
48
47
sugar_cane : ( ) => grass ,
49
- attached_melon_stem : ( ) => attached_stem ,
50
- attached_pumpkin_stem : ( ) => attached_stem ,
48
+ attached_melon_stem : ( ) => stem ( 7 ) ,
49
+ attached_pumpkin_stem : ( ) => stem ( 7 ) ,
51
50
melon_stem : ( props ) => stem ( parseInt ( props [ 'age' ] ?? '0' ) ) ,
52
51
pumpkin_stem : ( props ) => stem ( parseInt ( props [ 'age' ] ?? '0' ) ) ,
53
52
lily_pad : ( ) => lily_pad ,
0 commit comments