'''Data generation''' (AKA '''datagen''') is a builtin system in Minecraft and Forge that allows mod developers to write code to programmatically generate the [[Using Resources|assets and data/1.16]] files of mods.
+
'''Data generation''' (AKA '''datagen''') is a builtin system in Minecraft and Forge that allows mod developers to write code to programmatically generate the [[Using Resources/1.16|assets and data]] files of mods.
Using datageneration offers some notable benefits:
Using datageneration offers some notable benefits:
Line 14:
Line 14:
The data generator can be configured to run 4 different data generations, which are configured from the command-line parameters, and can be checked from <code><nowiki>GatherDataEvent#include()</nowiki></code> methods.
The data generator can be configured to run 4 different data generations, which are configured from the command-line parameters, and can be checked from <code><nowiki>GatherDataEvent#include()</nowiki></code> methods.
* '''Client Assets'''
* '''Client Assets'''
−
** Generates client-only files in <tt>assets</tt>: [[Introduction to Models|block/item models/1.16]], [[BlockState JSONs|blockstate JSONs/1.16]], [[Datageneration/I18n|language files/1.16]], etc.
+
** Generates client-only files in <tt>assets</tt>: [[Introduction to Models/1.16|block/item models]], [[BlockState JSONs/1.16|blockstate JSONs]], [[Datageneration/I18n/1.16|language files]], etc.