To use this with your mod, include the following in build.gradle
:
repositories {
maven {
name 'Cloth Config'
url 'https://maven.shedaniel.me/'
}
maven {
name 'Mod Menu'
url 'https://maven.terraformersmc.com/releases/'
}
}
dependencies {
modCompileOnly "dev.the-fireplace:Grand-Economy:${project.grandeconomy_version}:api"
modRuntime "dev.the-fireplace:Grand-Economy:${project.grandeconomy_version}"
}
And in gradle.properties
:
grandeconomy_version=<mod version>+<minecraft version>
To use currency from Grand Economy and/or register your own currency, you'll want to use the entrypoint.
- Create a class that implements
GrandEconomyEntrypoint
- Add whatever logic you want to in your
GrandEconomyEntrypoint
'sinit
function - Add your entrypoint class to the
grandeconomy
entrypoint in yourfabric.mod.json
"entrypoints": {
"main": [
...
],
"grandeconomy": [
"your.package.YourImplementationClass"
]
},