Skip to content

Instantly share code, notes, and snippets.

@nineonefive
nineonefive / BannerDisplay.jl
Last active October 1, 2020 19:42
Script that can visualize how images (like banners or sprays) would look in Minecraft 1.8
using Colors
using Images
using ProgressMeter
using Distributed
# 1.8 base colors, see https://minecraft.gamepedia.com/Map_item_format#Map_colors
baseColors = [0 0 0;
127 178 56;
247 233 163;
167 167 167;
@nineonefive
nineonefive / ctfstats.py
Last active April 19, 2020 19:35
Small script that can retrieve CTF stats for a player or from a CTF game
import requests
from pyquery import PyQuery as pq
import pandas as pd
import numpy as np
from tqdm.autonotebook import tqdm
# Note: from the imports, this requires pandas, numpy, tqdm, and pyquery (installable with pip or conda)
# classes to collect stats on
ctfClasses = """Archer
@nineonefive
nineonefive / ProtoPlugin.kt
Last active May 19, 2020 17:10
Implementation of a new Archer headshot type
package me.nineonefive.proto
import net.minecraft.server.v1_8_R3.AxisAlignedBB
import net.minecraft.server.v1_8_R3.Vec3D
import org.bukkit.ChatColor
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftArrow
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftZombie
import org.bukkit.entity.Arrow
import org.bukkit.entity.Player
import org.bukkit.entity.Zombie