you need a mod to do that.
Chat with our AI personalities
Minecraft classic gives you unlimited blocks without having to work for them, unlimited health, no night, no monsters, no animals and no crafting. while modern Minecraft does the opposite of those things. You also have to pay for the real game.
The "Infinity" enchantment in Minecraft allows you to use unlimited arrows. As long as you have one arrow and a bow, you can shoow unlimited arrows.
Go on Creative Mode.
Inf flying, unlimited resoruces and godmode.
You can always use an inventory editor. I use INVedit