Corex
一款面向 Paper / Folia / Velocity 的高性能编译脚本引擎。简单、自动化、便捷——认识 Corex。
⚡ 启动时编译脚本仅解析一次。每次调用都运行预构建的字节码——性能不依赖于脚本数量。 |
?️ 使用标签而非变量
|
? 持久化标记(Flags)通过单条命令即可写入标记——针对玩家、方块或全局生效。重启后依然保留。支持 TTL:数据在设定时间后自动删除。 |
? 支持 FoliaCorex 会追踪线程并在区域间自动切换。脚本编写方式与普通情况一致——无需特殊处理。 |
? Velocity - 相同语法代理脚本使用相同的语言。跨服逻辑、全局数据、高性能。 |
? 热重载
|
脚本队列

每个脚本都在其独立的队列中运行。当一个队列等待(例如 delay、command execution 或 region switch)时,其他队列继续执行。每个队列拥有自己的变量和代码执行位置。
.jar 生命周期

一个 .jar 文件可在 Paper、Folia 和 Velocity 上运行。加载时,服务器会检测平台并读取相应的配置文件。
命令语法

每条命令以 - 开头,后跟命令名称和参数。参数分为两种类型:线性参数——作为普通值传递(如 "Some text"),前缀参数——以 key:value 形式传递(如 targets:<player[_TIZIS_]>)。任何参数中均可使用标签——它们会在命令执行时求值。
标签语法

标签是 < > 内部的一个链式结构。从左到右读取:player ——主体是谁,.name ——其名称(字符串),.length ——该字符串的长度(数字),.isMoreThan[10] ——是否大于 10(布尔值)。每一部分接收上一部分的结果并返回新值。最终结果将替换标签被写入的位置。

Corex
A high-performance, compiled scripting engine for Paper / Folia / Velocity. Simple, automated, convenient - meet Corex.
⚡ Compiled at startupScripts are parsed once. Every call runs prebuilt bytecode - performance does not depend on the number of scripts. |
?️ Tags instead of variables
|
? Persistent flagsA flag is written with a single command - on a player, a block, or globally. Survives restarts. Supports TTL: data deletes itself after a set time. |
? Folia supportCorex tracks threads and switches between regions automatically. Scripts are written as usual - no special handling required. |
? Velocity - same syntaxProxy scripts use the same language. Cross-server logic, global data, high performance. |
? Hot reload
|
Script Queue

Every script runs in its own isolated queue. While one queue is waiting (for a delay, a command execution, or a region switch) - the others keep going. Each queue has its own variables and its own position in the code.
.jar lifecycle

One .jar file runs on Paper, Folia and Velocity. On load, the server detects the platform and reads the right config.
Command syntax

Every command starts with -, followed by the command name and arguments. Arguments come in two types: linear - passed as a plain value ("Some text"), and prefix - passed as key:value (targets:<player[_TIZIS_]>). Tags can be used in any argument - they are evaluated at the moment the command runs.
Tag syntax

A tag is a chain inside < >. Read left to right: player - who, .name - their name (string), .length - the length of that string (number), .isMoreThan[10] - whether it is greater than 10 (boolean). Each part receives the result of the previous one and returns a new value. The final result is substituted wherever the tag is written.

下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Corex
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复了漏洞和错误,以及 26.3 [modrinth]
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧