새로 오신 분들은 길라잡이를 꼭 읽어주세요.

문서의 정리·작성번역을 도와주시면 마인크래프트 위키에 큰 힘이 됩니다.

명령어

Minecraft Wiki
이동: 둘러보기, 검색

명령어 는 어떠한 글자로 된 문자열을 입력함으로써 실행되는 고급 기능이다.

용도[편집 | 원본 편집]

보통 마인크래프트에서 명령어는 T키(기본)나 /키로 열 수 있는 마인크래프트 채팅창을 통해 입력되어졌다. /키는 채팅창을 연 다음 명령어를 입력할 때 앞에 붙는 슬래쉬(/)를 자동으로 붙여주어 유용한 단축키로 사용된다. 명령어를 입력하는 도중 Tab ⇆키를 누르면 사용 가능한 명령어나 인수(引數)를 띄워준다.

명령어는 멀티플레이 서버 콘솔에도 입력할 수 있는데, 채팅창과는 달리 /가 있으면 명령이 수행되지 않는다. 명령 블럭에서는 /가 있으면 명령이 수행되긴 하지만, 필요하지는 않다. 커맨드 블럭에 쓰이는 명령어는 명령어 뒤에 인수가 필요할 때가 있는데, 보통 플레이어의 닉네임이 쓰인다.

대다수의 명령어들은 다음과 같은 상황에서만 수행된다.

  • 마인크래프트 멀티플레이 서버에서, 관리자(operator)나 명령 블럭에 의해
  • 멀티플레이에서 치트가 활성화된 LAN 게임 안에서나 서버 관리자에 의해
  • 싱글플레이에서 세계를 생성할 때 치트가 활성화되어 있을 때(치트 활성화는 '고급 세계 옵션...'을 통해 설정이 가능하다)

소수의 채팅 명령어들은 치트가 비활성화된 싱글플레이에 게임 내에서도 사용 가능하다.

읽어보세요: 생성할 때 치트가 비활성화된 싱글플레이 게임에서는 그 세계를 LAN서버로 열어 플레이할 때 일시적으로 활성화될 수 있다( Esc → 'LAN 서버 열기' → '치트 허용: 꺼짐' 버튼을 눌러 '치트 허용: 켜짐'으로 바꿈 → 'LAN 세계 시작' ). 꼭 다른 플레이어들이 서버에 들어와야 할 필요는 없다. 영구적이지는 않지만, 게임을 나갈 때까지 명령어를 사용할 수 있고 명령어를 통해 만든 것들(아이템 스폰 등)을 세계와 함께 저장할 수 있다. 세계를 플레이할 때마다 이 방법을 쓸 수 있다. LAN서버가 열리면 게임 메뉴를 열 때 작동되던 게임 일시정지 기능이 없어지게 되므로 유의해야 한다. 즉, LAN서버에서 게임 메뉴를 열면 도중에 몹들의 공격을 받는 등 플레이어 조종을 못하는 위험이 있기 때문이다. 따라서 LAN서버에서는 게임 메뉴를 열기 전에 안전한 곳으로 가거나, 정 안심이 되지 않으면 세계를 다시 불러와야 한다. 세계를 다시 불러오면 LAN 서버가 꺼지므로 게임 일시정지 기능이 살아난다.

목표 선정 인자[편집 | 원본 편집]

플레이어가 인수로 지정될 수 있는 대다수의 명령어들은, 플레이어 이름(닉네임)으로 인수를 지정하는 것 외에 해당 조건을 만족시키는 한 명 또는 여러 명의 플레이어들을 "목표 선정"하여 인수로 지정할 수 있다. 조건을 통해 플레이어들을 목표 선정하려면 하나의 목표 선정 인자 변수를 선택하는데, 목표 선정 인자 인수를 설정하여 조건을 만족시키도록 수정해야 하는 선택적인 절차가 뒤따를 수 있다.

예를 들어, Red팀에 있는 모든 플레이어들의 게임 모드를 크리에이티브 모드로 바꾸려면, 플레이어들의 이름(닉네임)을 입력하는 것 대신에 다음과 같이 입력할 수도 있다. /gamemode creative @a[team=Red]

목표 선정 인자 변수[편집 | 원본 편집]

목표 선정 인자 변수 요약
변수 기능
@p 가장 가까운 플레이어
@r 무작위 플레이어
@a 모든 플레이어
@e 모든 개체

목표 선정 인자 변수는 설정할 목표의 폭넓은 범주를 찾는다. 다음 세 가지의 변수가 있다.

@p
목표로 가장 가까운 플레이어를 선정한다.
@r
목표로 무작위의 플레이어를 선정한다.
@a
목표로 모든 플레이어들을 선정한다.

목표 선정 인자 변수들은 서로 작용할 수도 있고, 더 나아가 목표 선정 인자 인수와 함께 범위가 수정될 수도 있다.

다음은 스냅샷 버전에서는 발견되었지만 풀 버전에서는 아직 발견되지 않은 목표 선정 인자 변수이다.

@e
목표로 블럭 외의 모든 요소(엔티티)를 선정한다(플레이어 포함).

목표 선정 인자 인수[편집 | 원본 편집]

목표 선정 인자 인수 요약
위치
인수 설정 기준
x, y, z 좌표
r, rm 반지름 (최대, 최소)
dx, dy, dz 공간 범위
점수판
score_이름 최대 점수
score_이름_min 최소 점수
tag 점수판 태그
team 팀 이름
특성
m 게임모드
c
l, lm 경험치 (최대, 최소)
name 이름
rx, rxm 수직 회전 각도 (최대, 최소)
ry, rym 수평 회전 각도 (최대, 최소)
type 타입

목표 선정 인자 변수를 쓴 다음, 목표 선정 인자 인수를 써서 선택된 일련의 목표들을 수정할 수 있다. @a 또는 @e를 썼을 때, 그에 따른 인수는 모든 목표물 중에 특정한 목표만을 추려내어 그 수를 줄인다. @p 또는 @r을 썼을 때, 그에 따른 인수는 모든 목표물 중에 가까이 있거나 무작위 플레이어를 선정하고 추려내어 그 수를 줄인다.

아래 보기에서 목표 선정 인자 변수 앞에 있는 꺾쇠괄호 안에 쉼표(',')로 분리된 곳에 인수를 입력해 넣으면 된다.

@<목표 선정 인자 변수>[<인수>=<>,<인수>=<>,…].

등호('=')나 쉼표(',') 주변에는 띄어쓰기를 할 수 없으며, 오직 쉼표(',')만 인수와 인수 사이를 구별하게 한다.

좌표로 목표 선정하기
[x=X좌표,y=Y좌표,z=Z좌표]
그 좌표에 있는 목표물만 선정한다(분수 제외).
반지름으로 목표 선정하기
[r=반지름,rm=반지름]
명령이 수행된 곳으로부터 r에 주어진 반지름만큼의 거리 안에, rm에 주어진 반지름만큼의 거리 밖에 있는 목표물만을 선정한다. r은 반지름의 최댓값을, rm은 반지름의 최솟값을 가진다. 두 개 다 사용하지 않고도 하나만 사용이 가능한데, 이 경우에 각각 r반지름 안에 있는 목표물을, rm반지름 밖에 있는 목표물을 선정한다.
좌표와 반지름이 둘 다 주어졌을 경우에는 명령이 수행된 곳이 아닌 주어진 좌표가 반지름의 시작점이 된다. 엄청나게 먼 좌표와 엄청나게 큰 반지름을 사용하면 이때 만들어지는 원의 호(弧)가 거의 직선에 가깝게 만들어진다.
숫자로 구성된 다수의 인수값들이 (네 개의 수까지) 인수가 지정되지 않은 채 입력되면, 그 네 개의 수는 순서대로 x좌표, y좌표, z좌표, 반지름으로 인수가 자동으로 지정된다. 즉, 다음 두 명령어는 서로 같다.
/gamemode creative @a[10,20,30,4]
/gamemode creative @a[x=10,y=20,z=30,r=4]
게임모드로 목표 선정하기
[m=게임모드]
특정 게임모드인 목표물만을 선정한다. 다음은 게임모드에 입력 가능한 값들이다.
  • -1: 모든 게임모드
  • 0: 크리에이티브 모드
  • 1: 서바이벌 모드
  • 2: 어드벤쳐 모드
  • 3: 관전 모드
수로 목표 선정하기
[c=]
특정 수의 목표물만을 선정한다. @p 또는 @r을 사용할 경우, 이 인수는 기본적으로 값이 1이 된다. 따라서 이보다 더 높은 수를 입력하면 목표물을 선정하여 그 값을 반환하는 횟수를 늘린다. 음수를 입력할 경우 명령 수행을 반대로 한다.(예를 들어, @p[c=-3]을 입력하면 가장 멀리 있는 세 목표물들을 반환한다). 좌표를 제시하지 않고 입력할 경우에는 생성된 순서대로 목표를 선정한다. (예를 들어, c=1을 입력하면 가장 먼저 생성된 목표물을 선정하고, c=-3을 입력하면 가장 나중에 생성된 목표물 세 개를 선정한다.
경험치로 목표 선정하기
[l=경험치]
경험치보다 적거나 같은 양의 레벨를 가진 목표물만을 선정한다.
[lm=경험치]
경험치보다 많거나 같은 양의 레벨를 가진 목표물만을 선정한다.
점수로 목표 선정하기
[score_이름=점수]
목표 이름의 점수가 점수보다 높지 않은 목표물만을 선정한다.
[score_이름_min=점수]
목표 이름의 점수가 점수보다 높은 목표물만을 선정한다.
팀으로 목표 선정하기
[team=]
에 있는 목표물만을 선정한다.
[team=!]
에 있지 않은 목표물만을 선정한다.
이름으로 목표 선정하기
[name=이름]
닉네임이 이름인 목표물만을 선정한다..
[name=!이름]
닉네임이 이름아닌 목표물만을 선정한다.
공간 범위로 목표 선정하기
[dx=DX,dy=DY,dz=DZ]
커맨드 실행 위치에서 X축으로(동쪽으로) DX만큼, Y축으로(위쪽으로) DY만큼, Z축으로(남쪽으로) DZ만큼의 공간 안의 목표물만을 선정한다. 모든 수치는 양수여야하며 x, y, 그리고 z 로 특정 좌표를 지정하면 커맨드 실행 위치가 아닌 지정된 좌표를 북서쪽 아래 코너로 하여 공간를 산정한다.(dx, dy, 그리고 dz는 여전히 위치로부터의 거리를 나타내며 특정 좌표를 지정하는 것이 아니다.
반지름 범위 선정과 조합이 가능하며, 이 경우 두 범위가 겹치는 범위만을 선정한다. (공간의 북서쪽 아래부터 지정된 반지름 범위를 포함하며, 지정된 공간의 바깥쪽은 포함하지 않는다.)
수직 회전 각도로 목표 선정하기
[rx=RX] — 수직 회전 각도가 RX 이하인 목표만 선정한다.
[rxm=RXM] — 수직 회전 각도가 RXM 이상인 목표만 선정한다.
수직 회전 각도의 범위는 수직으로 위를 볼 때 -90.0부터 수직으로 아래를 볼 때 90.0까지이다(따라서 각도가 아래를 향할수록 수치는 증가한다.).
수평 회전 각도로 목표 선정하기
[ry=RY] — 수평 회전 각도가 RY 이하인 목표만 선정한다.
[rym=RYM] — 수평 회전 각도가 RYM 이상인 목표만 선정한다.
수평 회전 각도의 범위는 -180.0 (북쪽)부터 -90.0 (동쪽), to 0.0 (남쪽), 90.0 (서쪽)를 거쳐 다시 -180.0이 되기 직전 179.9까지이다 (따라서 수평 각도는 오른쪽으로 회전, 다시 말해 위에서 볼 때 시계 방향으로 회전하면 증가한다.).
타입으로 목표 선정하기
[type=타입] — 오직 지정된 타입의 개체만 선정한다.
[type=!타입] — 오직 지정된 타입 이외의 개체만 선정한다.
타입은 반드시 개체의 타입을 인식할 수 있는 내부적인 개체 ID이어야 한다 (예를 들어, 크리퍼를 지정하려면 creeper, 광산 수레를 지정하려면 minecart, 점화된 TNT를 지정하려면 tnt, 등.). 개체 ID는 대소문자를 구별하며 유효하지 않은 개체 ID는 명령어가 작동하지 않게 만든다.
@r와 함께 사용하면, 오로지 플레이어만 지정하던 것이 다른 엔티티도 포함하게 된다.

명령어 요약[편집 | 원본 편집]

명령어 요약
명령어 설명 Op 전용(Op 레벨) MP 전용 블록 개체 플레이어 세계
/achievement 플레이어에게 업적을 달성시킨다. 2 플레이어
/ban 플레이어를 밴 리스트에 추가한다. 3 MP 플레이어
/ban-ip 플레이어의 IP를 밴 리스트에 추가한다. 3 MP 플레이어
/banlist 밴 리스트를 표시한다. 3 MP 플레이어
/blockdata 블록의 데이터 태그를 수정한다. 2 블록
/clear 플레이어의 보관함을 비운다. 2 플레이어
/clone 한 장소의 블럭들을 다른 장소로 복사한다. 2 블록
/debug 디버그 모드를 시작 혹은 중단한다. 3
/defaultgamemode 게임 모드의 기본값을 설정한다. 3 세계
/deop 플레이어로부터 오퍼레이터 권한을 제거한다. 3 MP 플레이어
/difficulty 난이도를 설정한다. 2 플레이어
/effect 효과를 부여하거나 제거한다. 2 개체 플레이어
/enchant 플레이어의 아이템에 인챈트한다. 2 플레이어
/entitydata 개체의 데이터 태그를 수정한다. 2 개체
/execute 다른 명령어를 실행한다. 2
/fill 지정된 범위를 지정된 블럭으로 채운다. 2 블록
/gamemode 플레이어의 게임 모드를 변경한다. 2 플레이어
/gamerule 게임 규칙을 설정하거나 변경한다 2 세계
/give 플레이어에게 아이템을 준다. 2 플레이어
/help 명령어 도움말을 표시한다 0
/kick 플레이어를 서버에서 강제 퇴장시킨다. 3 MP 플레이어
/kill 개체들을 죽인다 2 개체 플레이어
/list 서버의 플레이어 리스트를 표시한다. 0 MP 플레이어
/me 자신한태 메시지를 보낸다. 0 플레이어
/op 플레이어에게 오피 권한을 부여한다. 3 MP 플레이어
/pardon 플레이어를 벤 목록에서 지운다. 3 MP 플레이어
/particle 입자를 생성한다. 2 플레이어
/playsound 소리를 재생한다. 2 플레이어
/publish 싱글 플레이 세계를 로컬 네트워크에 개방한다. 4 세계
/replaceitem 소지품창의 아이템을 치환한다. 2 블록 개체 플레이어
/save-all 디스크에 서버를 저장한다. 4 MP 세계
/save-off 자동 서버 저장을 끈다. 4 MP 세계
/save-on 자동 서버 저장을 켠다. 4 MP 세계
/say 다수의 플레이어에게 메시지를 표시한다. 2
/scoreboard 목표, 플레이어, 팀을 설정한다. 2 개체 플레이어
/seed 세계 시드를 표시한다. 2 세계
/setblock 특정 블록을 다른 블록으로 교체한다. 2 블록
/setidletimeout 오랫동안 정지한 플레이어를 강제 퇴장시킨다. 3 MP 플레이어
/setworldspawn 세계 스폰 지점을 설정한다. 2
/spawnpoint 플레이어의 스폰 지점을 설정한다. 2 플레이어
/spreadplayers 개체를 팀별로 산개시킨다. 2 개체 플레이어
/stats Update objectives from command results. 2 블록 개체 플레이어
/stop 서버를 중지한다. 4 MP 세계
/summon 개체를 소환한다 2 개체
/tell 다른 플레이어에게 프라이빗 메시지를 보낸다. 0 플레이어
/tellraw 플레이어에게 JSON 메시지를 표시한다. 2 플레이어
/testfor Counts entities matching specified conditions. 2 개체 플레이어
/testforblock 특정 위치에 있는 블록을 검사한다. 2 블록
/testforblocks 두 지역의 블럭들이 일치하는지 검사한다. 2 블록
/time 세계의 시간을 바꾸거나 확인한다. 2 세계
/title 화면 제목을 편집한다. 2 플레이어
/toggledownfall 날씨를 바꾼다. 2 세계
/tp 개체를 순간이동시킨다. 2 개체 플레이어
/trigger Sets a trigger to be activated. 0 플레이어
/weather 날씨를 설정한다. 2 세계
/whitelist 서버의 화이트리스트를 편집한다. 3 MP 플레이어
/worldborder 세계 경계선을 편집한다. 2 세계
/xp 플레이어의 경험치를 추가하거나 제거한다. 2 플레이어

명령어 목록 (이 문서는 편집 중임.)[편집 | 원본 편집]

구문
이런 글자라면 이런 뜻임.
일반 글자 표시된 그대로의 값을 입력한다.
기울여진 글자 알맞은 값으로 변경한다.
<삼각형 괄호> 필수로 입력해야 한다.
[사각형 괄호] 꼭 입력하지 않아도 된다.
x|y

표시된 값들 중, 하나를 선택한다.

값들은 | 로 구분된다.

값1 … 값들을 띄어쓰기로 구분할 수 있다.
성공 조건 (편집하지 않은 문서)
A command's Success Conditions must be met in order for the game to consider the command "successful". This is used to determine a variety of things, such as the output of a[[[레드스톤 (동음이의)|레드스톤 비교기]]]feeding from[block|command block]with a command. Note that not all "successful" commands actually do something, and not all "failed" commands fail to do something useful.
명령어 제한
명령어를 사용할 수 있는 사람과, 어떠한 상황에서 사용이 가능한지 설명한다.
  • None: 누구나 사용할 수 있는 명령어이다. 누구나 사용할 수 있는 명령어 목록은 /help ,/me ,/tell ,/trigger 이다.
  • 관리자(OP): 관리자만 사용할 수 있거나, 싱글플레이에서 "치트 허용" 상태에서만 사용할 수 있다.
  • 멀티플레이: 멀티플레이에서만 사용할 수 있는 명령어 입니다. 사용할 수 있는 명령어 목록은 /ban ,/ban-ip ,/banlist ,/deop ,/kick ,/list ,/op ,/pardon ,/pardon-ip ,/save-all ,/save-off ,/save-on ,/setidletimeout ,/stop ,/whitelist 입니다.
멀티플레이에서는 타겟셀렉터를 지원하지 않는다.
멀티플레이 명령어들은 명령 블록에서 사용할 수 없다.
다수의 멀티플레이 명령어들은 서버에 들어오지 않아도 작동한다.
  • 명령 블록 사용불가: 명령 블록에서 사용할 수 없는 명령어이다.


achievement[편집 | 원본 편집]

명령어/infobox

플레이어에게 업적을 주거나 통계를 증가시킵니다.

문법
achievement <give|take> <stat_name|*> [player]
인수
stat_name
Specifies which achievement or statistic to modify. Must be one of the following:
  • achievement.achievement_name, where achievement_name is a valid achievement identifier
  • stat.statistic_name, where statistic_name is a valid statistic identifier
  • * to represent all achievements
player (선택적)
플레이어 이름 또는 target selector여야만 함. If not specified, defaults to the command's executor. 커멘드 블록에서는 선택적이 아님.
결과
Fails if the arguments aren't specified correctly, or if player fails to resolve to one or more online players.
On success, grants or removes the specified achievement(s) (and all prerequisite achievements) to the player(s) or increases/decreases the specified statistic of the player(s) by 1.
예시
To grant the "Overkill" achievement to yourself: achievement give achievement.overkill
To grant the "Taking Inventory" achievement to Alice: achievement give achievement.openInventory Alice
To increase the "Mob Kills" statistic by 1 for the nearest player: achievement give stat.mobKills @p
To remove all achievements from all players: achievement take * @a

ban[편집 | 원본 편집]

이 커멘드는 서버의 밴리스트나 블랙리스트를 관리한다. 블랙리스트란 서버에 들어올 수 없는 플레이어나 IP 주소를 말한다. Bans supersede any whitelisting in place.


ban[편집 | 원본 편집]

같이 보기: /whitelist 명령어/infobox

플레이어를 블랙리스트에 추가한다

문법
ban <name> [reason …]
인수
name
The name of the player to be banned. Doesnotneed to be online, or even real.
reason(optional)
Text to be displayed with the ban, to other[[1]]and in the server logs.
결과
항상 성공. 플레이어 이름은 블랙리스트에 추가되고, which prevents anyone with that name from connecting to the server


ban-ip[편집 | 원본 편집]

명령어/infobox

IP주소를 블랙리스트에 추가한다.

문법
ban-ip <address|name> [reason …]
인수
address|name
IP 주소 또는 플레이어 이름은 온라인인 플레이어에게만 적용된다.
reason(선택적)
Text to be displayed with the ban, to other[[2]]and in the server logs.
결과
address|name이 올바른 IP 또는 플레이어 이름이 아닌 경우 실패함
성공한 경우, IP 주소(온라인인 플레이어, 또는 명시된 IP 주소)가 서버 블랙 리스트에 추가되고, which prevents anyone from connecting to the server from that address.


banlist[편집 | 원본 편집]

명령어/infobox

서버의 블랙리스트를 보여준다.

문법
banlist ips
banlist players
결과
항상 성공. 차단된 IP나 플레이어를 보여준다.


blockdata[편집 | 원본 편집]

명령어/infobox

Modifies the data tag of a block.

문법
blockdata <x> <y> <z> <dataTag>
인수
x y z
Specifies the coordinates of the block to be modified. May be provided in[notation|tilde notation]to identify a position relative to the command's execution.
dataTag
Specifies the[tags|data tag]elements to be added to, or overwrite elements of, the specified block. Must be a compound[tag|NBT tag](for example,{CustomName:Fred}).
결과
Fails if the arguments are not specified correctly.
On success, modifies the data tag of the targeted block.
예시
To change the primary power of the beacon at (0,64,0) to[[3]]:
blockdata 0 64 0 {Primary:3}
같이 보기


clear[편집 | 원본 편집]

명령어/infobox

플레이어 인벤토리를 지운다.

문법
clear [player] [item] [data] [maxCount] [dataTag]
인수
player(선택적)
플레이어 이름 또는[selectors|target selector]여야만 함. If not specified, defaults to the player who executed the command. 커멘드 블록에서는 선택적이 아님.
item(선택적)
Specifies the[values|id]of the item to be cleared. 명시하지 않은 경우 모든 아이템이 지워짐.
data(선택적)
Specifies the[values|data value]of the item to be cleared. If not specified, or if-1, all items that matchitemare cleared, regardless of their data.
maxCount(선택적)
Specifies the maximum number of items to be cleared. If not specified, or if-1, all items that matchitemanddataare cleared. If0, does not clear items, but returns successfully if there were items that could have been cleared (allowing detection of items rather than clearing of items).
dataTag(선택적)
Specifies the data tags of the item to be cleared (only items matching the specified data tags will be cleared — data tags not specified will not be considered). Must be a compound[tag|NBT tag](for example,{display:{Name:Fred}}).
결과
Fails if the arguments are not specified correctly, ifplayerfails to resolve to one or more online players, or if no items are removed (except whenmaxCountis0)
성공한 경우 플레이어(들)의 명시된 아이템들이 지워짐.
예시
To clear your entire inventory:clear
Alice의 인벤토리를 지우려는 경우:clear Alice
Alice의 인벤토리에서 양털을 모두 지우려는 경우:clear Alice minecraft:wool
Alice의 인벤토리에서 주황색 양털을 모두 지우려는 경우:clear @a minecraft:wool 1
To clear all golden swords with the "Sharpness I" enchantment from the nearest player, regardless of their damage value:
clear @p minecraft:golden_sword -1 -1 {ench:[{id:16s,lvl:1s}]}
같이 보기
/blockdata — can change or remove items in block inventories
/entitydata — can change or remove items in entity inventories
/give — give items to player
/kill — can destroy item entities
/replaceitem — can replace items in block or entity inventories


clone[편집 | 원본 편집]

명령어/infobox

Clones blocks from one region to another.

문법
clone<x1> <y1> <z1><x2> <y2> <z2><x> <y> <z>[maskMode] [cloneMode] [TileName]
Color added to make reading easier. The in-game help for the clone command does not list the final argument —TileNameis a placeholder name for the purpose of discussion.
인수
x1 y1 z1andx2 y2 z2
Specifies the coordinates of two opposing corner blocks of the source region. May use[notation|tilde notation]to specify distances relative to the command's execution.
The blocks that make up the corners extend in the positive direction from the coordinates used to identify them. Because of this, the lesser coordinates of each axis will be right on the region boundary, but the greater coordinates will be one block from the boundary, and the block volume of the source region will be (xgreater- xlesser+ 1) × (ygreater- ylesser+ 1) × (zgreater- zlesser+ 1). For example,0 0 0 0 0 0has a 1-block volume, and0 0 0 1 1 1and1 1 1 0 0 0both identify the same region with an 8-block volume.
x y z
Specifies the lower northwest corner (i.e., the smallest coordinates of each axis) of the destination region. May use[notation|tilde notation]to specify a distance relative to the command's execution.
maskMode(선택적)
Specifies whether to filter the blocks being cloned. Must be one of the following:
  • filtered— Clone only blocks with the block id specified byTileName.
  • masked— Copy only non-air blocks. Blocks in the destination region that would otherwise be overwritten by air are left unmodified.
  • replace— Copy all blocks, overwritingallblocks of the destination region with the blocks from the source region.
If left unspecified, defaults toreplace.
cloneMode(선택적)
Specifies how to treat the source region. Must be one of the following:
  • force— Force the clone even if the source and destination regions overlap.
  • move— Clone the source region to the destination region, then replace the source region with air. When used in filtered mask mode, only the cloned blocks will be replaced with air.
  • normal— Don't move or force.
If left unspecified, defaults tonormal.
TileName(섵잭적)
Specifies the block id (e.g.,minecraft:stone) to copy whenmaskModeis set tofiltered. Not optional when usingfilteredmode.
결과
Fails if the arguments are not specified correctly, if the block volume of the source region is greater than 32768 (enough for the equivalent of eight chunk sections), if the source and destination region overlap (unless using force clone mode), or if one or both regions isn't currently rendered.
성공한 경우, overwrites blocks in the destination region with blocks from the source region, leaving the source region unmodified (unless using move clone mode).
같이 보기
/fill — fill a region with a block


debug[편집 | 원본 편집]

명령어/infobox

디버깅 세션을 시작하거나 중지한다.

문법
debug <start|stop>
인수
start
Starts a new debug profiling session.
stop
Stops the active debug profiling session.
결과
하나가 실행 중일 때 시작하려는 경우, 실행된 것이 없을 때 중지하려는 경우에 실패함.
성공한 경우, 디버깅 세션을 시작하거나 중지함. 실행 중일 때, includes notifications about potential performance bottlenecks in the console. 정지할 때, creates a profiler results file in the folder "debug".


defaultgamemode[편집 | 원본 편집]

명령어/infobox

멀티플레이어 서버에 새로 들어오는 플레이어들의 기본게임 모드(크리에이티브, 서바이벌 등)게임 모드를 설정한다.

문법
defaultgamemode <mode>
인수
mode
새 플레이어들의 게임모드를 설정한다. 다음 중 하나여야 한다.:
  • survival(can be abbreviated assor0) 은서바이벌모드
  • creative(can be abbreviated ascor1) 은크리에이티브모드
  • adventure(can be abbreviated asaor2) 은모험모드
  • spectator(can be abbreviated asspor3) 은관전자모드
결과
인수가 제대로 명시되지 않은 경우 실패함.
If successful, sets the default game mode that is shown on the world selection menu. New players that join the world will be put into the default game mode.
예시
기본 게임 모드를 서바이벌로 하려는 경우:defaultgamemode survival,defaultgamemode s, ordefaultgamemode 0
같이 보기
/gamemode – 플레이어의 게임 모드를 전환


deop[편집 | 원본 편집]

명령어/infobox

Revoke[[4]]status from a player.

문법
deop <player>
인수
player
명시된 플레이어를 관리자 명단에서 제거한다. May be either a player name or a target selector, but target selectors will not evaluate; only actual player names will produce a useful result.
결과
Always succeeds if restrictions are satisfied. 만약 player가 관리자 명단에 있다면, 그 이름은 관리자 명단에서 지워지게 되고 그 플레이어는 더 이상 관리자가 아니다.
예시
관리자 명단에서 Alice를 제거하려는 경우:deop Alice


difficulty[편집 | 원본 편집]

명령어/infobox

난이도를 설정한다.(평화로움, 쉬움 등).

문법
difficulty <difficulty>
인수
difficulty
새 난이도를 명시한다. 다음 중 하나여야 한다:
  • peaceful(por0로도 가능) 은 평화로움난이도
  • easy(eor1로도 가능) 은 쉬움난이도
  • normal(nor2로도 가능) 은 보통난이도
  • hard(hor3로도 가능) 은 어려움난이도
결과
인수가 제대로 명시되지 않은 경우 실패한다.
성공한 경우, 게임의 난이도를 전환한다. On a multiplayer server lasts only until the server is restarted — on restart, difficulty is reloaded from server.properties.
예시
난이도를 어려움으로 바꾸려는 경우:difficulty hard,difficulty h, 또는difficulty 3
같이 보기
/gamemode – 플레이어의 게임 모드를 전환한다.(크리에이티브, 서바이벌 등)


effect[편집 | 원본 편집]

명령어/infobox

Theeffectcommand manages[effect|status effects]on players and other entities.

문법
effect <player> clear(모든 효과를 없앤다)
effect <player> <effect> [seconds] [amplifier] [hideParticles](효과를 준다)
인수
player
타겟(들)을 명시한다. 플레이어 이름 또는[selectors|target selector](@eis permitted to target entities other than players)이어야 한다.
effect
Specifies the effect to grant. Must be a[values#Status effects|status effect id](for example,1orminecraft:speed).
seconds(선택적)
효과의 지속 시간을 명시한다. 0 이상 1,000,000 이하여야만 한다. 명시되지 않은 경우, 기본 30초로 설정된다
amplifier(선택적)
효과의 세기를 명시한다. 0 이상 255 이하여야만 한다. 명시되지 않은 경우 기본 0으로 설정된다. Note that the first tier of a status effect (e.g. Regeneration I) is 0, so the second tier, for example Regeneration II, would be specified by an amplifier level of 1.
hideParticles(선택적)
Specifies whether the[[5]]of the status effect should be hidden. true또는 false여야만 한다. 명시되지 않은 경우, 기본 false로 설정된다.
결과
Fails if arguments are not specified correctly, ifplayerfails to resolve to one or more valid entities (named players must be online), ifsecondswas specified as 0 and the target did not have the effect, or if no effects were removed inclearmode.
성공한 경우:
  • clear— 타겟(들)의 모든 효과를 없앤다.
  • effect— 타겟(들)에게 효과를 준다. If a target already has the status effect, a new status effect with the same amplifier will only override the old duration if it is longer, but a new status effect with a higher duration will override any previous duration. If seconds is set to 0, cancels the specified effect instead.
예시
가장 가까운 플레이어에게 신속 I 효과를 60초동안 주려는 경우:effect @p 1 60
가장 가까운 플레이어에게 신속 3 효과를 60초동안 주려는 경우:effect @p minecraft:speed 60 2
모든 플레이어에게서 성급함 효과를 없애려는 경우:effect @a minecraft:haste 0
모든 좀비에게서 모든 효과를 없애려는 경우:effect @e[type=Zombie] clear


enchant[편집 | 원본 편집]

명령어/infobox

Adds an[[6]]to a player's selected item, subject to the same restrictions as an[mechanics|anvil].

문법
enchant <player> <enchantment ID> [level]
인수
player
타겟(들)을 명시한다. 플레이어 이름 또는 [selectors|target selector]여야만 한다.
enchantment ID
Specifies the enchantment to be added to the item held by the target. 올바른 [values#Enchantment IDs|enchantment ID](예를 들어,16 또는 minecraft:sharpness)여야만 한다.
level(선택적)
인챈트 레벨을 명시한다. Must be at least 1 and not greater than the[values#Enchantment IDs|maximum level]for the specified enchantment. 명시되지 않은 경우 기본 1로 설정된다.
결과
Fails if arguments are not specified correctly, ifplayerfails to resolve to one or more online players, or if the enchantment is not valid for the item or conflicts with current enchantments (for example, "Fire Protection" cannot be given to armor which already has "Protection", and "Sharpness III" cannot be given to a sword which already has "Sharpness I").
성공한 경우, adds the specified enchantment to the item held by the target.
예시
활을 가지고 있는 모든 플레이어에게 무한 I을 인챈트하려는 경우:enchant @a 51
참조
Although/enchantenforces maximum levels and compatibility, other commands (such as/give ,/replaceitem , and/entitydata ) can bypass these restrictions.


entitydata[편집 | 원본 편집]

명령어/infobox

Modifies the data tag of an entity.

문법
entitydata <entity> <dataTag>
인수
entity
Specifies the entity(ies) to be modified. Must be an entity UUID or the@e[selectors|target selector].
dataTag
Specifies the[tags|data tag]elements to be added to, or overwrite elements of, the specified entity (data tags cannot be removed and strings cannot be set to a null value). Must be a compound[tag|NBT tag](for example,{CustomName:Fred}).
결과
Fails if the arguments are not specified correctly, or ifentityfails to resolve to one or more non-player entities (players can not be changed).
On success, modifies the data tag of the targeted entity(ies).
예시
To prevent all current zombies from picking up loot:
entitydata @e[type=Zombie] {CanPickUpLoot:0}


execute[편집 | 원본 편집]

명령어/infobox

Executes a command on behalf of one or more other entities, with originating permissions, optionally on condition that a single-block/testforblock -style check passes.

문법
execute <entity><x> <y> <z><command …>
An alternate syntax allows the command to be executed only if a specific block is detected:
execute <entity><x> <y> <z>detect<x2> <y2> <z2><block> <data> <command …>

Color added to make reading easier.

인수
entity
Specifies the target to be the command's executor. Must be a player name or[selectors|target selector]. If more than one entity is selected, the command will be run once as each of them.
x y z
Specifies the position from which to run the command.xandzmust be within the range[boundary|-30,000,000 to 30,000,000](inclusive). Coordinates specified with[notation|tilde notation]are relative to the target, not to the position of the command's execution.
command
실행될 명령어를 명시한다. 올바른 명령어여야만 한다.
x2 y2 z2(detectmode only)
Specifies the position of the block to check.x2andz2must be within the range[boundary|-30,000,000 to 30,000,000](inclusive). May use[notation|tilde notation]to specify distances relative to (x,y,z).
blockanddata(detectmode only)
Specifies the[values#Block IDs|block id and data]which the block at (x2,y2,z2) must match for the command to run.blockmust be a valid block id (for example,minecraft:stone), anddatamust be a valid block data for that type of block or-1to match any block data.
결과
Fails if arguments are not specified correctly, ifentityfails to resolve to one or more valid entities (named players must be online), if the checked block is not of the correct block id and data, or if the specified command fails.
On success, executes the specified command as if executed by the specified target(s) with[[7]]-level permission at the specified coordinate.
예시
To summon lightning bolts at the positions of every zombie:
execute @e[type=Zombie] ~ ~ ~ summon LightningBolt
To summon lightning bolts at the positions of every zombie standing on any type of sand:
execute @e[type=Zombie] ~ ~ ~ detect ~ ~-1 ~ minecraft:sand -1 summon LightningBolt
10 크리퍼를 가장 가까운 플레이어의 자리로 소환하려는 경우 (로딩된 월드에 적어도 10 이상의 엔티티가 있어야 작동함):
execute @e[c=10] ~ ~ ~ execute @p ~ ~ ~ summon Creeper
같이 보기
/testforblock — tests for a certain block at a specified position (including specific data tags)


fill[편집 | 원본 편집]

명령어/infobox

일부 또는 모든 곳을 특정한 블록으로 채운다.

문법
fill<x1> <y1> <z1><x2> <y2> <z2><블록> [데이터 값|상태] [예전 블록 처리] [데이터 태그]
The fill command also has an optional alternate syntax when using thereplaceoption:
fill<x1> <y1> <z1><x2> <y2> <z2><블록> <데이터 값|상태> replace [설치될 블록] [설치될 데이터]

Color added to make reading easier.

문법
x1 y1 z1andx2 y2 z2
Specifies any two opposing corner blocks of the region to be filled (the "fill region"). May use[notation|tilde notation]to specify distances relative to the command's execution.
The blocks that make up the corners extend in the positive direction from the coordinates used to identify them. Because of this, the lesser coordinates of each axis will be right on the region boundary, but the greater coordinates will be one block from the boundary, and the block volume of the source region will be (xgreater- xlesser+ 1) × (ygreater- ylesser+ 1) × (zgreater- zlesser+ 1). For example,0 0 0 0 0 0has a 1-block volume, and0 0 0 1 1 1and1 1 1 0 0 0both identify the same region with an 8-block volume.
TileName
Specifies the block to fill the region with. Must be a[values#Block ID|block id](for example,minecraft:stone).
dataValue(선택적)
Specifies the block data to use for the fill block. Must be between 0 and 15 (inclusive).
oldBlockHandling(선택적)
Must be one of:
  • destroy- Replaces all blocks (including air) in the fill region with the specified block, dropping the existing blocks (including those that are unchanged) and block contents as entities as if they had been mined with an unenchanted diamond[[8]]or[[9]]. (Blocks that can only be mined with[[10]], such as[[11]], will not drop; neither will liquids.)
  • hollow- Replaces only blocks on the outer edge of the fill region with the specified block. Inner blocks are changed to air, dropping their contents as entities but not themselves.
  • keep- Replaces only air blocks in the fill region with the specified block.
  • outline- Replaces only blocks on the outer edge of the fill region with the specified block. Inner blocks are not affected.
  • replace- Replaces all blocks (including air) in the fill region with the specified block, without dropping blocks or block contents as entities. Optionally, instead of specifying a data tag for the replacing block, block id and data values may be specified to limit which blocks are replaced (seereplaceTileNameandreplaceDataValuebelow)
If not specified, defaults toreplace.
dataTag(선택적)
Specifies the data tag to use for the fill block (for example, contents of a chest, patterns on a banner, etc.). Must be a compound[tag|NBT tag](for example,{CustomName:Fred}). Cannot be combined with thereplaceTileNameandreplaceDataValuearguments.
replaceTileName replaceDataValue(선택적)
Arguments are only valid whenoldBlockHandlingisreplace. Cannot be combined with thedataTagargument.
Specifies the[values#Block ID|block id and data]of the blocks in the fill region to be replaced. IfreplaceDataValueis not specified, data value is ignored when determining which blocks to replace. If both arguments are not specified, replaces all blocks in the fill region.
결과
Fails if the arguments are not specified correctly, if the fill region is not rendered, if the block volume of the fill region is greater than 32768, ifdataValueordataTagare invalid for the specified block id, or if no blocks were changed.
On success, changes blocks in the fill region to the specified block.


gamemode[편집 | 원본 편집]

명령어/infobox

Sets a player's[mode|game mode].

Syntax
gamemode <mode> [player]
Arguments
mode
Must be one of:
  • survival(can be abbreviated assor0) for[[12]]mode
  • creative(can be abbreviated ascor1) for[[13]]mode
  • adventure(can be abbreviated asaor2) for[[14]]mode
  • spectator(can be abbreviated asspor3) for[[15]]mode
"[[16]]" is not a valid option for themodeargument, as it is technically not a game mode.
player(optional)
If specified, must be either a player's username or a[selectors|target selector]. If unspecified, defaults to the player using the command. When used in a command block,playeris not optional.
Result
Fails if the arguments are not specified correctly, or ifplayerfails to resolve to one or more online players.
If successful, changes the game mode of the default or specified players.
Examples
To put yourself into creative mode:gamemode creative,gamemode c, orgamemode 1
To put all players into survival mode:gamemode 0 @a
See also
[[17]]– sets the initial game mode for players joining the world


gamerule[편집 | 원본 편집]

명령어/infobox

Sets or queries a game rule value.

Syntax
gamerule <rule name> [value]
Arguments
rule name
Specifies the game rule to set or query. May beanyvalue, but only certain predefined game rules will affect gameplay (seePredefined Game Rulesbelow).
value(optional)
Specifies the value to set the game rule to. May beanyvalue, though onlytrueorfalsespecified for predefined game rules will actually affect gameplay, except in the case ofrandomTickSpeed, where any number 0 or higher will affect gameplay (seePredefined Game Rulesbelow).
Predefined Game Rules
Rule Name Description Default Value
commandBlockOutput Whether[block|command blocks]should notify admins when they perform commands true
doDaylightCycle Whether time progresses true
doEntityDrops Whether entities that are not mobs should have drops true
doFireTick Whether fire should spread and naturally extinguish true
doMobLoot Whether mobs should drop items true
doMobSpawning Whether mobs should naturally spawn true
doTileDrops Whether blocks should have drops true
keepInventory Whether the player should keep items in their inventory after death false
logAdminCommands Whether to log admin commands to server log true
mobGriefing Whether[[18]],[[19]],[[20]],[[21]],[[22]],[dragon|ender dragons],[[23]],[[24]], and[[25]]should be able to change blocks and whether villagers, zombies,[[26]], and[pigmen|zombie pigmen]can pick up items true
naturalRegeneration Whether the player can regenerate health naturally if their hunger is full enough (doesn't affect external healing, such as[apple|golden apples], the[effect], etc.) true
randomTickSpeed How often a random[tick|block tick]occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick. 0 will disable random ticks, higher numbers will increase random ticks 3
reducedDebugInfo Whether the debug screen shows all or reduced information false
sendCommandFeedback Whether the feedback from commands executed by a player should show up in chat. Also affects the default behavior of whether command blocks store their output text true
showDeathMessages Whether a message appears in chat when a player dies true
spectatorsGenerateChunks[upcoming] Whether players in[[27]]mode can generate chunks true
Result
Fails ifrule nameis not defined andvalueis not provided (i.e., attempting to query an undefined game rule).
On success, returns the value of the game rule (ifvalueis not provided) or sets the game rule to the specified value (ifvalueis provided).
New game rules may be defined and set (by providing a value) or queried (by not providing a value).
Examples
To stop the day-night cycle:gamerule doDaylightCycle false
To stop natural healing:gamerule naturalRegeneration false
To define a new game rule calledMyNewRuleand sets its value to 10:gamerule MyNewRule 10


give[편집 | 원본 편집]

명령어/infobox

Gives an item to a player.

Syntax
give <플레이어> <아이템> [] [데이터] [데이터 태그]
Arguments
player
Specifies the target to give item(s) to. Must be a player name or[selectors|target selector].
item
Specifies the item to give. Must be a valid[values#Item IDs|item id](for example,minecraft:iron_shovel), or[values#Block IDs|block id]for which items exist. Numerical ids are unsupported.
amount(optional)
Specifies the number of items to give. Must be between 1 and 64 (inclusive), but can be 64 even when that's more than one stack. If not specified, defaults to1.
data(optional)
Specifies the[format#Item structure|item data]of the given item(s). Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id revert to 0. If not specified, defaults to 0.
dataTag(optional)
Specifies the data tag of the given item(s). Must be a compound[tag|NBT tag](for example,{display:{Name:Fred}}).
Result
Fails if the arguments are not specified correctly, or ifplayerfails to resolve to one or more online players.
On success, summons the specified item(s) at the location(s) of the target(s). Ifplayerresolves to multiple targets, each receives the specified number of items. The[format#Items|item entity]'s Owner tag is set to the target and its PickupDelay tag set to 0틀:Verifyso that it immediately enters the target's inventory if there is room.
Examples
To summon 30 blocks of spruce wood planks at John's location with Lore that says "Wooden planks":
give John minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}}
See also
/summon — summon any entity at any location


help[편집 | 원본 편집]

명령어/infobox

Provides help/list of commands.

Syntax
help [페이지 수|명령어 이름]
? [페이지 수|명령어 이름]
Arguments
page|command name(optional)
Specifies the page number of the command list or the command to provide help for. If not specified, defaults to1(the first page of the command list).
Result
Fails ifpageis not a valid page number, or ifcommand nameis not a valid command name. Technically fails even if a valid command name is specified, although it displays the usage of the command.
On success, displays a page of the command list. Multiplayer commands will not be displayed while in singleplayer, even when open to LAN players.
If a valid command name was specified, displays the usage for that command. For some complicated commands may show only the basic usage — additional information can sometimes be gained by attempting to type the command and using the auto-complete control (defaults toTab ⇆key) to explore available options for each argument.
Examples
To display the first page of the command list:?orhelp
To display the third page of the command list:? 3
To display the usage for the help command:help help


kick[편집 | 원본 편집]

명령어/infobox

Kicks a player off a server.

Syntax
kick <player> [reason …]
Description
Forcibly disconnectsplayerfrom the server, displaying an optionalreasonto them.
Success Conditions
playermust be online.


kill[편집 | 원본 편집]

명령어/infobox

Kills entities (players, mobs, items, etc.).

Syntax
kill [플레이어|개체]
Arguments
player|entity
Specifies the target(s) to be killed (including "non-living" entities like items, vehicles, etc.). Must be a player name or a[selectors|target selector]. If not specified, defaults to the command's user. Not optional in command blocks.
Result
Fails ifplayer|entityfails to resolve to one or more entities (named players must be online).
On success, inflicts 3.4 x 1038void damage to targets — killing them instantly even if in Creative mode or protected by a high-level Resistance[[28]]— and issues the appropriate[message|death message]. Players and mobs killed this way drop loot, and[[29]]and[cube|magma cubes]that aren't already of minimum size spawn smaller ones. Destroys[[30]],[[31]],[(entity)|loose items]and[orb|experience orbs]if they are targeted.
Examples
To kill yourself:kill
To kill a player named Bob:kill Bob
To "kill" all item entities (making them vanish from the world):kill @e[type=Item]


list[편집 | 원본 편집]

명령어/infobox

Lists players on the server.

Syntax
list
Description
Shows the names of all currently-connected players (the same can be achieved when pressing tab)
Success Conditions
Always succeeds, even in a command block.


me[편집 | 원본 편집]

명령어/infobox

Displays a message about yourself.

Syntax
me <문구 ...>
Result
Fails if any target selectors do not resolve to at least one online player, or if any named players are not online.
On success, sends a narrative message to the other players in the form of "*Your Nameaction" (e.g., "* Alice sneezes." or "* Alice exploded." ). If a multi-person[selectors|target selector](e.g., @a) is used inaction, the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and nameN" for N players.


op[편집 | 원본 편집]

명령어/infobox

Grants operator status to a player.

Syntax
op <player>
Result
Always succeeds. Grantsplayer[[32]]status on the server.


pardon[편집 | 원본 편집]

명령어/infobox

Removes entries from the banlist.

Syntax
pardon <name>
pardon-ip <address>
Arguments
name
Specifies the name to remove from the banlist.
address
Specifies the IP address to remove from the banlist. Must be a valid IP address.
Result
Fails if the arguments are not specified correctly.
On success, if the name or the IP address is on the banlist, it is removed, allowing anyone to connect to the server by that name or from that IP address.


particle[편집 | 원본 편집]

명령어/infobox

Creates particles.

Syntax
particle <이름><x> <y> <z><xd> <yd> <zd><속도> [개수] [모드] [플레이어]
Color added to make reading easier.
Arguments
name
Specifies the particle to create. Must be a[name](for example,explode).
x y z
Specifies the position at which to create the particle. All values (includingy) must be between[boundary|-30,000,000 and 30,000,000](inclusive, without the commas). May use[notation|tilde notation]to specify a position relative to the command's execution.
xd yd zd
Specifies the size of the area to spawn particles in.
Exception:Whennameisreddust,mobSpell, ormobSpellAmbientandcountis 0 or not specified, andspeedis not 0, specifies the color of the particle in RGB format offset from the particle's default color (reddust's default is a near-red (a random red tint between 0.8 and 1.0), while the others default to black). For example, withreddust,0 0 0produces a red particle,-1 1 0produces a green particle (red is reduced to 0 and green increased to 1),0 0 1produces a purple particle (blue is added to the original red), etc. WithmobSpellormobSpellAmbient,0 0 0produces a black particle,0 1 0produces a green particle,0 0 0.5produces a dark blue particle, etc. Ifcountis greater than 0, colors are randomized.
speed
Specifies the speed of the particle. Must be at least 0.
count(optional)
Specifies the number of particle effects to create. Must be at least 0 (which produces one particle).
mode(optional)
Specifies the display mode. May be anything but onlyforcewill have an effect: to allow the particle(s) to be seen up to 256 blocks away and by players that use the minimal particles setting.
Result
Fails if the arguments are not specified correctly.
On success, creates the specified particle.
Examples
To create a stationary huge explosion particle 10 blocks to the east:
particle hugeexplosion ~10 ~ ~ 0 0 0 0


playsound[편집 | 원본 편집]

명령어/infobox

Plays a sound.

Syntax
playsound <sound> <player> [x] [y] [z] [volume] [pitch] [minimumVolume]
Arguments
sound
Specifies the sound to play. Must be a sound event defined in[events|sounds.json](for example,mob.pig.say).
A sound event may be affiliated with multiple sounds, and the sound which is actually produced will be chosen at random from them, modified by their "weight", just as the game normally would. For example, themob.pig.saysound event will play one of several pig sounds at random, because the event has multiple sounds associated with it.
[pack|Resource packs]may add their own events to sounds.json; the command will successfully play these. File names arenotused by this command; it strictly uses the events defined in sounds.json (which may not even be similar to the original file names and paths), and thus a resource pack adding new sound files must define events for them (this is not necessary when replacing old sounds which are already in defined events).
player
Specifies the sound's target. Must be a player name or a[selectors|target selector].
x y z(optional)
Specifies the position to play the sounds from. May use[notation|tilde notation]to specify a position relative to the target(s).
volume(optional)
Specifies the distance that the sound can be heard. Must be at least 0.0. For values less than 1.0, the sound will be quieter and have a smaller sphere within which it may be heard. For values greater than 1.0, the sound will not actually grow louder, but its audible range (a 16-block radius at 1.0) will be multiplied byvolume. There will always be a gradual falloff to silence based on distance from the center of the sphere.
pitch(optional)
Specifies the pitch of the sound. Must be between 0.0 and 2.0 (inclusive), and values less than 0.5 are equivalent to 0.5. Values lower than 1.0 lower the pitch and increase the duration; values greater than 1.0 raise the pitch and reduce the duration. The pitch value is a multiplier applied to the frequency, so if a value between 0.5 and 1.0 (inclusive) is doubled, the pitch will be an octave higher. (If you're a musician wishing to convert other intervals to pitch values, see[block#Usage|Note block#Usage], but be aware that 1.0 won't be F♯ for all sound effects.) If not specified, defaults to 1.0.
minimumVolume(optional)
Specifies the volume for targets outside the sound's normal audible sphere. If a target is outside the normal sphere, the sound will instead be centered some short distance from the target (less than four blocks away), andminimumVolumewill determine its volume. Must be between 0.0 and 1.0 (inclusive).
Result
Fails if the arguments are not specified correctly, ifplayerfails to resolve to one or more online players, or if the targets are unable to hear the sound from where it is played.
On success, plays a sound for the targeted players.


publish[편집 | 원본 편집]

명령어/infobox

Opens single-player world to the local network.

Syntax
publish
Description
Opens your single-player game for LAN friends to join. This command appears in the singleplayer cheats.
Success Conditions
Cannot be used in a command block.


replaceitem[편집 | 원본 편집]

명령어/infobox

Replaces items in the inventories of blocks (chest, furnaces, etc.) or entities (players or mobs) with the given item(s).

Syntax
replaceitem block <x> <y> <z> <slot> <item> [amount] [data] [dataTag]
replaceitem entity <selector> <slot> <item> [amount] [data] [dataTag]
Arguments
x y z(blockmode only)
Specifies the position of the block to be modified. May use[notation|tilde notation]to specify a position relative to the command's execution.
selector(entitymode only)
Specifies one or more entities to modify. Must be a player name or[selectors|target selector].
slot
Specifies the inventory slot to be modified. Valid values depend on whether a block or an entity is being modified.
For blocks, must beslot.container.slot_numberwhereslot_numberis replaced with a number specifying the slot.
  • [[33]],[[34]],[[35]],[[36]], and[chest|trapped chests]are numbered 0 for the top-left slot and then increase first horizontally, then vertically (so, for example, a chest's top row slots are numbered 0 to 8 from left to right). Double chests and double trapped chests are treated as two single container blocks.
  • A[stand|brewing stand]'s bottom slots are numbered 0 to 2 from left to right, and its top slot is 3.
  • A[[37]]'s slots are numbered 0 for the input slot, 1 for the fuel slot, and 2 for the output slot.
Other blocks which hold items but don't have inventory GUIs ([pot|flower pots]and[[38]]) can only be changed with/blockdata .
For entities, must be one of the following, whereslot_numberis replaced with a number specifying the slot:
Slot Slot Numbers Restrictions
slot.armor.chest [stand|armor stands],[[39]], and[[40]]only (though not all mobs will show or make use of the items)
slot.armor.feet
slot.armor.head
slot.armor.legs
slot.weaponor (in 1.9 snapshots)slot.weapon.mainhand [stand|armor stands]and[[41]]only (though not all mobs will show or make use of the items). Works with[[42]]in the 1.9 snapshots.
slot.weapon.offhand(1.9 snapshots only)
slot.enderchest.slot_number 0 to 26 [[43]]only
slot.hotbar.slot_number 0 to 8
slot.inventory.slot_number 0 to 26
slot.horse.saddle [[44]], donkeys, and mules only;itemmust be a[[45]]
slot.horse.armor [[46]]only;itemmust be a type of[armor|horse armor]
slot.horse.chest.slot_number 2 to 16 donkeys and mules with chests only
slot.villager.slot_number 0 to 7 [[47]]only
The inventory of an[frame|item frame]can only be changed with/entitydata .
item
Specifies the item to be placed in the block or entity's inventory slot. Must be an[values#Item IDs|item id], or a[values#Block IDs|block id]for which an item exists (for example,minecraft:golden_sword).
amount(optional)
Specifies the number of items to be placed in the block or entity's inventory slot. Must be between 1 and 64 (inclusive), even for items with a smaller stack size.
data(optional)
Specifies the item data for the item(s) to be placed in the block or entity's inventory slot. Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id will default to 0. If not specified, defaults to 0.
dataTag(optional)
Specifies the[tag|data tag]for the item(s) to be placed in the block or entity's inventory slot. Must be a compound[tag|NBT tag](for example,{display:{Name:Fred}}).
Result
Fails if the arguments are not specified correctly, if the specified block is not a container, ifselectorfails to resolve to one or more entities (named players must be online), or if none of the targeted entities have the specified slot (for example, zombies don't haveslot.horse.armor).
On success, replaces the items in the specified slot with the specified items (previous items in that slot are lost) wherever possible.
Examples
To replace the items in the bottom-right slot of a single chest one block above with four spruce saplings:
replaceitem block ~ ~1 ~ slot.container.26 minecraft:sapling 4 1
To replace the items in the rightmost hotbar slot of the nearest player with four spruce saplings:
replaceitem entity @p slot.hotbar.8 minecraft:sapling 4 1
See also
/blockdata — can also replace items in a container
/entitydata — can also replace items in a mob's inventory, or modify the drop chances of armor and weapons
/give — give items to players without specifying specific inventory slots or overwriting other items


save[편집 | 원본 편집]

명령어/infobox

These commands manage server saves.


save-all[편집 | 원본 편집]

Saves the server to disk.

Syntax
save-all
Description
Forces the server to write all pending changes to the world and player data to disk.
Success Conditions
Always succeeds.


save-off[편집 | 원본 편집]

Disables automatic server saves.

Syntax
save-off
Description
Disables the server writing to the world files. All changes will temporarily be queued.
Success Conditions
Always succeeds.


save-on[편집 | 원본 편집]

Enables automatic server saves.

Syntax
save-on
Description
Enables the server writing to the world files. This is the default behavior.
Result
Always succeeds.


say[편집 | 원본 편집]

명령어/infobox

Sends a message in the chat to other players

Syntax
say <message …>
Result
Fails if any target selectors do not resolve to at least one online player, or if any named players are not online.
On success, broadcastsmessageto all players on the server. If a multi-person[selectors|target selector](e.g., @a) is used inmessage, the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and nameN" for N players.


scoreboard[편집 | 원본 편집]

명령어/infobox

These commands manage scoreboard objectives, players, and teams.

Syntax
scoreboard <objectives|players|teams> …

See[reference|Scoreboard#Command reference]for more information.


seed[편집 | 원본 편집]

명령어/infobox

Displays the world[(level generation)|seed].

Syntax
seed
Result
Always succeeds. This command can always be used in single-player mode, regardless of whether cheats are enabled or not.


setblock[편집 | 원본 편집]

명령어/infobox

Changes a block to another block.

Syntax
setblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag]
Arguments
x y z
Specifies the position of the block to be changed. May use[notation|tilde notation]to specify a position relative to the command's execution.
TileName
Specifies the new block. Must be a[values#Block IDs|block id](for example,minecraft:stone).
dataValue(optional)
Specifies additional data to further describe the new block. Must be between 0 and 15 (inclusive). If not specified, defaults to0.
oldBlockHandling(optional)
Specifies how to handle the block change. Must be one of:
  • destroy— The old block drops both itself and its contents (as if destroyed by a player). Plays the appropriate block breaking noise.
  • keep— Only air blocks will be changed (non-air blocks will be "kept").
  • replace— The old block drops neither itself nor any contents. Plays no sound.
If not specified, defaults toreplace.
dataTag(optional)
Specifies the[tag|data tag]for the new block. Must be a compound[tag|NBT tag](for example,{CustomName:Fred}).
Result
Fails if the arguments are not specified correctly, if tried to change a non-air block in keep mode, tried to replace a block with an identical copy in keep or replace mode, or if the coordinates are in an unloaded chunk.
On success, changes the block at the specified position.
See also
  • /blockdata — modifies the data tags of a block
  • /clone — copies blocks from one region to another
  • /fill — fills a region with a block


setidletimeout[편집 | 원본 편집]

명령어/infobox

Sets the time before idle players are kicked from the server.

Syntax
setidletimeout <Minutes until kick>
Description
Set the idle kick timer. Any players idle forMinutes until kickwill be kicked.
Success Conditions
Always succeeds.


setworldspawn[편집 | 원본 편집]

명령어/infobox

Sets the[spawning|world spawn].

Syntax
setworldspawn
setworldspawn <x> <y> <z>
Arguments
x y z(optional)
Specifies the coordinates of the[spawning|world spawn].xandzmust be within the range[boundary|-30,000,000 to 30,000,000](inclusive).ymust be between 0 and 256 (inclusive). May use[notation|tilde notation]to specify coordinates relative to the command's execution. If not specified, defaults to the position of the command's execution. Not optional in command blocks.
If the server is not in[mode|adventure mode], players will always spawn on the topmost block near (x,z) —yis effectively ignored. If the server is in adventure mode, then the new spawnpoint will be the coordinates given exactly, including theycoordinate (even if underground and even if there is no block there) -- if theylevel given does not have space for the player then it will move up on the y axis until it does, at most y level 256.
Although[chunk|spawn chunks]are usually kept loaded at all times, new spawn chunks won't be loaded by this command until a player moves within range.[[48]](which inMinecraftpoint to the world spawn rather than north) will also not update to the change until the world is reloaded.
Result
Fails if the arguments are not specified correctly.
On success, sets the world spawn to the specified coordinate.


spawnpoint[편집 | 원본 편집]

명령어/infobox

Sets the spawn point for a player.

Syntax
spawnpoint
spawnpoint <player>
spawnpoint <player> <x> <y> <z>
Arguments
player(optional)
Specifies the player whose spawn point should be set. Must be a player name or a[selectors|target selector]. If not specified, defaults to the command's user. Not optional in command blocks.
x y z(optional)
Specifies the coordinates of the player's new spawn point.xandzmust be integers within the range[boundary|-30,000,000 to 30,000,000](inclusive).ymust be an integer between 0 and 256 (inclusive). May use[notation|tilde notation]to specify coordinates relative to the command's execution. If not specified, defaults to the position of the specified player(s).
Result
Fails if the arguments are not specified correctly, or ifplayerfails to resolve to one or more online players.
On success, sets the spawn point of the targeted player(s) to the specified coordinate.


spreadplayers[편집 | 원본 편집]

명령어/infobox

Teleports entities (players, mobs, items, etc.) to random surface locations within an area.

Syntax
spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams> <player …>
Arguments
x z
Specifies the center of the region to spread targets to.xandzmust be between[boundary|-30,000,000 and 30,000,000](exclusive). May use[notation|tilde notation]to specify coordinates relative to the command's execution.
spreadDistance
Specifies the minimum distance between targets. Must be at least 0.0.
maxRange
Specifies the maximum distance on each horizontal axis from the center of the area to spread targets (thus, the area is square, not circular). Must be at least 1.0 greater thanspreadDistance.
respectTeams
Specifies whether to keep teams together. Must betrueorfalse. Iftrue, targets on the same team will be teleported to the same location.
player
Specifies the targets to spread. Must be one or more player names and/or[selectors|target selectors]separated by spaces (@eis permitted to target entities other than players).
Result
Fails if the arguments are not specified correctly, if there are too many targets to satisfy thespreadDistancerequirement within the specified area, or if a target is attempted to be spread to outside the[boundary|world boundary].
On success, teleports targets to random surface locations within the specified area. Targets will always be placed on the top block at a location, and never on[[49]].
Examples
To teleport all players by team to random surface locations in a 1,000×1,000-block area centered on (0,0), with a minimum distance between teams of 200 blocks:
spreadplayers 0 0 200 500 true @a
To teleport one random player from each of three teams (Red, Blue, and Green), as well as Alice and Bob, to random surface locations in a 200×200-block area centered on (0,0), with a minimum distance between players of 50 blocks:
spreadplayers 0 0 50 100 false @r[team=Red] @r[team=Blue] @r[team=Green] Alice Bob
See also
/tp — teleports a single player or entity to a specific position (even underground).


stats[편집 | 원본 편집]

명령어/infobox

Manages the updating of scoreboard objectives with the results of other commands.

Commands can be executed by blocks (specifically,[block|command blocks]and[[50]]) or by entities (players can execute commands directly, and other entities can be the origin of commands indirectly with the/execute command). When a command is executed, the command returns one or more "command stats": the success count, number of blocks affected, number of entities affected, number of items affected, and/or a query result (such as from/time query daytime ).

The stats command allows "selectors" and "objectives" to be set (or cleared) for each of these command stats for specific blocks or entities. Selectors (for example,@e) are stored exactly as entered, and don't get evaluated immediately. When a command is later run by the block or entity, the stored selector is then used to target (other) entities and update their[[51]]objective with the value of the command stat. That value can then be displayed or operated on, just like any other scoreboard value.

The success count from a command block can also be acquired with a[comparator|redstone comparator], but that is capped at a maximum value of 15, while scoreboard objectives can hold any value from -2,147,483,648 to 2,147,483,647. Success counts and query results are also usually displayed in the chat.

Syntax
stats block <x> <y> <z> clear <stat>
stats block <x> <y> <z> set <stat> <selector> <objective>
stats entity <selector2> clear <stat>
stats entity <selector2> set <stat> <selector> <objective>
Arguments
x y z(blockmode only)
Specifies the position of the block to post command stats from.xandzmust be between[boundary|-30,000,000 and 30,000,000](inclusive, without the commas) andymust be between 0 and 256 (inclusive). May use[notation|tilde notation]to specify a position relative to the command's execution.
selector2(entitymode only)
Specifies the entity to post command stats from. Must be a player name or a[selectors|target selector].
stat
Specifies the command stat whose selector and objective are to be cleared or set. Must be one of:
  • AffectedBlocks— returns the number of blocks affected by a command
  • AffectedEntities— returns the number of entities affected by a command
  • AffectedItems— returns the number of items affected by a command
  • QueryResult— returns the result of a command query
  • SuccessCount— returns a command's success count
selector(setmode only)
Specifies the selector to be evaluated when a command is run by the specified block or entity to determine which entity(ies) scoreboard objective is to be updated with the result returned bystat. May be anything because it won't be evaluated until a command is run by the specified block or entity, but only a player name or a[selectors|target selector]will produce useful results (though player names can be fake, so even real players don't need to be online).
objective(setmode only)
Specifies the name of the objective to be updated with the result returned bystat. May be anything because it won't be evaluated until a command is run by the specified block or entity, but only the name of a defined objective will produce useful results.
Result
Fails if the arguments are not specified correctly, if the specified block cannot track stats (in other words, it fails if the specified block is not a command block or sign), or ifselector2fails to evaluate to one or more valid entities (named players must be online).
On success, clears or sets the selector and objective to be updated with the result returned bystat.
Examples
To set the block at (0,64,0) to update scoreboard objective MyObj of the nearest player with the value of any query result returned by the block:
stats block 0 64 0 set QueryResult @p MyObj
To stop the block at (0,64,0) from updating any scoreboard obectives with the success count of commands it executes:
stats block 0 64 0 clear SuccessCount
To have the nearest[skull|wither skull]update the scoreboard objective NumBlocks of fake player #FakePlayer with the number of blocks affected by commands executed by the wither skull:
stats entity @e[type=WitherSkull,c=1] set AffectedBlocks #FakePlayer NumBlocks
See also
/blockdata — can also change the selector and objectives of blocks by altering data tags directly
/entitydata — can also change the selector and objectives of entities by altering data tags directly


stop[편집 | 원본 편집]

같이 보기: Tutorials/Command stats 명령어/infobox

Stops a server.

Syntax
stop
Result
Always succeeds. Saves all changes to disk, then shuts down the server.


summon[편집 | 원본 편집]

명령어/infobox

Summons an[[52]](mobs, projectiles, items, vehicles, etc.).

Syntax
summon <EntityName> [x] [y] [z] [dataTag]
Arguments
EntityName
Specifies the entity to be summoned. Must be an[values#Entity IDs|entity id](for example,Bat,EntityHorse,WitherSkull,XPOrb,PrimedTNT, etc.) orLightningBolt.
x y z(optional)
Specifies the position to summon the entity.xandzmust be between[boundary|-30,000,000 to 30,000,000](inclusive), andymust be at least 0. May use[notation|tilde notation]to specify a position relative to the command's execution. If not specified, defaults to the position of the command's execution.
dataTag(optional)
Specifies the[tags|data tag]for the entity. Must be a compound[tag|NBT tag](for example,{CustomName:Fred}). Lightning has no additional data tags that can be specified.
Result
Fails if the arguments are not specified correctly.
On success, creates the specified entity at the specified position.
Examples
To summon a charged creeper named "Powered Creeper" at the current position:
summon Creeper ~ ~ ~ {powered:1,CustomName:Powered Creeper}
To summon lightning 10 blocks west of the current position:
summon LightningBolt ~-10 ~ ~
To summon an Armor stand wielding a lava bucket and wearing a skull:
/summon ArmorStand ~ ~ ~ {Equipment:[{id:lava_bucket},{},{},{},{id:skull}]}


tell[편집 | 원본 편집]

명령어/infobox

Sends a private message to one or more players.

Syntax
tell <player> <message …>
msg <player> <message ...>
w <player> <message ...>
Arguments
player
Specifies the targeted player(s) to send the private message to. Must be a player name (or a[selectors|target selector], but only if the user is an[[53]]).
private message
Specifies the message to send. May include spaces (as well as[selectors|target selectors], but only if run from the server console — in other words, from the computer running the server, or by remote access to it).
Result
Fails if the arguments are not specified correctly, ifanytarget selectors in either argument fail to resolve to at least one online player, or if a named player is not online.
On success, only the targeted player(s) see the private message in their chat. If a multi-person[selectors|target selector](e.g., @a) is used inmessage, the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and nameN" for N players.
Examples
To privately tell Alice to start the mission:tell Alice Start the mission!


tellraw[편집 | 원본 편집]

명령어/infobox

Sends a JSON message to players.

Syntax
tellraw <player> <raw json message>
Arguments
player
Specifies the player(s) to send the message to. Must be a player name or[selectors|target selector].
raw json message
Specifies the message to send. Must be valid[JSON text|raw JSON text](for example,{text:"Hi there!",bold:true}).
Result
Fails if the arguments are not specified correctly, or ifplayerfails to evaluate to one or more online players.
On success, the targeted players receive the JSON message in their chat.
See also
/say — send a simple text message to all players
/tell — send a simple text message to specific players


testfor[편집 | 원본 편집]

명령어/infobox

Counts entities (players, mobs, items, etc.) matching specified conditions.

Syntax
testfor <player> [dataTag]
Arguments
player
Specifies the targets to count. Must be a player name or a[selectors|target selector](@eis permitted to target entities other than players).
dataTag(optional)
Specifies the data tags the entities must have to match successfully. Must be a compound[tag|NBT tag](for example,{XpLevel:3}).
Result
Fails if the arguments are not specified correctly, or ifplayerfails to resolve to one or more entities (named players must be online).
On success, produces a success count equal to the number of targets matchingplayer, which can be measured by a[comparator|redstone comparator]facing away from the command block.
Examples
To test if Alice is online:testfor Alice
To count the number of players in survival mode within a 3-block radius of (0,64,0):testfor @a[0,64,0,3,m=0]
To count the number of players currently flying:testfor @a {abilities:{flying:1b}}
To count the number of zombies within a 20-block radius of (0,64,0):testfor @e[0,64,0,20,type=Zombie]


testforblock[편집 | 원본 편집]

명령어/infobox

Tests whether a certain block is in a specific location.

Syntax
testforblock <x> <y> <z> <TileName> [dataValue] [dataTag]
Arguments
x y z
Specifies the position of the block to test.xandzmust be between[boundary|-30,000,000 and 30,000,000](inclusive, without the commas) andymust be between 0 and 255 (inclusive). May use[notation|tilde notation]to specify a position relative to the command's execution.
TileName
Specifies the block to test for. Must be a valid[values#Block IDs|block id](for example,minecraft:stone).
dataValue(optional)
Specifies the[values#Block IDs|block data]to test for.dataValuemust be between -1 and 15 (inclusive). If not specified, or if-1,dataValuematches any block data value.
dataTag(optional)
Specifies the block[tags|data tags]to test for. Must be a compound[tag|NBT tag](for example,{CustomName:Fred}). If not specified,dataTagmatches any block data tag.
Result
Fails if the arguments are not specified correctly, if the block at the specified position does not match the specified block id or data, or if the specified data tag has different values than are defined in the block's data tag (dataTagdoes not need to match the block's entire data tag, and data tags in the argument which are undefined in the block willnotcause the command to fail).
On success, returns a success count of 1.
Examples
To test if the block at (0,64,0) is any type of[[54]]:
testforblock 0 64 0 minecraft:wool
testforblock 0 64 0 minecraft:wool -1
To test if the block at (0,64,0) is orange wool:
testforblock 0 64 0 minecraft:wool 1
To test if the block below is a[[55]]with the "mall"[[56]]inside:
testforblock ~ ~-1 ~ minecraft:jukebox -1 {Record:2261}


testforblocks[편집 | 원본 편집]

명령어/infobox

Tests whether the blocks in two regions match.

Syntax
testforblocks<x1> <y1> <z1><x2> <y2> <z2><x> <y> <z>[mode]
Color added to make reading easier.
Arguments
x1 y1 z1andx2 y2 z2
Specifies two opposing corners of the region to use as the pattern to test for (the "source region").x1,z1,x2, andz2must all be between[boundary|-30,000,000 and 30,000,000](inclusive, without the commas), andy1andy2must be between 0 and 255 (inclusive). May use[notation|tilde notation]to specify coordinates relative to the command's position. The number of blocks in the source region must not exceed 524,288.
x y z
Specifies the lower northwestern corner (the corner with the most-negative values) of the region to be checked (the "destination region").xandzmust both be between[boundary|-30,000,000 and 30,000,000](inclusive, without the commas), andymust be between 0 and 255 (inclusive). May use[notation|tilde notation]to specify coordinates relative to the command's position. Source and destination regions may overlap.
mode(optional)
Specifies how to match blocks. Must be one of:
  • all— every block in the source and destination regions must match exactly.
  • masked—[[57]]blocks in the source region will match any block in the destination region.
If not specified, defaults toall.
Result
Fails if the arguments are not specified correctly, or if the source and destination regions do not match.
On success, returns the number of matching blocks (the total number of blocks inallmode, or the number of source region non-air blocks inmaskedmode).


time[편집 | 원본 편집]

명령어/infobox

Changes or queries the world's game[[58]].

Syntax
time <add|query|set> <value>
Arguments
value
Specifies the time to add, query, or set:
  • add- Must be between 0 and 2,147,483,647 (inclusive, without the commas)
  • query- Must bedaytimeorgametime.
  • set- Must be between 0 and 2,147,483,647 (inclusive, without the commas),day, ornight.
Result
Fails if the arguments are not specified correctly.
On success:
  • add- addsvalueto the world's game time
  • query- returns the day time (game ticks since midnight) or the game time (game ticks since world start)
  • set- sets the world game time tovalue(day= 1,000,night= 13,000).
Examples
To set the time to 1,000:time set 1000ortime set day
To add one day to the world time:time add 24000


title[편집 | 원본 편집]

명령어/infobox

Controls screen titles.

Screen titles are displayed to players as a single line of large center-aligned text in the middle of their displays and can include a second line of text called a "subtitle". Both lines are specified using[JSON text|complicated formatting]. Screen titles can be set to fade in and fade out, and the duration they are displayed can also be specified. Screen titles scale in size with the[Settings|GUI Scale]and screen titles which are too big to fit on the screen are not line-wrapped (they just overflow off the screen on both sides).

Syntax
The command has five variations, each with different arguments.
title <player> clear(removes the screen title from the screen)
title <player> reset(resets options to default values)
title <player> subtitle <title>(specifies the subtitle text)
title <player> times <fadeIn> <stay> <fadeOut>(specifies fade-in, stay, and fade-out times)
title <player> title <title>displays the screen title)
Arguments
player
Specifies the player(s) to display a screen title to. Must be a player name or[selectors|target selector].
title(subtitleandtitlemode only)
Specifies the text to display as a title or subtitle. Must be valid[JSON text|raw JSON text](for example,{text:"Chapter I",bold:true}).
fadeIn,stay, andfadeOut(timesmode only)
Specifies the time in[ticks](1/20ths of a second) for the screen title to fade in, stay, and fade out. All values must be between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values below 0 will be treated as 0. If not specified (or if reset), defaults to 20 (1 second), 60 (3 seconds), and 20 (1 second).
Result
파일:Title command.png
Example result of the title command.
Fails if the arguments are not specified correctly, or ifplayerfails to evaluate to one or more online players.
On success:
  • clear— Clears the screen title from the screens of the specified player(s). If no screen title is currently being displayed, has no effect.
  • reset— Resets the subtitle text to blank text, and the fade-in, stay and fade-out times to their default values for the specified player(s).
  • subtitle— If a screen title is currently being displayed to the specified player(s), changes the current subtitle totitle; otherwise, specifies the subtitle for the next screen title to be displayed to the specified player(s).
  • times— Changes the fade-in, stay, and fade-out times of all current and future screen titles for the specified player(s).
  • title— Displays a screen title to the specified player(s), or changes the current screen title totitle. After fading out, resets the subtitle back to blank text, but does not reset fade-in, stay, and fade-out times.
Examples
To display a bold screen title "Chapter I" with a gray italic subtitle "The story begins…" to all players:
  1. title @a subtitle {text:"The story begins…", color:gray, italic:true}
  2. title @a title {text:"Chapter I", bold:true}


toggledownfall[편집 | 원본 편집]

명령어/infobox

Toggles the weather.

Syntax
toggledownfall
Result
Always succeeds. If weather is currently clear, rain or snow will start. If weather is currently rain or snow, it will stop.


tp[편집 | 원본 편집]

명령어/infobox

Teleports entities (players, mobs, items, etc.).

Syntax
tp [target player] <destination player>
tp [target player] <x> <y> <z> [<y-rot> <x-rot>]
Arguments
target player(optional)
Specifies the entity(s) to be teleported. Must be either a player name or a[selectors|target selector]. If not specified, defaults to the player who executed the command. Not optional in command blocks.
destination player
Specifies the entity to teleport the target(s) to. Must be either a player name or a target selector.
x y z
Specifies the coordinates to teleport the target(s) to.xandzmust fall within the range -30,000,000 to 30,000,000 (exclusive, without the commas), andymust be at least 0. May use[notation|tilde notation]to specify a position relative to the target's current position.
y-rot(optional)
Specifies the horizontal rotation (-180.0 for due north, -90.0 for due east, 0.0 for due south, 90.0 for due west, to 179.9 for just west of due north, before wrapping back around to -180.0). Tilde notation can be used to specify a rotation relative to the target's previous rotation.
x-rot(optional)
Specifies the vertical rotation (-90.0 for straight up to 90.0 for straight down). Tilde notation can be used to specify a rotation relative to the target's previous rotation.
Result
Fails if the arguments are not specified correctly, iftarget playerfails to resolve to one or more entities (named players must be online), or ifdestination playerfails to resolve to a single entity (a named player must be online). Fails individually for each entity referenced bytarget playerthat is not in the same dimension as thedestination player, if specified.
On success, teleports the targets to the specified destination.
Examples
To teleport yourself to Alice:tp Alice
To teleport all players to yourself:tp @a @p
To teleport yourself to x=100 and z=100, but three blocks above your current position:tp 100 ~3 100
To rotate the nearest player 10 degrees to the right without changing their position:tp @p ~ ~ ~ ~10 ~


trigger[편집 | 원본 편집]

명령어/infobox

Modifies a scoreboard objective with a "trigger" criteria.

Syntax
trigger <objective> <add<nowiki>|set> <value>
Description
Used together with[[59]]to let players activate systems made by operators or mapmakers.
Arguments
objective
An enabled scoreboard objective with the "trigger" criteria.
add|set
  • add– Addsvalueto the current value ofobjective.
  • set– Sets the value ofobjectivetovalue.
Result
Fails if the arguments are not specified correctly, ifobjectivedoes not have the "trigger" criteria, or if the player who executed the command is not able to modifyobjective.
On success, the value ofobjectiveis changed for the player that executed the command.


weather[편집 | 원본 편집]

명령어/infobox

Sets the weather.

Syntax
weather<clear|rain|thunder>[duration]
Arguments
clear|rain|thunder
  • clear– Set the weather to clear.
  • rain– Set the weather to rain (or snow in cold biomes).
  • thunder– Set the weather to a thunderstorm (or a thunder snowstorm in cold biomes).
duration(optional)
Specifies the time in seconds for the specified weather to last. Must be between 1 and 1,000,000 (inclusive, without the commas). Ifdurationis omitted, the duration will be set between 6,000 and 18,000 ticks.
Result
Fails if the arguments are not specified correctly.
On success, changes the weather for the specified duration (in seconds).
Examples
To get clear weather for oneMinecraftday:weather clear 1200
To make it rain, but let it end at its own pace:weather rain


whitelist[편집 | 원본 편집]

명령어/infobox

Manages the server whitelist.

Server ops willalwaysbe able to connect when the whitelist is active, even if their names do not appear in the whitelist.

Syntax
The command has six variations.
whitelist add <player>
whitelist list
whitelist off
whitelist on
whitelist reload
whitelist remove <player>
Arguments
player(addandremovemode only)
Specifies the player(s) to add or remove from the whitelist.
Result
Fails if the arguments are not specified correctly, or ifplayerdoesn't exist
On success:
  • add— Adds the player name to the whitelist. The player does not need to be online.
  • list— Displays all player names in the whitelist.
  • off— Disables the server's use of a whitelist.
  • on— Enables the server's use of a whitelist.
  • reload— Reloads the list of player names inwhite-list.txt(1.7.5 or earlier) orwhitelist.json(1.7.6 or later) from disk (used whenwhite-list.txtorwhitelist.jsonhas been modified outside ofMinecraft).
  • remove— Removes the player name from the whitelist. The player does not need to be online.


worldborder[편집 | 원본 편집]

명령어/infobox

These commands control the[border|world border].

Syntax
The command has eight variations, each with different arguments:
worldborder add <distance> [time](increases the world border diameter)
worldborder center <x> <z>(recenters the world boundary)
worldborder damage amount <damagePerBlock>(specifies the world border damage rate)
worldborder damage buffer <distance>(specifies the world border damage buffer distance)
worldborder get(returns the world border diameter)
worldborder set <distance> [time](sets the world border diameter)
worldborder warning distance <distance>(specifies the world border warning distance)
worldborder warning time <time>(specifies the world border warning time)
Arguments
distance(add,damage buffer,setandwarning distancemodes only)
Specifies a distance in blocks:
  • add– Specifies the number of blocks to add to the world border diameter.
  • damage buffer– Specifies the distance outside the world buffer a player must be before they start taking damage. Must be at least 0.0. Initially set to 5.0.
  • set– Specifies the new diameter for the world border. Must be between 1.0 and 60,000,000 (inclusive, without the commas).
  • warning distance– Specifies the distance from the world border at which players will begin to see a visual warning of the world border's proximity. Must be at least 0. Initially set to 5.
time(add,setandwarning timemodes only)
Specifies a time in seconds:
  • add– Specifies the number of seconds it should take for the world border to move from its current diameter to the new diameter. Must be at least 0. If not specified, defaults to 0.
  • set– Specifies the number of seconds it should take for the world border to move from its current diameter to the new diameter. Must be at least 0. If not specified, defaults to 0.
  • warning time– Specifies the number of seconds that a player will begin to see a visual warning before a moving world border passes their position. Must be at least 0. Initially set to 15.
x z(centermode only)
Specifies the horizontal coordinates of the world border's center. Must be between[border|-30,000,000 and 30,000,000](inclusive, without the commas). May use[notation|tilde notation]to specify coordinates relative to the command's execution.
damagePerBlock(damage amountmode only)
Specifies the damage a player takes per second per block past the world border buffer. For example, ifdamagePerBlockis 0.1, a player 5 blocks outside the world border buffer will take 0.5 damage per second (damage less than half a heart might not change the visual health display, but will still accumulate). Must be at least 0.0. Initially set to 0.2.
Result
Fails if the arguments are not specified correctly, or if the new world diameter will be less than 1.0 or greater than 60,000,000.
On success:
  • add– The world border begins changing its diameter by the specified amount. Ifdistanceis positive, the world border will turn green and start increasing; if negative, the world border will turn red and start decreasing. Iftimeis 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of (distance/2)/timeblocks per second.
  • center– The center of the world border immediately moves to the specified coordinates.
  • damage amount– Sets the world border damage amount to the specified value. Any player outside the world border buffer will take this amount of damage per second per block past the world border buffer distance.
  • damage buffer– Sets the world border buffer distance to the specified value. Players won't take damage until they move past this distance from the world border.
  • get– Shows the current world border diameter in the chat.
  • set– The world border begins changing its diameter to the specified value. Ifdistanceis bigger than the current diameter, the world border will turn green and start increasing; if smaller, the world border will turn red and start decreasing. Iftimeis 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of ((distance-<current diameter>)/2)/timeblocks per second.
  • warning distance– Sets the world border warning distance to the specified value.
  • warning time– Sets the world border warning time to the specified value.


xp[편집 | 원본 편집]

명령어/infobox

Adds[[60]]to a player.

Syntax
xp <amount> [player]
xp <amount>L [player]
Arguments
amount
Specifies the amount of experience to give to the player. Must be between 0 and 2,147,483,647 (inclusive, without the commas).
If anLis added to the end, adds levels instead. Levels must be between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas) — negative values remove levels instead of adding them.
player(optional)
Specifies the target of the command. If not specified, defaults to the command's executor. Not optional in command blocks.
Result
Fails if arguments are not specified correctly, or ifplayerfails to resolve to one or more online players.
On success, adds experience or adds/removes levels. Total experience and levels will not be reduced below 0.
Examples
To give 7 experience to yourself:xp 7
To give 3 levels to Alice:xp 3L Alice
To remove all levels from all players:xp -2147483648L @a

삭제된 명령어[편집 | 원본 편집]

broadcast[편집 | 원본 편집]

추가적인 연구를 필요로 한다.
이 섹션은 추가 연구가 필요하다. (2015년 8월 27일).
명령어/infobox

/say 로 대체됨.


home[편집 | 원본 편집]

명령어/infobox

플레이어를 스폰으로 텔레포트 시킨다.

구문
알 수 없음.
결과
플레이어를 스폰으로 텔레포트 시킨다.


setspawn[편집 | 원본 편집]

명령어/infobox

스폰 지점을 설정한다.

구문
알 수 없음.
결과
알 수 없음.


solid[편집 | 원본 편집]

명령어/infobox

돌 배치와 기반암 배치를 전환한다.

구문
solid
결과
돌 배치와 기반함 배치를 전환한다.

Video[편집 | 원본 편집]

History[편집 | 원본 편집]

Issues[편집 | 원본 편집]

See also[편집 | 원본 편집]

Commands/video
c
0.0.15a_03Added /broadcast .
0.0.16a_01Changed /broadcast to /say .
0.0.17aAdded /setspawn .
One of the first singleplayer commands.
0.0.20Added /solid .
The first multiplayer commands.
a
1.0.16Added /ban , /ban-ip , /banlist , /deop , /home , /kick , /op , /pardon , /pardon-ip and /stop .
1.0.16_01Added /save-all , /save-on , /save-off and /tp .
1.0.16_02Added /list and /tell .
1.2.5Removed /home.
1.2.6Added /kill .
b
1.3Added /whitelist .
r
1.3.112w16aAdded cheats mode and /gamemode , /give , /time , /toggledownfall , and /xp .
The first operator commands.
12w17aAdded /help .
12w21aAdded /seed .
12w22aAdded /defaultgamemode .
12w24aAdded /publish .
12w25aCheats can now be turned on or off when opening a world to other players through LAN.
12w27aAdded /debug .
?Added /me .
1.4.212w32aAdded /difficulty , /gamerule , /spawnpoint , and /weather .
Added target selectors.
12w37aAdded /clear .
12w38aAdded item arguments to /clear .
12w41aThe limit for /xp is now 2,147,483,647 instead of 5,000.
1.4.41.4.4-preAdded /enchant .
1.513w03aAdded /testfor .
13w04aAdded /scoreboard .
13w09bAdded /effect .
1.6.113w23aAdded /spreadplayers .
Added gamerule naturalRegeneration.
13w24aAdded gamerule doDaylightCycle.
1.6-preAdded clear argument to /effect .
1.6.1-preAdded /playsound .
?The damage dealt by the kill command was changed from 1,000 to 3.4×1038.
1.7.213w36aAdded /summon .
Added /achievement .
Added dataTag argument to /give .
13w37aAdded /setblock , /tellraw , and /testforblock .
13w38aAdded /setidletimeout .
13w43aAdded /setworldspawn .
1.814w02aAdded /blockdata .
Added @e target selector.
Added player|entity argument to /kill .
Added data argument to /clear .
Added dataTag argument to /testfor .
/testfor is no longer exclusive to command blocks.
Added insertion attribute to raw JSON text specification.
14w03aAdded rotation arguments to /tp .
Added dx, dy, and dz to target selector arguments.
Added /clone and /fill .
Added gamerule logAdminCommands.
NBT data now supports using string IDs rather than numerical IDs.
Numerical IDs no longer work in other parts of commands, though they still work for NBT data.
14w04aAdded /particle .
14w05aAdded spectator to /gamemode and /defaultgamemode .
14w06aAdded hideParticles argument to /effect .
Added /trigger .
14w07aAdded /execute and /testforblocks .
/testfor can now test for partial NBT tag matches.
14w08aCommands run using /execute now pass their success value back to the command block running them.
14w10aAdded gamerule showDeathMessages.
Added force option to /clone .
14w17aAdded /worldborder .
Added gamerule randomTickSpeed.
14w19aAdded /worldborder damage and /worldborder warning .
14w20aAdded /title .
Added selector attribute to raw JSON text specification.
Added move option to /clone .
14w26aAdded /worldborder add .
Added /replaceitem .
Added gamerule sendCommandFeedback
14w28aAdded /stats .
14w29aAdded /worldborder get .
Added force argument to /particle .
Added /time query.
Added the ability to create dummy gamerules.
Added QueryResults to /stats .
14w30a/summon can now spawn lightning.
14w31a/debug can be run in single player.
Added chunk argument to /debug .
14w32bAdded /entitydata .
/give can no longer make illegal stacks.
1.8.11.8.1-pre1Added the game rule doEntityDrops.
The game rule doTileDrops no longer affects entities.
pocketa
0.7.4Added support for commands, though none are implemented yet.
틀:Issue list