Skip to content

Mochos Scripts

Mochos Esenciales addon: Skript-style scripts in Spanish or English for commands, events, timers, menus and mobs. Checked by the mod, managed from an in-game tab and editable with blocks or text in a local web editor.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Mochos Scripts

Program your server without writing Java. An addon for Mochos Esenciales with a scripting language in the style of Skript — in Spanish and with the familiar English words — to create commands, react to what happens in the world and build shops, minigames or bosses. Write it as text… or with blocks, like in MCreator.

on join:
    send "&aHello, %player%!" to player

command /mend [<player>]:
    permission: op
    trigger:
        heal arg-1
        send "&aHealed."

Block editor

What you can do

  • ⚡ Events: join and quit, chat (cancel or change it), breaking and placing blocks, clicks on blocks, items and entities, deaths, damage (change the amount), mob spawns, dropping and picking up items, eating, level ups and shop sales.
  • ⌨️ Custom commands with arguments (text, number, integer, player, world; optional ones), permissions, aliases and cooldowns.
  • ⏱️ Timers (every 10 minutes:) and times of day (at 18:00:), and wait without freezing the server.
  • 🧠 Variables saved with the world, local variables and lists, functions shared between scripts, conditions with and, or and not, and loops.
  • 🧟 Mobs and entities: spawn, name, equip, potion effects, health, fire, push, lightning and explosions.
  • 🎁 Items with colored names and lore, inventories, sounds and particles.
  • 🛠️ Change items: enchantments, durability and max durability, unbreakable, lore, nbt and any component like in /give (!component removes it); and read them back: durability, an enchantment's level, nbt and its values.
  • 🔨 Mochos Forja: give, take and recognise its saved items by their invisible mark (even when used up, renamed or enchanted) and put its models on items (a weapon or tool model turns the item into that tool).
  • 📦 Chest menus with buttons that run code on click, and panels with the Mochos interface (texts, pictures, items, bars, fields and buttons with icons).
  • 💬 Direct messages as a character and the players' progress in a file (.datos.yml).
  • 💰 Mochos Esenciales: pay and charge its money, balances, notices, bank, groups and claimed land.

Over 150 elements, all documented with examples.

Built not to break

  • The mod checks every script when loading it and points at the exact line and word of each error, with suggestions ("Did you mean…?").
  • A script with errors is not loaded; if it was already loaded, the previous version keeps running.
  • Runtime errors and what the script logs go to its log. A loop without waits is stopped before it freezes the server.

Scripts tab

For admins: every script by folder, its state (loaded, with errors, disabled), enable or disable, reload one or all, see the code with the lines that have errors marked, edit it, create, rename, move and send to the trash. Also with /scripts.

Web editor with blocks

/scripts web (or the globe button) opens an editor in the browser with a personal link:

  • 🧩 Blocks by category and color, in the style of MCreator.
  • 📝 Text with colors, and a split view with both at once: they are the same .msk file.
  • ✅ Checks as you type without locking the blocks: unfinished parts show in grey, errors in amber on their block, and in red when you press Validate or save.
  • 💾 Unsaved changes are marked in the list and next to the script's state.
  • 📚 Reference of the whole language with examples you insert with a click, and a finder for game ids.
  • 📋 Mochos Forja's saved items and models and enchantments are picked from a list in the blocks.
  • 🔢 A script's options and variables show as blocks, one row each.

Panels with the Mochos interface

Besides chest menus, your scripts open windows with the Mochos Esenciales look: headings, texts wrapped to the width (with colours and Markdown), pictures from the web or the help pages, items with their tooltip, item grids, progress bars, player faces (also offline), text fields and buttons with a text and an icon that run their block on click. in a row: puts them side by side; long panels scroll.

command /progress:
    trigger:
        open panel "&6Explorers' guild" to player:
            face of player with text "&fWelcome, &e%name of player%"
            bar {points::%uuid of player%} of 10 with text "Explorer rank" with color "orange"
            items 32 of bread, 4 of golden_apple, 1 of compass
            field "Your motto" with value "Always forward"
            in a row:
                button "Save" with icon writable_book:
                    set {motto::%uuid of player%} to value of field "Your motto"
                button "Close" with icon barrier:
                    close the panel of player

Messages from characters and progress in a file

  • 💬 send direct message "I'll wait by the lighthouse." to player as "Master Ilvane" with icon amethyst_shard writes in the Mochos Esenciales chat as a character: it opens their conversation, stays in the history and reaches the player even when offline.
  • 📄 The option data: res in options: saves the players' progress in <script>.datos.yml, next to the script, grouped by player with their name: to read it without joining.
  • 🗡️ on item land (dropped, on death, from a block…) and on drop can change the item that falls.

Big messages with effects

With Ember's Text API, your scripts' messages, titles and action bars take its effects, and a new effect puts a big animated message on screen:

command /event:
    permission: op
    trigger:
        send big message "<typewriter><rainbow>The event begins!</rainbow></typewriter>" to all players for 6 seconds
        send title "<wave>&6Round 1</wave>" with subtitle "<shake>Get ready!</shake>" to all players
        send "<red>Red</red> normal and <rainbow>rainbow</rainbow>" to player

Without the mod, the big message shows as a plain title and the other texts show without tags. Our own colour tags can now be closed: <red>red</red>.

Big message with typewriter and rainbow

Title, action bar and chat from a script with effects

Getting started

It comes with eleven example scripts (disabled) in config/mochos_scripts/scripts/ejemplos: welcome, commands, events, variables, loops, functions, a shop with a menu, announcements, a zombie boss, custom items (with those of Mochos Forja) and the language in English. The full reference is in config/mochos_scripts/REFERENCE.md.

Installation

Where Required?
Server Required
Client Required (for the Scripts tab; players without it still see menus and messages)

Requires Minecraft 1.21.1, NeoForge 21.1.265 or later and Mochos Esenciales 0.33.0 or later. Optional: Mochos Forja 0.4.0 or later to use its saved items and models.

  • Scripts: config/mochos_scripts/scripts/**/*.msk (a - in front of the name disables it).
  • Web editor: port 8124 (config/mochos_scripts-common.toml); every link carries a token that expires.
  • Variables: saved with the world (<world>/data/mochos_scripts_variables.dat).

Languages: Spanish and English.