DFScript is a mod created for DiamondFire to allow scripting on the client. This mod is a seperation and improvement from the shutdown mod CodeUtilities.
-
You can download DFScript from its Github page, or its Modrinth page.
-
You can report issues on the issues tab
-
You can join our discord here
DFScript adds the ability to add new features through the added 'scripting' ability. Scripting is constructing event based code (similar to DiamondFire) inside a web ui, with the events and actions being simple client-based activities.
For example, a script could play a sound when the player receives a message with their name in it, or automatically add the @ character in front of sent messages.
To access the DFScript menu, run /dfscript, and a menu will appear showing many different options, you can then press Installed Scripts to view scripts you currently have installed, here you can toggle scripts on and off or press Dashboard to visit the scripting dashboard and create/install new scripts.
(The same many can be accessed on the multiplayer connection screen)
To install a script you can locate the one you wish to install via the public directory and then press Install Script the script will then automatically install on your client and be enabled.
To create a new script, access the dashboard from here you can press the New Script button, and then name and version your script, it will be created and displayed in the main menu. From here, you can edit, upload and delete.
Sometimes when you are creating a script, you may accidentally make your client complete actions which are against DiamondFire rules, such as making your client spam, or other similar actions. If this is the case, immediately leave the server. In the top left if your multiplayer screen, there will be a button button (
If the issue came from a script you did not make, report the script in the discord so it can be removed.
All DFScript commands begin with /dfscript.
/dfscriptOpens the main DFScript menu./dfscript recursion (number)Changes the number of events that can trigger in a single tick./dfscript reloadDownloads and reloads all of the scripts on your machine./dfscript vars (script name)Lists the values of all the variables in the selected script. Similar to DiamondFire's /p vars command.