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
//nessary imports for the script
import net.minecraft.network.chat.Component
import top.katton.api.KattonEvents

// The function with @ServerScriptEntrypoint is the entry point of the script.
@ServerScriptEntrypoint
fun main(){
   // Register an event listener for when a player joins the server
   KattonEvents.ServerPlayer.onPlayerJoin += onJoin@
   fun(arg: KattonEvents.ServerPlayer.PlayerArg){
      // Get the player who joined and send them a message
      val player = arg.player
...