명령어 빌더
Minecraft /clear Generator.
Clears items from player inventories. 아래 설정을 조정하여 올바른 마인크래프트 문법을 실시간으로 생성하세요.
실시간 터미널 출력
생성된 마인크래프트 문법
이 명령어를 복사하여 마인크래프트 채팅창(T 키)이나 커맨드 블록에 바로 붙여넣으세요.
/give @s diamond 64
이 명령어는 어떤 동작을 하나요?
자신(`@s`)의 인벤토리에서 아이템을 제거합니다.
Documentation & Guide
About the /clear Generator
The /clear generator constructs commands to remove specific items, stacks, or entire inventories from players.
How to Use This Generator
- Select the target player selector.
- Optionally specify the item ID to delete (e.g. minecraft:dirt).
- Optionally set the maximum count to remove (leave empty to remove all).
- Copy and run in chat or command block.
Parameters & Options Explained
Target
The player whose inventory will be cleaned.
Item ID
Specific item to target; leaving blank clears the entire inventory.
Max Count
Number of items to delete. Setting count to 0 queries item presence without deleting.
Practical In-Game Example
Tested & Validated/clear @p minecraft:rotten_fleshRemoves all rotten flesh from the nearest player while keeping other items intact.
Java vs Bedrock Compatibility
Java Edition:Syntax: /clear <targets> [<item>] [<maxCount>]
Bedrock Edition:Syntax: /clear <player> [itemName] [data] [maxCount]
Important Limitations & Rules
- Running /clear with no arguments empties the entire inventory including armor and offhand.
- Cannot target offline players.