-
Notifications
You must be signed in to change notification settings - Fork 4
Java API
Add Minecraft Cursor to your project.
Starting from 3.2.0, Minecraft Cursor artifacts will be hosted on GitHub (no authentication required).
Note: For versions older than 3.2.0, use the Modrinth Maven and add it to your project using
modImplementation.
build.gradle:
repositories {
maven {
url = "https://github.com/fishstiz/maven/raw/m2"
}
}All available versions of minecraft-cursor and minecraft-cursor-api can be seen here:
https://github.com/fishstiz/maven/tree/m2/io/github/fishstiz
gradle.properties:
minecraftcursor_version=<version>build.gradle:
dependencies {
modCompileOnly "io.github.fishstiz:minecraft-cursor-api:${project.minecraftcursor_version}"
modRuntimeOnly "io.github.fishstiz:minecraft-cursor:${project.minecraftcursor_version}"
}You should declare Minecraft Cursor as a required dependency if need to use it directly in your mod's code. You do not need to do this if you are only using Minecraft Cursor code within MinecraftCursorInitializer entrypoint or, outside that, properly check if the Minecraft Cursor mod is loaded before using any of its code.
fabric.mod.json:
"depends" {
"minecraft-cursor": "<version>"
}|
Next: Create Cursor Types
|