I know you can set any mob except the Slimes' attack to do no damage (because slimes use a non generic attack(attackOnCollide)), so I was wondering if you could make it so a mob ignores the players hitbox completely.
So, what is it? The command. PM me if you're having trouble.
His command is (small note: the 'code' BBCode helps cut around issues when posting, though there are still some other issues that are known and will be fixed in the future):
Essentially it prevents the mob from being able to obtain a target. On its own this will stop the mob from following the player, though if needed you can create a mechanism that would modify the followRange via /replaceitem and "AttributeModifiers" item tag, in which the mob would have their followRange reduced to 0 if they're near a player.
Does not work with slimes. Anything else? I think slimes use different and non generic follow attributes.
Upon summoning, slimes' attributes are set regardless of what you've set them to yourself (likely due to the "Size" tag determining its stats after-the-fact). However, attribute modifiers via worn equipment will still work:
br>Upon summoning, slimes' attributes are set regardless of what you've set them to yourself (likely due to the "Size" tag determining its stats after-the-fact). However, attribute modifiers via worn equipment will still work:
I used values for the UUID values from 0 to 5 and nothing really occured with generic.attackDamage
It appears slimes no longer use the 'attackDamage' attribute. I'm positive they did in the past, or at least before the AI update a couple months back. You'll have to rely on using followRange for slimes unfortunately.
It appears slimes no longer use the 'attackDamage' attribute. I'm positive they did in the past, or at least before the AI update a couple months back. You'll have to rely on using followRange for slimes unfortunately.
currently not even followRange works. I tried out your code, the darn things keep chasing me. And what about my code was wrong with the size? Shouldn't the size come first, or last?
currently not even followRange works. I tried out your code, the darn things keep chasing me. And what about my code was wrong with the size? Shouldn't the size come first, or last?
The order of the tags won't matter. What version are you using? In the latest snapshot, the command I've provided does work, though in 1.7 you'll need to use numerical IDs for items instead of alphabetical (or else the item will be removed). The one you've posted has a colon missing between "AttributeModifiers" and the square bracket. The "UUIDLeast" and "UUIDMost" tags must not be 0, and also requires their tag-type to be defined by appending their values with an L (which stands for type 'long'). I can't reproduce your issue with the "Size" tag, though.
- Glados
I don't think that unbalanced brackets do anything. Might want to elaborate.
- Glados
So, what is it? The command. PM me if you're having trouble.
-
View User Profile
-
View Posts
-
Send Message
Retired StaffHis command is (small note: the 'code' BBCode helps cut around issues when posting, though there are still some other issues that are known and will be fixed in the future):
/summon Zombie ~ ~1 ~ {Attributes:[{Name:generic.followRange,Base:0.0}]}Essentially it prevents the mob from being able to obtain a target. On its own this will stop the mob from following the player, though if needed you can create a mechanism that would modify the followRange via /replaceitem and "AttributeModifiers" item tag, in which the mob would have their followRange reduced to 0 if they're near a player.Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
- Glados
-
View User Profile
-
View Posts
-
Send Message
Retired StaffUpon summoning, slimes' attributes are set regardless of what you've set them to yourself (likely due to the "Size" tag determining its stats after-the-fact). However, attribute modifiers via worn equipment will still work:
/summon Slime ~ ~1 ~ {Equipment:[{id:minecraft:stone,Count:1,tag:{AttributeModifiers:[{AttributeName:generic.followRange,Name:"Reduce",Amount:-1,Operation:2,UUIDLeast:1l,UUIDMost:1l}]}}]}The above reduces the followRange attribute by 100%.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
EDIT*Can the same be done for generic.attackDamage? Also, all my slimes, no matter what I put in, spawn small. Here's the code I used:
/summon Slime ~ ~1 ~ {Size:3,Equipment:[{id:minecraft:stone,Count:1,tag:{AttributeModifiers[{AttributeName:generic.attackDamage,Name:"Reduce",Amount:-1,Operation:2,UUIDLeast:0,UUIDMost:0l}]}}]}I used values for the UUID values from 0 to 5 and nothing really occured with generic.attackDamage
-
View User Profile
-
View Posts
-
Send Message
Retired StaffIt appears slimes no longer use the 'attackDamage' attribute. I'm positive they did in the past, or at least before the AI update a couple months back. You'll have to rely on using followRange for slimes unfortunately.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
currently not even followRange works. I tried out your code, the darn things keep chasing me. And what about my code was wrong with the size? Shouldn't the size come first, or last?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffThe order of the tags won't matter. What version are you using? In the latest snapshot, the command I've provided does work, though in 1.7 you'll need to use numerical IDs for items instead of alphabetical (or else the item will be removed). The one you've posted has a colon missing between "AttributeModifiers" and the square bracket. The "UUIDLeast" and "UUIDMost" tags must not be 0, and also requires their tag-type to be defined by appending their values with an L (which stands for type 'long'). I can't reproduce your issue with the "Size" tag, though.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/