找回密码
 立即注册

微信登录

只需一步,快速开始

QQ登录

只需一步,快速开始

Minecraft 1.21.6 预发布版 1

pixelbbs 昨天 00:23 官方文章 阅读 89 来自 湖北

Minecraft 1.21.6 预发布版 1

Minecraft Java Pre-Release
image.jpg
嘿!这是 1.21.6 的首个预发布版。从现在起,我们的工作将主要集中在漏洞修复上,且每周可能发布多个预发布版。今年的第二次更新已进入最终冲刺阶段!
Hey! This is the first pre-release of 1.21.6. From now on, you will mostly see us fixing bugs and the release schedule might include more than one pre-release per week. We are on the finish line for the second drop of the year!  


变更内容

Changes  

  • 干涸恶魂方块在其方块状态变化时,现在会发出频率为 11 的振动
    The Dried Ghast Block now emits a vibration frequency of 11 when its block state changes  
  • 剪下鞍具、马铠和地毯时,现在会发出频率为 6 的振动(与卸下装备的频率 4 同步)
    Shearing Saddles, Horse Armor, and Carpets now emits a vibration frequency of 6, along with the Unequip frequency of 4  
  • 干涸恶魂的环境音效现在归入 方块音效 选项(原属环境/环境音效选项)
    The Ambient Dried Ghast sounds are now adjusted under the Blocks sound option instead of the Ambient/Environment option  
  • 玩家骑乘 快乐恶魂 时,无法再完全穿过其他玩家骑乘的快乐恶魂
    A player riding a Happy Ghast can no longer completely fly through a Happy Ghast ridden by another player  

技术变更

Technical Changes  

  • 数据包版本号更新至 79
    The Data Pack version is now 79  
  • 资源包版本号更新至 63
    The Resource Pack version is now 63  

数据包版本 79

Data Pack Version 79
对话框系统
Dialogs  

  • 对话框现在可配置是否暂停游戏,以及执行操作后是否关闭
    Dialogs can now configure if they pause the game and if they close after an action is taken  
  • 所有对话框现在可包含输入字段并提交信息
    Every dialog can now have inputs and can submit information  
  • 动作定义已变更以适应此功能
    The definition of actions has been changed to accommodate that  
  • 专用输入对话框类型已被移除(功能冗余)
    The dedicated input dialog types have been removed, since they are redundant now  
  • 元素顺序为:正文 → 输入 → 动作
    The order of elements is: Body → Inputs → Actions  
  • minecraft:custom 点击事件已扩展为携带完整的 NBT 标签
    The minecraft:custom click event has been expanded to carry full a NBT tag  
  • 新增名为 "快捷动作" 的键位,用于访问内容配置的对话框
    A new keybind called "Quick Actions" has been added to allow accessing content-configured dialogs  

快捷动作键位
Quick Actions Keybind  

  • 新增键位允许用户访问一组对话框
    A new keybind has been addded that allows users to access a set of dialogs  
  • 默认键位:G
    Default key: G  
  • 此功能由 minecraft:quick_actions 对话框标签配置:
    This feature is configured by minecraft:quick_actions dialog tag  
    • 若标签为空,键位无作用
      If this tag is empty, the keybind does nothing  
    • 若标签有单个元素,键位将打开该对话框
      If this tag has a single element, the keybind will open this dialog  
    • 若标签有多个元素,键位将引导至 minecraft:quick_actions 对话框(默认允许用户选择元素)
      If this tag has multiple elements, the keybind will lead to minecraft:quick_actions dialog which (by default) lets user select one of the tag elements  
    • 若此对话框被移除,键位无作用
      If this dialog is removed, the keybind does nothing  
    • 此选项主要用于自定义内容和服务器,默认标签为空
      This option is intended to be used in custom content and by servers, so this tag is empty by default  

通用对话框字段
Common Dialog fields  

  • 新增字段:
    New fields:  
    • pause:对话框界面是否在单人模式暂停游戏(默认:true
      pause - if the dialog screen should pause the game in single-player mode, default: true  
    • after_action:点击或提交动作后在对话框上执行额外操作(默认:close
      after_action - an additional operation performed on the dialog after click or submit actions, default: close  
    • close:关闭对话框并返回先前的非对话框界面(如有)
      close - closes the dialog and returns to the previous non-dialog screen (if any)  
    • none:无操作(保持对话框打开),仅当 pause=false 时可用(避免锁定游戏)
      none - does nothing, i.e. keeps the current dialog screen open
      only available if pause is false to avoid locking the game in single-player mode  
    • wait_for_response:用 "等待响应" 界面替换当前对话框
      wait_for_response - replace the current dialog with a "Waiting for Response" screen  
      • 此选项旨在防止用户在慢速连接上发送多个动作
        this option is intended to prevent users from sending multiple actions on slow connections  
      • 服务器最终需用新对话框替换此界面
        servers are expected to eventually replace this screen with a new dialog  
      • 为避免意外锁定,"返回" 按钮将在 5 秒后激活
        to avoid accidental locking, a "Back" button will become active after 5 seconds  
      • 点击此按钮将视为关闭对话框(返回先前的非对话框界面)
        clicking this button will continue as if the dialog was closed (i.e. the game returns to the previous non-dialog screen, if any)  
    • "等待响应" 界面在单人模式下会解除暂停以避免游戏锁定
      The "Waiting for Response" screen will unpause the game in single-player mode to avoid locking the game  

对话框类型
Dialog Types  

  • 变更 MINECRAFT:MULTI_ACTION, MINECRAFT:SERVER_LINKS, MINECRAFT:DIALOG_LIST
    Changed MINECRAFT:MULTI_ACTION, MINECRAFT:SERVER_LINKS, MINECRAFT:DIALOG_LIST  
    • on_cancel 字段替换为 exit_action(包含可选动作)
      Replaced field on_cancel with exit_action, holding an optional action  
    • exit_action 存在,页脚将显示对应按钮(否则无页脚)
      If exit_action is present, a button for it will appear in footer, otherwise the footer is not present  
    • exit_action 也用于 Esc 键 操作
      exit_action is also used for the Escape action  
  • 移除 MINECRAFT:SIMPLE_INPUT_FORM
    Removed MINECRAFT:SIMPLE_INPUT_FORM  
    • 因所有对话框现可包含输入,此类型可由 minecraft:notice 替代
      Since any dialog can now have inputs, this dialog can be replaced by minecraft:notice  
  • 移除 MINECRAFT:MULTI_ACTION_INPUT_FORM
    Removed MINECRAFT:MULTI_ACTION_INPUT_FORM  
    • 因所有对话框现可包含输入,此类型可由无 exit_actionminecraft:multi_action 替代
      Since any dialog can now have inputs, this dialog can be replaced by minecraft:multi_action (without any specified exit_action)  

输入控件类型
Input Control Types  

  • 为适配新的 minecraft:custom 点击事件,所有输入控件现在根据上下文返回 字符串NBT 标签
    To accomodate the new minecraft:custom click event, all inputs will now return either a string or an NBT tag, depending on context  
  • MINECRAFT:TEXT
    MINECRAFT:TEXT  
    • 输出值:
      Output values:  
    • 模板替换:未修改的内容
      As template substitution: contents without modification  
    • 标签:包含未修改内容的字符串标签
      As tag: a string tag with contents without modification  
  • MINECRAFT:BOOLEAN
    MINECRAFT:BOOLEAN  
    • 输出值:
      Output values:  
    • 模板替换:选中时为 on_true,未选中时为 on_false
      As template substitution: on_true when checked, on_false when unchecked  
    • 标签:选中时为 1b,未选中时为 0b
      As tag: 1b when checked, 0b when unchecked  
  • MINECRAFT:NUMBER_RANGE
    MINECRAFT:NUMBER_RANGE  
    • 输出值:
      Output values:  
    • 模板替换:当前值的文本表示(整数无小数点)
      As template substitution: text representation of current value
      Whole numbers will be sent without decimal point  
    • 标签:包含当前值的浮点数标签
      As tag: a float tag with current value  

对话框正文类型
Dialog Body Types  

  • 正文内文本组件的悬停和点击事件现在正常工作
    Hover and click events on text components within bodies now work as expected  
  • 点击事件由对话框界面处理(与其他动作相同),意味着也会触发 after_action
    Click events are handled by the dialog screen like any other action - that means it will also run the after_action  

动作系统
Actions  

  • 动作格式因普通对话框与输入对话框合并而变更
    The format of actions has been changed due to the merging of plain and input dialogs  
  • 每个动作执行后,对话框始终会评估 after_action 字段内容
    After every action the dialog will always evaluate the contents of the after_action field (see above)  
  • 字段:
    Fields:  
    • 保留字段:label, tooltip, width
      Kept fields: label, tooltip, width  
    • 新字段:action(替换 on_clickon_submit
      New field: action (replaces on_click and on_submit)  
    • 动作类型对象(可选),包含字段:
      an action to perform when button is clicked, optional object with fields:  
      • type:来自 minecraft:dialog_action_type 注册表的值
        type - value from minecraft:dialog_action_type registry  
      • <type-specific>:类型特定字段(见下文)
        <type-specific> - see below, depends on type  

静态对话框动作类型
Static Dialog Action Types  

  • 包含所有现有点击事件动作(除 open_file 外)
    All existing click_event actions (except for open_file) are included as dialog action types.  
  • 使用与文本组件相同的格式(但用 type 替换 action)。例如 show_dialog 动作按钮:
    Uses same format as click_event on text components (but with action replaced with type) For example, when using show_dialog, entry for action button will look like:  
    {
    "label": "some label",
    "action": {
    "type": "show_dialog",
    "dialog": "some:id"
    }
    }

MINECRAFT:DYNAMIC/RUN_COMMAND 动作类型
MINECRAFT:DYNAMIC/RUN_COMMAND Action Type  

  • 此动作使用提供的宏模板构建 run_command 事件
    This action will build a run_command event using a provided macro template  
  • 宏模板将使用所有输入控件的字符串值展开
    The macro will be expanded with string values from all inputs  
  • 例如:若宏模板为 some_command $(some_input),则键为 some_input 的输入值将用于模板展开
    For example, if the macro template is some_command $(some_input), the string value from the input with key of some_input will be used for the template expansion  
  • 未使用的输入将被忽略,未匹配的宏参数替换为空字符串
    Inputs not used in macro will be ignored, while macro parameters not matching any inputs will be replaced with an empty string  
  • 字段:
    Fields:  
    • template:将被解释为命令的宏模板字符串
      template - a string with a macro template to be interpreted as a command  

MINECRAFT:DYNAMIC/CUSTOM 动作类型
MINECRAFT:DYNAMIC/CUSTOM Action Type  

  • 此方法使用所有输入值构建 minecraft:custom 事件
    This method will build a minecraft:custom event using all input values  
  • 所有输入内容将放入复合标签内发送,每个输入的标签值置于其 key 字段下
    All input contents will be sent together inside a compound tag, with tag value of each input put under id from key field of that input  
  • 可向载荷添加静态字段
    Additional static fields can be added to payload  
  • 字段:
    Fields:  
    • additions:添加到载荷的字段(可选复合标签)
      additions - fields to be added to payload, optional compound tag  
    • id:命名空间 ID
      id - namespaced ID  

资源包版本 63

Resource Pack Version 63
新增 oversized_in_gui 物品模型字段
Added oversized_in_gui item model field  

  • 物品模型定义现包含布尔字段 oversized_in_gui(默认 false
    Item model definitions now have a boolean field oversized_in_gui which is false by default  
    • true:允许物品模型大于其物品槽位
      If true, the item model will be allowed to be bigger than its item slot  
    • false:在 GUI 中渲染时将裁剪至物品槽位大小
      If false, the item model will be clipped to the item slot size when being rendered in gui  
  • 注意:物品超出槽位渲染的能力并非官方支持功能,因许多服务器依赖此功能而临时恢复为特例
    This ability of items being rendered outside their slots should not be considered officially supported, it was temporarily restored as an exception since many servers are relying on it  
  • 未来将用官方支持方案替代此功能
    At some point in the future we hope to replace it with an officially supported way of achieving similar functionality  

新增玩家头颅专用模型类型
Introduced new player head special model type  

  • 新增物品模型 minecraft:player_head 处理玩家档案纹理加载和渲染
    Introduced new item model minecraft:player_head to handle player profile texture loading and rendering  
  • 移除 minecraft:headminecraft:profile 的支持
    Removed support for minecraft:profile from minecraft:head  

MINECRAFT:PLAYER_HEAD 专用模型类型
MINECRAFT:PLAYER_HEAD special model type  

  • 渲染玩家头颅
    Renders a player head  
  • 使用 minecraft:profile 组件的档案加载纹理(纹理完全加载前渲染默认纹理)
    Uses profile from the minecraft:profile component to load a texture. Renders a default texture until the profile texture is fully loaded  
  • 无字段
    No fields  

MINECRAFT:HEAD 专用模型类型
MINECRAFT:HEAD special model type  

  • 不再支持通过 minecraft:profile 组件加载玩家纹理
    No longer supports profile from minecraft:profile component to load a player texture  
  • kindplayer 且未提供纹理覆盖时渲染默认玩家纹理
    Renders a default player texture when kind is player and no texture override is supplied  
  • 字段保持不变
    Fields remain unchanged  

1.21.6 预发布版 1 修复的漏洞

Fixed bugs in 1.21.6 Pre-Release 1 问题编号 描述
MC-94800 打开链接对话框中的 URL 未缩短显示
MC-140819 讲台模型超出物品槽位
MC-200092 /setworldspawn 似乎忽略 'angle' 参数
MC-272825 23w31a 及更早版本的自定义填充地图在后续版本中无法正确升级
MC-280276 某些物品模型在地面悬停时仍会穿入下方方块
MC-296420 /datapack create 可能创建非法名称的目录
MC-296431 将物品精灵图裁剪至槽位内使资源包无法隐藏槽位
MC-296458 物品栏中的玩家头颅显示错误皮肤
MC-297275 玩家在快乐恶魂上跳跃时与坐骑不同步
MC-297550 当其他玩家仍在控制时,玩家下马后快乐恶魂无法正确保持静止
MC-297807 在对话框警告菜单点击 "保存并退出至标题" 会进入服务器列表(即使世界是单人或本地局域网)
MC-297817 新放置的画有时出现在错误位置
MC-297848 从对话框离开世界时,菜单背景短暂不显示
MC-297868 当游戏规则 keepInventory=true 时,死亡后 躯体护甲槽鞍具槽 物品不被保留
MC-297893 prevent_equipment_drop 附魔效果对护甲和鞍具槽无效
MC-297894 /clear 命令无法清除护甲和鞍具槽物品
MC-297897 玩家可能穿过快乐恶魂
MC-297899 云朵渲染导致帧率下降
MC-297906 在专用服务器上运行大输出命令导致踢出且无日志输出
MC-297915 空自定义名称实体的名牌现在渲染错误
MC-298071 25w16a 后所有自然生成的僵尸村民无职业
MC-298101 嗅探兽现在显示挖掘动画而非行走动画
MC-298116 确认链接界面中的警告文本不再可见
MC-298117 未选择领域时,Realms 界面底部所有按钮仍可点击
MC-298139 大于槽位的物品会错误地渗透到其他物品上
MC-298146 高屏幕分辨率下 GUI 物品消失

获取预发布版

Get the Pre-Release
预发布版适用于 Minecraft:Java 版。安装方法:  

  1. 打开 Minecraft 启动器  
  2. "安装项" 标签页中启用快照功能
    警告:测试版本可能损坏你的世界!请务必备份和/或在独立文件夹中运行。
    Pre-Releases are available for Minecraft: Java Edition. To install the Pre-Release, open up the Minecraft Launcher and enable snapshots in the "Installations" tab.
    Testing versions can corrupt your world, so please backup and/or run them in a different folder from your main worlds.
      

跨平台服务器 JAR:
Cross-platform server jar:
Minecraft 服务端 JAR
Minecraft server jar  

漏洞报告:
Report bugs here:
Minecraft 问题追踪器!
Minecraft issue tracker!  

提供反馈:
Want to give feedback?
请前往反馈网站,或加入官方 Minecraft Discord 讨论!
For any feedback and suggestions, head over to the Feedback site. If you're feeling chatty, join us over at the official Minecraft Discord.

(0)
pixelbbs管理员

发表回复