[MC-3945] /gamemode does not work as expected with command blocks. Created: 28/Nov/12 Updated: 10/Feb/13 Resolved: 28/Nov/12 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.4, Minecraft 1.4.5 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Patrick Shannon | Assignee: | Unassigned |
| Resolution: | Works As Intended | Votes: | 0 |
| Labels: | /gamemode, command | ||
| Environment: |
Windows 7, Java 7 |
||
| Issue Links: |
|
||||||||
| Confirmation Status: | Unconfirmed | ||||||||
| Game Mode: | Creative | ||||||||
| Description |
|
I am building a survival map, but I want to make a small part of the map strictly adventure mode. I have several command blocks hooked up to a 2-repeater pulsar, and once the chunk is loaded, all but two of these command blocks work fine. The two that do not work have the commands listed below: /gamemode @a[m=0,r=2000] 2 /gamemode @a[m=1,r=2000] 2 I expected these to make it impossible for any player to be in a game mode other than Adventure. Nothing actually happened. I have tried replacing the @a with @p, and it still does not work. I need to have a range on the command blocks so that when the chunk that they are in is loaded the do not change all player's game modes to Adventure. The command blocks are directly powered by repeaters, so power should not be a problem |
| Comments |
| Comment by Patrick Shannon [ 02/Dec/12 ] |
|
You're right. The English page has nothing on the German Page. I might just have to copy the translated page to the wiki and correct a few translation errors. |
| Comment by Patrick Shannon [ 02/Dec/12 ] |
|
I could fix that, given the right information. |
| Comment by Kumasasa [ 01/Dec/12 ] |
|
Well, the German wiki page is quite well-structured, whereas the English counterpart is somewhat unclear und the relation to the commandblock is not well given... |
| Comment by Patrick Shannon [ 01/Dec/12 ] |
|
I got it working now. Thanks for the help. For the record (and the wiki), can you list the commands that work for command blocks, as well as the syntax? |
| Comment by Patrick Shannon [ 29/Nov/12 ] |
|
Ima herp derp. I guess I just read the ducumentation wrong. Or maybe the wiki told me wrong. |
| Comment by Kumasasa [ 28/Nov/12 ] |
|
Your parameters are swapped. The syntax is either gamemode <survival | creative | adventure> [playername] or gamemode <0 | 1 | 2> [playername] not gamemode <playername> <0 | 1 | 2> |
| Comment by Tails [ 28/Nov/12 ] |
|
The correct command for changing gamemode is: /gamemode "gamemode" "target"[argument] |