Changes

No change in size ,  21:48, 2 August 2021
Update event bus version
Line 20: Line 20:  
A mod declares a dependency on a mod or library through Gradle, through the <code>dependencies</code> block.<ref>[https://docs.gradle.org/7.1.1/userguide/declaring_dependencies.html Gradle User Guide: ''Declaring dependencies'']</ref>
 
A mod declares a dependency on a mod or library through Gradle, through the <code>dependencies</code> block.<ref>[https://docs.gradle.org/7.1.1/userguide/declaring_dependencies.html Gradle User Guide: ''Declaring dependencies'']</ref>
   −
For example, to declare a dependency on the <code>net:minecraftforge:eventbus:4.0.0</code> library from the <code>main</code> source set:
+
For example, to declare a dependency on the <code>net:minecraftforge:eventbus:5.0.3</code> library from the <code>main</code> source set:
 
<syntaxhighlight lang="gradle">
 
<syntaxhighlight lang="gradle">
 
dependencies {
 
dependencies {
 
     // 'implementation' is for the main source set
 
     // 'implementation' is for the main source set
     implementation "net.minecraftforge:eventbus:4.0.0"
+
     implementation "net.minecraftforge:eventbus:5.0.3"
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>