.sk · Hiểu các add-on Skript

TRÌNH TẠO SKRIPT

Mô tả một Skript bằng ngôn ngữ thường ngày. Codexe viết tệp .sk với cú pháp hiện hành, sự kiện, biến, GUI, bảng điểm. Không Java, không biên dịch, thả vào và reload.

Vì sao nên dùng trình tạo Skript AI

Cú pháp Skript hiện đại

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

Hiểu add-on

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.

Không cần biên dịch

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.

Biến làm đúng cách

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

Chỉnh sửa qua trò chuyện

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

Prompt Skript mẫu

Từ một Skript tiện ích nhỏ đến một tính năng máy chủ hoàn chỉnh. Một số prompt thật bạn có thể dán:

Kit hằng ngày khi vào

“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.”

Hàng chờ đấu trường PvP

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

Phù phép tùy chỉnh qua sách

“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.”

Chống cắm trại

“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.”

Câu hỏi thường gặp về trình tạo Skript

Codexe có dùng cú pháp Skript mới nhất không?

+

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

Tôi có cần add-on Skript nào (skript-yaml, skript-reflect, ...) không?

+

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.

Nó có viết được GUI và bảng điểm không?

+

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

Biến theo từng người chơi, lưu trữ lâu dài?

+

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.

Tôi có thể chỉnh sửa script qua nhiều lượt không?

+

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

Có miễn phí không?

+

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

Tệp .sk để ở đâu?

+

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:

Cách Codexe xây dựng và kiểm tra các dự án này, nên ghi gì trong yêu cầu và các vấn đề thường gặp: hướng dẫn Skript scripts.

SẴN SÀNG CHO SKRIPT MỚI?

Gói Free nạp lại 50K token mỗi ngày, đủ cho hầu hết Skript một tính năng.

BẮT ĐẦU VIẾT
Trình tạo Skript – script .sk do AI viết cho máy chủ Minecraft | Codexe