How do I enter commands?

I have tried all the cheats it gives you but none of them work. Do you need to keep the < or [? Do you need to add spaces? How do you change your game mode?

2

4 Answers

I guess you are using the commands on the WIKI.

First of all, check if you have cheats enabled in your singleplayer world.

And examples of how you input a command. Name of player will be test (use YOUR player name):

Commands must be prefixed by a slash /

difficulty <peaceful | easy | normal | hard>

To set the difficulty to hard, you would type:

/difficulty hard

give <playername> <item> [amount] [metadata]

to give yourself a stack (64) of wooden planks, you would type:

/give test 5 64

5 is the data value of wooden planks. Refer to this wiki page to get the values.

1

There are several ways to "cheat" in minecraft. If you are talking about adding items to the game, you can do this in vanilla by typing the following commands:

/give <playername> <item> [amount]

So, you'd remove the "<>" and the "[]" when writing this in the console. It would look like the following:

/give Reallygoodpie 1 64

So this would give me the item with the data value of 1 and it would give me 64 of these. Data values are found here: Data Values

In order for the commands to work, you would need to enable cheats before you create your world. If you have already created your world and you are not sure if you have enables cheats press esc and then open to LAN. An interface will pop up and you need to enable cheats. Do note that this will open up your world to any computer connected to your local network.

More commands can be found here: Minecraft Commands

There are also several mods available that allow "cheats". You can install Too Many Items which is a mod that allows you to spawn any item you want through the use of an interface. You can literally spawn anything that is in the game from dirt to mob spawners. There is also an alternative mod called Not Enough Items.

Are cheats enabled? If not then that is your problem. If they are then you need to put a / before the command.

1

Try this: (do not type [ ]s)

/gamemode creative [Your username here]

Then just do what you want with command blocks; for example:

/give [Username] 137

You Might Also Like