무엇을 할 수 있나요
리소스팩 · 아머스탠드 꼼수 없이, Crux 클라이언트가 직접 그려 줍니다. 렉이 적고 패킷도 적습니다.
필요한 것
- 접속하자마자(예: Skript on join) 창 · 알림을 보내도 됩니다 — Crux 사용자인지 확인될 때까지(보통 1~2초, 최대 5초) 기다렸다가 Crux 화면으로, 아니면 채팅으로 보냅니다.
- Crux 공식 안내를 흉내 내거나 계정 · 결제 정보를 묻는 데 쓰면 운영 정책 위반입니다. 서버가 띄운 창에는 서버 주소가, 알림에는 [서버] 가 붙습니다.
Skript 로 쓰기
Skript(2.10 이상, 서버 Java 21 이상)가 있으면 crux 구문이 자동으로 생깁니다. Crux IDE 의 스크립트 탭에서 바로 써 보세요.
command /cruxtest:
trigger:
crux toast "Crux" with text "Hello" to player
crux hud "Gold: 100" with id "gold" to player
crux subtitle "The golem awakens" to player
crux floating text "-12" at location of player to player
crux telegraph circle at location of player with radius 4 for 1500 to player
crux shake player with strength 0.5
on crux key:
if event-string is "cast":
make player execute command "/spell fireball"
on crux choice:
send "you picked %event-string%" to player
# 서버 분석: 이 단계에 도달한 사람 수를 셈 (런처 서버 창 → 서버 API → 서버 분석)
crux track "quest_1_done" for playerMythicMobs 로 쓰기
그 서버 버전을 지원하는 MythicMobs 가 있으면 메커닉이 자동으로 등록됩니다 — 몹 스킬에 그대로 넣습니다.
Skills:
- cruxmodel{model=boss_golem;replace=true;scale=1.2} @self ~onSpawn
- cruxstate{state=attack} @self ~onAttack
- cruxtelegraph{shape=circle;r=6;ms=1500;color=#ff3030} @selflocation
- cruxeffect{type=burst;r=3;color=#ffaa00;n=60} @selflocation
- cruxtext{text="<skill.var.damage>";color=#ffdd55} @target
- cruxbar{text="<caster.name> Lv.30"} @self ~onDamaged
- cruxshake{s=0.6;ticks=15} @PIR{r=20}
- cruxsubtitle{text="The golem awakens";ms=3000} @PIR{r=40}- MythicMobs 가 서버 버전을 지원하지 않아 켜지지 않으면 Crux 가 로그에 알려 주고 메커닉을 등록하지 않습니다.
BetonQuest · RPG 플러그인과 같이 쓰기
몹에 내 모델 씌우기
- 애니메이션 스튜디오에서 모델을 만들고 변환합니다 (Crux 모델 json + png).
- json 과 png 를 서버의 plugins/Crux/models 폴더에 넣으면 파일 이름으로 자동 등록됩니다 (애니메이션 스튜디오의 "서버에 넣기" 가 이 폴더로 복사하고, 켜진 서버는 바로 다시 읽음). 플러그인 코드라면 registerAsset.
- MythicMobs 의 cruxmodel 이나 Skript 의 crux model 로 몹에 씌웁니다.
- 모든 사람에게 보이게 하려면 entityModelAll — 새로 들어오는 사람에게도 보내고, 몹이 죽으면 지웁니다.
화면 스타일 (서버 분위기에 맞추기)
이 서버에서 Crux 대화창 · 메뉴 · 글 입력 · 큰 창 · 토스트 · HUD · 스킬 바가 보이는 모양을 고릅니다. 저장하면 켜져 있는 서버의 Crux 사용자에게 2초 안에 바로 바뀝니다.
# Skript — 이 사람에게만 다른 스타일 ("" = 서버 기본으로)
crux style "fantasy grid=right accent=#C9A227" to player
crux style "" to player
// 플러그인 코드 (API 6)
CruxApi api = CruxApi.get();
api.defaultStyle(CruxStyle.parse("future accent=#2FB5D6")); // 서버 전체 (config "ui" 위에)
api.style(player.getUniqueId(), CruxStyle.parse("vanilla grid=top")); // 이 사람만
api.dialog(player.getUniqueId(), dialog, CruxStyle.parse("fantasy dialog=top")); // 이 창만- 우선순위: 창 하나의 스타일 > 사람별 style > defaultStyle > config "ui" > Crux 기본. 옛 Crux 클라이언트는 스타일을 무시하고 기본 모양으로 보여 줍니다.
코드 없이 쓰는 서버 API (기능 · 아이템 · 채팅)
플러그인 · 스크립트 없이 런처에서 고르기만 하면 됩니다. 저장하면 켜진 서버는 2초 안에 다시 읽습니다. 명령의 {player} 는 그 사람 이름, console: 로 시작하면 콘솔이 실행합니다 (플레이어 권한이 없는 명령은 console: 로).
# Skript (API 8)
crux sound "boss_roar" to player
crux waypoint "오래된 우물" at location(10, 64, -30) with id "well" to player
crux highlight event-entity with color "#FFD24A" to player
// 플러그인 코드
api.tooltips(uuid, CruxRpg.Tooltips.of(true));
api.chatTabs(uuid, List.of(new CruxRpg.ChatTab("party", "파티", "^\[파티\]", "/p {msg}")));
api.areFriends(a, b).thenAccept(yes -> { if (yes) party.invite(a, b); });- 아이템에 희귀도 붙이기 (Paper): meta.getPersistentDataContainer().set(new NamespacedKey("crux", "rarity"), PersistentDataType.STRING, "legendary") — 또는 /give … [custom_data={PublicBukkitValues:{"crux:rarity":"legendary"}}]
개발자라면
Crux-API jar 를 compileOnly 로 넣고 plugin.yml 에 softdepend: [Crux], 코드에서 CruxApi.get(). Bukkit 이벤트(CruxEvents.Join · Key · Choice · Text · WindowClick · Close)로도 받을 수 있습니다. 모든 함수 표와 예제는 Crux Docs 에 있습니다.
프록시 (Velocity · BungeeCord)
프록시에 Crux 플러그인을 넣으면 네트워크 전체에 토스트 · 알림을 보낼 수 있습니다. 명령: /crux toast <이름|*> [제목 |] <글> (권한 crux.notice). 다른 프록시 플러그인은 CruxNetApi.get().toast · notify · toastAll · notifyAll — Crux 가 아닌 사람에게는 전체 보내기일 때 채팅 한 줄로 갑니다.
CRUX