개인 자료란 (JE)

  서버 커뮤니티

Profile 심심할때코딩함 대표칭호 없음
Profile

이해도 초보자 
게임버전 (JE) 1.19.1 
게임버전 (BE) 관련없음 

제목 그대로 플레이어마다 가지고 있는 변수 중에서 1을 포함하였다면 그 변수를 삭제하는 스크립트 구문을 어떻게 짜야 할지 도저히 감이 잡히지가 않네요.


command /삭제 [<integer>]:

@trigger:

@@if arg 1 is not set:

@@@send "&c삭제할 변수 내용을 입력해 주세요" to player

@@@send "&c/삭제 <변수내용>" to player

@@else:

@@@send "&a변수가 삭제되었습니다" to player

@@@if {1::"uuid of all player"} contain 1

@@@delete {1::"uuid of all player"}


이렇게 해야하나요?




2개의 댓글

OuO_Chaton
2024.08.01

코드를 어떤 식으로 짜려는지 정확히 모르겠네요. 변수명과 코드 전체를 보여주시면 빠르게 답이 나올 것 같습니다.

command /팀원추가 [] []:

trigger:

if player is op:

if arg 1 is not set:

send "&c팀원을 추가할 팀 번호를 정해주세요" to player

send "&c/팀원추가 <팀 번호> <플레이어명>" to player

else:

if arg 2 is not set:

send "&c추가할 플레이어를 정해주세요" to player

send "&c/팀원추가 <팀 이름> <플레이어명>" to player

else:

execute console command "team join %arg 1% %arg 2%"

set {team::%uuid of arg 2%} to arg 1

send "&a%arg 2%님이 %arg 1%번 팀에 가입했습니다!" to player

else:

send "&c이 명령어는 OP만 사용 가능합니다" to player

command /팀원삭제 []:

trigger:

if player is op:

if arg 1 is not set:

send "&c삭제할 플레이어를 정해주세요" to player

send "&c/팀원삭제 <플레이어명>" to player

else:

execute console command "team leave %arg 1%"

delete {team::%uuid of arg 1%}

else:

send "&c이 명령어는 OP만 사용 가능합니다" to player

command /팀삭제 []:

trigger:

if arg 1 is not set:

send "&c삭제할 팀 번호를 입력해 주세요" to player

send "&c/팀삭제 <팀 번호>" to player

else:

execute console command "team remove %arg 1%"

send "&a%arg 1%번 팀이 성공적으로 삭제되었습니다!" to player

여기에서 팀 삭제를 했을때 그 팀에 소속되어있는 플레이어들의 team 변수를 삭제하고싶어요

뉴스 및 창작물
/files/thumbnails/411/194/004/262x150.crop.jpg?20260606030535

이벤트

🎮 2026 군산 아마추어 e스포츠대회 참가자 모집! 🎮

MineStar

2026-06-04

0

사진이 없습니다.

소식

모장 인증서버 다운 5

명이

2026-06-03

0

/files/thumbnails/535/193/004/262x150.crop.jpg?20260601150848

건축

세탁소 컨텐츠 세트장 2

팀뉴일리시

2026-06-01

2

/files/thumbnails/340/187/004/262x150.crop.jpg?20260505002707

아티클

AI 검사기 디지털 시대에서 Minecraft 콘텐츠 진정성 향상

hicoyo

2026-05-05

0

사진이 없습니다.

아티클

초보자가 반드시 피해야 할 흔한 마인크래프트 실수들

hyunwooo

2026-05-04

2