.sk · 了解 Skript 附加组件

SKRIPT 生成器

用日常语言描述一个 Skript。Codexe 用当前语法写出 .sk 文件:事件、变量、界面、计分板。不用 Java,不用编译,放进去重载即可。

为什么使用 AI Skript 生成器

现代的 Skript 语法

Codexe targets the current Skript release. No legacy patterns, no deprecated event names. The script loads cleanly without parser errors.

了解附加组件

If your prompt needs skript-gui, skript-yaml, skript-reflect or skript-placeholders, the generator declares them as comments at the top so you know what to install.

无需编译

Skript is interpreted at runtime. Drop the .sk in /plugins/Skript/scripts/, run /sk reload, done. No Maven, no Gradle, no Java toolchain.

GUIs & scoreboards

Inventory menus, action bars, sidebar scoreboards, chat books, describe the UX and the AI writes it.

规范的变量

Per-player or global, persistent or in-memory, with the right scope. The generator picks the appropriate pattern.

通过聊天迭代

"Add a cooldown", "reduce the heal to 1 heart", "only on weekends". Just keep chatting; Codexe edits the same script.

Skript 提示词示例

从小小的便利性 Skript,到完整的服务器功能,什么都行。下面是一些可以直接粘贴的真实提示词:

加入时每日套装

“On join, give a custom kit (iron sword, 32 steak, full leather) once every 12 hours per player. Show a remaining cooldown if not yet ready.”

PvP 竞技场排队

“/queue command sends the player to a PvP arena (warp 'arena1'), gives kit, scoreboard with kills/deaths. /leave returns them to spawn.”

通过书本获得自定义附魔

“Right-clicking a book named 'Lifesteal Tome' on a sword adds the lore 'Lifesteal I' and makes hits with that sword heal 0.5 hearts.”

防蹲守

“If a player stays within 10 blocks of their /home for more than 60 seconds while in the warzone world, they take 2 hearts of damage and get a warning message.”

Skript 生成器常见问题

Codexe 使用最新的 Skript 语法吗?

+

Yes. The generator writes against current Skript releases, modern event syntax, on script load handlers, sections, type aliases. No legacy 1.x oddities.

我需要 Skript 附加组件吗(skript-yaml、skript-reflect 等)?

+

Only if your prompt requires features outside vanilla Skript (e.g. NBT manipulation, advanced GUIs). Codexe lists the required add-ons at the top of the .sk file as a comment so you know what to install.

能写界面和计分板吗?

+

Yes. GUIs (with skript-gui add-on if needed), per-player scoreboards, action bars, hotbar messages, custom inventories, all describable in plain English.

每个玩家的变量、持久化存储?

+

Yes. Skript variables, scoped or global, with proper save/load. The generator picks the right pattern (script-local, global with file persistence, etc.) for what you describe.

我能继续迭代这个脚本吗?

+

Yes, just keep chatting. "Add a cooldown", "increase the radius to 8 blocks", "hook /reload". Codexe edits the .sk file in place.

免费吗?

+

Free tier refills 50K daily tokens, more than enough for most Skripts. Bigger systems benefit from Pro/Business plans, see /pricing.

.sk 文件放在哪里?

+

Drop it in /plugins/Skript/scripts/ on your server and run /sk reload . Codexe explains this in the README it generates next to the script.

Outgrown Skript, or need something outside the scripting layer? Codexe also generates:

Codexe 如何构建和检查这些项目、需求里该写什么,以及常见问题:Skript scripts 指南。

准备好做新的 SKRIPT 了吗?

免费版每天补充 50K token,足够大多数单一功能的 Skript。

开始编写
Skript 生成器:AI 编写的 Minecraft 服务器 .sk 脚本 | Codexe