Undefined Remapper
This gradle plugin is made to be able to remap any NMS project you are working on.
Gradle Imports
Add the plugin at the top of your Gradle build file.
groovy
plugins {
id "com.undefinedcreations.mapper" version "VERSION"
}
kts
plugins {
id("com.undefinedcreations.mapper") version "VERSION"
}
Setup
The setup for the plugin is simple. You create a task and set the minecraftVersion
to your Minecraft version. Example:
kts
remap {
minecraftVersion("1.21.4")
}
Configuration
There are multiple configuration options you can modify.
Input task
You are able to change the input task that it will remap to.
If no task selected it will check if a shadowJar
task exists or not it will use jar
task.
kts
tasks {
remap {
minecraftVersion("1.21.4")
inputTask(customTask)
}
}
Remap Option
You can also change the remap options. This is done with an enum called RemapTask.Action
kts
tasks {
remap {
minecraftVersion("1.21.4")
action(RemapTask.Action.MOJANG_TO_SPIGOT) // default
}
}
Creating Separate Jar
This option is used if you want to create a separate jar for the remapped plugin.
kts
tasks {
remap {
minecraftVersion("1.21.4")
createNewJar(false) // default
}
}
Example projects
Here are some projects that use this plugin: