SkriptWEFAWEAddon
欢迎使用 SkriptWEFAWEAddon 的官方维基。这是一个由 YusufKGD 打造的高性能 Skript 插件(addon)。
该插件在 Skript 强大的逻辑功能与 WorldEdit 及 FastAsyncWorldEdit (FAWE) 极速的异步方块操作之间架起了桥梁。
⚡ 特性
- 无缝集成:完全兼容标准的 Skript 变量、循环和条件判断。
- 极速运行:直接利用 WorldEdit 和 FAWE 的 EditSessions,在处理海量方块更新时彻底消除服务器卡顿。
- 支持结构文件:轻松保存、加载并粘贴
.schem 结构文件。
- 通用支持:同时完美兼容标准 WorldEdit 和 FastAsyncWorldEdit。
? 依赖要求
- Java: 21+
- Minecraft: 26.2+
- Skript: 2.8.0+
- 必须安装 WorldEdit 或 FastAsyncWorldEdit (FAWE)。我们强烈推荐使用 FAWE!
?️ 安装方法
- 从 Modrinth 下载最新的
SkriptWEFAWEAddon.jar。
- 将文件放入服务器的
plugins/ 目录中。
- 确保已安装 Skript 以及 WorldEdit(或 FAWE)。
- 重启服务器。
- (可选)在
plugins/SkriptWEFAWEAddon/messages.yml 中自定义插件消息。
? 文档
以下是本插件提供的所有语法列表。您可以将任何上述语法前缀加上 we 或 fawe。
Set Blocks(设置方块)
快速用指定类型的方块填充选定区域。
语法:
[we|fawe] set blocks between %location% and %location% to %string%
示例:
set {_loc1} to player's location
set {_loc2} to location at (x-coordinate of player + 10), (y-coordinate of player + 10), (z-coordinate of player + 10) in player's world
we set blocks between {_loc1} and {_loc2} to "minecraft:diamond_block"
Replace Blocks(替换方块)
在指定区域内将特定类型的方块替换为另一种类型。
语法:
[we|fawe] replace [blocks] %string% between %location% and %location% with %string%
示例:
we replace blocks "stone" between {_loc1} and {_loc2} with "grass_block"
Paste Schematic(粘贴结构)
粘贴位于 plugins/WorldEdit/schematics(或 FAWE 的结构文件夹)中的结构文件。
语法:
[we|fawe] paste schematic %string% at %location% [without air]
示例:
# 在玩家位置粘贴 'spawn.schem',忽略结构中的空空气方块。
we paste schematic "spawn" at player's location without air
Save Schematic(保存结构)
将指定区域保存为 .schem 文件到服务器的结构文件夹中。
语法:
[we|fawe] save schematic %string% between %location% and %location% [with origin %-location%]
示例:
# 将区域保存为名为 'my_house.schem' 的文件
we save schematic "my_house" between {_loc1} and {_loc2} with origin player's location
⚙️ 配置
首次启动时,插件会生成一个 messages.yml 文件。您可以完全翻译或自定义在处理无效方块或缺少结构文件时显示的错误消息。
prefix: "[KGD-WE] "
errors:
schematic_not_found: "Schematic file %file% does not exist!"
unknown_format: "Unknown schematic format for file %file%."
invalid_pattern: "Invalid WorldEdit pattern: '%pattern%'. Reason: %reason%"
invalid_mask_or_pattern: "Invalid WorldEdit mask or pattern. Reason: %reason%"
? 示例
想立即测试该插件?将此代码放入您的 plugins/Skript/scripts/ 文件夹即可!
command /fawe_test:
permission: op
trigger:
set {_loc1} to player's location
set {_loc2} to location at (x-coordinate of player + 5), (y-coordinate of player + 5), (z-coordinate of player + 5) in player's world
we set blocks between {_loc1} and {_loc2} to "gold_block"
send "&aA 5x5x5 cube of gold has been created instantly!" to player
(本维基专为 Modrinth 社区制作。享受流畅且无卡顿的代码编写体验!)
SkriptWEFAWEAddon
Welcome to the official wiki for SkriptWEFAWEAddon, a high-performance Skript addon crafted by YusufKGD.
This addon bridges the gap between Skript's powerful logic and the blazing-fast asynchronous block manipulation of WorldEdit and FastAsyncWorldEdit (FAWE).
⚡ Features
- Seamless Integration: Fully compatible with standard Skript variables, loops, and conditions.
- Blazing Fast: Directly utilizes WorldEdit & FAWE's EditSessions, completely eliminating server lag when handling massive block updates.
- Schematic Support: Save, load, and paste
.schem files effortlessly.
- Universal Support: Works smoothly with both standard WorldEdit and FastAsyncWorldEdit.
? Requirements
- Java: 21+
- Minecraft: 26.2+
- Skript: 2.8.0+
- WorldEdit or FastAsyncWorldEdit (FAWE) is required. We highly recommend using FAWE!
?️ Installation
- Download the latest
SkriptWEFAWEAddon.jar from Modrinth.
- Place the file into your server's
plugins/ directory.
- Ensure you have Skript and WorldEdit (or FAWE) installed.
- Restart your server.
- (Optional) Customize plugin messages in
plugins/SkriptWEFAWEAddon/messages.yml.
? Documentation
Below is the complete list of syntaxes provided by this addon. You can prefix any of these syntaxes with either we or fawe.
Set Blocks
Quickly fills a specified region with a block type.
Syntax:
[we|fawe] set blocks between %location% and %location% to %string%
Example:
set {_loc1} to player's location
set {_loc2} to location at (x-coordinate of player + 10), (y-coordinate of player + 10), (z-coordinate of player + 10) in player's world
we set blocks between {_loc1} and {_loc2} to "minecraft:diamond_block"
Replace Blocks
Replaces a specific type of block with another within a defined region.
Syntax:
[we|fawe] replace [blocks] %string% between %location% and %location% with %string%
Example:
we replace blocks "stone" between {_loc1} and {_loc2} with "grass_block"
Paste Schematic
Pastes a schematic file located in the plugins/WorldEdit/schematics (or FAWE's schematic) folder.
Syntax:
[we|fawe] paste schematic %string% at %location% [without air]
Example:
# Pastes 'spawn.schem' at the player's location, ignoring empty air blocks in the schematic.
we paste schematic "spawn" at player's location without air
Save Schematic
Saves a specific region as a .schem file to your server's schematics folder.
Syntax:
[we|fawe] save schematic %string% between %location% and %location% [with origin %-location%]
Example:
# Saves the region to a file named 'my_house.schem'
we save schematic "my_house" between {_loc1} and {_loc2} with origin player's location
⚙️ Configuration
Upon first startup, the plugin generates a messages.yml file. You can fully translate or customize error messages displayed when invalid blocks or missing schematics are handled.
prefix: "[KGD-WE] "
errors:
schematic_not_found: "Schematic file %file% does not exist!"
unknown_format: "Unknown schematic format for file %file%."
invalid_pattern: "Invalid WorldEdit pattern: '%pattern%'. Reason: %reason%"
invalid_mask_or_pattern: "Invalid WorldEdit mask or pattern. Reason: %reason%"
? Examples
Want to test the addon right away? Drop this into your plugins/Skript/scripts/ folder!
command /fawe_test:
permission: op
trigger:
set {_loc1} to player's location
set {_loc2} to location at (x-coordinate of player + 5), (y-coordinate of player + 5), (z-coordinate of player + 5) in player's world
we set blocks between {_loc1} and {_loc2} to "gold_block"
send "&aA 5x5x5 cube of gold has been created instantly!" to player
(Wiki crafted for the Modrinth community. Enjoy seamless and lag-free coding!)
评论 0
登录后参与评分
还没有评论,来抢沙发吧