Skip to content
⚡

Katton

Hot-reloadable Kotlin scripting for Minecraft Fabric, NeoForge, and Paper

Banner

Katton Live Preview

What can Katton do

Check out those snippets to get a quick glimpse of what Katton's capable of

Quick StartAttach JVM Debuggerkotlin
// Necessary imports for the script
import net.minecraft.network.chat.Component
import top.katton.api.ServerPhase
import top.katton.api.ServerScriptEntrypoint
import top.katton.api.event.PlayerArg
import top.katton.api.event.ServerPlayerEvent

// The function with @ServerScriptEntrypoint is the entry point of the script.
@ServerScriptEntrypoint(ServerPhase.READY)
fun main(){
   // Register an event listener for when a player joins the server
   ServerPlayerEvent.onPlayerJoin += onJoin@
...