It is not possible to change your name using a command, that function only works on mobs. There is a way to change your name but only for a small while in a server with plug-ins.
Chat with our AI personalities
Unfortunately, you can not change your name on Minecraft!
The only way to get a command block in Minecraft is to have cheats on in your world.Once you generated a world like that, type in the following command:/give [your Minecraft character's name] 137 [amount up to 64]That will give you a command block.
If you mean Minecraft Classic, this is not possible. Minecraft classic is only meant for building, not survival. If you want to have survival, you'd have to buy the full version. To change day to night in Minecraft premium (full), as of 1.3 the command prompt was added to single-player so issue the command /time set night.
It must have the factions plugin. The command it /f create name
It is /time set [time] Replace [time] with: 0 for Day 14000 for Night