Mojira Archive
MC-179815

Data command doesn't remove leash from a mob

By adding a lead to a mob (with item or with command) a leash appears.

What I expected to happen was...:

By removing the leash with data, The leash is removed

What actually happened was...:
But when I remove it with the following command the leash is always here (in data of the entity and visually)

Steps to Reproduce:

add the leash (or with item):

execute as @e[type=!player,distance=..10] at @s run data modify entity @s Leash.UUID set from entity @p[distance=..40] UUID

remove the leash:

execute as @e[type=!player,distance=..10] run data remove entity @s Leash

Update 1.16: the UUID system has changed in 1.16

Fixed

Jiogo18

[Mojang] slicedlime

2020-04-22, 01:26 PM

2024-11-24, 09:37 PM

2024-11-15, 11:50 AM

10

6

Confirmed

Normal

Platform

Commands

/data, data, lead, leash

1.15.2 - 1.20.21.15.2, 1.16.2, 1.16.4, 20w51a, 1.17.1, 1.18.1 Release Candidate 2, 1.18.1, 1.18.2 Pre-release 3, 1.19.1, 1.19.2, 1.19.4, 1.20.2

1.21.4 Pre-Release 1