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

Using /data modify to copy ActiveEffects doesn't work properly with speed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.14.4
    • None
    • Unconfirmed
    • (Unassigned)

      Attempted to make normal spiders summon cave spiders, while copying effects across. Generally this is straight forward with a function that summons the cave spider, then uses the below command to copy the ActiveEffects nbt tag of the original spider to the new cave spider

      data modify entity @e[type=cave_spider,limit=1,sort=nearest] ActiveEffects set from entity @s ActiveEffects

      (note this is run as the original spider)

       

      However this seems to not work 100% as intended. While it works for invisible and glowing spiders, spiders with the Speed effect do not copy the effects correctly. The cave spider's nbt data will say it has the speed effect, and particles will show, however the cave spider will not actually exibit any increased speed. I haven't tested with every other effect as its difficult to know exactly if the effect is "working" as all visual cues are satisfied (particles and nbt data).

       

      To reproduce:

      1) summon a spider

      2) use /effect give @e[type=spider] speed 500 5 

      although any time and amplifier will work

      3) summon a cave spider

      4) from the original spider, run the command from earlier

       

      Proof of no actual speed is difficult to show in images but i performed the procedure on NoAI:1b spiders and then turned they're AI back on and there is a noticeable difference

            Unassigned Unassigned
            Bored_Banana Tristan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: