ctjs

An in-progress rewrite of the ChatTriggers mod in Fabric 1.21

Редакция NLZONE · 2 мин чтения · 1 просмотр
ctjs
Скачать ctjs1.21.10 – 26.2 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

An in-progress rewrite of the ChatTriggers mod in Fabric 1.21

  • Тип: мод
  • Загрузчик: fabric, forge
  • Версии Minecraft: 1.21.10 – 26.2
  • Скачиваний на Modrinth: 49 179

Подробно

NOTE This project is a fork from the original mod, for the original github you can head over to https://github.com/ChatTriggers/ctjs

ChatTriggers (CT) is a framework for Minecraft that enables live scripting and client modification using JavaScript. We provide libraries, wrappers, objects, and more to make your life as a modder as easy as possible. Even if we don't support something you need, you can still access any Java classes and native fields/methods.

With CT, you have all the power of a modding environment with the benefit of an easy-to-use language and the ability to reload your scripts without restarting the game. CT also provides a way to define your own Mixins!

CT is currently written for Fabric 1.21.x. See this repo for the deprecated Forge 1.8.9 version.

Want to hide an annoying server message that you see every time you join a world?

js register('chat', event => { cancel(event); }).setCriteria("Check out our store at www.some-mc-server.com for 50% off!");

How about automating a series of common commands into one?

js register('command', () => { ChatLib.command('command1'); ChatLib.command('command2'); ChatLib.command('command3'); }).setName('commandgroup');

Or even something silly like a calculator command

js register('command', (...args) => { // Evaluate all args the user gives us... const result = new Function('return ' + args.join(' '))();

// ...and show the result is a nice green color ChatLib.chat(&aResult: ${result}); }).command('calc');

With CT's register system, you can listen to custom events that we emit and react to them. For example, we emit events when you switch worlds, click on a GUI, hit a block, hover over an item and see its tooltip, and much more! You can even provide custom events for other module authors to use.

To begin, download and install Fabric for one of the supported versions, then head over to our releases page and download the latest version. The mod is installed like any mod; just drag it into your mods folder. Once installed, you can import modules in-game by typing /ct import , where is the name of the module. You can browse the available modules on our website.

If you can't find any modules on the website that do exactly what you want, which is quite likely, you'll have you write your own! Here are the steps you'll want to take:

1. Navigate to the .minecraft/config/ChatTriggers/modules folder. If you don't know wher

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также