개인 자료란 (JE)

  서버 커뮤니티

Profile sugntlna 대표칭호 없음

sugntlna 94c94c97e78e49b991177e3dc203b6a8

Profile

질문하기 스크립트

if player has 1 of nether star...

2023.05.29 조회 수 53 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.4 
게임버전 (BE) 관련없음 
스크립트 버전 2.7.0-beta2 

if player has 1 nether star:

    send "%player%님이 별을 소지중입니다!" to player

플레이어가 별을 가지고있는걸 계속 감지해서 소지자를 알려주고 싶은데 작동이 안되네요.

네더의 별하고 이름까지 같이 감지해주는 구문 없나요?  1초마다 반복적으로 작동해야해요.

on tool change:

로 하면 아이템을 들고 있는 상태여야해서 불편하더라구요.

1초마다 반복해서 loop를 해주면 if player has 1 nether star:

가 문제가 있더라고요.

every 15 ticks:

    loop all players:

    if (loop붙이면 오류생김, 안붙여도 생김)player has 1 of nether star:

        broadcast "[스타캐치] %player%님이 별을 소지중입니다!"

        execute console command "/effect give %loop-player% glowing 1 9"

3개의 댓글

sugntlna
2023.05.29

if player has 1 of nether star:도 안되네요 인벤토리 감지보니깐 if player's inventory contains "%{_1}% of %{_nether star}%" parsed as itemtype:요런게 있던데 작동을 안하네요.

sugntlna
2023.05.29

every 1 seconds:

loop all players:

if loop-player has 1 of nether star

execute console command "/tellraw @e[team=mini-star-1] {""text"":""%loop-player%님이 별을 소지중입니다!""}"

execute console command "/effect give %loop-player% glowing 1 9"

뭐가 문제일까요..

sugntlna
2023.05.29
@sugntlna

fi loop-player has 1 of nether star가 오류라고 뜨는데..

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

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

학교가기싫다

2024-05-08

0

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

업데이트

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

학교가기싫다

2024-05-06

0

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

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/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