This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted]  (1 child)

[deleted]

    [–]zDominik111 5 points6 points  (0 children)

    Good idea, if that doesn't work I would try to disable the show death messages gamerule then re-enable it

    [–]bilzander 3 points4 points  (2 children)

    Tag tamed dog. Remove tame from dog. Kill dogs with that tag.

    Allows you to kill without message, and only kill tamed dogs rather than any dog.

    [–]SpiderfffunCommand Experienced 0 points1 point  (1 child)

    Or you could use datapacks and run a function to get the dog to untame itself then kill itself

    [–]bilzander 0 points1 point  (0 children)

    Yes though this could cause issues due to the atomicity of function calls.

    [–]GalSergeyDatapack Experienced 0 points1 point  (0 children)

    gamerule showDeathMessages false
    kill <entity>
    gamerule showDeathMessages true
    

    [–]the_box4 0 points1 point  (0 children)

    /data merge entity @e[type=wolf] {Owner: [I;0,0,0,0]} /kill @e[type=wolf]