In Minecraft there is a function for entering cheat codes that allow you to cheat without installing additional programs, such as for example TooManyItems. Codes for Mayncraft can not be entered in every game world, but only in that where the cheat codes support was enabled – so if you did not include this option when creating your world, you will have to create a new one.
Cheat codes for Minecraft 1.12.2/1.11.2/1.10.2/1.9/1.8
And so, now you need to enter the world and press T or / to call the console – in it and enter the Maincraft codes:
/ gamemode 0, 1, 2 – allows you to change your game mode to Survival, Creative, Adventure.
/ time set, add [count time] – allows you to set the specified time in the game (0 – morning, 6000 – noon, 12000 – evening, 18000 – midnight).
/ xp [experience count] – adds the specified amount of experience.
/ kill – kills your character.
/ give [id of the item] [count] – gives the blocks in the specified number.
/ toggledownfal – turns on or off – snow, rain.
/ tp [player 1] [player 2] – teleports player number one, to player number two.
/ publish – makes your world accessible for connection over a local network – displays the port and the name of the computer on which it is running.
/ spawnpoint [player name] [x] [y] [z] – Sets the spawn point for the specified player, by coordinates – if specified, if not specified – the spawn is set to the current position.
/ effect [player name] [effect] [duration] [level] – Imposes an effect on the specified player with an arbitrary duration and level – the default effect duration, 30 seconds.
/ enchant [player name] [effect] [level] – The command allows to enchant an item that a player holds in his hands