Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-179815

Data command doesn't remove leash from a mob

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.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
    • Confirmed
    • Creative
    • Commands
    • Normal
    • Platform

      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

            Unassigned Unassigned
            Jiogo18 Jiogo18
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: