Minecraft Wiki
탐색
대문
모든 문서
Interactive Maps
Minecraft 위키
대문
최근 바뀜
임의의 문서로
사용자 모임
관리자 요청
위키 규정
스타일 가이드
도움말
게임
Minecraft
Minecraft Dungeons
Minecraft Earth(지원 종료됨)
Minecraft: Story Mode(지원 종료됨)
유용한 문서
블록
아이템
제작
제련
마법 부여
물약 양조
몹
거래
레드스톤 회로
리소스 팩
모드
Gamepedia
지원
부적절 광고 신고
도움말 위키
문의하기
FANDOM
게임
영화
TV
위키
위키 둘러보기
커뮤니티 중심
새 위키 만들기
아직 계정이 없으신가요?
가입하기
로그인
로그인
가입하기
한국어 Minecraft 위키
1,334
pages
탐색
대문
모든 문서
Interactive Maps
Minecraft 위키
대문
최근 바뀜
임의의 문서로
사용자 모임
관리자 요청
위키 규정
스타일 가이드
도움말
게임
Minecraft
Minecraft Dungeons
Minecraft Earth(지원 종료됨)
Minecraft: Story Mode(지원 종료됨)
유용한 문서
블록
아이템
제작
제련
마법 부여
물약 양조
몹
거래
레드스톤 회로
리소스 팩
모드
Gamepedia
지원
부적절 광고 신고
도움말 위키
문의하기
명령어 문서 원본 보기
돌아가기
| ←
명령어
원본 보기
역사 보기
토론 (1개)
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
요청한 명령은 다음 중 하나의 권한을 가진 사용자에게 제한됩니다:
Users
, 위키아 헬퍼, Wiki Representatives, Wiki Specialists.
이 문서는 편집하거나 다른 명령을 할 수 없도록 보호되어 있습니다.
문서의 원본을 보거나 복사할 수 있습니다.
== 명령어 목록 (이 문서는 편집 중임.) == ; 구문 :{| class="wikitable" style="text-align:center" ! 이런 글자라면 !! 이런 뜻임. |- | 일반 글자 || '''표시된 그대로의 값'''을 입력한다. |- | ''기울여진 글자'' || '''알맞은 값'''으로 변경한다. |- | <''삼각형 괄호''> || '''필수'''로 입력해야 한다. |- | [''사각형 괄호''] || '''꼭 입력하지 않아도''' 된다. |- | x<nowiki>|</nowiki>y | '''표시된 값들 중, 하나'''를 선택한다. 값들은''' | '''로 구분된다. |- | 값1 … || 값들을 띄어쓰기로 구분할 수 있다. |} ; 성공 조건 : <nowiki/><nowiki/>어떤 명령어의 성공 조건이 다 만족되어야 "성공적인" 명령어라고 게임이 받아들인다. 이러한 것은 다양한 조건을 설정히는 데에 사용된다. 예를 들면, 명령 블록에서 비교를 하는 레드스톤 비교기의 출력 결과가 있다. 항상 모든 "성공적인" 명령이 항상 무언가를 하거나 모든 "실패한" 명령어들이 유용한 것을 하지 않는 것은 아닌 점에 유의하라. ; 명령어 제한 : 명령어를 사용할 수 있는 사람과, 어떠한 상황에서 사용이 가능한지 설명한다. :* ''None:'' 누구나 사용할 수 있는 명령어이다. 누구나 사용할 수 있는 명령어 목록은 {{cmd|help}},{{cmd|me}},{{cmd|tell}},{{cmd|trigger}}이다. :* ''관리자(OP):'' 관리자만 사용할 수 있거나, 싱글플레이에서 "치트 허용" 상태에서만 사용할 수 있다. :* ''멀티플레이:'' 멀티플레이에서만 사용할 수 있는 명령어 입니다. 사용할 수 있는 명령어 목록은 {{cmd|ban}},{{cmd|ban-ip}},{{cmd|banlist}},{{cmd|deop}},{{cmd|kick}},{{cmd|list}},{{cmd|op}},{{cmd|pardon}},{{cmd|pardon-ip}},{{cmd|save-all}},{{cmd|save-off}},{{cmd|save-on}},{{cmd|setidletimeout}},{{cmd|stop}},{{cmd|whitelist}}입니다. :: 멀티플레이에서는 타겟셀렉터를 지원하지 않는다. :: 멀티플레이 명령어들은 [[명령 블록]]에서 사용할 수 없다. :: 다수의 멀티플레이 명령어들은 서버에 들어오지 않아도 작동한다. :* ''[[명령 블록]] 사용불가: ''명령 블록에서 사용할 수 없는 명령어이다. === achievement === {{/infobox |achievement |op |1.7.2|13w36a }} 플레이어에게 업적을 주거나 통계를 증가시킵니다. ;문법 : <code>achievement <give<nowiki>|</nowiki>take> <대상> <조건> <발전 과제> [criterion]</code> ;인수 : <조건> :: <조건>에 들어갈 수 있는 항목 ::* <code>only</code> : 해당 발전과제만 ::*<code>until</code> : 해당 발전과제 이전의 발전과제 모두 ::*<code>*</code> 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: <code>achievement give achievement.overkill</code> : To grant the "Taking Inventory" achievement to Alice: <code>achievement give achievement.openInventory Alice</code> : To increase the "Mob Kills" statistic by 1 for the nearest player: <code>achievement give stat.mobKills @p</code> : To remove all achievements from all players: <code>achievement take * @a</code> === ban === 이 커멘드는 서버의 밴리스트나 블랙리스트를 관리한다. 블랙리스트란 서버에 들어올 수 없는 플레이어나 IP 주소를 말한다. 밴은 화이트리스트를 덮어씌운다. ==== ban ==== {{see also|Commands#whitelist|title1 = <code>/whitelist</code>}}{{/infobox |ban |mp |Alpha 1.0.16 }} 플레이어를 블랙리스트에 추가한다 ; 문법 : <code>ban <''name''> [''reason …'']</code> ; 인수 : ''name(이름)'' :: 플레이어의 닉네임. 그 플레이어가 온라인이 아니더라도 가능하며 실제 플레이어가 아니라도 가능하다. : ''reason(선택적)(이유)'' :: 밴과 함께 뜨는 텍스트, 다른 op [http://minecraft.gamepedia.com/Operator|operators]<nowiki/>들에게와 서버로그에 저장된다. ; 결과 : 항상 성공. 플레이어 이름은 블랙리스트에 추가되고, 그 닉네임을 가진 플레이어가 서버에 들어오지 못하게 막는다. ==== ban-ip ==== {{/infobox |ban-ip |mp |Alpha 1.0.16 }} IP주소를 블랙리스트에 추가한다. ; 문법 : <code>ban-ip <''address''<nowiki>|</nowiki>''name''> [''reason …'']</code> ; 인수 : ''address|name(주소/이름)'' :: IP 주소 또는 플레이어 이름은 온라인인 플레이어에게만 적용된다. : ''reason''(선택적) :: 밴과 함께 뜨는 텍스트, 다른 op [http://minecraft.gamepedia.com/Operator|operators] 들에게와 서버로그에 저장된다. ; 결과 : ''address|name''이 올바른 IP 또는 플레이어 이름이 아닌 경우 실패함 : 성공한 경우, IP 주소(온라인인 플레이어, 또는 명시된 IP 주소)가 서버 블랙 리스트에 추가되고, 그 주소를 이용하여 서버에 들어오지 못하게 막는다. ==== banlist ==== {{/infobox |banlist |mp |Alpha 1.0.16 }} 서버의 블랙리스트를 보여준다. ; 문법 : <code>banlist ips</code> : <code>banlist players</code> ; 결과 : 항상 성공. 차단된 IP나 플레이어를 보여준다. === blockdata === {{/infobox |blockdata |op |1.8|14w02a }} 블록의 데이터 태그를 바꾼다. ; 문법 : <code>blockdata <''x''> <''y''> <''z''> <''dataTag''></code> ; 인수 : ''x y z(좌표)'' :: <nowiki/>바뀔 블록의 좌표를 나타낸다. 명령어의 실행에 대한 상대적인 위치를 나타내기 위해 [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation] 을 사용할 수도 있다. : ''dataTag(데이터 태그)'' :: <nowiki/>특정 블록에서 추가할, 또는 덮어씌울 NBT 데이터를 나타낸다. 이 태그는 복합 태그이여야 한다. 예시: <code>{CustomName:Fred}</code> ; 결과 : 독립 변수가 제대로 입력되지 않으면 실패한다. : 성공 시에는, 특정 블록의 데이터 태그를 바꾼다. ; 예시 : (0, 64, 0)위치에 있는 신호기의 1차 파워를 [http://minecraft.gamepedia.com/Haste%7CHaste] 으로바꾸려면: :: <code>blockdata 0 64 0 {Primary:3}</code> ; 같이 보기 :* [http://minecraft.gamepedia.com/Chunk format#Block entity format|Chunk format#Block entity format]— defined data tags for tile entity blocks :* {{cmd|entitydata}}— changes an entity's data tag :* {{cmd|replaceitem}}— replaces items in a block's inventory :* {{cmd|setblock}}– places a new block at a position :* {{cmd|stats}}— sets a block's CommandStats === clear === {{/infobox |clear |op |1.4.2|12w37a }} 플레이어 보관함을 지운다. ; 문법 : <code>clear [플레이어] [아이템 이름] [수량]</code> ; 인수 : ''player(선택적)(이름)'' :: 플레이어 이름 또는 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector] 여야만 함. 만약에 명시되지 않았다면, 실행을 한 플레이어에게 실행함. 명령 블록에서는 선택적이 아님. : ''item(선택적)(아이템)'' :: 지워지는 [http://minecraft.gamepedia.com/Data values|id] 을<nowiki/> 명시한다. 명시하지 않은 경우 모든 아이템이 지워짐. : ''data(선택적)(데이터)'' :: <nowiki/>삭제될 아이템의 [http://minecraft.gamepedia.com/Data values|data value] 를 명시함. 만약 명시되지 않았거나 <code>-1</code>일 경우, 데이터에 상관없이 item을 만족하는 모든 아이템이 지워짐. : ''maxCount(선택적)(최댓값)'' :: Specifies the maximum number of items to be cleared. If not specified, or if<code>-1</code>, all items that match''item''and''data''are cleared. If<code>0</code>, 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 [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{display:{Name:Fred<nowiki>}}</nowiki></code>). ; 결과 : Fails if the arguments are not specified correctly, if''player''fails to resolve to one or more online players, or if no items are removed (except when''maxCount''is<code>0</code>) : 성공한 경우 플레이어(들)의 명시된 아이템들이 지워짐. ; 예시 : To clear your entire inventory:<code>clear</code> : Alice의 보관함을 지우려는 경우:<code>clear Alice</code> : Alice의 보관함에서 양털을 모두 지우려는 경우:<code>clear Alice minecraft:wool</code> : Alice의 보관함에서 주황색 양털을 모두 지우려는 경우:<code>clear @a minecraft:wool 1</code> : To clear all golden swords with the "Sharpness I" enchantment from the nearest player, regardless of their damage value: :: <code>clear @p minecraft:golden_sword -1 -1 {ench:[{id:16s,lvl:1s}]}</code> ; 같이 보기 : {{cmd|blockdata}}— can change or remove items in block inventories : {{cmd|entitydata}}— can change or remove items in entity inventories : {{cmd|give}}— give items to player : {{cmd|kill}}— can destroy item entities : {{cmd|replaceitem}}— can replace items in block or entity inventories === clone === {{/infobox |clone |op |1.8|14w03a }} 한 지역에서 다른 지역으로 블록을 복제한다. ; 문법 : <code>clone<''x1''> <''y1''> <''z1''> <''x2''> <''y2''> <''z2''> <''x''> <''y''> <''z''>[''maskMode''] [''cloneMode''] [''TileName'']</code> : ''Color added to make reading easier. The in-game help for the clone command does not list the final argument —''TileName''is a placeholder name for the purpose of discussion.'' ; 인수 : ''x1 y1 z1'' and ''x2 y2 z2'' :: Specifies the coordinates of two opposing corner blocks of the source region. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 (x<sub>greater</sub>- x<sub>lesser</sub>+ 1) × (y<sub>greater</sub>- y<sub>lesser</sub>+ 1) × (z<sub>greater</sub>- z<sub>lesser</sub>+ 1). For example,<code>0 0 0 0 0 0</code>has a 1-block volume, and<code>0 0 0 1 1 1</code>and<code>1 1 1 0 0 0</code>both 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 [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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: ::*<code>filtered</code>— Clone only blocks with the block id specified by ''TileName''. ::* <code>masked</code>— 공기가 아닌 블럭만 복제한다. Blocks in the destination region that would otherwise be overwritten by air are left unmodified. ::* <code>replace</code>— 모든 블럭을 복제한다. 시작 지점 부터 끝 지점 까지의 모든 블럭을 덮어쓴다. :: If left unspecified, defaults to<code>replace</code>. : ''cloneMode''(선택적) :: Specifies how to treat the source region. Must be one of the following: ::* <code>force</code>— Force the clone even if the source and destination regions overlap. ::* <code>move</code>— 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. ::* <code>normal</code>— Don't move or force. :: If left unspecified, defaults to<code>normal</code>. : ''TileName''(섵잭적) :: Specifies the block id (e.g.,<code>minecraft:stone</code>) to copy when''maskMode''is set to<code>filtered</code>. Not optional when using<code>filtered</code>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). ; 같이 보기 : {{cmd|fill}}— fill a region with a block === debug === {{/infobox |debug |op |1.3.1|12w27a |cmdblock = 0}} 디버깅 세션을 시작하거나 중지한다. ; 문법 : <code>debug <start|stop></code> ; 인수 : <code>start</code> :: Starts a new debug profiling session. : <code>stop</code> :: 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 |op |1.3.1|12w22a }} 멀티플레이어 서버에 새로 들어오는 플레이어들의 기본[[게임 모드]](크리에이티브, 서바이벌 등)게임 모드를 설정한다. ; 문법 : <code>defaultgamemode <''mode''></code> ; 인수 : ''mode'' :: 새 플레이어들의 게임모드를 설정한다. 다음 중 하나여야 한다.: ::*<code>survival</code>(또는 <code>s</code>나<code>0</code>) 은[[서바이벌]]모드 ::* <code>creative</code>(또는<nowiki/> <code>c</code>나<code>1</code>) 은[[크리에이티브]]모드 ::* <code>adventure</code>(또<nowiki/>는 <code>a</code>나<code>2</code>) 은[[모험]]모드 ::* <code>spectator</code>(또<nowiki/>는 <code>sp</code>나<code>3</code>) 은[[관전자]]모드 ; 결과 : 인수가 제대로 명시되지 않은 경우 실패함. : 성공하면 월드 선택 메뉴에 표시된 기본 게임 모드를 설정한다. 새로운 플레이어는 기본 게임모드로 들어간다. ; 예시 : 기본 게임 모드를 서바이벌로 하려는 경우:<code>defaultgamemode survival</code>,<code>defaultgamemode s</code>, 또는<code>defaultgamemode 0</code> ; 같이 보기 : {{cmd|gamemode}}– 플레이어의 게임 모드를 전환 === deop === {{/infobox |deop |mp |Alpha 1.0.16 }} Revoke [http://minecraft.gamepedia.com/Operator|operator]<nowiki/>status from a player. ; 문법 : <code>deop <''player''></code> ; 인수 : ''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를 제거하려는 경우:<code>deop Alice</code> === difficulty === {{/infobox |difficulty |op |1.4.2|12w32a }} 난이도를 설정한다.(평화로움, 쉬움 등). ; 문법 : <code>difficulty <''difficulty''></code> ; 인수 : ''difficulty'' :: 새 난이도를 명시한다. 다음 중 하나여야 한다: ::* <code>peaceful</code>(<code>p</code>or<code>0</code>로도 가능) 은 [[평화로움]]<nowiki/>난이도 ::* <code>easy</code>(<code>e</code>or<code>1</code>로도 가능) 은 [[쉬움]]<nowiki/>난이도 ::* <code>normal</code>(<code>n</code>or<code>2</code>로도 가능) 은 [[보통]]<nowiki/>난이도 ::* <code>hard</code>(<code>h</code>or<code>3</code>로도 가능) 은 [[어려움]]<nowiki/>난이도 ; 결과 : 인수가 제대로 명시되지 않은 경우 실패한다. : 성공한 경우, 게임의 [[난이도]]를 전환한다. On a multiplayer server lasts only until the server is restarted — on restart, difficulty is reloaded from server.properties. ; 예시 : 난이도를 어려움으로 바꾸려는 경우:<code>difficulty hard</code>,<code>difficulty h</code>, 또는<code>difficulty 3</code> ; 같이 보기 : {{cmd|gamemode}}– 플레이어의 게임 모드를 전환한다.(크리에이티브, 서바이벌 등) === effect === {{/infobox |effect |op |1.5|13w09b }} The'''effect'''command manages [http://minecraft.gamepedia.com/Status effect|status effects]<nowiki/>on players and other entities. ; 문법 : <code>effect <''player''> clear</code>(모든 효과를 없앤다) : <code>effect <''player''> <''effect''> [''seconds''] [''amplifier''] [''hideParticles'']</code>(효과를 준다) ; 인수 : ''player'' :: 타겟(들)을 명시한다. 플레이어 이름 또는 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector](<code>@e</code>is permitted to target entities other than players)이어야 한다. : ''effect'' :: Specifies the effect to grant. Must be a [http://minecraft.gamepedia.com/Data values#Status effects|status effect id](for example,<code>1</code>or<code>minecraft:speed</code>). : ''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 [http://minecraft.gamepedia.com/Particle|particles]<nowiki/>of the status effect should be hidden. <code>true</code>또는 <code>false</code>여야만 한다. 명시되지 않은 경우, 기본 <code>false</code>로 설정된다. ; 결과 : Fails if arguments are not specified correctly, if''player''fails to resolve to one or more valid entities (named players must be online), if''seconds''was specified as 0 and the target did not have the effect, or if no effects were removed in<code>clear</code>mode. : 성공한 경우: :* <code>clear</code>— 타겟(들)의 모든 효과를 없앤다. :* ''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초동안 주려는 경우:<code>effect @p 1 60</code> : 가장 가까운 플레이어에게 신속 3 효과를 60초동안 주려는 경우:<code>effect @p minecraft:speed 60 2</code> : 모든 플레이어에게서 성급함 효과를 없애려는 경우:<code>effect @a minecraft:haste 0</code> : 모든 좀비에게서 모든 효과를 없애려는 경우:<code>effect @e[type=Zombie] clear</code> === enchant === {{/infobox |enchant |op |1.4.4|1.4.4-pre }} Adds an [http://minecraft.gamepedia.com/Enchantment|enchantment]<nowiki/>to a player's selected item, subject to the same restrictions as an [http://minecraft.gamepedia.com/Anvil mechanics|anvil]. ; 문법 : <code>enchant <''player''> <''enchantment ID''> [''level'']</code> ; 인수 : ''player'' :: 타겟(들)을 명시한다. 플레이어 이름 또는 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector] 여야만 한다. : ''enchantment ID'' :: Specifies the enchantment to be added to the item held by the target. 올바른 [http://minecraft.gamepedia.com/Data values#Enchantment IDs|enchantment ID](예를 들어,<code>16</code> 또는 <code>minecraft:sharpness</code>)여야만 한다. : ''level''(선택적) :: 인챈트 레벨을 명시한다. Must be at least 1 and not greater than the [http://minecraft.gamepedia.com/Data values#Enchantment IDs|maximum level]<nowiki/>for the specified enchantment. 명시되지 않은 경우 기본 1로 설정된다. ; 결과 : Fails if arguments are not specified correctly, if''player''fails 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을 인챈트하려는 경우:<code>enchant @a 51</code> ; 참조 : Although<code>/enchant</code>enforces maximum levels and compatibility, other commands (such as{{cmd|give}},{{cmd|replaceitem}}, and{{cmd|entitydata}}) can bypass these restrictions. === entitydata === {{/infobox |entitydata |op |1.8|14w32b }} Modifies the data tag of an entity. ; 문법 : <code>entitydata <''entity''> <''dataTag''></code> ; 인수 : ''entity'' :: Specifies the entity(ies) to be modified. Must be an entity UUID or the<code>@e</code>[http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''dataTag'' :: Specifies the [http://minecraft.gamepedia.com/Commands#Data tags|data tag]<nowiki/>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 [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{CustomName:Fred}</code>). ; 결과 : Fails if the arguments are not specified correctly, or if''entity''fails 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: :: <code>entitydata @e[type=Zombie] {CanPickUpLoot:0}</code> === execute === {{/infobox |execute |op |1.8|14w07a }} Executes a command on behalf of one or more other entities, with originating permissions, optionally on condition that a single-block{{cmd|testforblock}}-style check passes. ; 문법 : <code>execute <''entity''><''x''> <''y''> <''z''><''command …''></code> : An alternate syntax allows the command to be executed only if a specific block is detected: : <code>execute <''entity''><''x''> <''y''> <''z''>detect<''x2''> <''y2''> <''z2''><''block''> <''data''> <''command …''></code> ''Color added to make reading easier.'' ; 인수 : ''entity'' :: Specifies the target to be the command's executor. Must be a player name or [http://minecraft.gamepedia.com/Commands#Target 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.''x''and''z''must be within the range [http://minecraft.gamepedia.com/World boundary|-30,000,000 to 30,000,000](inclusive). Coordinates specified with [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>are relative to the target, not to the position of the command's execution. : ''command'' :: 실행될 명령어를 명시한다. 올바른 명령어여야만 한다. : ''x2 y2 z2''(<code>detect</code>mode only) :: Specifies the position of the block to check.''x2''and''z2''must be within the range [http://minecraft.gamepedia.com/World boundary|-30,000,000 to 30,000,000](inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify distances relative to (''x'',''y'',''z''). : ''block''and''data''(<code>detect</code>mode only) :: Specifies the [http://minecraft.gamepedia.com/Data values#Block IDs|block id and data]<nowiki/>which the block at (''x2'',''y2'',''z2'') must match for the command to run.''block''must be a valid block id (for example,<code>minecraft:stone</code>), and''data''must be a valid block data for that type of block or<code>-1</code>to match any block data. ; 결과 : Fails if arguments are not specified correctly, if''entity''fails 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 [http://minecraft.gamepedia.com/Operator|operator]-level permission at the specified coordinate. ; 예시 : 모든 좀비 자리에 번개를 소환한다. ::<code>execute @e[type=Zombie] ~ ~ ~ summon LightningBolt</code> : 모든 종류의 모래위에 서있는 모든 좀비 자리에 번개를 소환한다. ::<code>execute @e[type=Zombie] ~ ~ ~ detect ~ ~-1 ~ minecraft:sand -1 summon LightningBolt</code> : 10 크리퍼를 가장 가까운 플레이어의 자리로 소환하려는 경우 (로딩된 월드에 적어도 10 이상의 개체가 있어야 작동함): :: <code>execute @e[c=10] ~ ~ ~ execute @p ~ ~ ~ summon Creeper</code> ; 같이 보기 : {{cmd|testforblock}}— 지정된 위치에 있는 특정 블럭을 검사한다. (특정한 데이터 태그 포함) === fill === {{/infobox |fill |op |1.8|14w03a }} 일부 또는 모든 곳을 특정한 블록으로 채운다. ; 문법 : <code>fill<''x1''> <''y1''> <''z1''><''x2''> <''y2''> <''z2''><''블록''> [''데이터 값<nowiki>|</nowiki>상태''] [''예전 블록 처리''] [''데이터 태그'']</code> : The fill command also has an optional alternate syntax when using the<code>replace</code>option: : <code>fill<''x1''> <''y1''> <''z1''><''x2''> <''y2''> <''z2''><''블록''> <''데이터 값<nowiki>|</nowiki>상태''> replace [''설치될 블록''] [''설치될 데이터'']</code> ''Color added to make reading easier.'' ; 문법 : ''x1 y1 z1''and''x2 y2 z2'' :: Specifies any two opposing corner blocks of the region to be filled (the "fill region"). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 (x<sub>greater</sub>- x<sub>lesser</sub>+ 1) × (y<sub>greater</sub>- y<sub>lesser</sub>+ 1) × (z<sub>greater</sub>- z<sub>lesser</sub>+ 1). For example,<code>0 0 0 0 0 0</code>has a 1-block volume, and<code>0 0 0 1 1 1</code>and<code>1 1 1 0 0 0</code>both identify the same region with an 8-block volume. : ''TileName'' :: Specifies the block to fill the region with. Must be a [http://minecraft.gamepedia.com/Data values#Block ID|block id](for example,<code>minecraft:stone</code>). : ''dataValue''(선택적) :: Specifies the block data to use for the fill block. Must be between 0 and 15 (inclusive). : ''oldBlockHandling''(선택적) :: Must be one of: ::*<code>destroy</code>- 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 [http://minecraft.gamepedia.com/Shovel|shovel]<nowiki/>or [http://minecraft.gamepedia.com/Pickaxe|pickaxe]. (Blocks that can only be mined with [http://minecraft.gamepedia.com/Shear|shears], such as [http://minecraft.gamepedia.com/Vines|vines], will not drop; neither will liquids.) ::* <code>hollow</code>- 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. ::* <code>keep</code>- Replaces only air blocks in the fill region with the specified block. ::* <code>outline</code>- Replaces only blocks on the outer edge of the fill region with the specified block. Inner blocks are not affected. ::* <code>replace</code>- 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 (see''replaceTileName''and''replaceDataValue''below) :: If not specified, defaults to<code>replace</code>. : ''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 [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{CustomName:Fred}</code>). Cannot be combined with the''replaceTileName''and''replaceDataValue''arguments. : ''replaceTileName replaceDataValue''(선택적) :: Arguments are only valid when''oldBlockHandling''is<code>replace</code>. Cannot be combined with the''dataTag''argument. :: Specifies the [http://minecraft.gamepedia.com/Data values#Block ID|block id and data]<nowiki/>of the blocks in the fill region to be replaced. If''replaceDataValue''is 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, if''dataValue''or''dataTag''are 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 |gamemode |op |1.3.1|12w16a }} Sets a player's [http://minecraft.gamepedia.com/Game mode|game mode]. ; Syntax : <code>gamemode <''mode''> [''player'']</code> ; Arguments : ''mode'' :: Must be one of: ::*<code>survival</code>(can be abbreviated as<code>s</code>or<code>0</code>) for [http://minecraft.gamepedia.com/Survival|survival]<nowiki/>mode ::* <code>creative</code>(can be abbreviated as<code>c</code>or<code>1</code>) for [http://minecraft.gamepedia.com/Creative|creative]<nowiki/>mode ::* <code>adventure</code>(can be abbreviated as<code>a</code>or<code>2</code>) for [http://minecraft.gamepedia.com/Adventure|adventure]<nowiki/>mode ::* <code>spectator</code>(can be abbreviated as<code>sp</code>or<code>3</code>) for [http://minecraft.gamepedia.com/Spectator|spectator]<nowiki/>mode :: "[http://minecraft.gamepedia.com/Hardcore|hardcore]" is not a valid option for the''mode''argument, as it is technically not a game mode. : ''player''(optional) :: If specified, must be either a player's username or a [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. If unspecified, defaults to the player using the command. When used in a command block,''player''is not optional. ; Result : Fails if the arguments are not specified correctly, or if''player''fails 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:<code>gamemode creative</code>,<code>gamemode c</code>, or<code>gamemode 1</code> : To put all players into survival mode:<code>gamemode 0 @a</code> ; See also : [http://minecraft.gamepedia.com/Commands#defaultgamemode|defaultgamemode]– sets the initial game mode for players joining the world === gamerule === {{/infobox |gamerule |op |1.4.2|12w32a }} Sets or queries a game rule value. ; Syntax : <code>gamerule <''rule name''> [''value'']</code> ; Arguments : ''rule name'' :: Specifies the game rule to set or query. May be''any''value, but only certain predefined game rules will affect gameplay (see''Predefined Game Rules''below). : ''value''(optional) :: Specifies the value to set the game rule to. May be''any''value, though only<code>true</code>or<code>false</code>specified for predefined game rules will actually affect gameplay, except in the case of<code>randomTickSpeed</code>, where any number 0 or higher will affect gameplay (see''Predefined Game Rules''below). : {| |+ Predefined Game Rules !Rule Name !Description !Default Value |- |<code>commandBlockOutput</code> |Whether [http://minecraft.gamepedia.com/Command block|command blocks]<nowiki/>should notify admins when they perform commands |<code>true</code> |- |<code>doDaylightCycle</code> |Whether time progresses |<code>true</code> |- |<code>doEntityDrops</code> |Whether entities that are not mobs should have drops |<code>true</code> |- |<code>doFireTick</code> |Whether fire should spread and naturally extinguish |<code>true</code> |- |<code>doMobLoot</code> |Whether mobs should drop items |<code>true</code> |- |<code>doMobSpawning</code> |Whether mobs should naturally spawn |<code>true</code> |- |<code>doTileDrops</code> |Whether blocks should have drops |<code>true</code> |- |<code>keepInventory</code> |Whether the player should keep items in their inventory after death |<code>false</code> |- |<code>logAdminCommands</code> |Whether to log admin commands to server log |<code>true</code> |- |<code>mobGriefing</code> |Whether [http://minecraft.gamepedia.com/Creeper|<nowiki>creepers],</nowiki>[http://minecraft.gamepedia.com/Zombie|zombies],[http://minecraft.gamepedia.com/Endermen|endermen],[http://minecraft.gamepedia.com/Ghast|ghasts],[http://minecraft.gamepedia.com/Wither|withers],[http://minecraft.gamepedia.com/Ender dragon|ender dragons],[http://minecraft.gamepedia.com/Rabbit|rabbits],[http://minecraft.gamepedia.com/Sheep|sheep], and [http://minecraft.gamepedia.com/Villager|villagers]<nowiki/>should be able to change blocks and whether villagers, zombies,[http://minecraft.gamepedia.com/Skeleton|skeletons], and [http://minecraft.gamepedia.com/Zombie pigmen|zombie pigmen]<nowiki/>can pick up items |<code>true</code> |- |<code>naturalRegeneration</code> |Whether the player can regenerate health naturally if their hunger is full enough (doesn't affect external healing, such as [http://minecraft.gamepedia.com/Golden apple|golden apples], the [http://minecraft.gamepedia.com/Regeneration|Regeneration effect], etc.) |<code>true</code> |- |<code>randomTickSpeed</code> |How often a random [http://minecraft.gamepedia.com/Block tick|block tick]<nowiki/>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 |<code>3</code> |- |<code>reducedDebugInfo</code> |Whether the debug screen shows all or reduced information |<code>false</code> |- |<code>sendCommandFeedback</code> |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 |<code>true</code> |- |<code>showDeathMessages</code> |Whether a message appears in chat when a player dies |<code>true</code> |- |<code>spectatorsGenerateChunks</code> |Whether players in [http://minecraft.gamepedia.com/Spectator|spectator]<nowiki/>mode can generate chunks |<code>true</code> |} ; Result : Fails if''rule name''is not defined and''value''is not provided (i.e., attempting to query an undefined game rule). : On success, returns the value of the game rule (if''value''is not provided) or sets the game rule to the specified value (if''value''is 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:<code>gamerule doDaylightCycle false</code> : To stop natural healing:<code>gamerule naturalRegeneration false</code> : To define a new game rule called<code>MyNewRule</code>and sets its value to 10:<code>gamerule MyNewRule 10</code> === give === {{/infobox |give |op |1.3.1|12w16a }} Gives an item to a player. ; Syntax : <code>give <''플레이어''> <''아이템''> [''양''] [''데이터''] [''데이터 태그'']</code> ; Arguments : ''player'' :: Specifies the target to give item(s) to. Must be a player name or [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''item'' :: Specifies the item to give. Must be a valid [http://minecraft.gamepedia.com/Data values#Item IDs|item id](for example,<code>minecraft:iron_shovel</code>), or [http://minecraft.gamepedia.com/Data values#Block IDs|block id]<nowiki/>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 to<code>1</code>. : ''data''(optional) :: Specifies the [http://minecraft.gamepedia.com/Player.dat format#Item structure|item data]<nowiki/>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 [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{display:{Name:Fred<nowiki>}}</nowiki></code>). ; Result : Fails if the arguments are not specified correctly, or if''player''fails to resolve to one or more online players. : On success, summons the specified item(s) at the location(s) of the target(s). If''player''resolves to multiple targets, each receives the specified number of items. The [http://minecraft.gamepedia.com/Chunk format#Items|item entity]'s Owner tag is set to the target and its PickupDelay tag set to 0{{verify}}so 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": :: <code>give John minecraft:planks 30 1 {display:{Lore:["Wooden planks"]<nowiki>}}</nowiki></code> ; See also : {{cmd|summon}}— summon any entity at any location === {{anchor|?}}help === {{/infobox |help | |1.3.1|12w17a }} Provides help/list of commands. ; Syntax : <code>help [''페이지 수''<nowiki>|</nowiki>''명령어 이름'']</code> : <code>? [''페이지 수''<nowiki>|</nowiki>''명령어 이름'']</code> ; Arguments : ''page|command name''(optional) :: Specifies the page number of the command list or the command to provide help for. If not specified, defaults to<code>1</code>(the first page of the command list). ; Result : Fails if''page''is not a valid page number, or if''command name''is 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 to{{key|tab}}key) to explore available options for each argument. ; Examples : To display the first page of the command list:<code>?</code>or<code>help</code> : To display the third page of the command list:<code>? 3</code> : To display the usage for the help command:<code>help help</code> === kick === {{/infobox |kick |mp |Alpha 1.0.16 }} Kicks a player off a server. ; Syntax : <code>kick <''player''> [''reason …'']</code> ; Description : Forcibly disconnects''player''from the server, displaying an optional''reason''to them. ; Success Conditions : ''player''must be online. === kill === {{/infobox |kill |op |1.3.1|12w16a }} Kills entities (players, mobs, items, etc.). ; Syntax :: <code>kill [''플레이어''<nowiki>|</nowiki>''개체'']</code> ; 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. If not specified, defaults to the command's user. Not optional in command blocks. ; Result : Fails if''player|entity''fails to resolve to one or more entities (named players must be online). : On success, inflicts 3.4 x 10<sup>38</sup>void damage to targets — killing them instantly even if in Creative mode or protected by a high-level Resistance [http://minecraft.gamepedia.com/Effect|effect]— and issues the appropriate [http://minecraft.gamepedia.com/Death message|death message]. Players and mobs killed this way drop loot, and [http://minecraft.gamepedia.com/Slime|slimes]<nowiki/>and [http://minecraft.gamepedia.com/Magma cube|magma cubes]<nowiki/>that aren't already of minimum size spawn smaller ones. Destroys [http://minecraft.gamepedia.com/Boat|boats],[http://minecraft.gamepedia.com/Minecart|minecarts],[http://minecraft.gamepedia.com/Item (entity)|loose items]<nowiki/>and [http://minecraft.gamepedia.com/Experience orb|experience orbs]<nowiki/>if they are targeted. ; Examples : To kill yourself:<code>kill</code> : To kill a player named Bob:<code>kill Bob</code> : To "kill" all item entities (making them vanish from the world):<code>kill @e[type=Item]</code> === list === {{/infobox |list |mp |Alpha 1.0.16_02 |cmdblock = 1}} Lists players on the server. ; Syntax : <code>list</code> ; 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 |me | |Classic 0.0.15a_03 }} Displays a message about yourself. ; Syntax : <code>me <''문구 ...''></code> ; 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector](e.g., @a) is used in''action'', the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and nameN" for N players. === op === {{/infobox |op |mp |Alpha 1.0.16 }} Grants operator status to a player. ; Syntax : <code>op <''player''></code> ; Result : Always succeeds. Grants''player''[http://minecraft.gamepedia.com/Operator|operator]<nowiki/>status on the server. Example) to give operator status to Alice, type <code>op Alice</code> === pardon === {{anchor|pardon-ip}} {{/infobox |pardon, pardon-ip |mp |Alpha 1.0.16 }} Removes entries from the banlist. ; Syntax : <code>pardon <''name''></code> : <code>pardon-ip <''address''></code> ; 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 |particle |op |1.8|14w04a }} Creates particles. ; Syntax : <code>particle <''이름''><''x''> <''y''> <''z''><''xd''> <''yd''> <''zd''><''속도''> [''개수''] [''모드''] [플레이어]</code> : ''Color added to make reading easier.'' ; Arguments : ''name'' :: Specifies the particle to create. Must be a [http://minecraft.gamepedia.com/Particles#Particles|particle name](for example,<code>explode</code>). : ''x y z'' :: Specifies the position at which to create the particle. All values (including''y'') must be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](inclusive, without the commas). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify a position relative to the command's execution. : ''xd yd zd'' :: Specifies the size of the area to spawn particles in. :: ''Exception:''When''name''is<code>reddust</code>,<code>mobSpell</code>, or<code>mobSpellAmbient</code>and''count''is 0 or not specified, and''speed''is not 0, specifies the color of the particle in RGB format offset from the particle's default color (<code>reddust</code>'s default is a near-red (a random red tint between 0.8 and 1.0), while the others default to black). For example, with<code>reddust</code>,<code>0 0 0</code>produces a red particle,<code>-1 1 0</code>produces a green particle (red is reduced to 0 and green increased to 1),<code>0 0 1</code>produces a purple particle (blue is added to the original red), etc. With<code>mobSpell</code>or<code>mobSpellAmbient</code>,<code>0 0 0</code>produces a black particle,<code>0 1 0</code>produces a green particle,<code>0 0 0.5</code>produces a dark blue particle, etc. If''count''is 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 only<code>force</code>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. ; 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: :: <code>particle hugeexplosion ~10 ~ ~ 0 0 0 0</code> === playsound === {{/infobox |playsound |op |1.6.1|1.6.1-pre }} Plays a sound. ; Syntax : <code>playsound <''sound''> <''player''> [''x''] [''y''] [''z''] [''volume''] [''pitch''] [''minimumVolume'']</code> ; Arguments : ''sound'' :: Specifies the sound to play. Must be a sound event defined in [http://minecraft.gamepedia.com/Sounds.json#Sound events|sounds.json](for example,<code>mob.pig.say</code>). :: 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, the<code>mob.pig.say</code>sound event will play one of several pig sounds at random, because the event has multiple sounds associated with it. :: [http://minecraft.gamepedia.com/Resource pack|Resource packs]<nowiki/>may add their own events to sounds.json; the command will successfully play these. File names are''not''used 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''x y z''(optional) :: Specifies the position to play the sounds from. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 by''volume''. 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 [http://minecraft.gamepedia.com/Note 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), and<code>''minimumVolume''</code>will determine its volume. Must be between 0.0 and 1.0 (inclusive). ; Result : Fails if the arguments are not specified correctly, if''player''fails 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 |publish |op |1.3.1|12w24a |cmdblock = 0}} Opens single-player world to the local network. ; Syntax : <code>publish</code> ; 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 |replaceitem |op |1.8|14w26a }} Replaces items in the inventories of blocks (chest, furnaces, etc.) or entities (players or mobs) with the given item(s). ; Syntax : <code>replaceitem block <''x''> <''y''> <''z''> <''slot''> <''item''> [''amount''] [''data''] [''dataTag'']</code> : <code>replaceitem entity <''selector''> <''slot''> <''item''> [''amount''] [''data''] [''dataTag'']</code> ; Arguments : ''x y z''(<code>block</code>mode only) :: Specifies the position of the block to be modified. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify a position relative to the command's execution. : ''selector''(<code>entity</code>mode only) :: Specifies one or more entities to modify. Must be a player name or [http://minecraft.gamepedia.com/Commands#Target 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 be<code>slot.container.''slot_number''</code>where''slot_number''is replaced with a number specifying the slot. ::*[http://minecraft.gamepedia.com/Chest|Chests],[http://minecraft.gamepedia.com/Dispenser|dispensers],[http://minecraft.gamepedia.com/Dropper|droppers],[http://minecraft.gamepedia.com/Hopper|hoppers], and [http://minecraft.gamepedia.com/Trapped chest|trapped chests]<nowiki/>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 [http://minecraft.gamepedia.com/Brewing stand|brewing stand]'s bottom slots are numbered 0 to 2 from left to right, and its top slot is 3. ::* A [http://minecraft.gamepedia.com/Furnace|furnace]'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 ([http://minecraft.gamepedia.com/Flower pot|flower pots]<nowiki/>and [http://minecraft.gamepedia.com/Jukebox|jukeboxes]) can only be changed with{{cmd|blockdata}}. :: For entities, must be one of the following, where''slot_number''is replaced with a number specifying the slot: :::{| !Slot !Slot Numbers !Restrictions |- |<code>slot.armor.chest</code> | |[http://minecraft.gamepedia.com/Armor stand|<nowiki>armor stands],</nowiki>[http://minecraft.gamepedia.com/Mob|mobs], and [http://minecraft.gamepedia.com/Player|players]<nowiki/>only (though not all mobs will show or make use of the items) |- |<code>slot.armor.feet</code> | |- |<code>slot.armor.head</code> | |- |<code>slot.armor.legs</code> | |- |<code>slot.weapon</code>or (in 1.9 snapshots)<code>slot.weapon.mainhand</code> | |[http://minecraft.gamepedia.com/Armor stand|<nowiki>armor stands]</nowiki><nowiki/>and [http://minecraft.gamepedia.com/Mob|mobs]<nowiki/>only (though not all mobs will show or make use of the items). Works with [http://minecraft.gamepedia.com/Players|players]<nowiki/>in the 1.9 snapshots. |- |<code>slot.weapon.offhand</code>(1.9 snapshots only) | | |- |<code>slot.enderchest.''slot_number''</code> |0 to 26 |[http://minecraft.gamepedia.com/Player|players]<nowiki/>only |- |<code>slot.hotbar.''slot_number''</code> |0 to 8 |- |<code>slot.inventory.''slot_number''</code> |0 to 26 |- |<code>slot.horse.saddle</code> | |[http://minecraft.gamepedia.com/Horse|<nowiki>horses], donkeys, and mules only;</nowiki>''item''must be a [http://minecraft.gamepedia.com/Saddle|saddle] |- |<code>slot.horse.armor</code> | |[http://minecraft.gamepedia.com/Horse|horses]<nowiki/>only;''item''must be a type of [http://minecraft.gamepedia.com/Horse armor|horse armor] |- |<code>slot.horse.chest.''slot_number''</code> |2 to 16 |donkeys and mules with chests only |- |<code>slot.villager.''slot_number''</code> |0 to 7 |[http://minecraft.gamepedia.com/Villager|villagers]<nowiki/>only |} :: The inventory of an [http://minecraft.gamepedia.com/Item frame|item frame]<nowiki/>can only be changed with{{cmd|entitydata}}. : ''item'' :: Specifies the item to be placed in the block or entity's inventory slot. Must be an [http://minecraft.gamepedia.com/Data values#Item IDs|item id], or a [http://minecraft.gamepedia.com/Data values#Block IDs|block id]<nowiki/>for which an item exists (for example,<code>minecraft:golden_sword</code>). : ''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 [http://minecraft.gamepedia.com/Commands#Data tag|data tag]<nowiki/>for the item(s) to be placed in the block or entity's inventory slot. Must be a compound [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{display:{Name:Fred<nowiki>}}</nowiki></code>). ; Result : Fails if the arguments are not specified correctly, if the specified block is not a container, if''selector''fails 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 have<code>slot.horse.armor</code>). : 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: :: <code>replaceitem block ~ ~1 ~ slot.container.26 minecraft:sapling 4 1</code> : To replace the items in the rightmost hotbar slot of the nearest player with four spruce saplings: :: <code>replaceitem entity @p slot.hotbar.8 minecraft:sapling 4 1</code> ; See also : {{cmd|blockdata}}— can also replace items in a container : {{cmd|entitydata}}— can also replace items in a mob's inventory, or modify the drop chances of armor and weapons : {{cmd|give}}— give items to players without specifying specific inventory slots or overwriting other items === save === {{/infobox |save |mp |Alpha 1.0.16_01 }} These commands manage server saves. ==== save-all ==== Saves the server to disk. ; Syntax : <code>save-all</code> ; 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 : <code>save-off</code> ; 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 : <code>save-on</code> ; Description : Enables the server writing to the world files. This is the default behavior. ; Result : Always succeeds. === say === {{/infobox |say |op |Classic 0.0.16a_01 }} Sends a message in the chat to other players ; Syntax : <code>say <''message …''></code> ; 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, broadcasts''message''to all players on the server. If a multi-person [http://minecraft.gamepedia.com/Commands#Target selectors|target selector](e.g., @a) is used in''message'', the list of names is formatted as "name1 and name2" for two players, or "name1, name2, ... and nameN" for N players. === scoreboard === {{/infobox |scoreboard |op |1.5|13w04a }} These commands manage scoreboard objectives, players, and teams. ; Syntax : <code>scoreboard <<nowiki>objectives|players|teams</nowiki>> …</code> See [http://minecraft.gamepedia.com/Scoreboard#Command reference|Scoreboard#Command reference]<nowiki/>for more information. === seed === {{/infobox |seed |op |1.3.1|12w21a }} Displays the world [http://minecraft.gamepedia.com/Seed (level generation)|seed]. ; Syntax : <code>seed</code> ; Result : Always succeeds. This command can always be used in single-player mode, regardless of whether cheats are enabled or not. === setblock === {{/infobox |setblock |op |1.7.2|13w37a }} 한 블록을 다른 블록으로 바꾼다. ; Syntax : <code>setblock <''x''> <''y''> <''z''> <''TileName''> [''dataValue''] [''oldBlockHandling''] [''dataTag'']</code> ; Arguments : ''x y z'' :: Specifies the position of the block to be changed. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify a position relative to the command's execution. : ''TileName'' :: Specifies the new block. Must be a [http://minecraft.gamepedia.com/Data values#Block IDs|block id](for example,<code>minecraft:stone</code>). : ''dataValue''(optional) :: Specifies additional data to further describe the new block. Must be between 0 and 15 (inclusive). If not specified, defaults to<code>0</code>. : ''oldBlockHandling''(optional) :: Specifies how to handle the block change. Must be one of: ::* <code>destroy</code>— The old block drops both itself and its contents (as if destroyed by a player). Plays the appropriate block breaking noise. ::* <code>keep</code>— Only air blocks will be changed (non-air blocks will be "kept"). ::* <code>replace</code>— The old block drops neither itself nor any contents. Plays no sound. :: If not specified, defaults to<code>replace</code>. : ''dataTag''(optional) :: Specifies the [http://minecraft.gamepedia.com/Commands#Data tag|data tag]<nowiki/>for the new block. Must be a compound [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{CustomName:Fred}</code>). ; 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 :* {{cmd|blockdata}}— modifies the data tags of a block :* {{cmd|clone}}— copies blocks from one region to another :* {{cmd|fill}}— fills a region with a block === setidletimeout === {{/infobox |setidletimeout |mp |Classic 0.0.15a_03 }} Sets the time before idle players are kicked from the server. ; Syntax : <code>setidletimeout <''Minutes until kick''></code> ; Description : Set the idle kick timer. Any players idle for''Minutes until kick''will be kicked. ; Success Conditions : Always succeeds. === setworldspawn === {{/infobox |setworldspawn |op |1.7.2|13w43a }} Sets the [http://minecraft.gamepedia.com/Spawn#Player spawning|world spawn]. ; Syntax : <code>setworldspawn</code> : <code>setworldspawn <''x''> <''y''> <''z''></code> ; Arguments : ''x y z''(optional) :: Specifies the coordinates of the [http://minecraft.gamepedia.com/Spawn#Player spawning|world spawn].''x''and''z''must be within the range [http://minecraft.gamepedia.com/World boundary|-30,000,000 to 30,000,000](inclusive).''y''must be between 0 and 256 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 [http://minecraft.gamepedia.com/Adventure mode|adventure mode], players will always spawn on the topmost block near (''x'',''z'') —''y''is effectively ignored. If the server is in adventure mode, then the new spawnpoint will be the coordinates given exactly, including the''y''coordinate (even if underground and even if there is no block there) -- if the''y''level 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 [http://minecraft.gamepedia.com/Spawn chunk|spawn chunks]<nowiki/>are usually kept loaded at all times, new spawn chunks won't be loaded by this command until a player moves within range.[http://minecraft.gamepedia.com/Compass|Compasses](which in''Minecraft''point 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 |spawnpoint |op |1.4.2|12w32a }} Sets the spawn point for a player. ; Syntax : <code>spawnpoint</code> : <code>spawnpoint <''player''></code> : <code>spawnpoint <''player''> <''x''> <''y''> <''z''></code> ; Arguments : ''player''(optional) :: Specifies the player whose spawn point should be set. Must be a player name or a [http://minecraft.gamepedia.com/Commands#Target 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.''x''and''z''must be integers within the range [http://minecraft.gamepedia.com/World boundary|-30,000,000 to 30,000,000](inclusive).''y''must be an integer between 0 and 256 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 if''player''fails 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 |spreadplayers |op |1.6.1|13w23a }} Teleports entities (players, mobs, items, etc.) to random surface locations within an area. ; Syntax : <code>spreadplayers <''x''> <''z''> <''spreadDistance''> <''maxRange''> <''respectTeams''> <''player …''></code> ; Arguments : ''x z'' :: Specifies the center of the region to spread targets to.''x''and''z''must be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](exclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 than''spreadDistance''. : ''respectTeams'' :: Specifies whether to keep teams together. Must be<code>true</code>or<code>false</code>. If<code>true</code>, 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selectors]<nowiki/>separated by spaces (<code>@e</code>is permitted to target entities other than players). ; Result : Fails if the arguments are not specified correctly, if there are too many targets to satisfy the''spreadDistance''requirement within the specified area, or if a target is attempted to be spread to outside the [http://minecraft.gamepedia.com/World 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 [http://minecraft.gamepedia.com/Lava|lava]. ; 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: :: <code>spreadplayers 0 0 200 500 true @a</code> : 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: :: <code>spreadplayers 0 0 50 100 false @r[team=Red] @r[team=Blue] @r[team=Green] Alice Bob</code> ; See also : {{cmd|tp}}— teleports a single player or entity to a specific position (even underground). === stats === {{/infobox |stats |op |1.8|14w28a }} Manages the updating of scoreboard objectives with the results of other commands. Commands can be executed by blocks (specifically,[http://minecraft.gamepedia.com/Command block|command blocks]<nowiki/>and [http://minecraft.gamepedia.com/Sign|signs]) or by entities (players can execute commands directly, and other entities can be the origin of commands indirectly with the{{cmd|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{{cmd|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,<code>@e</code>) 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 [http://minecraft.gamepedia.com/Scoreboard|scoreboard]<nowiki/>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 [http://minecraft.gamepedia.com/Redstone 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 : <code>stats block <''x''> <''y''> <''z''> clear <''stat''></code> : <code>stats block <''x''> <''y''> <''z''> set <''stat''> <''selector''> <''objective''></code> : <code>stats entity <''selector2''> clear <''stat''></code> : <code>stats entity <''selector2''> set <''stat''> <''selector''> <''objective''></code> ; Arguments : ''x y z''(<code>block</code>mode only) :: Specifies the position of the block to post command stats from.''x''and''z''must be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](inclusive, without the commas) and''y''must be between 0 and 256 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify a position relative to the command's execution. : ''selector2''(<code>entity</code>mode only) :: Specifies the entity to post command stats from. Must be a player name or a [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''stat'' :: Specifies the command stat whose selector and objective are to be cleared or set. Must be one of: ::* <code>AffectedBlocks</code>— returns the number of blocks affected by a command ::* <code>AffectedEntities</code>— returns the number of entities affected by a command ::* <code>AffectedItems</code>— returns the number of items affected by a command ::* <code>QueryResult</code>— returns the result of a command query ::* <code>SuccessCount</code>— returns a command's success count : ''selector''(<code>set</code>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 by''stat''. 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]<nowiki/>will produce useful results (though player names can be fake, so even real players don't need to be online). : ''objective''(<code>set</code>mode only) :: Specifies the name of the objective to be updated with the result returned by''stat''. 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 if''selector2''fails 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 by''stat''. ; 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: :: <code>stats block 0 64 0 set QueryResult @p MyObj</code> : To stop the block at (0,64,0) from updating any scoreboard obectives with the success count of commands it executes: :: <code>stats block 0 64 0 clear SuccessCount</code> : To have the nearest [http://minecraft.gamepedia.com/Wither skull|wither skull]<nowiki/>update the scoreboard objective NumBlocks of fake player #FakePlayer with the number of blocks affected by commands executed by the wither skull: :: <code>stats entity @e[type=WitherSkull,c=1] set AffectedBlocks #FakePlayer NumBlocks</code> ; See also : {{cmd|blockdata}}— can also change the selector and objectives of blocks by altering data tags directly : {{cmd|entitydata}}— can also change the selector and objectives of entities by altering data tags directly === stop === {{see also|Tutorials/Command stats}}{{/infobox |stop |mp |Alpha 1.0.16 }} Stops a server. ; Syntax : <code>stop</code> ; Result : Always succeeds. Saves all changes to disk, then shuts down the server. === summon === {{/infobox |summon |op |1.7.2|13w36a }} Summons an [http://minecraft.gamepedia.com/Entity|entity](mobs, projectiles, items, vehicles, etc.). ; Syntax : <code>summon <''EntityName''> [''x''] [''y''] [''z''] [''dataTag'']</code> ; Arguments : ''EntityName'' :: Specifies the entity to be summoned. Must be an [http://minecraft.gamepedia.com/Data values#Entity IDs|entity id](for example,<code>Bat</code>,<code>EntityHorse</code>,<code>WitherSkull</code>,<code>XPOrb</code>,<code>PrimedTNT</code>, etc.) or<code>LightningBolt</code>. : ''x y z''(optional) :: Specifies the position to summon the entity.''x''and''z''must be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 to 30,000,000](inclusive), and''y''must be at least 0. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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 [http://minecraft.gamepedia.com/Commands#Data tags|data tag]<nowiki/>for the entity. Must be a compound [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{CustomName:Fred}</code>). 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: :: <code>summon Creeper ~ ~ ~ {powered:1,CustomName:Powered Creeper}</code> : To summon lightning 10 blocks west of the current position: :: <code>summon LightningBolt ~-10 ~ ~</code> : To summon an Armor stand wielding a lava bucket and wearing a skull: :: <code>/summon ArmorStand ~ ~ ~ {Equipment:[{id:lava_bucket},{},{},{},{id:skull}]}</code> === {{anchor|msg|w}}tell === {{/infobox |tell | |Alpha 1.0.16_02 }} Sends a private message to one or more players. ; Syntax : <code>tell <''player''> <''message …''></code> : <code>msg <''player''> <''message ...''></code> : <code>w <''player''> <''message ...''></code> ; Arguments : ''player'' :: Specifies the targeted player(s) to send the private message to. Must be a player name (or a [http://minecraft.gamepedia.com/Commands#Target selectors|target selector], but only if the user is an [http://minecraft.gamepedia.com/Operator|operator]). : ''private message'' :: Specifies the message to send. May include spaces (as well as [http://minecraft.gamepedia.com/Commands#Target 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, if''any''target 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 [http://minecraft.gamepedia.com/Commands#Target selectors|target selector](e.g., @a) is used in''message'', 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:<code>tell Alice Start the mission!</code> === tellraw === {{/infobox |tellraw |op |1.7.2|13w37a }} Sends a JSON message to players. ; Syntax : <code>tellraw <''player''> <''raw json message''></code> ; Arguments : ''player'' :: Specifies the player(s) to send the message to. Must be a player name or [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''raw json message'' :: Specifies the message to send. Must be valid [http://minecraft.gamepedia.com/Commands#Raw JSON text|raw JSON text](for example,<code>{text:"Hi there!",bold:true}</code>). ; Result : Fails if the arguments are not specified correctly, or if''player''fails to evaluate to one or more online players. : On success, the targeted players receive the JSON message in their chat. ; See also : {{cmd|say}}— send a simple text message to all players : {{cmd|tell}}— send a simple text message to specific players === testfor === {{/infobox |testfor |op |1.5|13w03a }} Counts entities (players, mobs, items, etc.) matching specified conditions. ; Syntax : <code>testfor <''player''> [''dataTag'']</code> ; Arguments : ''player'' :: Specifies the targets to count. Must be a player name or a [http://minecraft.gamepedia.com/Commands#Target selectors|target selector](<code>@e</code>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 [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{XpLevel:3}</code>). ; Result : Fails if the arguments are not specified correctly, or if''player''fails to resolve to one or more entities (named players must be online). : On success, produces a success count equal to the number of targets matching''player'', which can be measured by a [http://minecraft.gamepedia.com/Redstone comparator|redstone comparator]<nowiki/>facing away from the command block. ; Examples : To test if Alice is online:<code>testfor Alice</code> : To count the number of players in survival mode within a 3-block radius of (0,64,0):<code>testfor @a[0,64,0,3,m=0]</code> : To count the number of players currently flying:<code>testfor @a {abilities:{flying:1b<nowiki>}}</nowiki></code> : To count the number of zombies within a 20-block radius of (0,64,0):<code>testfor @e[0,64,0,20,type=Zombie]</code> === testforblock === {{/infobox |testforblock |op |1.7.2|13w37a }} Tests whether a certain block is in a specific location. ; Syntax : <code>testforblock <''x''> <''y''> <''z''> <''TileName''> [''dataValue''] [''dataTag'']</code> ; Arguments : ''x y z'' :: Specifies the position of the block to test.''x''and''z''must be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](inclusive, without the commas) and''y''must be between 0 and 255 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify a position relative to the command's execution. : ''TileName'' :: Specifies the block to test for. Must be a valid [http://minecraft.gamepedia.com/Data values#Block IDs|block id](for example,<code>minecraft:stone</code>). : ''dataValue''(optional) :: Specifies the [http://minecraft.gamepedia.com/Data values#Block IDs|block data]<nowiki/>to test for.''dataValue''must be between -1 and 15 (inclusive). If not specified, or if<code>-1</code>,''dataValue''matches any block data value. : ''dataTag''(optional) :: Specifies the block [http://minecraft.gamepedia.com/Commands#Data tags|data tags]<nowiki/>to test for. Must be a compound [http://minecraft.gamepedia.com/NBT tag|NBT tag](for example,<code>{CustomName:Fred}</code>). If not specified,''dataTag''matches 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 (''dataTag''does not need to match the block's entire data tag, and data tags in the argument which are undefined in the block will''not''cause 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 [http://minecraft.gamepedia.com/Wool|wool]: :: <code>testforblock 0 64 0 minecraft:wool</code> :: <code>testforblock 0 64 0 minecraft:wool -1</code> : To test if the block at (0,64,0) is orange wool: :: <code>testforblock 0 64 0 minecraft:wool 1</code> : To test if the block below is a [http://minecraft.gamepedia.com/Jukebox|jukebox]<nowiki/>with the "mall"[http://minecraft.gamepedia.com/Record|record]<nowiki/>inside: :: <code>testforblock ~ ~-1 ~ minecraft:jukebox -1 {Record:2261}</code> === testforblocks === {{/infobox |testforblocks |op |1.8|14w07a }} Tests whether the blocks in two regions match. ; Syntax : <code>testforblocks<''x1''> <''y1''> <''z1''><''x2''> <''y2''> <''z2''><''x''> <''y''> <''z''>[''mode'']</code> : ''Color added to make reading easier.'' ; Arguments : ''x1 y1 z1''and''x2 y2 z2'' :: Specifies two opposing corners of the region to use as the pattern to test for (the "source region").''x1'',''z1'',''x2'', and''z2''must all be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](inclusive, without the commas), and''y1''and''y2''must be between 0 and 255 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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").''x''and''z''must both be between [http://minecraft.gamepedia.com/World boundary|-30,000,000 and 30,000,000](inclusive, without the commas), and''y''must be between 0 and 255 (inclusive). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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: ::*<code>all</code>— every block in the source and destination regions must match exactly. ::* <code>masked</code>—[http://minecraft.gamepedia.com/Air|air]<nowiki/>blocks in the source region will match any block in the destination region. :: If not specified, defaults to<code>all</code>. ; 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 in''all''mode, or the number of source region non-air blocks in''masked''mode). === time === {{/infobox |time |op |1.3.1|12w16a }} Changes or queries the world's game [http://minecraft.gamepedia.com/Time|time]. ; Syntax : <code>time <add|query|set> <value></code> ; Arguments : ''value'' :: Specifies the time to add, query, or set: ::* <code>add</code>- Must be between 0 and 2,147,483,647 (inclusive, without the commas) ::* <code>query</code>- Must be<code>daytime</code>or<code>gametime</code>. ::* <code>set</code>- Must be between 0 and 2,147,483,647 (inclusive, without the commas),<code>day</code>, or<code>night</code>. ; Result : Fails if the arguments are not specified correctly. : On success: :* <code>add</code>- adds''value''to the world's game time :* <code>query</code>- returns the day time (game ticks since midnight) or the game time (game ticks since world start) :* <code>set</code>- sets the world game time to''value''(<code>day</code>= 1,000,<code>night</code>= 13,000). ; Examples : To set the time to 1,000:<code>time set 1000</code>or<code>time set day</code> : To add one day to the world time:<code>time add 24000</code> === title === {{/infobox |title |op |1.8|14w20a }} 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 [http://minecraft.gamepedia.com/Commands#Raw 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 [http://minecraft.gamepedia.com/Options#Video Settings|GUI Scale]<nowiki/>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. : <code>title <''player''> clear</code>(removes the screen title from the screen) : <code>title <''player''> reset</code>(resets options to default values) : <code>title <''player''> subtitle <''title''></code>(specifies the subtitle text) : <code>title <''player''> times <''fadeIn''> <''stay''> <''fadeOut''></code>(specifies fade-in, stay, and fade-out times) : <code>title <''player''> title <''title''></code>displays the screen title) ; Arguments : ''player'' :: Specifies the player(s) to display a screen title to. Must be a player name or [http://minecraft.gamepedia.com/Commands#Target selectors|target selector]. : ''title''(<code>subtitle</code>and<code>title</code>mode only) :: Specifies the text to display as a title or subtitle. Must be valid [http://minecraft.gamepedia.com/Commands#Raw JSON text|raw JSON text](for example,<code>{text:"Chapter I",bold:true}</code>). : ''fadeIn'',''stay'', and''fadeOut''(<code>times</code>mode only) :: Specifies the time in [http://minecraft.gamepedia.com/Tick|game 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 [[File:Title_command.png|link=http://minecraft.gamepedia.com/File:Title_command.png|thumb| Example result of the title command. ]] : Fails if the arguments are not specified correctly, or if''player''fails to evaluate to one or more online players. : On success: :* <code>clear</code>— Clears the screen title from the screens of the specified player(s). If no screen title is currently being displayed, has no effect. :* <code>reset</code>— 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). :* <code>subtitle</code>— If a screen title is currently being displayed to the specified player(s), changes the current subtitle to''title''; otherwise, specifies the subtitle for the next screen title to be displayed to the specified player(s). :* <code>times</code>— Changes the fade-in, stay, and fade-out times of all current and future screen titles for the specified player(s). :* <code>title</code>— Displays a screen title to the specified player(s), or changes the current screen title to''title''. 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: :# <code>title @a subtitle {text:"The story begins…", color:gray, italic:true}</code> :# <code>title @a title {text:"Chapter I", bold:true}</code> === toggledownfall === {{/infobox |toggledownfall |op |1.3.1|12w16a }} Toggles the weather. ; Syntax : <code>toggledownfall</code> ; 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 |tp |op |Alpha 1.0.16_01 }} Teleports entities (players, mobs, items, etc.). ; Syntax : <code>tp [''target player''] <''destination player''></code> : <code>tp [''target player''] <''x''> <''y''> <''z''> [<''y-rot''> <''x-rot''>]</code> ; Arguments : ''target player''(optional) :: Specifies the entity(s) to be teleported. Must be either a player name or a [http://minecraft.gamepedia.com/Commands#Target 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.''x''and''z''must fall within the range -30,000,000 to 30,000,000 (exclusive, without the commas), and''y''must be at least 0. May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>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, if''target player''fails to resolve to one or more entities (named players must be online), or if''destination player''fails to resolve to a single entity (a named player must be online). Fails individually for each entity referenced by''target player''that is not in the same dimension as the''destination player'', if specified. : On success, teleports the targets to the specified destination. ; Examples : To teleport yourself to Alice:<code>tp Alice</code> : To teleport all players to yourself:<code>tp @a @p</code> : To teleport yourself to x=100 and z=100, but three blocks above your current position:<code>tp 100 ~3 100</code> : To rotate the nearest player 10 degrees to the right without changing their position:<code>tp @p ~ ~ ~ ~10 ~</code> === trigger === {{/infobox |trigger | |1.8|14w06a }} Modifies a scoreboard objective with a "trigger" criteria. ; Syntax : <code>trigger <''objective''> <add<nowiki>|set> <''value''></code> ; Description : Used together with<code>[[http://minecraft.gamepedia.com/Commands#tellraw|/tellraw]]</code>to let players activate systems made by operators or mapmakers. ; Arguments : ''objective'' :: An enabled scoreboard objective with the "trigger" criteria. : ''add|set'' :* <code>''add''</code>– Adds''value''to the current value of''objective''. :* <code>''set''</code>– Sets the value of''objective''to''value''. ; Result : Fails if the arguments are not specified correctly, if''objective''does not have the "trigger" criteria, or if the player who executed the command is not able to modify''objective''. : On success, the value of''objective''is changed for the player that executed the command. === weather === {{/infobox |weather |op |1.4.2|12w32a }} Sets the weather. ; Syntax : <code>weather<nowiki><clear|rain|thunder></nowiki>[''duration'']</code> ; Arguments : ''clear|rain|thunder'' :* <code>clear</code>– Set the weather to clear. :* <code>rain</code>– Set the weather to rain (or snow in cold biomes). :* <code>thunder</code>– 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). If''duration''is 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 one''Minecraft''day:<code>weather clear 1200</code> : To make it rain, but let it end at its own pace:<code>weather rain</code> === whitelist === {{/infobox |whitelist |mp |Beta 1.3 }} Manages the server whitelist. Server ops will''always''be able to connect when the whitelist is active, even if their names do not appear in the whitelist. ; Syntax : The command has six variations. : <code>whitelist add <''player''></code> : <code>whitelist list</code> : <code>whitelist off</code> : <code>whitelist on</code> : <code>whitelist reload</code> : <code>whitelist remove <''player''></code> ; Arguments : ''player''(<code>add</code>and<code>remove</code>mode only) :: Specifies the player(s) to add or remove from the whitelist. ; Result : Fails if the arguments are not specified correctly, or if''player''doesn't exist : On success: :* <code>add</code>— Adds the player name to the whitelist. The player does not need to be online. :* <code>list</code>— Displays all player names in the whitelist. :* <code>off</code>— Disables the server's use of a whitelist. :* <code>on</code>— Enables the server's use of a whitelist. :* <code>reload</code>— Reloads the list of player names in<code>white-list.txt</code>(1.7.5 or earlier) or<code>whitelist.json</code>(1.7.6 or later) from disk (used when<code>white-list.txt</code>or<code>whitelist.json</code>has been modified outside of''Minecraft''). :* <code>remove</code>— Removes the player name from the whitelist. The player does not need to be online. === worldborder === {{/infobox |worldborder |op |1.8|14w17a }} These commands control the [http://minecraft.gamepedia.com/World border|world border]. ; Syntax : The command has eight variations, each with different arguments: : <code>worldborder add <''distance''> [''time'']</code>(increases the world border diameter) : <code>worldborder center <''x''> <''z''></code>(recenters the world boundary) : <code>worldborder damage amount <''damagePerBlock''></code>(specifies the world border damage rate) : <code>worldborder damage buffer <''distance''></code>(specifies the world border damage buffer distance) : <code>worldborder get</code>(returns the world border diameter) : <code>worldborder set <''distance''> [''time'']</code>(sets the world border diameter) : <code>worldborder warning distance <''distance''></code>(specifies the world border warning distance) : <code>worldborder warning time <''time''></code>(specifies the world border warning time) ; Arguments : ''distance''(<code>add</code>,<code>damage buffer</code>,<code>set</code>and<code>warning distance</code>modes only) :: Specifies a distance in blocks: ::* <code>add</code>– Specifies the number of blocks to add to the world border diameter. ::* <code>damage buffer</code>– 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. ::* <code>set</code>– Specifies the new diameter for the world border. Must be between 1.0 and 60,000,000 (inclusive, without the commas). ::* <code>warning distance</code>– 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''(<code>add</code>,<code>set</code>and<code>warning time</code>modes only) :: Specifies a time in seconds: ::* <code>add</code>– 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. ::* <code>set</code>– 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. ::* <code>warning time</code>– 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''(<code>center</code>mode only) :: Specifies the horizontal coordinates of the world border's center. Must be between [http://minecraft.gamepedia.com/World border|-30,000,000 and 30,000,000](inclusive, without the commas). May use [http://minecraft.gamepedia.com/Commands#Tilde notation|tilde notation]<nowiki/>to specify coordinates relative to the command's execution. : ''damagePerBlock''(<code>damage amount</code>mode only) :: Specifies the damage a player takes per second per block past the world border buffer. For example, if''damagePerBlock''is 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: :* <code>add</code>– The world border begins changing its diameter by the specified amount. If''distance''is positive, the world border will turn green and start increasing; if negative, the world border will turn red and start decreasing. If''time''is 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of (''distance''/2)/''time''blocks per second. :* <code>center</code>– The center of the world border immediately moves to the specified coordinates. :* <code>damage amount</code>– 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. :* <code>damage buffer</code>– 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. :* <code>get</code>– Shows the current world border diameter in the chat. :* <code>set</code>– The world border begins changing its diameter to the specified value. If''distance''is 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. If''time''is 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of ((''distance''-<current diameter>)/2)/''time''blocks per second. :* <code>warning distance</code>– Sets the world border warning distance to the specified value. :* <code>warning time</code>– Sets the world border warning time to the specified value. === xp === {{/infobox |xp |op |1.3.1|12w16a }} Adds [http://minecraft.gamepedia.com/Experience|experience]<nowiki/>to a player. ; Syntax : <code>xp <''amount''> [''player'']</code> : <code>xp <''amount''>L [''player'']</code> ; 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 an<code>L</code>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. ; Result : Fails if arguments are not specified correctly, or if''player''fails 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:<code>xp 7</code> : To give 3 levels to Alice:<code>xp 3L Alice</code> : To remove all levels from all players:<code>xp -2147483648L @a</code>
명령어
문서로 돌아갑니다.