在 JSON UI 中,有一些全局变量可以根据环境而变化,因此将这个全局变量称作环境变量。环境变量通常以布尔值的形式呈现,在符合该环境条件下,变量就会为 true,不符合则为 false。
变量已在另一个文件已说明,在此不多为此赘述。下方表格展示当前版本可用的环境变量:
常用
变量 | 描述 |
---|
$desktop_screen | 是否为经典UI档案 |
$pocket_screen | 是否为携带版UI档案 |
$mouse | 是否为鼠标&键盘操作 |
$touch | 是否为触屏操作 |
$game_pad | 是否为游戏手柄操作 |
$is_pregame | 是否处于准备游戏状态 (未进入世界时) |
$is_on_3p_server | 是否处于第三方服务器世界 |
操作系统&操作设备
变量 | 描述 |
---|
$win10_edition | 是否为 Windows |
$is_win10_arm | 是否为 Windows ARM |
$is_android | 是否为 Android |
$is_ios | 是否为 IOS |
$is_ps4 | 是否为 PS4 |
$is_windows_10_mobile | 是否为 Windows Mobile |
$xbox_one | 是否为 Xbox One |
$fire_tv | 是否为 Fire TV |
$is_mobile_vr | 是否为 Mobile VR |
$psvr | 是否为 PS VR |
$gear_vr | 是否为 gear vr |
$oculus_rift | 是否为 oculus rift |
$microsoft_os | 是否为微软开发的系统 |
$google_os | 是否为谷歌开发的系统 |
$apple_os | 是否为苹果开发的系统 |
$nx_os | 是否为任天堂开发的系统 |
Minecraft 版本
变量 | 描述 |
---|
$is_publish | 是否为已发布的版本(除开发版以外的版本) |
$is_netease | 是否为我的世界中国版 (仅我的世界中国版可用) |
$trial | 是否为试用版 |
$education_edition | 是否为教育版 |
$education_edition_china | 是否为教育中国版 |
$is_desktop | 是否为桌面版 |
$pocket_edition | 是否为携带版 |
$build_platform_UWP | 是否为通用 Windows 平台版本 |
$osx_edition | 是否为 osx 版本 |
$is_holographic | 是否为 VR 版本 |
$is_reality_mode | 是否为虚拟现实版本 |
$console_edition | 是否为主机端版本 |
$pre_release | 是否为预发布版本 |
功能支持
变量 | 描述 |
---|
$store_disabled | 商店是否禁用 |
$screen_transitions_enabled | 屏幕过渡是否启用 |
$disable_gamertag_controls | 玩家信息控制是否禁用 |
$can_quit | 是否支持退出 |
$file_picking_supported | 是否支持文件收集 |
$image_picking_not_supported | 是否不支持图片收集 |
$supports_share | 是否支持分享 |
$supports_clipboard | 是否支持剪贴板 |
$supports_clipboard_set | 是否支持设置剪贴板 |
$vibration_supported | 是否支持震动 |
$world_archive_support | 是否支持世界存档 |
$is_seeds_enabled | 种子是否启用 |
$is_xboxlive_enabled | Xbox live 是否启用 |
$is_realms_enabled | Realms 是否启用 |
$realms_beta | Realms beta 是否启用 |
$ignore_3rd_party_servers | 第三方服务器是否忽略 |
$ignore_add_servers | 添加服务器是否忽略 |
$supports_add_friend | 是否支持添加好友 |
$can_splitscreen | 是否支持分屏 |
$test_infrastructure_disabled | 测试基础结构是否禁用 |
安全角
变量 | 描述 |
---|
$top_vertical_safezone_size | 顶部垂直安全角大小 |
$bottom_vertical_safezone_size | 底部垂直安全角大小 |
$left_horizontal_safezone_size | 左侧水平安全角大小 |
$right_horizontal_safezone_size | 右侧水平安全角大小 |
其他
变量 | 描述 |
---|
$requires_xbl_signin_to_play | 是否需要 Xbox live 登录去玩 |
$is_low_memory_device | 是否为低内存设备 |
$is_living_room_mode | 是否为客厅模式 |
$is_secondary_client | 是否为辅助客户端 |
$is_settopbox | 是否为机顶盒 |
$is_console | 是否为控制台 |
$thirdpartyconsole | 是否为第三方控制台 |
$use_normalized_font_size | 使用标准化字体大小 |
$device_must_be_removed_for_xbl_signin | 设备是否必须移除才能 Xbox live 登录 |
$hide_xbox_live_icon | 隐藏 Xbox live icon |
$multiplayer_requires_live_gold | 多人游戏是否需要 Live Gold |