I'm experiencing a strange "error" where invisibility (as well as other attributes) are not correctly applying when using data merge entity. I'm confirming that the entity has the effect using data entity get, yet it's standing there without the invisibility effect. If I wait a bit, the effect sometimes does apply, but I haven't identified a pattern. If the mob eventually becomes invisible, and I use the same command with a duration of 1, the effect immediately drops off. I have disabled all other running scripts, restarted the game, changed gamemode, reloaded. Playing vanilla 1.16.1.
I know this sounds super basic and weird, and I'm wondering if other's have noticed something strange or if something weird is happening locally, or if I'm missing something obvious somehow.
The command is the basic one that has always worked in the past:
/execute as @e[tag=mob] run data merge entity @s {ActiveEffects:[{Id:14b,Amplifier:1b,Duration:9999,ShowParticles:1b}]}
I've even attached a photo of a mob with an invisibility effect that is not invisible.
For some reason, when you give an effect using /data modify, the target don't get this effect applied (though it really has the effect in its nbt).
If I remember, the solution was to apply another effect at same time using /effect (like nausea 1 second).
I think what is happening is that minecraft don't actually track each tick if any entity gets an effect to apply it.
I guess minecraft only updates effect status when a target gets affected by a potion or a /effect.
Same thing can be experienced with maxHealth attribute : If you set player's maxHealth to 0, it is technically dead... though it's still alive. However, it dies as soon as it gets a health change, which will make the game try to update it, then see that this player must actually be dead
I won't be surprised that this would be how effects works, as this kind of things is pretty good to avoid such things to be in the game loop.
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
I'm experiencing a strange "error" where invisibility (as well as other attributes) are not correctly applying when using data merge entity. I'm confirming that the entity has the effect using data entity get, yet it's standing there without the invisibility effect. If I wait a bit, the effect sometimes does apply, but I haven't identified a pattern. If the mob eventually becomes invisible, and I use the same command with a duration of 1, the effect immediately drops off. I have disabled all other running scripts, restarted the game, changed gamemode, reloaded. Playing vanilla 1.16.1.
I know this sounds super basic and weird, and I'm wondering if other's have noticed something strange or if something weird is happening locally, or if I'm missing something obvious somehow.
The command is the basic one that has always worked in the past:
I've even attached a photo of a mob with an invisibility effect that is not invisible.
For some reason, when you give an effect using /data modify, the target don't get this effect applied (though it really has the effect in its nbt).
If I remember, the solution was to apply another effect at same time using /effect (like nausea 1 second).
I think what is happening is that minecraft don't actually track each tick if any entity gets an effect to apply it.
I guess minecraft only updates effect status when a target gets affected by a potion or a /effect.
Same thing can be experienced with maxHealth attribute : If you set player's maxHealth to 0, it is technically dead... though it's still alive. However, it dies as soon as it gets a health change, which will make the game try to update it, then see that this player must actually be dead
I won't be surprised that this would be how effects works, as this kind of things is pretty good to avoid such things to be in the game loop.
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Thanks, that helps explain why I've having trouble with my maxHealth mechanics.
Well is the problem even resolved?
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).