Skip to content

Instantly share code, notes, and snippets.

View Moudoux's full-sized avatar

Deftware Moudoux

View GitHub Profile
/**
Searches for all strings that contains a color code, eg "§cTest" and replaces §c with
ChatColor.RED so the string looks like ChatColor.RED + "Test".
*/
const fs = require('fs');
const glob = require('glob');
const regex = /"[^"\\]*(?:\\.[^"\\]*)*"/gim;
const imp = 'import me.deftware.client.framework.utils.ChatColor;';
@Moudoux
Moudoux / setup.ps1
Last active January 27, 2023 11:46
##############################################################################
# #
# Windows 10 Setup #
# Powered by Chocolatey #
# Updated: April 21st 2018 #
# Made by Deftware #
# #
# Please run "Set-ExecutionPolicy Bypass" before running this script #
# #
##############################################################################
const byte a[8]={B00111100,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010,B01000010};
const byte b[8]={B01111100,B01000010,B01000010,B01111100,B01000010,B01000010,B01000010,B01111100};
const byte c[8]={B00111110,B01000000,B01000000,B01000000,B01000000,B01000000,B01000000,B00111110};
const byte d[8]={B01111100,B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B01111100};
const byte e[8]={B01111110,B01000000,B01000000,B01111000,B01000000,B01000000,B01000000,B01111110};
const byte f[8]={B01111110,B01000000,B01000000,B01111000,B01000000,B01000000,B01000000,B01000000};
const byte g[8]={B00111100,B01000010,B01000010,B01000000,B01001110,B01000010,B01000010,B00111100};
const byte h[8]={B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010,B01000010};
const byte i[8]={B01111100,B00010000,B00010000,B00010000,B00010000,B00010000,B00010000,B01111100};
const byte j[8]={B00000010,B00000010,B00000010,B00000010,B00000010,B00000010,B01000010,B00111100};
@xaeroverse
xaeroverse / TUTORIAL.md
Last active November 7, 2021 09:14
Updating MCP mappings in ForgeGradle

Updated mappings for Forge/FML development with ForgeGradle

Official support for updated SRG->MCP mappings is already completed, but in the event that you require local mappings, this 'hack' can serve to inject your own custom mappings faster than the official schedule.

Requirements

For Forge/FML, you will need to know basic directory management and git.

For LiteLoader, you will need to know the structure of Maven repositories, inspecting raw JSON files by hand, MCP's build tools, compiling LiteLoader from SVN sources, ANT, and some Google-fu.

Introduction