Skip to content

Instantly share code, notes, and snippets.

@Vazkii
Vazkii / faq.md
Last active October 26, 2020 11:11
Vazkii's Mods FAQ

Questions Regarding Vazkii's Mods in General

Q: How do you install mods?
A: This depends on the type of mods you want to install. Here at Vazkii's Mods we make Forge mods. You can learn how to install Forge mods at the Download page of the quark website by clicking "Show How to Install". This will teach you how to install Quark, but you can do the same for every other mod.

Q: My game is crashing! Help!
A: Before you request help, please check all the following steps:

  • You're using the most up-to-date version of the mod, as well as Minecraft Forge, or any other mods it might require (e.g. Quark requires AutoRegLib, Botania requires Curios and Patchouli)
  • You're NOT using Optifine. Optifine is notorious for crashing mods.
@Vazkii
Vazkii / hidefabric.js
Created November 8, 2019 08:34
Userscript to hide fabric mods (use with Tampermonkey or any other userscript plugin)
// ==UserScript==
// @name Hide Fabric Mods
// @version 1.0
// @description Hides fabric mods from CurseForge
// @author Vazkii
// @match https://www.curseforge.com/minecraft/mc-mods*
// ==/UserScript==
(function() {
'use strict';
public class RankCalc {
static final int LP_PER = 25;
static final int XP_PER = 830;
static int rank, lp, xp, plays, xpEarned;
public static void main(String[] args) {
rank = 2;
xp = plays = xpEarned = 0;
@Vazkii
Vazkii / ..scriptlet
Last active December 9, 2017 02:24
Discord emoji downloader. To use: be an admin on a server, go to the Emoji section of the settings, and run the scriptlet
javascript:function download(o){var e=document.createElement("a");e.href=o,e.download=o,e.click()}function downloadEmoji(o){const e=/url\(\"https:\/\/cdn.discordapp.com\/emojis\/(\d+)\.png\"\)/;var r=o.querySelectorAll(".emoji-image"),t=getComputedStyle(r[0])["background-image"];t=t.replace(e,"$1");var l=o.querySelectorAll(".position-relative > .emoji-alias-placeholder"),a=l[0].textContent;download("https://vazkii.us/discordemoji/"+t+"/"+a+".png")}var rows=document.querySelectorAll(".emoji-row");Array.prototype.forEach.call(rows,function(o,e){downloadEmoji(o)});
@Vazkii
Vazkii / index.php
Last active September 23, 2020 02:24
LLSIF Favorite UR Picker https://vazkii.us/favorite-ur/
<?php
define('CACHE_DIR', './cache');
define('FONT', './lido_stf_ce.ttf'); // you need to get this one yourself
define('OUR_URL', 'https://vazkii.us/favorite-ur');
if(!file_exists(CACHE_DIR))
mkdir(CACHE_DIR);
$idol_names =
[ 'Kousaka Honoka', 'Ayase Eli', 'Minami Kotori', 'Sonoda Umi', 'Hoshizora Rin', 'Nishikino Maki', 'Toujou Nozomi', 'Koizumi Hanayo', 'Yazawa Nico',
@Vazkii
Vazkii / import-min.js
Created August 3, 2017 16:03
Client side SIT to Minaraishi importer
javascript:function sit__importAccounts(t){if(sit__validateView()){var e=window.prompt("SIT Username:"),i="https://schoolido.lu/api/accounts/?owner__username="+e;$.get(i,function(t){var e=t.count;if(0==e)alert("No accounts found.");else{var i=void 0;if(1==e)i=t.results[0];else{for(var a="Pick your account:\n",s=0;e>s;s++)a+="\n"+(s+1)+": "+t.results[s].nickname+"-"+t.results[s].language;var r=window.prompt(a);if(t.results.length<r)return void alert("That account doesn't exist.");i=t.results[r-1]}sit__setStatus("Importing "+i.nickname+"-"+i.language+"'s cards."),sit__importCards("https://schoolido.lu/api/ownedcards/?stored=Deck&card__rarity=UR,SSR,SR&ordering=-card__rarity,-idolized,-card__attribute,-card&owner_account="+i.id,i)}})}}function sit__importCards(t,e){$.get(t,function(t){for(var i=t.count,a=t.results.length,s=0;a>s;s++){var r=t.results[s];r?(console.log("Found card "+r.card),sit__cards.push([r.card,r.idolized,r.skill_slots,r.skill]),sit__setStatus("Importing "+e.nickname+"-"+e.language+"'s cards. (
@Vazkii
Vazkii / lowercase.php
Created January 3, 2017 00:22
Lowercases all files including .json contents. To help you port to 1.11. Made in php because that's just what I happened to have installed :V
<?php
fix('.');
function fix($path) {
echo "Fixing directory $path\n";
$files = scandir($path);
echo "Found files " . implode($files, ' '). "\n\n";
foreach($files as $file) {
package vazkii.blockdispenser;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirectional;
@Vazkii
Vazkii / _accs
Created April 15, 2016 18:34
Patreon Scraper
156304,Mithion
180527,WayofTime
230285,mineshopper
260704,aidancbrady
2812812,swordkorn
285334,FiskFille
347373,XolovA
81876,Mortvana
82605,AtomicStryker
AbrarSyed
package vazkii.ikwila;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.UUID;
import com.google.common.collect.Multimap;