Skip to content

Commit 6a2432d

Browse files
rb: 🔖 chore: 发布版本1.1.0
- 升级版本号至1.1.0 - 更新NEWS.md记录新功能 - 更新README.md说明配置验证功能
1 parent 51490eb commit 6a2432d

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

ReplaceBlock/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@//rule:datapack.bzl", "complete_datapack_config", "minecraft_versions_range")
22

3-
pack_version = "1.0.0"
3+
pack_version = "1.1.0"
44

55
complete_datapack_config(
66
game_versions = minecraft_versions_range("1.21"),

ReplaceBlock/NEWS.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
- 初始版本发布
2-
- 提供方块替换核心功能
3-
- 包含完整的 API 文档
4-
- 支持多维度方块替换
1+
- 添加配置参数验证功能
2+
- 为 API 调用者添加调试标签
53

64
---
75

8-
- Initial version release
9-
- Provides core block replacement functionality
10-
- Includes comprehensive API documentation
11-
- Supports multi-dimensional block replacement
6+
- Added configuration parameter validation functionality
7+
- Added debug tags for API callers

ReplaceBlock/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## 调用
1414

15-
要调用 API,请先在您命令存储的 `{}.replace_block` 中存储 API 配置,可调用 `replace_block:api/reset_settings` 函数并传入 `{storage:"您命令存储的命名空间 ID"}` 生成示例配置,然后调用 `replace_block:api/execute` 函数并传入 `{storage:"您命令存储的命名空间 ID"}`。方块替换将立即开始,并在同一 tick 内结束。目前 ReplaceBlock 并没有对配置内容的验证机制,因此请务必确认您的配置包含所有要求的数据,否则可能导致 ReplaceBlock 出现严重错误
15+
要调用 API,请先在您命令存储的 `{}.replace_block` 中存储 API 配置,可调用 `replace_block:api/reset_settings` 函数并传入 `{storage:"您命令存储的命名空间 ID"}` 生成示例配置,然后调用 `replace_block:api/execute` 函数并传入 `{storage:"您命令存储的命名空间 ID"}`。方块替换将立即开始,并在同一 tick 内结束。请务必确认您的配置包含所有要求的数据,ReplaceBlock 会验证您的配置参数,若缺失参数会导致 API 调用失败
1616

1717
## 配置
1818

@@ -65,7 +65,7 @@ This datapack traverses and replaces blocks chunk by chunk. Each call will trave
6565

6666
## Usage
6767

68-
To use the API, first store the API configuration in your command storage at `{}.replace_block`. You can call the `replace_block:api/reset_settings` function with `{storage:"your command storage namespace ID"}` to generate example configuration, then call the `replace_block:api/execute` function with `{storage:"your command storage namespace ID"}`. Block replacement will start immediately and end within the same tick. Currently, ReplaceBlock does not have a validation mechanism for configuration content, so please ensure your configuration contains all required data, otherwise it may cause serious errors in ReplaceBlock.
68+
To use the API, first store the API configuration in your command storage at `{}.replace_block`. You can call the `replace_block:api/reset_settings` function with `{storage:"your command storage namespace ID"}` to generate example configuration, then call the `replace_block:api/execute` function with `{storage:"your command storage namespace ID"}`. Block replacement will start immediately and end within the same tick. Please ensure your configuration contains all required data. ReplaceBlock will validate your configuration parameters, and missing parameters will cause API calls to fail.
6969

7070
## Configuration
7171

0 commit comments

Comments
 (0)