Skip to content

Instantly share code, notes, and snippets.

package tmp;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
L1
LINENUMBER 28 L1
LDC "UNKNOWN"
ASTORE 2
L2
LINENUMBER 30 L2
ALOAD 1: computer
IFNULL L3
L4
LINENUMBER 31 L4
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
our $DOMAIN = 'enderio:';
our $dryrun = 1;
unless (@ARGV) {
package test;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
public class ConcurrentIterator<E> implements Iterator<E> {
@HenryLoenwind
HenryLoenwind / unobf.pl
Created September 5, 2018 14:21
Minecraft Stack Trace Deobfuscator
#!/usr/bin/perl
use strict;
use warnings;
our $mapping = {};
while (my $line = <DATA>) {
my ($searge, $name, undef) = split /,/, $line;
if (defined $searge and defined $name) {
$mapping->{$searge} = $name;
package net.minecraftforge.fluids.capability;
import net.minecraftforge.fluids.*;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public interface IFluidHandler
{
int getSlots();
package info.loenwind.foo;
import java.util.Random;
public class TitleGen {
// When a possessed pair of jeans begins to kill the staff of a trendy clothing store, it is up to Libby, an idealistic young salesclerk, to stop its bloody
// rampage.
static final String sentence = "When a %1$s %2$s begins to %3$s the %4$s of a %5$s %6$s, it is up to %7$s, a %8$s %9$s %10$s, to %11$s its %12$s %13$s.";
@HenryLoenwind
HenryLoenwind / gen.pl
Created September 10, 2022 06:59
Command iterator for SD
#!/usr/bin/perl
=for doc
Script to generate expand a list of commands with placeholders.
Output is written to "gentmp.cmd". Directly calling the commands from this script doesn't work with SD.
=cut
@HenryLoenwind
HenryLoenwind / install.sh
Last active October 23, 2023 07:44
Script to install and update IC Script Hub. Requirements: sh-compatible shell, git and unzip
#!/bin/sh
echo "IC Script Hub Installer v 1.0.1"
echo ""
if [ -d "scripthub" ]; then
echo "Updating Script Hub"
git -C scripthub pull
else
echo "Getting Script Hub"