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
- relates to
-
MC-122008 custom_potion_effects in arrow entities duplicates with '/execute store' and isn't affected by '/data remove'
- Open
-
MC-153392 Unable to remove villager gossips using /data remove
- Open
-
MC-122840 "/data remove" cannot delete beam_target tag in End Crystals
- Reopened
-
MC-138100 /data remove doesn't work for the Jukebox's RecordItem tag
- Open
-
MC-128225 '/data remove' can't remove the NBT "CustomName"
- Reopened