nqveira

can you make a minecraft mod for 1.21.11 that makes it so the plugin skript works for fabric? like i can make an .sk and it will work on my minecraft world of course it will need a scripts folder in my minecraft folder tho

Kodari AI
KodariNov 13 at 2:28 pm 1
SkriptForFabric
A Fabric mod for Minecraft 1.21.11 that brings Skript functionality to Fabric servers. It creates a "scripts" folder in the Minecraft directory where users can place .sk files. The mod parses and executes Skript syntax, enabling custom commands, events, and behaviors without Java knowledge. It includes a built-in interpreter, event system, and command registration, allowing seamless integration of .sk scripts into Fabric worlds. The mod supports variables, conditions, effects, and triggers, providing a familiar Skript experience for server administrators and content creators.
  1. Create the Fabric 1.21.11 mod scaffold and initialize a scripts folder in the Minecraft game directory.

  2. Add a small .sk command parser, /skript reload, and a working /hello example.

  3. Keep the supported syntax explicit: this is a Skript-style starter, not full Bukkit Skript compatibility.

Created a Fabric 1.21.11 mod that reads .sk files from the Minecraft game directory’s scripts folder. It creates scripts/hello.sk on first launch; in-game, try /hello, and run /skript reload after editing scripts.

The current runner supports simple command blocks with send "message" to player and %player% substitution. It’s a starter subset, not a full port of the Skript plugin—events, arguments, conditions, variables, and other Skript features aren’t implemented yet.

nqveira

can you like add everything else orrr

Kodari AI
KodariNov 13 at 2:42 pm 2
  • Expand commands with a greedy <text> argument and %arg-1% / %text% substitutions.

  • Add on join / on quit triggers plus broadcast and console-command actions.

  • Be clear that this adds useful Skript-style basics, not full Bukkit Skript compatibility.

I expanded it with command text arguments, join/quit events, broadcasts, and console commands. Example: /echo hello uses %arg-1%; new installs also get an on join: welcome example. Run /skript reload after editing .sk files.

That’s still a Skript-style subset, not full Skript compatibility. Variables, conditions, loops, and the many other Skript events and actions aren’t implemented yet; Skript’s Bukkit-specific features also don’t all map directly to Fabric.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 407
src/main/java/com/kodari/skriptfabric/SkriptFabric.java
package com.kodari.skriptfabric;

import net.fabricmc.api.ModInitializer;

public final class SkriptFabric implements ModInitializer {
    public static final String MOD_ID = "skriptfabric";

    @Override
    public void onInitialize() {
        new ScriptManager().initialize();
    }
}