명령어 는 어떠한 글자로 된 문자열을 입력함으로써 실행되는 고급 기능이다. Show 용도보통 마인크래프트에서 명령어는 T키(기본)나 /키로 열 수 있는 마인크래프트 채팅창을 통해 입력할 수 있다. /키는 채팅창을 연 다음 명령어를 입력할 때 앞에 붙는 슬래쉬(/)를 자동으로 붙여주어 유용한 단축키로 사용된다. 명령어를 입력하는 도중 Tab ↹키를 누르면 사용 가능한 명령어나 인수를 띄워준다. 명령어는 멀티플레이 서버 콘솔에도 입력할 수 있는데, 채팅창과는 달리 /가 있으면 명령이 수행되지 않는다. 명령 블록에서는 /가 있으면 명령이 수행되긴 하지만, 필요하지는 않다. 커맨드 블록에 쓰이는 명령어는 명령어 뒤에 인수가 필요할 때가 있는데, 보통 플레이어의 닉네임이 쓰인다. 대다수의 명령어들은 다음과 같은 상황에서만 수행된다.
소수의 채팅 명령어들은 치트가 비활성화된 싱글플레이에 게임 내에서도 사용 가능하다. 읽어보세요: 생성할 때 치트가 비활성화된 싱글플레이 게임에서는 그 세계를 LAN서버로 열어 플레이할 때 일시적으로 활성화될 수 있다( Esc → 'LAN 서버 열기' → '치트 허용: 꺼짐' 버튼을 눌러 '치트 허용: 켜짐'으로 바꿈 → 'LAN 세계 시작' ). 꼭 다른 플레이어들이 서버에 들어와야 할 필요는 없다. 영구적이지는 않지만, 게임을 나갈 때까지 명령어를 사용할 수 있고 명령어를 통해 만든 것들(아이템 스폰 등)을 세계와 함께 저장할 수 있다. 세계를 플레이할 때마다 이 방법을 쓸 수 있다. LAN서버가 열리면 게임 메뉴를 열 때 작동되던 게임 일시정지 기능이 없어지게 되므로 유의해야 한다. 즉, LAN서버에서 게임 메뉴를 열면 도중에 몹들의 공격을 받는 등 플레이어 조종을 못하는 위험이 있기 때문이다. 따라서 LAN서버에서는 게임 메뉴를 열기 전에 안전한 곳으로 가거나, 정 안심이 되지 않으면 세계를 다시 불러와야 한다. 세계를 다시 불러오면 LAN 서버가 꺼지므로 게임 일시정지 기능이 살아난다. 만약 영구적으로 치트를 사용해야 한다면(또는 일시적으로 치트를 쓰다가 꺼야 할 때)는 level.dat를 수정해야 한다. 아래 과정을 진행해야 한다.
목표 선정 인자플레이어가 인수로 지정될 수 있는 대다수의 명령어들은, 플레이어 이름(닉네임)으로 인수를 지정하는 것 외에 해당 조건을 만족시키는 한 명 또는 여러 명의 플레이어들을 "목표 선정"하여 인수로 지정할 수 있다. 조건을 통해 플레이어들을 목표 선정하려면 하나의 목표 선정 인자 변수를 선택하는데, 목표 선정 인자 인수를 설정하여 조건을 만족시키도록 수정해야 하는 선택적인 절차가 뒤따를 수 있다. 예를 들어, Red팀에 있는 모든 플레이어들의 게임 모드를 크리에이티브 모드로 바꾸려면, 플레이어들의 이름(닉네임)을 입력하는 것 대신에 다음과 같이 입력할 수도 있다. 목표 선정 인자 변수목표 선정 인자 변수 요약
목표 선정 인자 변수는 설정할 목표의 폭넓은 범주를 찾는다. 다음 세 가지의 변수가 있다. @p 목표로 가장 가까운 플레이어를 선정한다.@s 명령을 실행하는 계체를 대상으로 지정한다.@r 목표로 무작위의 플레이어를 선정한다.@a 목표로 모든 플레이어들을 선정한다.목표 선정 인자 변수들은 서로 작용할 수도 있고, 더 나아가 목표 선정 인자 인수와 함께 범위가 수정될 수도 있다. 다음은 스냅숏 버전에서는 발견되었지만 풀 버전에서는 아직 발견되지 않은 목표 선정 인자 변수이다. @e 목표로 블록 외의 모든 요소(개체)를 선정한다(플레이어 포함).목표 선정 인자 인수목표 선정 인자 인수 요약
목표 선정 인자 변수를 쓴 다음, 목표 선정 인자 인수를 써서 선택된 일련의 목표들을 수정할 수 있다. 아래 보기에서 목표 선정 인자 변수 앞에 있는 꺾쇠괄호 안에 쉼표(',')로 분리된 곳에 인수를 입력해 넣으면 된다. @<목표 선정 인자 변수>[<인수>=<값>,<인수>=<값>,…] .등호('=')나 쉼표(',') 주변에는 띄어쓰기를 할 수 없으며, 오직 쉼표(',')만 인수와 인수 사이를 구별하게 한다. 좌표로 목표 선정하기[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=게임모드] 특정 게임모드인 목표물만을 선정한다. 다음은 게임모드에 입력이 가능한 값들이다.
[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 와
함께 사용하면, 오로지 플레이어만 지정하던 것이 다른 개체도 포함하게 된다.명령어 요약명령어 요약
명령어 목록 (이 문서는 편집 중임.)구문
achievement
플레이어에게 업적을 주거나 통계를 증가시킵니다. 문법achievement <give|take> <대상> <조건> <발전 과제> [criterion] 인수<조건> <조건>에 들어갈 수 있는 항목
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 주소를 말한다. 밴은 화이트리스트를 덮어씌운다. ban함께 보기:
플레이어를 블랙리스트에 추가한다 문법ban <name> [reason …] 인수name(이름)플레이어의 닉네임. 그 플레이어가 온라인이 아니더라도 가능하며 실제 플레이어가 아니라도 가능하다.reason(선택적)(이유)밴과 함께 뜨는 텍스트, 다른 op [1]들에게와 서버로그에 저장된다.결과항상 성공. 플레이어 이름은 블랙리스트에 추가되고, 그 닉네임을 가진 플레이어가 서버에 들어오지 못하게 막는다.
ban-ip
IP주소를 블랙리스트에 추가한다. 문법ban-ip <address|name> [reason …] 인수address|name(주소/이름)IP 주소 또는 플레이어 이름은 온라인인 플레이어에게만 적용된다.reason(선택적) 밴과 함께 뜨는 텍스트, 다른 op [2] 들에게와 서버로그에 저장된다.결과address|name이 올바른 IP 또는 플레이어 이름이 아닌 경우 실패함성공한 경우,
IP 주소(온라인인 플레이어, 또는 명시된 IP 주소)가 서버 블랙 리스트에 추가되고, 그 주소를 이용하여 서버에 들어오지 못하게 막는다.banlist
서버의 블랙리스트를 보여준다. 문법banlist ips banlist players 결과항상 성공. 차단된 IP나 플레이어를 보여준다.blockdata
블록의 데이터 태그를 바꾼다. 문법blockdata <x> <y> <z> <dataTag> 인수x y z(좌표)바뀔 블록의 좌표를 나타낸다. 명령어의 실행에 대한 상대적인 위치를 나타내기 위해 notation|tilde notation 을 사용할 수도 있다.dataTag(데이터 태그)특정 블록에서 추가할, 또는 덮어씌울 NBT 데이터를 나타낸다. 이 태그는 복합 태그이여야 한다. 예시: {CustomName:Fred} 결과독립 변수가 제대로 입력되지
않으면 실패한다.성공 시에는, 특정 블록의 데이터 태그를 바꾼다.예시(0, 64, 0)위치에 있는 신호기의 1차 파워를 [3] 으로바꾸려면: blockdata 0 64 0 {Primary:3} 같이 보기
clear
플레이어 보관함을 지운다. 문법clear [플레이어] [아이템 이름] [수량] 인수player(선택적)(이름)플레이어 이름 또는 selectors|target selector 여야만 함. 만약에 명시되지 않았다면, 실행을 한 플레이어에게 실행함. 명령 블록에서는 선택적이 아님.item(선택적)(아이템)지워지는 values|id 을 명시한다. 명시하지 않은 경우 모든 아이템이 지워짐.
data(선택적)(데이터)삭제될 아이템의 values|data value 를 명시함. 만약 명시되지 않았거나 -1 일 경우, 데이터에 상관없이 item을 만족하는 모든 아이템이 지워짐.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 inventoriesclone
한 지역에서 다른 지역으로 블록을 복제한다. 문법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 z1 and x2 y2 z2Specifies the coordinates of two opposing corner blocks of the source region. May use
notation|tilde notationto specify distances relative to the command's executionThe 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 0 has a 1-block volume, and0 0 0 1 1 1 and1 1 1 0 0 0 both identify the same region with an 8-block volume.x y zSpecifies the lower northwest corner (i.e., the smallest coordinates of each axis) of the destination region. May use
notation|tilde notationto specify a distance relative to the command's execution.maskMode(선택적) Specifies whether to filter the blocks being cloned. Must be one of the following:
replace .cloneMode(선택적) Specifies how to treat the source region. Must be one of the following:
normal .TileName(섵잭적) Specifies the block id (e.g.,minecraft:stone ) to copy whenmaskModeis set tofiltered . Not optional when usingfiltered mode.결과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 blockdebug
디버깅 세션을 시작하거나 중지한다. 문법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
멀티플레이어 서버에 새로 들어오는 플레이어들의 기본게임 모드(크리에이티브, 서바이벌 등)게임 모드를 설정한다. 문법defaultgamemode <mode> 인수mode새 플레이어들의 게임모드를 설정한다. 다음 중 하나여야 한다.:
defaultgamemode survival ,defaultgamemode s , 또는defaultgamemode 0 같이 보기/gamemode – 플레이어의 게임 모드를 전환deop
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
난이도를 설정한다.(평화로움, 쉬움 등). 문법difficulty <difficulty> 인수difficulty새 난이도를 명시한다. 다음 중 하나여야 한다:
difficulty hard ,difficulty h , 또는difficulty 3 같이 보기/gamemode – 플레이어의 게임 모드를 전환한다.(크리에이티브, 서바이벌 등)effect
Theeffectcommand manages effect|status effectson players and other entities. 문법effect <player> clear (모든 효과를 없앤다)effect <player> <effect> [seconds] [amplifier] [hideParticles] (효과를 준다)인수player타겟(들)을 명시한다. 플레이어 이름 또는 selectors|target selector(@e is permitted to target entities other than
players)이어야 한다.effectSpecifies the effect to grant. Must be a values#Status effects|status effect id(for example,1 orminecraft: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 inclear mode.성공한 경우:
effect @p 1 60 가장 가까운 플레이어에게 신속 3 효과를 60초동안 주려는 경우:effect @p minecraft:speed 60 2 모든 플레이어에게서 성급함 효과를 없애려는 경우:effect @a minecraft:haste 0 모든 좀비에게서 모든 효과를 없애려는 경우:effect @e[type=Zombie] clear enchant
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 IDSpecifies 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
levelfor 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/enchant enforces maximum levels and compatibility, other commands (such as/give ,/replaceitem , and/entitydata ) can bypass these restrictions.entitydata
Modifies the data tag of an entity. 문법entitydata <entity> <dataTag> 인수entitySpecifies the entity(ies) to be modified. Must be an entity UUID or the@e selectors|target selector.dataTagSpecifies the tags|data
tagelements 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
Executes a command on behalf of one or more other entities, with originating permissions, optionally on condition that a single-block 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. 인수entitySpecifies 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 zSpecifies 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 notationare relative to the target, not to the position of the command's execution.command실행될 명령어를 명시한다. 올바른 명령어여야만 한다.x2 y2 z2(detect mode 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 notationto specify distances relative to (x,y,z).blockanddata(detect mode only) Specifies the values#Block IDs|block id and datawhich 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-1 to 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.예시모든 좀비 자리에 번개를 소환한다. execute @e[type=Zombie] ~ ~ ~ summon LightningBolt 모든 종류의 모래위에 서있는 모든 좀비 자리에 번개를 소환한다. execute @e[type=Zombie] ~ ~ ~ detect ~ ~-1 ~ minecraft:sand -1 summon LightningBolt 10 크리퍼를 가장 가까운 플레이어의 자리로 소환하려는 경우 (로딩된 월드에 적어도 10 이상의 개체가 있어야 작동함):
execute @e[c=10] ~ ~ ~ execute @p ~ ~ ~ summon Creeper 같이 보기/testforblock — 지정된 위치에 있는 특정 블럭을 검사한다. (특정한 데이터 태그 포함)fill
일부 또는 모든 곳을 특정한 블록으로 채운다. 문법fill<x1> <y1> <z1><x2> <y2> <z2><블록> [데이터 값|상태] [예전 블록 처리] [데이터 태그] The fill command also has an optional alternate syntax when using thereplace option:fill<x1> <y1> <z1><x2> <y2> <z2><블록> <데이터 값|상태> replace [설치될 블록] [설치될 데이터] Color added to make reading easier. 문법x1 y1 z1andx2 y2 z2Specifies any two opposing corner blocks of the region to be filled (the "fill region"). May use notation|tilde notationto 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 0 has a 1-block volume, and0 0 0 1 1 1 and1 1 1 0 0 0 both identify the same region with an 8-block volume.TileNameSpecifies 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:
replace .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 dataof 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
Sets a player's mode|game mode. Syntaxgamemode <mode> [player] ArgumentsmodeMust be one of:
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 worldgamerule
Sets or queries a game rule value. Syntaxgamerule <rule name> [value] Argumentsrule nameSpecifies 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
onlytrue orfalse specified 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
gamerule doDaylightCycle false To stop natural healing:gamerule naturalRegeneration false To define a new game rule calledMyNewRule and sets its value to 10:gamerule MyNewRule 10 give
Gives an item to a player. Syntaxgive <플레이어> <아이템> [양] [데이터] [데이터 태그] ArgumentsplayerSpecifies the target to give item(s) to. Must be a player name or selectors|target selector.itemSpecifies the item to give. Must be a valid
values#Item IDs|item id(for example,minecraft:iron_shovel ), or values#Block IDs|block idfor 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 dataof 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}} ).ResultFails 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[검증 필요]so that it immediately enters the target's inventory if there is room.ExamplesTo 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 locationhelp
Provides help/list of commands. Syntaxhelp [페이지 수|명령어 이름] ? [페이지 수|명령어 이름] Argumentspage|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).ResultFails 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.ExamplesTo 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
Kicks a player off a server. Syntaxkick <player> [reason …] DescriptionForcibly disconnectsplayerfrom the server, displaying an optionalreasonto them.Success Conditionsplayermust be online.kill
Kills entities (players, mobs, items, etc.). Syntaxkill [플레이어|개체] Argumentsplayer|entitySpecifies 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.ResultFails 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 [26]— and issues the appropriate
message|death message. Players and mobs killed this way drop loot, and [27]and cube|magma cubesthat aren't already of minimum size spawn smaller ones. Destroys
[28],[29],(entity)|loose itemsand orb|experience orbsif they are targeted.ExamplesTo 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
Lists players on the server. list DescriptionShows the names of all currently-connected players (the same can be achieved when pressing tab)Success ConditionsAlways succeeds, even in a command block.me
Displays a message about yourself. Syntaxme <문구 ...> ResultFails 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
Grants operator status to a player. Syntaxop <player> ResultAlways succeeds. Grantsplayer[30]status on the server. Example) to give operator status to Alice, type op Alice pardon
Removes entries from the banlist. Syntaxpardon <name> pardon-ip <address> ArgumentsnameSpecifies the name to remove from the banlist.addressSpecifies the IP address to remove from the banlist. Must be a valid IP address.ResultFails 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
Creates particles. Syntaxparticle <이름><x> <y> <z><xd> <yd> <zd><속도> [개수] [모드] [플레이어] Color added to make reading easier.ArgumentsnameSpecifies the particle to create. Must be a name(for example,explode ).x y zSpecifies 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 notationto specify a position relative to the command's execution.xd yd zdSpecifies the size of the area to spawn particles in.Exception:Whennameisreddust ,mobSpell ,
ormobSpellAmbient andcountis 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 0 produces a red particle,-1 1 0 produces a green particle (red is reduced to 0 and green increased to 1),0 0 1 produces a purple particle (blue is added to the original red), etc.
WithmobSpell ormobSpellAmbient ,0 0 0 produces a black particle,0 1 0 produces a green particle,0 0 0.5 produces a dark blue particle, etc. Ifcountis greater than 0, colors are randomized.speedSpecifies 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 onlyforce will 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.ResultFails if the arguments are not specified correctly.On success, creates the specified particle.ExamplesTo create a stationary huge explosion particle 10 blocks to the east: particle hugeexplosion ~10 ~ ~ 0 0 0 0
playsound
Plays a sound. Syntaxplaysound <sound> <player> [x] [y] [z] [volume] [pitch] [minimumVolume] ArgumentssoundSpecifies 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.say sound event will play one of several pig sounds at random, because the event has multiple sounds associated with it.pack|Resource packsmay 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).playerSpecifies 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 notationto 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), andminimumVolume will determine its volume. Must be between 0.0 and 1.0 (inclusive).ResultFails 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
Opens single-player world to the local network. Syntaxpublish DescriptionOpens your single-player game for LAN friends to join. This command appears in the singleplayer cheats.Success ConditionsCannot be used in a command block.replaceitem
Replaces items in the inventories of blocks (chest, furnaces, etc.) or entities (players or mobs) with the given item(s). Syntaxreplaceitem block <x> <y> <z> <slot> <item> [amount] [data] [dataTag] replaceitem entity <selector> <slot> <item> [amount] [data] [dataTag] Argumentsx y z(block mode only) Specifies the position of the block to be modified. May use notation|tilde notationto specify a position relative to the
command's execution.selector(entity mode only) Specifies one or more entities to modify. Must be a player name or selectors|target selector.slotSpecifies 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_number whereslot_numberis replaced with a number specifying the slot.
/blockdata .
For entities, must be one of the following, whereslot_numberis replaced with a number specifying the slot:
/entitydata .itemSpecifies 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 idfor 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 tagfor 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}} ).ResultFails 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.ExamplesTo 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 itemssave
These commands manage server saves. save-allSaves the server to disk. Syntaxsave-all DescriptionForces the server to write all pending changes to the world and player data to disk.Success ConditionsAlways succeeds.save-offDisables automatic server saves. Syntaxsave-off DescriptionDisables the server writing to the world files. All changes will temporarily be queued.Success ConditionsAlways succeeds.save-onEnables automatic server saves. Syntaxsave-on DescriptionEnables the server writing to the world files. This is the default behavior.
ResultAlways succeeds.say
Sends a message in the chat to other players Syntaxsay <message …> ResultFails 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
These commands manage scoreboard objectives, players, and teams. Syntaxscoreboard <objectives|players|teams> … See reference|Scoreboard#Command referencefor more information. seed
Displays the world (level generation)|seed. Syntaxseed ResultAlways succeeds. This command can always be used in single-player mode, regardless of whether cheats are enabled or not.setblock
한 블록을 다른 블록으로 바꾼다. Syntaxsetblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag] Argumentsx y zSpecifies the position of the block to be changed. May use notation|tilde notationto specify a position relative to the command's execution.TileNameSpecifies 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:
replace .dataTag(optional) Specifies the tag|data tagfor the new block. Must be a
compound tag|NBT tag(for example,{CustomName:Fred} ).ResultFails 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
setidletimeout
Sets the time before idle players are kicked from the server. Syntaxsetidletimeout <Minutes until kick> DescriptionSet the idle kick timer. Any players idle forMinutes until kickwill be kicked.Success ConditionsAlways succeeds.setworldspawn
Sets the spawning|world spawn. Syntaxsetworldspawn setworldspawn <x> <y> <z> Argumentsx 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 notationto 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 chunksare usually kept loaded at all times, new spawn chunks won't be loaded by this command until a player moves within range.[42](which inMinecraftpoint to the world spawn rather than north) will also not update to the change until the world is reloaded.
ResultFails if the arguments are not specified correctly.On success, sets the world spawn to the specified coordinate.spawnpoint
Sets the spawn point for a player. Syntaxspawnpoint spawnpoint <player> spawnpoint <player> <x> <y> <z> Argumentsplayer(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 notationto specify coordinates relative to the command's execution. If not
specified, defaults to the position of the specified player(s).ResultFails 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
Teleports entities (players, mobs, items, etc.) to random surface locations within an area. Syntaxspreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams> <player …> Argumentsx zSpecifies 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 notationto specify coordinates relative to the command's execution.spreadDistanceSpecifies the minimum distance between targets. Must be at least 0.0.maxRangeSpecifies 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.respectTeamsSpecifies whether to keep teams together. Must betrue orfalse . Iftrue , targets on the same team will be teleported to the same location.playerSpecifies the targets to spread. Must be one or more player names and/or selectors|target selectorsseparated by spaces (@e is permitted
to target entities other than players).ResultFails 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 [43].ExamplesTo 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
Manages the updating of scoreboard objectives with the results of other commands. Commands can be executed by blocks (specifically,block|command blocksand [44]) or by entities (players can execute commands directly, and other entities can be the origin of commands indirectly with the 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, 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. Syntaxstats 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> Argumentsx y z(block mode 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 notationto specify a position relative to the command's execution.selector2(entity mode only) Specifies the entity to post command stats from. Must be a player name or a
selectors|target selector.statSpecifies the command stat whose selector and objective are to be cleared or set. Must be one of:
set mode 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 selectorwill produce useful results (though player names can be fake, so even real players don't need to be online).objective(set mode 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.ResultFails 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 skullupdate 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 directlystop함께 보기: Tutorials/Command stats
Stops a server. Syntaxstop ResultAlways succeeds. Saves all changes to disk, then shuts down the server.summon
Summons an [46](mobs, projectiles, items, vehicles, etc.). Syntaxsummon <EntityName> [x] [y] [z] [dataTag] ArgumentsEntityNameSpecifies 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 notationto 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 tagfor the entity. Must be a compound tag|NBT tag(for example,{CustomName:Fred} ). Lightning has no additional data tags that can be specified.ResultFails if the arguments are not specified correctly.On success,
creates the specified entity at the specified position.ExamplesTo 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
Sends a private message to one or more players. Syntaxtell <player> <message …> msg <player> <message ...> w <player> <message ...> ArgumentsplayerSpecifies 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
[47]).private messageSpecifies 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).ResultFails 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.ExamplesTo privately tell Alice to start the mission:tell Alice Start the mission! tellraw
Sends a JSON message to players. Syntaxtellraw <player> <raw json message> ArgumentsplayerSpecifies the player(s) to send the message to. Must be a player name or selectors|target selector.raw json messageSpecifies the message to send. Must be valid
JSON text|raw JSON text(for example,{text:"Hi there!",bold:true} ).ResultFails 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 playerstestfor
Counts entities (players, mobs, items, etc.) matching specified conditions. Syntaxtestfor <player> [dataTag] ArgumentsplayerSpecifies the targets to count. Must be a player name or a selectors|target selector(@e is 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} ).ResultFails 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 comparatorfacing away from the command block.ExamplesTo 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
Tests whether a certain block is in a specific location. Syntaxtestforblock <x> <y> <z> <TileName> [dataValue] [dataTag] Argumentsx y zSpecifies 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 notationto specify a position relative to the command's execution.TileNameSpecifies 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 datato 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 tagsto test for. Must be a compound
tag|NBT tag(for example,{CustomName:Fred} ). If not specified,dataTagmatches any block data tag.ResultFails 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.ExamplesTo test if the block at (0,64,0) is any type of [48]: 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 [49]with the "mall"[50]inside: testforblock ~ ~-1 ~ minecraft:jukebox -1 {Record:2261} testforblocks
Tests whether the blocks in two regions match. Syntaxtestforblocks<x1> <y1> <z1><x2> <y2> <z2><x> <y> <z>[mode] Color added to make reading easier.Argumentsx1 y1 z1andx2 y2 z2Specifies 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 notationto specify coordinates relative to the command's position. The number of blocks in the source region must not exceed 524,288.x y zSpecifies 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 notationto 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 .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
Changes or queries the world's game [52]. Syntaxtime <add|query|set> <value> ArgumentsvalueSpecifies the time to add, query, or set:
time set 1000 ortime set day To add one day to the world time:time add 24000 title
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 Scaleand screen titles which are too big to fit on the screen are not line-wrapped (they just overflow off the screen on both sides). SyntaxThe 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)ArgumentsplayerSpecifies the player(s) to display a screen title to. Must be a player name or selectors|target selector.title(subtitle andtitle mode 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(times mode 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.pngExample result of the title command.
toggledownfall
Toggles the weather. Syntaxtoggledownfall ResultAlways succeeds. If weather is currently clear, rain or snow will start. If weather is currently rain or snow, it will stop.tp
Teleports entities (players, mobs, items, etc.). Syntaxtp [target player] <destination player> tp [target player] <x> <y> <z> [<y-rot> <x-rot>] Argumentstarget 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 playerSpecifies the entity to teleport the target(s) to. Must be either a player name or a target selector.x y zSpecifies 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
notationto 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.ResultFails 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.ExamplesTo 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
Modifies a scoreboard objective with a "trigger" criteria. Syntaxtrigger <objective> <add<nowiki>|set> <value> DescriptionUsed together with[[53]] to let players activate systems made by operators or mapmakers.ArgumentsobjectiveAn enabled scoreboard objective with the "trigger" criteria.add|set
weather
Sets the weather. Syntaxweather<clear|rain|thunder>[duration] Argumentsclear|rain|thunder
weather clear 1200 To make it rain, but let it end at its
own pace:weather rain whitelist
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. SyntaxThe command has six variations.whitelist add <player> whitelist list whitelist off whitelist on whitelist reload whitelist remove <player> Argumentsplayer(add andremove mode only) Specifies the player(s)
to add or remove from the whitelist.ResultFails if the arguments are not specified correctly, or ifplayerdoesn't existOn success:
worldborder
These commands control the border|world border. SyntaxThe 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)Argumentsdistance(add ,damage buffer ,set andwarning distance modes only) Specifies a distance in blocks:
add ,set andwarning time modes
only) Specifies a time in seconds:
center mode 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 notationto specify coordinates relative to the command's execution.damagePerBlock(damage amount mode 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.ResultFails 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:
xp
Adds [54]to a player. Syntaxxp <amount> [player] xp <amount>L [player] ArgumentsamountSpecifies the amount of experience to give to the player. Must be between 0 and 2,147,483,647 (inclusive, without the commas).If anL is 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.ResultFails 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.ExamplesTo 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일).
Testfor (1.13.2부터 해당)execute로 대체됨 (execute에 합쳐짐) home
플레이어를 스폰으로 텔레포트 시킨다. 구문알 수 없음.결과플레이어를 스폰으로 텔레포트 시킨다.setspawn
스폰 지점을 설정한다. 최근에는 /setworldspawn으로 대체되었다. 구문알 수 없음.결과알 수 없음.solid
돌 배치와 기반암 배치를 전환한다. 구문solid 결과돌 배치와 기반함 배치를 전환한다.VideoHistoryIssuesSee alsoCommands/video
“명령어”에 관련된 문제점은 이슈 트래커에서 관리된다. 그곳에서 문제점을 보고하면 된다.
|