I know that you can put something in the beacon but even if I did, I can't seem to get the replace to work correctly.
EDIT: It places even when there is no water there. I would appreciate the help!
I know that you can put something in the beacon but even if I did, I can't seem to get the replace to work correctly.
EDIT: It places even when there is no water there. I would appreciate the help!
The /setblock command does not support replacing blocks with another block. You must use /fill for this purpose.
However, there is a limitation with that: /fill will not allow you to use replace specific blocks if the block you're placing is a tile entity, such as a beacon. It will instead attempt to create NBT data within the command's syntax, which is in place of "water". What you can do instead is use /execute's "detect" function to find the water first, and then place a beacon:
OH YAY!! Okay, yeah I had seen the detect function but I never thought of using it, so cool, I will start experimenting with that! Thank you very much Sky!!
SkylinerW, I am having a problem reminiscent to the first on this thread. using testfor @a [x= 40, y= 71, z= 129], powering it comes up with [12:08:37] Data tag parsing failed: Invalid tag encountered, expected '{' as first char. Have completely retyped this command, still doesn't work. Am I overlooking something very stupid, or bug? Using Windows 7 64-bit
If i may help? make sure there are no spaces within the [] for example:
@a[40,71,129,0] {AnyDataTags}
The {} data tags aren't necessary unless you have any or need them for further specification. the 0 will test for the player who is standing in said block. I think it is required, not really sure why. If i was a 1 then it would test for a player within 1 block radius of those coordinates. Hope this helps!
SkylinerW, I am having a problem reminiscent to the first on this thread. using testfor @a [x= 40, y= 71, z= 129], powering it comes up with [12:08:37] Data tag parsing failed: Invalid tag encountered, expected '{' as first char. Have completely retyped this command, still doesn't work. Am I overlooking something very stupid, or bug? Using Windows 7 64-bit
If i may help? make sure there are no spaces within the [] for example:
@a[40,71,129,0] {AnyDataTags}
The {} data tags aren't necessary unless you have any or need them for further specification. the 0 will test for the player who is standing in said block. I think it is required, not really sure why. If i was a 1 then it would test for a player within 1 block radius of those coordinates. Hope this helps!
I'm having a problem similar to Blazer6565's. I'm using this command:
/testfor @p [r=2]
From what I know (which is very little) this should activate when a player is within two blocks of the command block. But it doesn't. Instead, it says "invalid tag encountered. expected '{' as first char." I've noticed that quote multiple times on this thread, but none of the solutions have helped.
Is there any other way to solve this issue? I would re-type the commands but I have been typing up these commands on an online document for a map me and friends are building and most of them are waaaaaay too long to re-type. I would be sitting here for days trying to retype them!
gets me this
“Data tag parsing failed: Invalid tag encountered, expected '{' as first char.”
I am guessing that this might not be a bug but rather a change in command blocks?
The
blockCommand has worked before in older updates but it's now breaking my map in 1.8 and onwards.Would any one else happen to know how to get around this problem?
Sound as if there's a hidden character being inserted. Retyping the command (not copying/pasting) should fix it.
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/
Is this normal? I've never had it happen to me as of until now...
It happens to folks every now and then. It appears to be exclusive to Mac, noted by this bug report here: https://bugs.mojang.com/browse/MC-49755
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/
youtube channel
deviantart
tumblr
I know that you can put something in the beacon but even if I did, I can't seem to get the replace to work correctly.
EDIT: It places even when there is no water there. I would appreciate the help!
I like to help and howl and laugh all day XD
What do NOT say to get in trouble HERE!!!
My Blog
The /setblock command does not support replacing blocks with another block. You must use /fill for this purpose.
However, there is a limitation with that: /fill will not allow you to use replace specific blocks if the block you're placing is a tile entity, such as a beacon. It will instead attempt to create NBT data within the command's syntax, which is in place of "water". What you can do instead is use /execute's "detect" function to find the water first, and then place a beacon:
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/
I like to help and howl and laugh all day XD
What do NOT say to get in trouble HERE!!!
My Blog
SkylinerW, I am having a problem reminiscent to the first on this thread. using testfor @a [x= 40, y= 71, z= 129], powering it comes up with [12:08:37] Data tag parsing failed: Invalid tag encountered, expected '{' as first char. Have completely retyped this command, still doesn't work. Am I overlooking something very stupid, or bug? Using Windows 7 64-bit
If i may help? make sure there are no spaces within the [] for example:
The {} data tags aren't necessary unless you have any or need them for further specification. the 0 will test for the player who is standing in said block. I think it is required, not really sure why. If i was a 1 then it would test for a player within 1 block radius of those coordinates. Hope this helps!I like to help and howl and laugh all day XD
What do NOT say to get in trouble HERE!!!
My Blog
I'm having a problem similar to Blazer6565's. I'm using this command:
From what I know (which is very little) this should activate when a player is within two blocks of the command block. But it doesn't. Instead, it says "invalid tag encountered. expected '{' as first char." I've noticed that quote multiple times on this thread, but none of the solutions have helped.
Alright, thanks for your help.
Is there any other way to solve this issue? I would re-type the commands but I have been typing up these commands on an online document for a map me and friends are building and most of them are waaaaaay too long to re-type. I would be sitting here for days trying to retype them!