SScript

Quick rating

SScript

No reviews yet

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 file I/O — no Java required.

Minigame
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

  • 🎯 Command Execution — Run commands programmatically (/say, /give, /setblock, etc.)
  • ⚙️ Task Automation — Run initialization scripts, scheduled tasks, bulk operations
  • 🔧 Server Logic — React to player actions (join/leave, chat, block breaks, deaths, sleep)
  • 📝 Simple Syntax — Python-like language anyone can learn
  • Non-blocking — Tasks run without freezing the 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

  • Variables & Types: Strings, numbers, booleans, lists, objects
  • Control Flow: if/elif/else, for, while, try/catch
  • Functions: Define with func or def, call sync or async
  • Events: React to player actions, server events
  • Built-ins: 60+ functions for players, blocks, math, strings, files
  • Async Support: Background tasks with wait keyword

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:

  • 📊 Store Data — Global variables persist across restarts (globals.json)
  • 📡 HTTP Requests — Fetch data from APIs or send webhooks
  • 💾 File I/O — Read/write files and JSON
  • 🎮 Player Data — Access health, gamemode, coordinates, NBT data
  • 🏷️ Tag System — Organize players with custom tags
  • 🔍 Selectors — Query players dynamically (@a[tag=admin], @a[distance=..100])

Performance

  • Tick-safe — Tasks automatically spread across server ticks to prevent lag
  • 🔄 Non-blocking — Event handlers run asynchronously (don't freeze gameplay)
  • 💪 Limits — 500 max processes, 20 spawn/tick, 50 statements/tick

Requirements

  • Java 21+
  • Fabric Loader 0.14+
  • Minecraft 1.21.11

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:

Screenshots

Gallery

  • file.event.ss
    file.event.ss
  • file.ss
    file.ss

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works