With the new command /summon, some (potion) effects that can be added to a mob, are not functional (as I believe).
I was attempting to /summon mobs with potion effects on my multiplayer minecraft server. I was doing this with command blocks. All potion effects worked and were added successfully except speed and slowness.
To recreate this:
1. Put the command:
/summon Cow ~0 ~1 ~0 {ActiveEffects:[{Id:1,Amplifier:10,Duration:100000,Ambient:0,ShowParticles:1}]}
in a command block.
2. Activate the command block.
I am unsure of whether this is intended or bug. Thank you!
Linked issues
is duplicated by 22
relates to 1
Comments 41
Confirmed for 13w41b
The potion particle effect on the mob is even displaying the right color. Throwing another potion at the mob with lower amplifier/time at the mob seems to activate the effect.
This could be used as a workaround:
/summon ThrownPotion ~0 ~1 ~0 {Potion:{id:373,Damage:1337,Count:1,tag:{CustomPotionEffects:[{Id:2,Amplifier:0,Duration:100}]}}}
Is this still a concern in the latest Minecraft version 13w48b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Still present in 1.7.4. As well, another bug report exists but also includes information regarding the movementSpeed attribute: https://mojang.atlassian.net/browse/MC-33110
From someone who's not so deep into (MC) coding, or any generic user's perspective, it seems somewhat strange and inconsistent if some potion effects do affect mobs, but that there are also exceptions, which is illogical - from a generic user's perspective (including myself), I'm sure you can get my point.
So if a WaI is indeed justified, it'd be good to get an explanation that all "generic non-coding users" can understand easily, so they are understanding and not upset about such a decision.
In any case, I hope that at least https://bugs.mojang.com/browse/MC-40949 will not be a WaI in the end - if we cannot properly address all mobs and not give them all possible attributes equally, it'll end up not only minimizing the possibilities we have, but also become confusing (I personally feel confused about such apparent inconsistencies and I know I am not the only one), and confusion leads often to disappointment and anger, and that's something that shouldn't be, if possible, so we can continue to be an overall awesome game community with a warm atmosphere.
To not know or understand something often leads to misunderstandings and thus problems that could have been prevented if handled properly beforehand (as I said: clarity + transparency).
I apologize if I may come off sometimes rude or demanding, but I truly only got the good for Minecraft and its community in mind, I don't like the "bad vibrations" I can feel/read from "the generic (uninformed) user", thus I'm being a bit persistent and very direct and honest to raise awareness and understanding on all sides, and lessen anger/hate by argumenting why a decision is a good decision (as soon as someone would actually explain it so I can get it).
By definition, Mojang has the exclusive capability to determine their own intentions, and thus whether any particular behavior is a bug or not. They could intend for the game to crash, erase your hard drive, or set your computer on fire. It might be illegal to distribute such software to unaware parties, but it would still be their right to call it "Works As Intended". Whether anyone else likes the behavior is irrelevant.
That said, "Works As Intended" doesn't mean that the current behavior is completely true to their vision. In some cases, "Works As Designed" would be more accurate, that the behavior is as close to their intentions as is currently possible. It may require an extensive design change, it may have dependencies that they're not ready to require (hardware features, java or library versions, etc.), it may have performance tradeoffs that they're not willing to accept, or it may just be impossible. "Won't Fix" may be appropriate for some of those situations, but when the system as a whole simply has to work the way it does, or there are intractable flaws with the alternatives, then "Works As Intended" is the correct resolution. Lag, for instance, is probably never intended by a software developer, but may be an unavoidable consequence of how other things have to work in order to do what they do. The system may be "Working As Intended", even if they don't like all the consequences of the design.
A developer may not interpret a report the way the reporter intended it. That's the nature of communication, particularly with the difference in perspectives between an end user and the developer. The end user is focused on the behavior, while the developer is focused on the code. Marking a report as "Works As Intended" doesn't always mean that the behavior is intended. Sometimes it just means that the code is working correctly, and that achieving the desired behavior would require redesigning other code. The individual pieces may do exactly what they're supposed to do, and it's not sufficient to produce the desired behavior. At that point, however, it's an enhancement or feature request, not a bug.
I'd have to go poking around in the code to be sure, but in this case, it would appear that speed and slowness are essentially just visual "dummy" effects, and that the actual effect is produced by applying attribute modifiers. Commands such as summon don't provide a lot of hand-holding โ you have to follow internal formats and reproduce effects in the same way the game handles them. It may not be ideal, but changing it would require redesigning a system that already works, requiring a not-insubstantial effort โ for no benefit for the average player. They may address this in the future, either through improvements to the commands, or in improving the effects and attributes systems. Either way, it's an enhancement, not a bug. @unknown's "workaround" is likely not a workaround at all, but simply the correct way to produce the desired effect using the systems as they currently are designed.
In short, the resolution field doesn't provide a lot of context on its own. Developer comments explaining exactly what is intended and what is not would be nice, but are not always a reasonable expenditure of their time. I'd say it's obvious that speed and slowness are supposed to work on mobs, because they do when applied through normal game mechanics, such as throwing splash potions at them. In this case, "Works As Intended" should not be interpreted as meaning "Speed and slowness are not intended to work on mobs", but instead "The potions work a certain way, and if you want to reproduce their effects using commands, you must provide the necessary data."
I can agree with this being WAI because when the ActiveEffects tag modifies the Attributes tag that is kind of a suprise (which should not be the case). In general the problem might be that these effects have to create modifiers for the attribute.
That appears to be the correct observation. The only other effects that change attributes that mobs have, being Strength & Weakness (for generic.attackDamage
) and Health Boost (for generic.maxHealth
), also do not work. I externally modified my player.dat file to give myself Luck and Unluck in ActiveEffects
and it had the same result. MC-71977 covers health and strength-based effects, but the underlying issue indeed is that any effects that change attributes are ineffective via /summon and ActiveEffects
.
@unknown Always a delight to read your comments, thanks a lot for the effort, the time you put in.
It makes it so much easier for me to explain such things to upset people (me, being not a native nor really eloquent English speaker and too awkward to begin with).
I already did understand the general WaI-issue from your first post I was referring to, but it can't be stressed enough.
The more people know about it, the less mean comments or "bad vibrations" will arise in the future.
Developer comments explaining exactly what is intended and what is not would be nice, but are not always a reasonable expenditure of their time.
I don't expect any of the developers to waste their time on a reply, I rather have them more bugs fixed - but I hoped that any of the mods or very experienced people would reply and explain, and that hope wasn't in vain, thank you };] <3
@unknown's "workaround" doesn't work for bats by the way (I'm sure I tested it correctly), but thanks to what he and even more so @unknown said I completely understand the problem with effects versus attributes, and why it can be considered as "works as intended".
I hope fixing attributes for flying + swimming mobs will be possible, but if not I'll keep in mind what you wrote (and I already knew thanks to you) about the current code situation.
If it's sure that it will be fixed someday when all the code is rewritten then it's just a matter of time.
I play Minecraft since 2010, I don't mind waiting as long as I know it's not futile };]
So, again a huge thank you to you all also on behalf of others for taking your time and explaining it.
Take care!
Here's an updated command for anyone who wants to test this "feature" in recent versions:
/summon cow ~ ~ ~ {active_effects:[{id:"minecraft:speed",amplifier:10b,duration:-1,ambient:0b,show_particles:1b}]}
And for clarity, this issue occurs with any effect which modifies an attribute, including strength, weakness, health boost, absorption luck and bad luck. (It may also affect jump boost on horses, since they have an attribute for that, but I haven't tested this myself.)
I noticed the same problem...some potion effects do not work at all on mobs. Absorption and extra health are among those as well.