개인 자료란 (JE)

  서버 커뮤니티

Profile 초히리 대표칭호 없음
Profile

질문하기 스크립트

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

2024.02.02 조회 수 35 추천 수 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/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1