개인 자료란 (JE)

  서버 커뮤니티

Profile 초히리 대표칭호 없음
Profile

질문하기 스크립트

마인크래프트 구역별 스코어보드 질문

2024.02.02 조회 수 37 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 

스코어보드에 멀티버스코어나 월드가드의 리전을 이용해서 월드나 구역을 이동하면 스코어보드에서도

서버: ~~로 바꾸고싶은데 스크립트에 뭐라고 적어야할까요??




16개의 댓글

windy_wind
2024.02.04

%player%'s world로 world값을 가져올 수 있습니다 (%player%: 변수 타입이 player라는 뜻)
ex)

command /world:
 trigger:
  send "당신의 월드: %player's world%" to player
초히리
2024.02.05
@windy_wind

스코어보드에 world라는곳에 있다면 스코어보드에서 맵: 로비 이런식으로 바뀌게 하는법은 없나요??

windy_wind
2024.02.05
@초히리

당연히 되죠

#skbee 버전의 스코어보드
if scoreboard of player is off:
@toggle scoreboards of player on

if player's world is world "world":
@set title of player's scoreboard to "당신의 월드: 오버월드"

else if player's world is world "custom_world":
@set title of player's scoreboard to "당신의 월드: 커스텀월드"

이런식으로 할 수 있겠죠?

windy_wind
2024.02.05
@windy_wind

@는 텝입니다(빈칸)

자꾸 쓰는데 오류나서..^^;;

@windy_wind

이렇게 적으니까 오류나면서 서버가 꺼지는데 이렇게 적는게 아닌가욥?

windy_wind
2024.02.05
@초히리

제발 while 쓰지마세요
while은 별도의 stop this loop가 없으면 서버 터트기 딱 좋은 놈입니다 (while은 고수용)
차라리 every 1 tick에서 loop all players을 이용하세요

every 1 tick:
@loop all players:

@if scoreboard of loop-player is off:
@@toggle scoreboards of loop-player on

@if loop-player's world is world "world":
@@set title of loop-player's scoreboard to "당신의 월드: 오버월드"

else if loop-player's world is world "custom_world":
@@set title of loop-player's scoreboard to "당신의 월드: 커스텀월드"

#참고: loop-player와 player는 다릅니다
#참고: loop-player는 loop되는 player를 말합니다
초히리
2024.02.05
@windy_wind

every 1 tick을 쓰면 계속 깜빡거리고 타이틀은 적용되는데 라인부터<##~~~~~~>색깔코드가 적용이 안되더라구요....

windy_wind
2024.02.05
@초히리

그거는 clear scoreboard of loop-player를 every 1 tick에 사용한 것 때문에 그런걸로 보입니다.

따라서 clear scoreboard of loop-player를 1초마다 클리어 해주거나 쓰지말거나

특정 부분에서만 clear 해주면 될 것 같습니다.

 

색깔코드 적용 안되는 것도 너무 빨리 clear해서 등록할 시간이 없는 것으로 추정됩니다.

초히리
2024.02.05
@windy_wind

clear랑 wipe랑 똑같은건가요??

windy_wind
2024.02.05
@초히리

https://skripthub.net/docs/?id=99

이게 맞다면 맞겠죠?

근데 저는 skrayfall보단 skbee 스코어보드 문구 쓰시는걸 추천

@windy_wind

적용 안되네요..

windy_wind
2024.02.06
@초히리

뭐가 적용이 안되는지 알려주십쇼

초히리
2024.02.06
@windy_wind

"아아"에 원래 반짝이는 텍스트이펙트가 입혀저야하는데 안입혀지네요

windy_wind
2024.02.07
@초히리

반짝이는 텍스트이펙트가 뭔가요? 코드 보여주실 수 있으실까용?

초히리
2024.02.07
@windy_wind

리소스팩을 끼면 #f0f020이런식으로 코드를 쓰면 텍스트가 움직인다거나 반짝인다거나 그래요

windy_wind
2024.02.07
@초히리

그건.. 리팩 문제 아닐까요? 한번 리팩 없이 해보세요

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1