Home > News > 《揭秘!一招歼灭 Minecraft 中所有怪物》

《揭秘!一招歼灭 Minecraft 中所有怪物》

Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill Command There are many reasons why you might want to eliminate mobs in Minecraft. The most straightforward method is using commands, specifically the /kill command. However, even this seemingly simple command has some nuances.
By Audrey
Feb 23,2025

Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill Command

There are many reasons why you might want to eliminate mobs in Minecraft. The most straightforward method is using commands, specifically the /kill command. However, even this seemingly simple command has some nuances. This guide will show you how to effectively use the /kill command to target and remove various mobs.

Using the /kill Command

Before using any commands, ensure your world is set to allow cheats. (Instructions on enabling cheats are provided below.)

The basic /kill command, simply typing /kill in the chat, will unfortunately kill you. To target specific entities, you need to add syntax.

To kill all mobs (excluding the player):

/kill @e[type=!minecraft:player] (@e selects all entities; type=!minecraft:player excludes the player.)

To kill a specific mob type (e.g., all chickens):

/kill @e[type=minecraft:chicken]

Targeting mobs within a specific radius:

  • Java Edition: /kill @e[distance=..15] (kills all entities within 15 blocks)
  • Bedrock Edition: /kill @e[r=10] (kills all entities within 10 blocks)

To target a specific mob type within a radius:

  • Java Edition: /kill @e[distance=..15,type=minecraft:sheep] (kills sheep within 15 blocks)
  • Bedrock Edition: /kill @e[r=10,type=minecraft:sheep] (kills sheep within 10 blocks)

The game will autocomplete commands, so precise memorization isn't necessary. Experimentation will quickly familiarize you with the command's functionality.

Important Entity Selectors:

  • @p: Nearest player
  • @r: Random player
  • @a: All players
  • @e: All entities
  • @s: Yourself

Enabling Cheats/Commands in Minecraft

Commands won't function unless cheats are enabled in your world. Here's how to do it:

Java Edition:

Minecrafr Open to Lan Screen  Java Edition

  1. Enter your world.
  2. Press Esc.
  3. Select "Open to LAN."
  4. Toggle "Allow Commands" to "On."

Commands will work within this session. To permanently enable cheats, create a new world with cheats enabled from the main menu's "Singleplayer" section.

Bedrock Edition:

Minecraft Cheats Screen Bedrock edition as part of an article about how to kill mobs.

  1. Navigate to your worlds.
  2. Select the world you want to modify.
  3. Click the pencil icon.
  4. In the settings menu, toggle "Cheats" to "On."

Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.

Top News

Copyright quanshuwang.com © 2024 — All rights reserved