Generating Minecraft datapacks and Skript scripts
Vanilla datapacks (functions, advancements, loot tables, pack.mcmeta) and Skript .sk scripts - what Codexe generates and when to choose each.
Two ways to customise without Java
Not every idea needs a compiled plugin. Datapacks work on completely vanilla servers, and Skript runs on Bukkit-family servers with a plain-text syntax. Codexe generates both.
Datapacks
A datapack changes the data the game already reads: recipes, loot tables, advancements, predicates, tags and functions. No mod loader and no plugin API - it works on a vanilla server and on singleplayer worlds.
my-datapack/
├── pack.mcmeta
└── data/
└── mypack/
├── function/
│ ├── tick.mcfunction
│ └── give_kit.mcfunction
├── advancement/
├── loot_table/
└── recipe/pack.mcmeta declares the pack format, which is tied to the Minecraft version. Getting it wrong is the usual reason a pack silently fails to load:
{
"pack": {
"pack_format": 48,
"description": "My datapack"
}
}data/<namespace>/ changed from plural to singular in newer versions (functions/ became function/). Tell Codexe which Minecraft version you are on and it writes the correct layout.Datapacks are good at: custom crafting, loot changes, advancement trees, scoreboard-driven mechanics and scheduled function loops. They cannot add new blocks or items with new behaviour, and they have no access to events that vanilla does not already expose.
Skript
Skript is a Bukkit plugin that runs .sk script files written in an English-like syntax. It gives you event handling far beyond what datapacks can reach, without compiling anything.
on right click on chest:
if player does not have permission "chest.open":
cancel event
send "&cYou can't open this." to player
command /kit:
trigger:
give diamond sword to player
send "Kit received!" to playerCodexe writes ready-to-load .sk files: drop them in /plugins/Skript/scripts/ and run /sk reload. If a script needs an add-on such as skript-reflect for something outside base Skript, the generated file notes it in a comment at the top.
Which one to use
- Vanilla server, no plugins - datapack is your only option.
- Reacting to player actions - Skript, by a wide margin.
- Custom recipes and loot - datapack, since that is literally the data it replaces.
- Performance-critical or complex - a real plugin. Skript is convenient but interpreted.
Start building
Use the datapack generator or the Skript generator.