HomeJavaModsSScript
SScript
ModsJava

SScript

by UserLog · on Modrinth

Fabric mod that adds a Python/Lua-like scripting language to your Minecraft server. Write game logic with events, built-in functions, HTTP requests and…

⬇ Download on Modrinth
SScript — screenshot 1

SScript — Server Scripting Language for Minecraft

SScript is a lightweight programming language for Minecraft server automation. Write scripts in Python/Lua-like syntax to execute commands, automate tasks, and control server behavior without touching Java code.

What It Does

Core Purpose: Execute automated commands and logic on your Minecraft server.

Quick Start

1. Create a script in sscripts/boom.ss:

log "BOOM SPAWN!"

func boom():
    run "fill 10 50 10 -10 90 -10 air destroy"
    # boom! >:3
end

boom()

2. Create event handler in sscripts/handlers.event.ss:

on player_join(player):
    run "say " + player.name + " joined"
    run "execute at " + player.name + " run fill ~10 50 ~10 ~-10 90 ~-10 air"
end

on player_chat(player, message):
    log player.name + ": " + message
end

3. Load and run:

/sscript run boom.ss
/sscript debug on
/sscript debug off - no spam [Server]: ...

Done! Scripts execute without restart.

Language Features

Commands

Execute scripts and control execution:

/sscript run <file>                    # Execute script
/sscript run <file> function <name>    # Call specific function
/sscript monitor [all|<id>| ]            # View running tasks
/sscript stop [all|<id>|<file>]               # Stop running task
/sscript reload [all|<id>|<file>]             # Restart task
/sscript debug [on|off]                # Toggle debug output server

Documentation

📖 Full documentation with examples and API reference:

What Else?

Beyond command execution, SScript can:

Performance

Requirements

Installation

  1. Download the mod JAR
  2. Put in mods/ folder
  3. Start server
  4. Place scripts in sscripts/

Example: Chat Logger

# sscripts/chat_logger.event.ss

func log_chat(player_name, message):
    file_mkdirs("sscripts/logs")
    line = "[" + player_name + "] " + message
    file_append("sscripts/logs/chat.log", line + "\n")
end

on player_chat(player, message):
    log_chat(player.name, message)
end

Links

AI generation Description D:

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more