Skip to content

Commit 8f7b451

Browse files
committed
✨ Support every vanilla tint type in Item Model Properties
- Only constant tints were editable; vanilla has 8 types - Types filter by target version, since map_color is gone in 26.3 - Export fails on a tint the target version doesn't support - Dialog redesigned as a compact table that expands one tint at a time, using native Blockbench inputs - Dye/firework keep ARGB alpha (MC-278626)
1 parent 1fc507d commit 8f7b451

11 files changed

Lines changed: 992 additions & 72 deletions

File tree

‎src/blockbenchTypeMods.d.ts‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,25 @@ declare module 'three' {
77
}
88
}
99

10+
declare global {
11+
namespace Interface.CustomElements {
12+
/** Blockbench's number field with a drag-to-change handle, as used by dialog forms. */
13+
class NumericInput {
14+
node: HTMLElement
15+
value: number
16+
constructor(
17+
id: string,
18+
options: {
19+
value?: number
20+
min?: number
21+
max?: number
22+
step?: number
23+
readonly?: boolean
24+
onChange?(value: number, event: Event): void
25+
}
26+
)
27+
}
28+
}
29+
}
30+
1031
export {}

0 commit comments

Comments
 (0)