If this isn't the place to ask for help, I apologize. I just started this account today. Minecraft isn't a Steam game, so there's no official forums that I know of. Please bear with me.
I started playing Minecraft back when 1.5 came out, and in that time I've learned how to use commands through a few redstone and command block YouTubers. Ever since the 1.14 update commands that sometimes involve specific mobs or items like '/kill', '/data', or '/tp', no longer work. Here are some examples of commands that no longer work:
/kill @e[type=minecraft:zombie,distance=5]
No entity was found (standing within 5 blocks on 5 zombies.)
(This does work when I take away 'distance=5', but then it just kills every zombie in the area, which is not what I wanted.)
/data modify entity @e[type=minecraft:villager,distance=5] (This doesn't work regardless of whether I take the away 'distance=5' or not.)
"Only one entity is allowed, but the provided selector allows more than one"
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
640
Member Details
Your first problem is that you use "distance=5" which means that they must be exactly 5 blocks away. Use "distance=..5" for less than or equal to 5 blocks. For the data modify command you need to wrap in execute in order to use multiple entities. Use "execute as @e[type=minecraft:villager,distance=..5] run data modify @s". Teleport command is weird, but I believe you should use the "limit=1" argument in that one.
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.
If this isn't the place to ask for help, I apologize. I just started this account today. Minecraft isn't a Steam game, so there's no official forums that I know of. Please bear with me.
I started playing Minecraft back when 1.5 came out, and in that time I've learned how to use commands through a few redstone and command block YouTubers. Ever since the 1.14 update commands that sometimes involve specific mobs or items like '/kill', '/data', or '/tp', no longer work. Here are some examples of commands that no longer work:
/kill @e[type=minecraft:zombie,distance=5]
That command Kills any zombies EXACTLY 5 blocks away, the command to kill any zombies WITHIN 5 blocks, that would be:
/kill @e[type=minecraft:zombie,distance=..5]
No entity was found (standing within 5 blocks on 5 zombies.)
(This does work when I take away 'distance=5', but then it just kills every zombie in the area, which is not what I wanted.)
/data modify entity @e[type=minecraft:villager,distance=5] (This doesn't work regardless of whether I take the away 'distance=5' or not.)
"Only one entity is allowed, but the provided selector allows more than one"
So, multiple problems with this one. First, same problem as the previous command use 'distance=..5' not 'distance=5',Second, only one entity is allowed in data modify so to do this you have to use execute like this:/execute as @e[type=minecraft:villager,distance=..5] run data modify entity @s
Can't teleport to multiple entities at once./tp MilitaryGrunt @e[type=minecraft:villager,nbt={VillagerData:{profession:"minecraft:fisherman"}},limit=1]
Is there something I'm doing wrong? Has the structure for commands like this changed since I was gone? I would appreciate a response.
I put the "/execute as @e[type=villager,distance=..5] run data modify entity @s {'modification'}" command in within 5 blocks of a Villager, literally nothing happened. I didn't get a message of any kind. I even double checked my nbt data to make sure it was correct. No dice.
What I am trying to do is the equivalence of /entitydata; modify mob nbt data. For some reason this command is no longer in the game. And that sucks.
**EDIT**
I figured it out.
What I was trying to do was rotate a villager to face west. This is what I needed to do:
/execute as @e[type=villager,distance=..5] run data merge entity @s {Rotation:[90F,0F]}
Thank you for your help.
I wish they kept the command system the way it was, as this is one of the silliest NBT modification commands I've ever seen. It's backwards, it's much more difficult to figure out for the first time, and it uses a lot of the command prompt character limit. But I guess we can't have the improvements without their cost.
PLEASE READ THIS FIRST:
If this isn't the place to ask for help, I apologize. I just started this account today. Minecraft isn't a Steam game, so there's no official forums that I know of. Please bear with me.
I started playing Minecraft back when 1.5 came out, and in that time I've learned how to use commands through a few redstone and command block YouTubers. Ever since the 1.14 update commands that sometimes involve specific mobs or items like '/kill', '/data', or '/tp', no longer work. Here are some examples of commands that no longer work:
/kill @e[type=minecraft:zombie,distance=5]
No entity was found (standing within 5 blocks on 5 zombies.)
(This does work when I take away 'distance=5', but then it just kills every zombie in the area, which is not what I wanted.)
/data modify entity @e[type=minecraft:villager,distance=5] (This doesn't work regardless of whether I take the away 'distance=5' or not.)
"Only one entity is allowed, but the provided selector allows more than one"
/tp MilitaryGrunt @e[type=minecraft:villager,nbt={VillagerData:{profession:"minecraft:fisherman"}}]
"Incorrect argument for command"
Is there something I'm doing wrong? Has the structure for commands like this changed since I was gone? I would appreciate a response.
Thank you for your time.
Your first problem is that you use "distance=5" which means that they must be exactly 5 blocks away. Use "distance=..5" for less than or equal to 5 blocks. For the data modify command you need to wrap in execute in order to use multiple entities. Use "execute as @e[type=minecraft:villager,distance=..5] run data modify @s". Teleport command is weird, but I believe you should use the "limit=1" argument in that one.
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
Thank you for your help man. I really do appreciate it!
Responses are in bold.
I put the "/execute as @e[type=villager,distance=..5] run data modify entity @s {'modification'}" command in within 5 blocks of a Villager, literally nothing happened. I didn't get a message of any kind. I even double checked my nbt data to make sure it was correct. No dice.
What I am trying to do is the equivalence of /entitydata; modify mob nbt data. For some reason this command is no longer in the game. And that sucks.
**EDIT**
I figured it out.
What I was trying to do was rotate a villager to face west. This is what I needed to do:
/execute as @e[type=villager,distance=..5] run data merge entity @s {Rotation:[90F,0F]}
Thank you for your help.
I wish they kept the command system the way it was, as this is one of the silliest NBT modification commands I've ever seen. It's backwards, it's much more difficult to figure out for the first time, and it uses a lot of the command prompt character limit. But I guess we can't have the improvements without their cost.