Minecraft – Kill skeleton horses with command block in a radius

minecraft-commandsminecraft-java-edition

I am an admin on a Minecraft server and I am trying to figure out how to kill skeleton horses in a certain radius using command blocks.

Since 1.11 our old function has stopped work, partly to do with the skeleton horses singular entity tag.

The command blocks I have set are 2 separate ones set to repeat

The code I have currently is:

Add to scoreboard command block:

scoreboard players tag @e[type=EntityHorse] add skeleHorse {Type:4}

Kill command block:

minecraft:kill  @e[tag=skeleHorse,r=250]

What I have tried is as follows:

Add to scoreboard command block:

scoreboard players tag @e[type=skeleton_horse] add skeleHorse

Kill command block:

minecraft:kill  @e[tag=skeleHorse,r=250]

Best Answer

Simply use this in a command block:

minecraft:kill @e[type=skeleton_horse,r=50]

You don't even need the first command block for adding them to the scoreboard anymore.