So my question is, if I can target only one entity with that command, how can I target multiple entities (in that case creepers) with one command to remove AI from all of them?
The idea to use /execute is monumentally stupid. Why is this limitation here in the first place?
Is it to prevent lag? Because I would rather wait a minute or even go through a server restart then individually use /data on each mob.And yes there's an aforementioned workaround but that's not the point, the point is why would Mojang impose such a limitation when the problem simply doesn't exist? I didn't even encounter lag when using /entitydata on multiple mobs in the past, and my last computer that I made advanced minecraft maps on had an awful processer with 4GB RAM (for scope, it choked up when I tried to do some slightly advanced things with command block contraptions, such as repeatedly adding to a scoreboard value to progress a cutscene.) I have to wonder if lag is even the issue but I have no other explanation.
EDIT: I come across as a PC elitist in this post but it's worth noting that the laptop I currently use for Minecraft is not powerful at all. The aformentioned laptop was absolutely awful for the time it was made and I'm pretty sure I got scammed when buying it.
The idea to use /execute is monumentally stupid. Why is this limitation here in the first place?
Is it to prevent lag? Because I would rather wait a minute or even go through a server restart then individually use /data on each mob.And yes there's an aforementioned workaround but that's not the point, the point is why would Mojang impose such a limitation when the problem simply doesn't exist? I didn't even encounter lag when using /entitydata on multiple mobs in the past, and my last computer that I made advanced minecraft maps on had an awful processer with 4GB RAM (for scope, it choked up when I tried to do some slightly advanced things with command block contraptions, such as repeatedly adding to a scoreboard value to progress a cutscene.) I have to wonder if lag is even the issue but I have no other explanation.
EDIT: I come across as a PC elitist in this post but it's worth noting that the laptop I currently use for Minecraft is not powerful at all. The aformentioned laptop was absolutely awful for the time it was made and I'm pretty sure I got scammed when buying it.
Some commands would generate unexpected behavior when you try to run them on multiple entities, and in some cases, it becomes less clear what you're trying to do, even if the command does exactly what you want. So they decided to port this functionality to the execute command to make things more clear.
Rollback Post to RevisionRollBack
Remember those versions that minecraft pranked us with? Specifically:
Minecraft 2.0
Minecraft 1.VR-Pre1
Snapshot 15w14a
Minecraft 3D
Those are still downloadable! Watch this video for 2.0:
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
In 1.12 I could use:
Which caused all creepers to lose their AI.
Now in 1.13 /entitydata was replaced with /data and apparently it can't target multiple entities. When I'm writing:
It says:
This command only works when I'm adding limit=1:
So my question is, if I can target only one entity with that command, how can I target multiple entities (in that case creepers) with one command to remove AI from all of them?
Alright someone helped me already. If anyone else is currently looking for solution, this command works for now:
You use /execute to target multiple entities.
example
/execute at @e[type=item] run data get entity @e[limit=1]
Dude he figured it out and your 5 months late.
seems like a necropost SpartanSpark
Thanks, this was very useful for using /data!
Thanks, the idea to use /execute was just what I was looking for!
The idea to use /execute is monumentally stupid. Why is this limitation here in the first place?
Is it to prevent lag? Because I would rather wait a minute or even go through a server restart then individually use /data on each mob.And yes there's an aforementioned workaround but that's not the point, the point is why would Mojang impose such a limitation when the problem simply doesn't exist? I didn't even encounter lag when using /entitydata on multiple mobs in the past, and my last computer that I made advanced minecraft maps on had an awful processer with 4GB RAM (for scope, it choked up when I tried to do some slightly advanced things with command block contraptions, such as repeatedly adding to a scoreboard value to progress a cutscene.) I have to wonder if lag is even the issue but I have no other explanation.
EDIT: I come across as a PC elitist in this post but it's worth noting that the laptop I currently use for Minecraft is not powerful at all. The aformentioned laptop was absolutely awful for the time it was made and I'm pretty sure I got scammed when buying it.
Profile picture is art from Twitter user @chocomiru02
Some commands would generate unexpected behavior when you try to run them on multiple entities, and in some cases, it becomes less clear what you're trying to do, even if the command does exactly what you want. So they decided to port this functionality to the execute command to make things more clear.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34