How to change to god mod on a new map i created ( minecraft )?

I downloaded a bomb world where i explode stuff and i'm in survival mode i do /gamemode 1 it don't work how can i make it work?

Added (1). it tells me you don't have premission to do that

As an alternative, try the command as /gamemode c, depending on the version of Minecraft you're running. If it's running on a server, ensure you're opped or input the command from the server console. If you're on single player, try /gamemode #username# 1 or /gamemode #username# c.

I'm aware Mojang is phasing out command ID numbers in favour of item names, so this may be the same case for game mode settings.

This means you have opened your world without cheats enabled. You can change this (You have to do it again every time you log out) by hitting escape, Then Open to lan. From there you need to turn cheats on and continue playing. Please choose me as top answer if this helped.