To disable fire spread in Minecraft, players must first load into their worlds with cheats enabled through the option in the main menu or when creating their worlds.
After loading with cheats enabled, players can disable fire spread by typing or copy and pasting / gamerule doFireTick false in chat and pressing enter.
This will prevent fires started by natural or unnatural means from spreading to other combustible blocks in the game. However, this method is only for client-side games.
Related: How to create a blue shield in Minecraft?
If you want to use this command for a server, just locate your server console and paste or type the same command, and it will have the same effect, just like with client-side games.
But if you want to undo the changes, just type the same command or copy it with a slight difference.
Instead of false, you'll want to add true to the end. So copy or type /gamerule doFireTick true in your game chat or server console, and you'll turn fire spread back on.
Overall, this command is handy for those who don't want fires to spread and ruin the surrounding area, which can be difficult to control without the use of commands. It can also be useful to create cool base designs with fire that doesn't spread to other blocks.
Check out some of our other awesome Minecraft guides!