I've been trying it for two weeks and it still doesn't work. How do I set the gamemode of a player within a certain radius Survival with Command Blocks?
2991
Is there a way to set an "Adventure Mode Boundary" in Minecraft?  I am trying to create this village where players can spawn in, and then set out to explore the world and build and do normal minecraft stuff. I don't want them to destroy this village, so I want them to be in adventure mode when they are in the village and then switch them to survival when they leave, and vice-versa. When they return to the village, they get switched back to adventure mode.  In other words, I want to set an "Adventure Mode Boundary" to protect buildings. I am working without mods. I am hoping there is an simple way using command blocks.
65744
I have started a server in 1.5 and was wondering how to op myself. The /op &lt;player&gt; command does not work and in 1.4.7. I used to open up the ops.txt file but I cannot find it in 1.5. Can anyone help as this would be useful to teleport my friend to me.
108159
Is there a away to test if a player isn't moving?  At the moment I have put this command on a hopper clock:  /scoreboard players set @a sneak 3    But that doesn't seem to work because in another command block I am testing for a score of three, and every tick it summons a block even when you're moving.  I am using this for a vanilla block hunt so when your not moving you become a solid block.
72061
I have a vanilla server 1.8.7 that uses a book to tp players to spawn or to their home (an invisible armor stand with their uuid connected to it). Problem is, if they set home (place their armor stand) in the overworld and go to the nether and try to tp home (activated using a trigger), it sends them to the same co-ordinates in the nether, and most likely kills them.   I did some digging, and there seems to be a dimension parameter, but I can't quite figure out the syntax or how to get it to work.  I updated the command block to:  /tp @a[score_tpHome_min=1,Dimension=0] 68 68 68   I was hoping it would only tp the player when they were in the overworld (Dimension 0), but it seems to be ignoring that parameter in the nether and still teleporting to those co-ordinates in the nether.   I also tried:  /tp @a[score_tpHome_min=1,Dimension:0] 68 68 68   Which is the way other people were using the parameter in other ways, but that gave an error.
30967
I was using this command to use a custom crafting table:  /execute @a ~ ~ ~ detect ~ ~-1 ~ dropper 1 {Items:[{id:minecraft:blaze_rod,Slot:1b,Count:1b,Damage:0s},{id:minecraft:blaze_rod,Slot:4b,Count:1b},{id:minecraft:stick,Slot:7b,Count:1b}]} /scoreboard players set @p LSC 1   But I get this error message when I stand on a dropper with these items:     Failed to execute '{Items:[{id:minecraft:blaze_rod,Slot:1b,Count:1b,Damage:0s},{id:minecraft:blaze_rod,Slot:4b,Count:1b},{id:minecraft:stick,Slot:7b,Count:1b}]} /scoreboard players set @p LSC 1' as TrevMCC38   By the way, Im in 16w06a
109387
I am yet again needing some help with making my Minecraft: Hunger Games map and in order to teleport each player to their podium, I set up a group of 24 command blocks setting them to teleport each team to each podium, for example:   /tp @a[team=P1] x y z, /tp @a[team=P2] x y z   But what I need is something to automatically assign a person when they join the server to a team, but each person must join a different team and I mustn't have two people in the same team. Any suggestions on how I may accomplish this?
37371
I'm trying to build a teleporter. I want the player to be teleported from the first sign(left) to the right sign(right). So, when the player steps on the red wool on the left, he will automatically be teleported to the red wool on the right. I do not want to use any pressure plats.It might work with the testfor comment, but I didn't figure out, put that only works with a radius. BTW I'm in 1.10.2 bou I could probably change the version if necessary.     The testfor command block should activate the teleport command block,when the player is detected. Now, I'm not really the expert, so I know non of the commands that you would need to build this construction. Please help, I would highly appreciate it! If you need any more details, ask me!
53223
Java Edition has the CanPlaceOn and CanDestroy NBT tags, which are used to restrict the blocks an item can be placed on and destroy respectively (in adventure mode). For example, the following commands give the player a stone block that can only be placed on grass and dirt, and a netherite axe that can only destroy pumpkins: give @s stone{CanPlaceOn:[&quot;minecraft:grass&quot;,&quot;minecraft:dirt&quot;]} give @s netherite_axe{CanDestroy:[&quot;minecraft:pumpkin&quot;]}  How can I do this in Bedrock Edition?
90601
Have been searching a couple of hours now just so I can find out how I can testfor a nearby player... One thing I noticed is that testfor doesn't even work anymore so whats the deal with that? I have been using /testfor @a[r=5] but yeah, not anymore...
73614
Recent Minecraft snapshots added the possibility to set a square world border that players can't pass through. It is used on the MindCrack server to expand the available area very slowly over time. How can I get the same effect in my Minecraft world?  Video with demonstration of what I'm talking about:
104547
I'm making an End Portal in creative mode and it won't work. I have a Minecraft combat handbook and I made a portal just like it says to do it.  Do you have to be at a stronghold? I tried lava first and eyes after, but I can't get it to work.  When I point the eyes in the right direction it does not work. The portal cannot be activated, and I don't know what I'm doing wrong.
48931
I was trying to use the command /scoreboard players test @p Objective 1 in 1.14.2, but it seems like 1.14 has changed every command in Minecraft. I need help finding a replacement for this command.  I want to explain why this question is unique. For the first, the example of a possible duplicate of my question is not the same because I asked about scoreboard commands and not to check blocks, and I want to quote this comment:     MBraedley: Same answer does not make for the same question, so I would   not close this question as dupe (at least to the proposed target).   Even though I don't think its the exact same answer, because the only same thing about the answer was /execute if and the continued answer was score player objective matches 1, and my point with this answer was that you can't use /scoreboard players test objective 1\ anymore, and if you want to test a score, you have to use the answer I provided, or at least if you want an exact replacement for the command I mentioned in my question.  Since Minecraft 1.13 &amp; 1.14 they have reworked many or maybe nearly all the commands in Minecraft, and for me, and for a lot of people, this has been very confusing, and I have had to learn much of the commands over again, or adjusting my commands.
39738
This is similar in a way to , but the solution the MBraedley gave didn't work for me. As the linked post says, I've also tried the many ! values in front of the coordinates etc., to no avail.  Essentially, I'm creating a "safe zone" area for the spawn (regardless of spawn protection settings) of my realm, similarly to that of survival servers like what LemonCloud had. I've got detecting in the area down, but now I need it for those outside the area.
3479
I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2]  ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}}   If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined.  With the tellraw command, the error message is the following:  Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin  of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"   If anyone knows how to fix this, please let me know.
16671
This has got me. I need a command that tells me if all players on a server are in a radius of a command block. If one of them isn't in the radius, the command will be false. Any ideas? Thanks!
87292
This is the command I entered in the command block: testfor @p {Inventory:[{id:minecraft:diamond,Count:10}]}  But it doesn't seem to work. What am I doing wrong?
107797
My problem is that I want to give every player on the same height as an area_effect_cloud within a radius of 25 blocks a scoreboard called 'stunned'.  The command for that would look something like this:  /execute @e[type=area_effect_cloud] ~ ~ ~ /scoreboard players set @a[y=~,r=25] stunned 1   But the only problem is that the y=~ is not a thing in Minecraft, does anyone have a solution to this, that isn't 1 or more command block for every height?