Using command blocks to spawn player-killed mobs

Using command blocks to spawn player-killed mobs - Crop hacker silhouette typing on computer keyboard while hacking system

To explain, when a player kills certain mobs, they have a chance to drop specific items. For example, when a player kills a zombie, they have a chance to drop iron tools, armour, iron ingots, and even potatoes or carrots.

If I wanted to create a mob-grinder, is there a way to spawn mobs that act as if they can be killed by players, if a player hasn't actually touched them using only commands/command blocks? (No mods)



Best Answer

Mobs can drop items even if they die from other sources. The only thing they won't drop is XP. If you want to "farm" them put the command block to spawn them near a sure-death trap.




Pictures about "Using command blocks to spawn player-killed mobs"

Using command blocks to spawn player-killed mobs - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk
Using command blocks to spawn player-killed mobs - From below of ethnic boy in hoodie controlling robot using panel while standing in light room
Using command blocks to spawn player-killed mobs - Side view of cute toddler girl sitting on bed barefoot and playing with colorful wooden blocks while mother using laptop in bed enjoying morning coffee



Can you spawn mobs with command blocks?

The coordinates ~ ~1 ~ are commonly used when running the /summon command from a command block so that the entity/mob spawns 1 block above the command block.

What is the command for killing mobs?

If you don't want to kill yourself or any other player in the process of removing mobs from the world, type in \u201c /kill @e[type=! player] \u201d.

What is the command to Despawn mobs in Minecraft?

As stated above, you will just need to type /kill @e to kill everything in the game, including yourself.

Can command blocks op players?

You cannot. There are various commands that are unavailable, probably due to the ability for abuse (such as reopping yourself after having your admin privileges revoked).



Kill specific mobs and entities with commandblocks in minecraft 1.8




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Anete Lusina, Sora Shimazaki, Vanessa Loring, Tatiana Syrikova