Skip to content

Commit

Permalink
翻译1.21.0.24技术更新日志
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianshanyao committed May 2, 2024
1 parent 4c6e95e commit fad3fff
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 32 deletions.
69 changes: 52 additions & 17 deletions docs/changelog_source/preview/1.21/0/24/tech.mdx
Original file line number Diff line number Diff line change
@@ -1,46 +1,81 @@
import TechSapiStable from './tech_sapi_stable.md';
import TechSapiExp from './tech_sapi_exp.md';
import TechSapiStable from './tech_sapi_stable.mdx';
import TechSapiExp from './tech_sapi_exp.mdx';
import TechSapiStableDiff from './tech_sapi_stable_diff.md';
import TechSapiExpDiff from './tech_sapi_exp_diff.md';
import Switcher from '../../../../../components/TechChangelogSwitcher.mdx';
import {HiddenSourceText} from '../../../../../../src/components/controls/HiddenSourceText'




## Add-Ons and Script Engine
## 附加包与脚本引擎
<HiddenSourceText>
<h2>Add-Ons and Script Engine</h2>
</HiddenSourceText>

- Changed Biome documentation to generate with a different system, which will cause the layout and order of those documentation elements to change
- 更改了群系文档,使其通过不同的系统生成,这将导致文档布局和元素的顺序发生变化
<HiddenSourceText>
<li>Changed Biome documentation to generate with a different system, which will cause the layout and order of those documentation elements to change</li>
</HiddenSourceText>


## **Script API**

<Switcher techSapi={<TechSapiStable/>} techSapiDiff={undefined}/>

## Editor
## 编辑器
<HiddenSourceText>
<h2>Editor</h2>
</HiddenSourceText>

- Added _addTable_ API
- Fixed GIF asset support for _addImage_ API
- Fixed a bug where the viewport did not scale properly with changes in UI or font scaling
- Resolved tooltip positioning and content size issues
- 添加了 `addTable` API
<HiddenSourceText>
<li>Added <code>addTable</code> API</li>
</HiddenSourceText>

## General
- 修复了 `addImage` 接口的GIF资产支持
<HiddenSourceText>
<li>Fixed GIF asset support for <code>addImage</code> API</li>
</HiddenSourceText>

- The Free camera experiment has been deprecated and the toggle removed as this feature has shipped. Future improvements to the free camera preset will be found in new experimental toggles as those capabilities become available. Samples can be found in the document for the camera command.
- 修复了视口随着UI或字体缩放异常的问题
<HiddenSourceText>
<li>Fixed a bug where the viewport did not scale properly with changes in UI or font scaling</li>
</HiddenSourceText>

## Items
- 解决了工具提示定位和内容尺寸的问题
<HiddenSourceText>
<li>Resolved tooltip positioning and content size issues</li>
</HiddenSourceText>

- Fixed a bug where, if a block and item are registered with the same identifier, the block returns a null item when 'picked'
## 常规
<HiddenSourceText>
<h2>General</h2>
</HiddenSourceText>

- 实验性自由相机已被弃用。随着新功能的逐步解锁,自由摄像机预设的后续优化将会在新增的实验性设置中呈现。欲查看示例,请参阅摄像机命令的相关文档
<HiddenSourceText>
<li>The Free camera experiment has been deprecated and the toggle removed as this feature has shipped. Future improvements to the free camera preset will be found in new experimental toggles as those capabilities become available. Samples can be found in the document for the camera command.</li>
</HiddenSourceText>

## 物品
<HiddenSourceText>
<h2>Items</h2>
</HiddenSourceText>


<h2 className="experimental_divider">实验性特性</h2>

- 修复了方块和物品注册为同一个id时,方块被“选取”会返回一个null物品的问题
<HiddenSourceText>
<li>Fixed a bug where, if a block and item are registered with the same identifier, the block returns a null item when 'picked'</li>
</HiddenSourceText>


<h2 className="experimental_divider">实验性特性</h2>


## **Script API**
## **脚本API**
<HiddenSourceText>
<h2><strong>Script API</strong></h2>
</HiddenSourceText>

<Switcher techSapi={<TechSapiExp/>} techSapiDiff={undefined}/>

7 changes: 0 additions & 7 deletions docs/changelog_source/preview/1.21/0/24/tech_sapi_exp.md

This file was deleted.

33 changes: 33 additions & 0 deletions docs/changelog_source/preview/1.21/0/24/tech_sapi_exp.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {HiddenSourceText} from '../../../../../../src/components/controls/HiddenSourceText'


- 修复了在不蹲下的情况下无法在带有自定义组件的方块周围放置方块的问题
<HiddenSourceText>
<li>Fixed issue where block with custom components could not have a block placed onto them without crouching</li>
</HiddenSourceText>

- 添加了新接口 `VectorXZ`
<HiddenSourceText>
<li>Added new interface <code>VectorXZ</code></li>
</HiddenSourceText>

- 添加了新方法 `getTopmostBlock` ,此方法将从世界顶部向下执行射线检测,尝试寻找首个固体方块
<HiddenSourceText>
<li>Added method <code>getTopmostBlock</code> which will perform a raycast from the top of the world downwards, trying
to find the first solid block
</li>
</HiddenSourceText>

- 添加了新方法 `getBlockAbove` ,此方法将从指定位置执行射线检测,尝试寻找其上方的首个固体方块
<HiddenSourceText>
<li>Added method <code>getBlockAbove</code> which will perform a raycast from a given position, trying to find the
first solid block above
</li>
</HiddenSourceText>

- 添加了新方法 `getBlockBelow` ,此方法将从指定位置执行射线检测,尝试寻找其下方的首个固体方块
<HiddenSourceText>
<li>Added method <code>getBlockBelow</code> which will perform a raycast from a given position, trying to find the
first solid block below
</li>
</HiddenSourceText>
8 changes: 0 additions & 8 deletions docs/changelog_source/preview/1.21/0/24/tech_sapi_stable.md

This file was deleted.

28 changes: 28 additions & 0 deletions docs/changelog_source/preview/1.21/0/24/tech_sapi_stable.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import {HiddenSourceText} from '../../../../../../src/components/controls/HiddenSourceText'


-`entity``beta` 移动到了 `1.11.0`
<HiddenSourceText>
<li>Moved <code>entity</code> from <code>beta</code>to <code>1.11.0</code></li>
</HiddenSourceText>

-`EntityTameMountComponent``tame` 方法从 `beta` 移动到了 `1.11.0`
<HiddenSourceText>
<li>Moved <code>EntityTameMountComponent</code> and method <code>tame</code> from <code>beta</code> to <code>1.11.0</code></li>
</HiddenSourceText>

-`EntityAddRiderComponent``beta` 移动到了 `1.11.0`
<HiddenSourceText>
<li>Moved <code>EntityAddRiderComponent</code> from <code>beta</code> to <code>1.11.0</code></li>
</HiddenSourceText>

-`Seat``beta` 移动到了 `1.11.0`
<HiddenSourceText>
<li>Moved <code>Seat</code> from <code>beta</code> to <code>1.11.0</code></li>
</HiddenSourceText>

-`EntityRidingComponent``beta` 移动到了 `1.11.0`
<HiddenSourceText>
<li>Moved <code>EntityRidingComponent</code> from <code>beta</code> to <code>1.11.0</code></li>
</HiddenSourceText>

0 comments on commit fad3fff

Please sign in to comment.