Skip to content

ModLoader

Omar Mohamed edited this page Mar 24, 2026 · 3 revisions

ModLoader

Provides information about the current mod and resource pack environment.


Functions

isModLoaded(modid)

Returns whether a mod with the given mod ID is currently loaded.

  • Parameters:
    • modidString — The mod ID to check (e.g. "sodium")
  • Returns: Boolean
check modLoader.isModLoaded("sodium") do
    say "Sodium is loaded!"
end

isResourcePackLoaded(packName)

Returns whether a resource pack with the given name is currently active (case-insensitive).

  • Parameters:
    • packNameString — The display name of the resource pack
  • Returns: Boolean
check modLoader.isResourcePackLoaded("MyCoolPack") do
    importScript("mypack", "effects")
end

getRawGameVersion()

Returns the raw Minecraft game version string.

  • Returns: String — e.g. "1.21.10"
say modLoader.getRawGameVersion()
~ Output: "1.21.10"

📖 InteractiveStuff Docs


🧱 Types


⚙️ Scripting

📃 Built-in Library

Clone this wiki locally