25w35a.md 13 KB


version-image-link: https://tc-new.z.wiki/autoupload/f/ULag1QS0BDacCn8kCE5g5tFYj2703A6STtlru2hkIW-yl5f0KlZfm6UsKj-HyTuv/20250827/wCsD/1170X500/25w35a_1170x500.jpg/webp server-jar: https://piston-data.mojang.com/v1/objects/7fb6965adce075e4e6b467ca620f59c76c0f1e52/server.jar translator: 最亮的信标

cats: ["1.21", "1.21.9"]

新特性

  • 增加了对哈利奇地方语言的支持 (译者注:哈利奇是乌克兰的一个城市)
  • 增加了 Minecraft 服务端管理协议

Minecraft 服务端管理协议(MSMP)

增加了一个服务器管理 API (JSON-RPC over WebSocket) 用于专用服务器

  • 此 API 默认禁用,可以由服务器 properties 文件启用

    • management-server-enabled=true
    • management-server-host=localhost
    • management-server-port=25585
  • 当启用时 API 可以通过 ws://<management-server-host>:<management-server-port> 访问

  • 支持查询以及更新服务器状态(玩家、白名单、操作员、设置、游戏规则)

  • 在状态更改时发送通知 (如:玩家加入、游戏规则更新)

  • 调用 {"id":1,"method":"rpc.discover"} 返回一个包含了当前运行的服务器支持的方法以及通知的 API schema

  • 数据生成器在报告输出文件夹中提供一个 API schema (json-rpc-api-schema.json) 反映了 rpc.discover 方法返回的内容

  • API 遵守 JSON-RPC 2.0 规范

  • 使用带有命名空间的方法,并且保留的命名空间为 minecraft (如:minecraft:players,minecraft:allowlist/add)以及 notification (如 notification:players/joined)

    • 可以使用自定义命名空间以及额外方法进行扩展
  • 核心方法组: 玩家、白名单、操作员、服务器(保存、停止)、服务器设置、游戏规则

  • 方法调用示例:

    • 请求:

      {
      "method": "minecraft:allowlist/add",
      "id": 1,
      "params": [ [{ "name": "jeb_" }] ]
      }
      
  • 响应:

    {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [{ "id": "853c80ef-3c37-49fd-aa49-938b674adae6", "name": "jeb_" }]
    }
    
  • 通知示例:

    {
    "jsonrpc": "2.0",
    "method": "notification:players/joined",
    "params": [{ "id": "853c80ef-3c37-49fd-aa49-938b674adae6", "name": "jeb_" }]
    }
    
  • 错误示例:

    • 请求: {"method": "minecraft:foo/bar","id": 1}
    • 响应:

      {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
      "jsonrpc": "2.0",
      "id": 1,
      "error": {
      "code": -32601,
      "message": "Method not found",
      "data": "Method not found: minecraft:foo/bar"
      }
      }
      }
      
  • 错误以及错误代码遵守 JSON-RPC 2.0 错误对象格式 (译者注:并未完全遵守,见 MC-301531)

更改

UI

  • 当添加一个新的服务器到服务器列表时,名称不再预填充。当名称留空时使用默认名称。
  • 更多文本输入框现在支持使用鼠标拖拽选择文字

鼠标指针

  • 一些 UI 组件现在会更改鼠标指针的形状
    • 例如: 文本输入框、数字滑块、按钮、滚动栏
  • 此外,字符标签可点击的部分(如链接)现在会将指针改为 “手” 状
  • 这项特性现在可以通过在 "鼠标设置" 的 "允许光标变化" 菜单中更改

对方块、物品以及实体的微调

  • 铜傀儡的碰撞箱微调
    • 现在碰撞箱是 0.98 格高,以可以寻路通过一格高的空间
  • 在生成铜傀儡时创建的铜箱子现在与附近的其它铜箱子正常连接
  • 铜傀儡现在使用鞍装备槽放置在其避雷针顶上的方块
    • 其头装备槽现在与正常的头装备槽一样,类似于人型生物

技术性更改

  • 数据包版本现在为 85.0
  • 资源包版本现在为 67.0

服务器 Properties

因使用了一些新游戏规则,一些服务器 properties 的被移除,以允许在服务器运行时更改这些设置。

  • 因使用新游戏规则,移除了服务器 property allow-nether
  • 因使用新游戏规则,移除了服务器 property spawn-monster
  • 因使用新游戏规则,移除了服务器 property enable-command-block
  • 因使用新游戏规则,移除了服务器 property pvp
  • 增加了服务器 property management-server-enabled 以控制服务器是否启用 Minecraft 服务端管理协议
    • 默认为 false
  • 增加了服务器 property management-server-port 以控制服务器 Minecraft 服务端管理协议的端口
    • 默认为 25585
  • 增加了服务器 property management-server-host 以控制服务器 Minecraft 服务端管理协议的主机
    • 默认为 localhost
  • 增加了服务器 property status-heartbeat-interval 以控制服务器发送通知到连接的客户端的时间间隔
    • 默认为 0,意味着被禁用

数据包版本 85.0

  • chain 重命名为 iron_chain

游戏规则

  • 增加了 pvp 游戏规则控制,以控制玩家是否可以对其它玩家造成伤害
    • 默认为 true
  • 增加了 allowEnteringNetherUsingPortals 游戏规则以控制下界是否可以通过传送门进入
    • 默认为 true
  • 增加了 spawnMonsters 游戏规则以控制怪物是否自然生成
    • 默认为 true
  • 增加了 enableCommandBlocks 游戏规则以控制命令方块是否启用
    • 默认为 true

文本渲染

object 文本组件

  • 更新了该组件以支持显示其它非字符对象作为文本的一部分
  • 新格式:

    • object: 对象的类型,字符串,值见下方
    • <type-specific>: 由对象类型决定的可选字段
  • 与 nbt 文本组件相似,object 字段可以省略

    • 然而,为了检查错误,我们推荐提供
atlas 对象类型
  • 与之前 object 组件有相同的行为,但是现在其分离为一个对象类型
  • 与之前使用相同的格式
player 对象类型
  • 渲染玩家的头
  • 如果提供了部分档案,皮肤会被与 minecraft:profile 组件在玩家的头上以相同的方式解析
  • 格式:
    • player: 玩家档案
      • name:玩家名称,可选字符串
      • id: 玩家 UUID,可选的 UUID
      • properties: 档案属性,可选的映射
    • hat: 控制是否渲染帽子层,布尔值,默认为 false

配方

  • 悬挂告示牌现在可以使用铁链合成

资源包版本 67.0

方块精灵图

重命名了以下方块精灵图:

  • chain 重命名为 iron_chain

物品精灵图

重命名了以下物品精灵图:

  • chain 重命名为 iron_chain

25W35A 修复的漏洞

  • MC-278550 - While flying in creative or spectator mode, the surface of water can prevent you from sprinting
  • MC-297126 - "Failed to read field..." error spam when upgrading a 25w15a or 25w16a world
  • MC-300044 - Z-fighting occurs when the heads of copper golems intersect their bodies
  • MC-300049 - The debug text is rendered on top of the debug options
  • MC-300054 - Double oxidized copper chest texture UV is missing pixels
  • MC-300067 - Copper golems continue their chest searching animations while dying
  • MC-300074 - No particles are produced when scraping oxidation off copper golems
  • MC-300077 - Copper golems can interact with chests diagonally through solid blocks
  • MC-300089 - Chests sometimes get stuck in inverted states after being interacted with by copper golems
  • MC-300102 - Shelves float when held in the player's hand in third person
  • MC-300103 - Removing items from a shelf uses the "Item placed" caption
  • MC-300119 - Copper golems don’t always avoid dangerous blocks when pathfinding to chests
  • MC-300124 - All the oxidation states of the lightning rod are listed in the redstone tab of the creative inventory
  • MC-300129 - Copper golems can't put items into chests above them
  • MC-300173 - The Copper Chest textures' diagonal glint direction doesn't match the large chest variants' on some sides
  • MC-300229 - Z-fighting on antenna when putting certain blocks above a copper golem statue
  • MC-300267 - The miniature mobs inside spawners and trial spawners are sometimes lit incorrectly
  • MC-300301 - Shelves produce unusually high-resolution particles due to having a 32x32 texture
  • MC-300304 - Comparators can stay active when measuring the pose of a copper golem statue block which is revived
  • MC-300462 - Copper golems attached to leads still attempt to pathfind toward chests
  • MC-300501 - Variants of copper chests are not included in the "Redstone Blocks" tab in the creative inventory whereas normal chests are
  • MC-300568 - Copper golems don't open chests if given room to walk about
  • MC-300688 - The iron chain's block/item ID is still "chain"
  • MC-300703 - The underside of double copper chests does not use a merged texture
  • MC-300744 - The copper and iron nuggets are inverted and arranged incorrectly in the Creative mode inventory
  • MC-300762 - Copper golems require at least 3 blocks of space above a chest to place anything
  • MC-300797 - The glowing effect causes entities to render incorrectly inside of inventories
  • MC-300827 - Pressing F3+Q in certain screens does not show help, despite F3 suggesting it
  • MC-300977 - Clocks function in the recipe book/villager/crafter UI
  • MC-301023 - When a warden applies the darkness effect to you, the chat interface, item bar, and items become dark
  • MC-301025 - End flash purplish light saturation is affected by brightness values
  • MC-301026 - End flash purplish light becomes extremely saturated when the player is affected by darkness
  • MC-301048 - In the "sitting" pose, the copper statue’s rod becomes shorter
  • MC-301101 - Certain similar blocks are positioned differently on copper golems' heads
  • MC-301224 - The first few stages of block cracks are not rendered on chests
  • MC-301225 - Game crashes when quitting creating new world menu without other worlds created before
  • MC-301226 - Block cracks no longer render on banners
  • MC-301228 - Block cracks no longer render on heads and skulls
  • MC-301230 -The word "resolve" is misspelled as "resolved" within the "commands.profile_fetch.id.failure" string
  • MC-301231 - Enchanting table book animations are not independent
  • MC-301236 - Enchantment glint is no longer visible on held tridents
  • MC-301242 - Enchantment glint is no longer visible on shields
  • MC-301273 - Clicking on the join server hover button now selects the server, unless any server is already selected
  • MC-301290 - Game crashes when trying to render a glowing enchanted item
  • MC-301295 - TTF font provider oversample increases width of characters
  • MC-301328 - Glowing item entities briefly turn white upon pickup
  • MC-301339 - Miniature mobs inside spawners always render fully lit