Web Analytics Made Easy - Statcounter

Tools / Minecraft

Minecraft Datapack Generator

Pick your gamerules and difficulty, get a datapack that applies them on every load - no retyping /gamerule after a reset. Works on a vanilla server, no mods. We write the correct pack_format and folder names for your version (1.21 renamed them).

Pack
Gamerules (leave on "default" to skip)
Generating...

How it works

A datapack is a zip with a pack.mcmeta and JSON/function files under data/. This one ships a function tagged minecraft:load, so the gamerules and difficulty apply automatically every time the world loads or you run /reload. Drop the zip in world/datapacks/ on a vanilla server.

Frequently asked questions

Do I need to code to make a Minecraft datapack?

No. Pick the gamerules and difficulty you want and download a datapack. It runs a function on every load that sets them, so you never retype /gamerule commands after a world reset.

Where do I install the datapack?

Drop the downloaded zip into your world's datapacks folder (world/datapacks/), then run /reload or restart. It works on a vanilla server - no mods needed.

Which Minecraft version does it target?

You choose. The tool writes the correct pack_format and uses the right folder names for that version (Minecraft 1.21 renamed the data pack folders, e.g. functions to function).

This tool: v1.7 · updated 3 Aug 2026