

NEWSMINECRAFT SNAPSHOT 23W41A
Minecraft 快照 23W41A
A Minecraft Java Snapshot
Minecraft Java版 快照
For this week's Snapshot, we've made improvements to the Decorated Pots!
在本周的快照更新中,我们对饰纹陶罐做出了改进!
Additionally, Realms is now available in Snapshots moving forward! Any player who has an active Realms subscription is eligible to create a free Snapshot Realm. This Snapshot Realm will be separate from your regular Realm to prevent any issues from impacting your regular Realm. For more information on how Snapshot Realms work, please see Realms in Minecraft: Java Edition Snapshot FAQ .
另外,从现在开始,Realms 也支持快照版世界了!任何当前订阅了 Realms 的玩家都可免费创建一个快照版本的 Realm。快照版本 Realm 服务器会与你的常规 Realm 服务器相互独立,从而防止对后者产生影响。如想知道更多有关快照版本 Realms,可以查看 Minecraft: Java Edition Snapshot FAQ。
NEW FEATURES
新特性
SNAPSHOT REALMS
快照版本 REALMS 服务
Realms is now available in Snapshots, Pre-Releases, and Release CandidatesRealms 服务现支持快照、预发布版和候选版本The version of the last played world on a Realm is displayed in the Realms list在 Realms 列表中将展示每个 Realm 服务器最近一次游玩世界的版本Experiments are available for newly created worlds创建新的世界时,可以使用实验性选项
CHANGES
更改
Decorated Pots can now store items, and can be smashed by projectiles饰纹陶罐现在可以储存物品,但会被弹射物破坏
DECORATED POTS
饰纹陶罐
Decorated Pots now store up to a single stack of items饰纹陶罐现可储存 1 组物品Hoppers, Hopper Minecarts and Droppers can now insert and/or extract items from Decorated Pots漏斗、漏斗矿车可以从饰纹陶罐存取物品,投掷器可以向饰纹陶罐存入物品Comparators can now read the number of items in Decorated Pots红石比较器可以读取饰纹陶罐内物品的数量Players can interact with Decorated Pots to insert items into them玩家可通过与饰纹陶罐交互来存入物品Decorated Pots have no GUI, and need to be broken to retrieve or discover their content by players饰纹陶罐没有 GUI,需要被打破才能发现并取出内容物Player interactions with Decorated Pots cause the Decorated Pot to wobble and trigger the vibration frequency of 11玩家与饰纹陶罐的互动将导致饰纹陶罐晃动(暂译),并发出频率为 11 的振动Decorated Pots can be smashed by projectiles which cause them to shatter and drop their content饰纹陶罐可被弹射物摧毁,并会因此变回碎片形式,同时会掉出内容物Decorated Pots now stack up to 64饰纹陶罐的最大堆叠数现在为 64
* 注:经测试:玩家与饰纹陶罐互动时,将会因玩家手中有无能放入物品而分别显示“晃动”和“填充”两种字幕,但都会发出频率为 11 的振动。
We want to hear your feedback on these improvements to Decorated Pots - let us know what you think in our dedicated feedback site post!
我们想要听到你们对饰纹陶罐改进的反馈 —— 请将你的想法发送到我们专门设置的反馈征集帖!(可能无法访问)
TECHNICAL CHANGES
技术性更改
The Data Pack version is now 20数据包版本现在为 20The name of non-living entities will now be shown if looked at and a CustomName is set, or always displayed if CustomNameVisible is set, similar to living entities若存在 CustomName 的 NBT 标签且正在被玩家看向,非活体实体现在也可以显示出自定义名称,或者在设置了 CustomNameVisible 的情况下始终展示,这将与活体的行为相类似
DATA PACK VERSION 20
数据包版本 20 更新内容
Changed function command results调整了 function 命令的输出Adjusted check for gamerule maxCommandChainLength调整了 maxCommandChainLength 游戏规则的实际检查方式Added new gamerule maxCommandForkCount新增游戏规则 maxCommandForkCountReintroduced form of the execute command: execute if function重新加入 execute 命令的子命令格式 execute if functionReintroduced form of the return command: return run重新加入 return 命令的子命令格式 return runDecorated Pots with cracked state set to true will always shatter when broken若饰纹陶罐的 cracked 方块状态为 true,则它会在被任何方式破坏时变回碎片形式Added new dust_plume particle type新增 dust_plume 粒子类型
COMMANDS
命令
FUNCTIONS
函数
function command has been changed to better accomodate new return commandfunction 命令现已做出调整,以适配全新的 return 命令Functions no longer have any result unless they use return or there was error during lookup or instantiation函数将不再有输出值,除非函数内使用了 return 命令,或在查找与实例化(暂译,包括后文多处内容) 过程中出现错误
That means function command will no longer return (or even display) number of commands run during execution这意味着 function 命令将不再返回(甚至显示)执行期间运行的命令数Error conditions:错误情况:
Calling non-existent function调用了不存在的函数Calling empty function tag调用了空的函数标签Macro instantiation failure宏函数实例化失败
"Result" in this context means values that would be stored with execute store在本文此处以及前后的“返回值”均指代可通过 execute store 进行储存的值The previous behavior where every command in function would perform store if a function was called with execute store ... run function is removed此前若函数被 execute store ... run function 调用,则函数在运行每一条命令都会执行一次 store 子命令
That means that a single call to function will store at most once (zero times if return was not called)这意味着单次 function 调用将会至多执行 store 子命令一次(在没有调用 return 的情况下是 0 次)For function tags with multiple entries, function results will be accumulated, but partial results will be stored at the end of every function对于有多个函数的函数标签,函数返回值会被累计,在每一函数执行完毕时更新一次
Limits
限制
Existing limits for functions have been refined to accomodate new execution rules and prevent wider range of exploits:
现有对函数的限制已被做出改进,从而适应全新的执行规则,同时为了预防更大范围的漏洞:
Limits apply even if run from command line (so it will now always behave as if they were placed in a function)即使通过命令行执行的函数也将受到限制(现在会表现地与使用 function 时的行为完全相同)
For example, all functions called by execute as @e run function will count towards same limit举例说明,所有使用 execute as @e run function 调用的函数会共用同一个计数器Executions from command blocks still count as separate ones使用命令方块的执行行为仍会被单独考虑
Limit maxCommandChainLength for functions will now count "operations" like:对函数的 maxCommandChainLength 限制也会对以下类型的“操作”进行计数:
execution of command for a single context为单个上下文(context)执行的命令execution of a stage in execute (no matter how many contexts were modified)execute 命令执行的单个阶段(无论有多少上下文被修改)invocation of function函数调用
New limit with game rule maxCommandForkCount now restricts total amount of context that can be created by single state of functions like execute对游戏规则 maxCommandForkCount 限制做出的调整将严格限制单一函数 execute 可以创建的命令上下文数量
Example: if there are 5 entities in world, execute as @e creates 5 contexts, while execute as @e at @e creates 5*5 = 25 contexts举例说明:若当前世界存在 5 个实体,则 execute as @e 会创建 5 个上下文,而 execute as @e at @e 会创建 5 乘 5 共 25 个上下文
EXECUTE IF FUNCTION
EXECUTE IF FUNCTION
An execute sub-command that runs a function or function tag and matches the return value(s).This is a reintroduction of functionality removed in previous version.If a tag is given, all functions run regardless of the results of prior functions.
全新的 execute 子命令,可运行函数或函数标签控制的一组函数,并匹配返回值。这一子命令在先前的版本中被移除,但现在被重新加入。若使用函数标签,则每一个函数都会被执行,与上一个返回值无关。
Syntax:execute if|unless function
格式:execute if|unless function
Parameters:
参数:
function: The function or tag to runfunction:要运行的函数或函数标签
Matching
匹配值
The matching of the result value of the function(s) that run:
所运行函数的输出值将按以下规则匹配:
At least one of the functions must succeed for the match to succeed要让匹配的结果为成功,则至少一个函数要成功运行A succeessful call is defined as a function that:函数的成功调用必须满足:
Uses the return command to return a value使用了 return 命令来返回一个值The return value is not 0返回值不为 0
If no functions exited with return, neither if or unless will run若没有函数使用了 return,则 if 或 unless 都不会通过
RETURN RUN
RETURN RUN
A form of the return command is now available, return run .This is a reintroduction of functionality removed in previous version.
在 return 命令中现在可以使用 return run 的子命令格式。这一子命令在先前的版本中被移除,但现在被重新加入。
Syntax:return run
命令格式:return run
This takes the result value from running the specified command and returns that as the return value of the function.
该命令将会运行由 command 参数所指定的命令,并获取其输出的 result 值,然后作为函数的返回值输出。
If command did not return any value (like, for example, call to a function without return), return will not execute and function will continue execution若该命令没有返回值(例如使用 function 调用了函数,但函数内没有 return 命令), return 命令将不会被执行,但函数仍会继续执行If the given command fails, the return value is 0若命令执行失败,则返回值为 0In all other aspects, it works like return with a specified return value在其他情况下,它与 return 并无区别,也会有特定的返回值In case of fork (for example return run execute as @e run some_command) the first execution of the command will return如果命令存在分支情况(例如 return run execute as @e run ),则只会按命令的第一次执行输出返回值
If there are no executions (for example in return run execute if @e [something_impossible] run some_command) function will not return and will continue execution若命令没有被执行(例如 return run execute if @e [] run ) ,则函数不会有输出值,但仍会继续执行
FIXED BUGS IN SNAPSHOT 23W41A
快照 23W41A 修复的漏洞
MC-16937 - Shooting an arrow into the nether portal can hurt anybody when PvP is disabledMC-16937 - 即使禁用了 PVP ,也能通过向下界传送门射箭的方式伤害玩家MC-50319 - Player owned projectiles lose their player ownership when exiting portalsMC-50319 - 玩家射出的箭矢会在离开传送门后丢失MC-81656 - Field determining whether or not a wither skull is blue is not saved to and read from NBTMC-81656 - 控制凋灵之首是否为蓝色的字段无法以 NBT 文件格式存储或读取MC-118403 - Vexes summoned by evoker do not have evoker team appliedMC-118403 - 唤魔者召唤的恼鬼不会自动加入唤魔者所在的队伍MC-143266 - Nested function calls reevaluate maxCommandChainLength before queueing commandsMC-143266 - 被嵌套的函数被加入队列前,游戏会重新判定最**锁执行命令的数量MC-143269 - Nested intermediate functions are skipped when maxCommandChainLength commands are already queuedMC-143269 - 若当前以达到最**锁执行命令的数量,则被嵌套的函数会被跳过MC-189227 - First time tutorial uses old texturesMC-189227 - 第一次进入世界的游戏教程使用了旧的纹理MC-198113 - Incomplete commands do not prevent functions from loadingMC-198113 - 存在不完整的命令时函数文件仍会被加载MC-233276 - You can feed adult donkeys, horses, llamas or mules with maximum Temper value, and hand animation is not playedMC-233276 - 即使成年的马、驴、骡和羊驼的好感度已满,玩家也依然可以喂食,但此时不会播放手部动画MC-234323 - Performance issue with text parsingMC-234323 - 游戏在解析文本内容时存在性能问题MC-236501 - Renamed minecarts and boats don't show their name tag in the worldMC-236501 - 重命名过的矿车和船不会显示出它们的名称MC-249408 - Boats with Chests lose their name when placedMC-249408 - 运输船在放置后就丢失了它们的自定义名称MC-257786 - The game takes a long time to process players leaving realms groups or accepting or declining realms invitationsMC-257786 - 玩家推出 realms 群组或接受/取消 realms 邀请时,游戏长时间无响应MC-260576 - Incomplete 'execute summon' command still runsMC-260576 - execute summon 命令即使输入不完整也能运行MC-261682 - Brushing can continue when block goes out of rangeMC-261682 - 即使方块离开了玩家的触及范围,刷子也仍然能刷扫物品MC-262105 - Entities can block brushing actions when players look very close to their hitboxesMC-262105 - 玩家视线快要接触实体的判定箱时,刷扫过程会突然中断MC-263575 - When an item is extracted from suspicious sand/gravel, gravity does not work on this blockMC-263575 - 在可疑的沙子/沙砾内的物品被提取的过程中,方块本身不会受重力影响MC-263660 - "Sign wobbles" subtitle is the same for signs and hanging signs, causing translation issuesMC-263660 - “告示牌:晃动”的字幕在告示牌和悬挂式告示牌上是相同的,这导致本地化出现问题MC-264595 - Return command cannot run function when inside another functionMC-264595 - return 命令无法执行被嵌套的函数MC-264699 - Functions return the output of commands only if the command doesn't start with return runMC-264699 - 函数返回执行成功的命令数时,不统计以 return run 开头的函数MC-264710 - "/execute if function" always fails and "/execute unless function" always succeeds if run from a functionMC-264710 - 在函数里执行的 /execute if function 始终失败,/execute unless function 始终成功MC-264880 - GUI slider uses new texture with programmer artMC-264880 - Programmer art 资源包使用了新的 GUI 滚动条纹理MC-265516 - The "Cancel" button within some realms menus can be deselected using keyboard navigation despite it being the only element within the said menuMC-265516 - 部分 Realms 菜单中的“取消”按钮可以通过使用键盘导航来取消选择,即使其为菜单中唯一的控件。MC-265647 - Shield arm position is incorrect while in a boatMC-265647 - 乘船时持盾牌的手臂位置不正确MC-265656 - Pumpkins can no longer be shearedMC-265656 - Pumpkins can no longer be sheared

【氘氚人 译自官网 2023 年 10 月 11 日发布的 Minecraft Snapshot 23w41a;原作者 Java Team】
【本文排版借助了:SPXX v2.4.14】



Powered by SPXX 2.4.14 with love
Converted at 2023-10-11 23:27 +0800