Skip to content

Instantly share code, notes, and snippets.

@Vazkii
Vazkii / faq.md
Last active Oct 26, 2020
Vazkii's Mods FAQ
View faq.md

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 Nov 8, 2019
Userscript to hide fabric mods (use with Tampermonkey or any other userscript plugin)
View hidefabric.js
// ==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';
View RankCalc.java
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 Dec 9, 2017
Discord emoji downloader. To use: be an admin on a server, go to the Emoji section of the settings, and run the scriptlet
View ..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)});
View index.php
<?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 Aug 3, 2017
Client side SIT to Minaraishi importer
View import-min.js
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 Jan 3, 2017
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
View lowercase.php
<?php
fix('.');
function fix($path) {
echo "Fixing directory $path\n";
$files = scandir($path);
echo "Found files " . implode($files, ' '). "\n\n";
foreach($files as $file) {
View ModBlockDispenser.java
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 Apr 15, 2016
Patreon Scraper
View _accs
156304,Mithion
180527,WayofTime
230285,mineshopper
260704,aidancbrady
2812812,swordkorn
285334,FiskFille
347373,XolovA
81876,Mortvana
82605,AtomicStryker
AbrarSyed
View IKWILA.java
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;