Concept: how to use this dictionary
The property values of JSON UI (type, anchor_from, binding_type ...) differ between the official schema enums, wiki documents and actual vanilla use. This dictionary counts the values used as literals for each property in the 207 UI files of vanilla 1.26.50.4 and compares them with the official enums. For example, "type": "panel" is the most common at 4092 uses, and some values such as factory and collection_panel are not in the enum but vanilla uses them (X in the table). Before using a new value, check in this table that the vanilla count is not 0. Even if a tool (schema checker, autocomplete) flags a value missing from the enum as an error, you can use it if vanilla uses it.
These are the values used as literals for each property in the 207 files of the vanilla resource pack resource_pack/ui v1.26.50.4 (46ba6ea), with their counts (an exhaustive search in this thread; because it is regex-based, some values inside comments may also be counted). The official enums are the values of forms/ui/ui_element.form.json in @minecraft/bedrock-schemas (the list recorded in BC-facts, the bedrock-core author's measurement record).
How to read
- A value with X in the
Official enum column is used by vanilla but is not in the official enum. You can use it.
- A value with count 0 is only in the official enum and vanilla does not use it. Measure before using it.
- Values not in this table (the
scroll_box type from external material, the scrollbar_track type, grid_fill_direction: left_to_right, etc.) have no evidence. resolve_ancestor_scope is read by the engine but vanilla does not use it (BND-01).
Names not in vanilla (in an external dictionary but VN 0 times)
The following property names are in an external property dictionary (the repository MJ analyzed) but never appear in vanilla 1.26.50.4. Most are "unverified" names from the wiki. Measure before using them.
resolve_ancestor_scope, z_order, clip_offset, alignment, use_place_holder, pixel_perfect, gradient_direction, vr_mode, use_uuid, use_skin_gui_scale, use_player_paperdoll, animation_looped, precached_grid_item_count, gesture_control_enabled, toggle_on_hover, slider_timeout, focus_container_custom_down, button_name (Source: MJ 4.2)
Properties vanilla uses but official material lacks
collection_index, localize, clip_ratio, clip_direction, clip_pixelperfect, property_bag, variables (and $variable), array-form nineslice_size, factory_variables. modifications is in neither official material nor vanilla and is used only by packs. (Source: BC-facts, VN)
Value tables
type
| Value | Vanilla count | Official enum |
|---|
panel | 4092 | O |
stack_panel | 1461 | O |
image | 1318 | O |
label | 814 | O |
grid | 132 | O |
input_panel | 108 | O |
custom | 105 | O |
button | 54 | O |
factory | 36 | X |
screen | 7 | O |
collection_panel | 3 | X |
edit_box | 2 | O |
scroll_view | 2 | O |
tooltip_trigger | 2 | X |
toggle | 1 | O |
carousel_label | 1 | X |
slider_box | 1 | O |
slider | 1 | O |
dropdown | 1 | O |
scroll_track | 1 | X |
scrollbar_box | 1 | O |
image_cycler | 1 | X |
label_cycler | 1 | X |
selection_wheel | 1 | X |
grid_page_indicator | 1 | X |
anchor_from
| Value | Vanilla count | Official enum |
|---|
top_left | 883 | O |
center | 425 | O |
top_middle | 392 | O |
left_middle | 298 | O |
bottom_middle | 259 | O |
top_right | 223 | O |
bottom_left | 189 | O |
bottom_right | 137 | O |
right_middle | 133 | O |
orientation
| Value | Vanilla count | Official enum |
|---|
horizontal | 654 | O |
vertical | 529 | O |
text_alignment
| Value | Vanilla count | Official enum |
|---|
center | 114 | O |
left | 73 | O |
right | 10 | O |
font_type
| Value | Vanilla count | Official enum |
|---|
smooth | 193 | O |
MinecraftTen | 21 | O |
default | 4 | O |
rune | 2 | O |
unicode | 0 | O |
Values set through a variable ("$…") are not counted.
font_size
| Value | Vanilla count | Official enum |
|---|
normal | 27 | O |
medium | 4 | X (not in the engine either; draws as normal, TXT-05) |
large | 3 | O |
small | 2 | O |
extra_large | 1 | O |
binding_type
| Value | Vanilla count | Official enum |
|---|
collection | 787 | O |
collection_details | 287 | O |
global | 265 | O |
view | 240 | O |
none | 1 | O |
Values set through a variable ("$…") are not counted.
binding_condition
| Value | Vanilla count | Official enum |
|---|
visible | 135 | O |
once | 106 | O |
always | 97 | O |
always_when_visible | 66 | O |
visibility_changed | 7 | O |
none | 6 | X |
Values set through a variable ("$…") are not counted. The official schema enum has no none, but the 1.26.50 engine enum BindingCondition does (CN, BND-23).
mapping_type
| Value | Vanilla count | Official enum |
|---|
pressed | 599 | O |
global | 536 | O |
focused | 145 | O |
double_pressed | 20 | O |
| Value | Vanilla count | Official enum |
|---|
gamepad | 7 | X |
gamepad_and_not_gaze | 4 | O |
not_gamepad | 1 | X |
not_gaze | 0 | O |
grid_rescaling_type
| Value | Vanilla count | Official enum |
|---|
horizontal | 21 | O |
vertical | 1 | O |
none | 0 | O |
grid_fill_direction
| Value | Vanilla count |
|---|
vertical | 2 |
clip_direction
| Value | Vanilla count |
|---|
left | 21 |
down | 3 |
right | 1 |
up | 1 |
anim_type
| Value | Vanilla count |
|---|
alpha | 54 |
offset | 42 |
flip_book | 34 |
wait | 30 |
size | 7 |
color | 3 |
aseprite_flip_book | 2 |
uv | 1 |
clip | 0 |
clip is not used by vanilla but is in the 1.26.50 engine enum, making 9 types in all (CN, ANI-20).
easing
| Value | Vanilla count |
|---|
linear | 63 |
out_cubic | 24 |
in_expo | 11 |
in_quart | 6 |
in_quint | 5 |
in_sine | 2 |
in_out_back | 2 |
out_expo | 2 |
out_back | 1 |
in_out_expo | 1 |
out_bounce | 1 |
in_bounce | 1 |
in_out_circ | 1 |
out_sine | 1 |
scope
| Value | Vanilla count |
|---|
view | 150 |
controller | 7 |
global | 2 |
renderer
| Value | Vanilla count |
|---|
inventory_item_renderer | 19 |
paper_doll_renderer | 13 |
profile_image_renderer | 8 |
progress_bar_renderer | 6 |
gradient_renderer | 6 |
name_tag_renderer | 4 |
animated_gif_renderer | 3 |
equipment_preview_renderer | 2 |
enchanting_book_renderer | 2 |
vignette_renderer | 2 |
banner_pattern_renderer | 2 |
live_horse_renderer | 2 |
trial_time_renderer | 2 |
armor_renderer | 2 |
live_player_renderer | 2 |
qr_code_renderer | 2 |
cursor_renderer | 2 |
debug_screen_renderer | 1 |
hover_text_renderer | 1 |
flying_item_renderer | 1 |
credits_renderer | 1 |
3d_structure_renderer | 1 |
bundle_tooltip_renderer | 1 |
actor_portrait_renderer | 1 |
hud_player_renderer | 1 |
hotbar_renderer | 1 |
hotbar_cooldown_renderer | 1 |
heart_renderer | 1 |
horse_heart_renderer | 1 |
horse_jump_renderer | 1 |
dash_renderer | 1 |
locator_bar | 1 |
hunger_renderer | 1 |
bubbles_renderer | 1 |
mob_effects_renderer | 1 |
editor_gizmo_renderer | 1 |
progress_indicator_renderer | 1 |
camera_renderer | 1 |
editor_volume_highlight_renderer | 1 |
editor_compass_renderer | 1 |
panorama_renderer | 1 |
web_view_renderer | 1 |
splash_text_renderer | 1 |
Proposed rules
The rules below lack evidence or are not adopted yet. Check the evidence before using them.
- [Appendix B reinforcement proposal] Add an appendix comparing the
$ variable list (JsonEncryptor proposal FILE-29) and the factory list (COL-14/COL-25) against vanilla. It needs a vanilla grep comparison.