Skip to content

Instantly share code, notes, and snippets.


Scott M. Barbour smbarbour

View GitHub Profile
View gist:b0c0a18fd9b0e552ad484821a028c8dc
<?xml version="1.0" encoding="UTF-8"?>
<ServerPack version="3.4" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<Server id="newserver" abstract="false" name="New Server" newsUrl="about:blank" version="1.16.5" generateList="true" autoConnect="true" revision="" mainClass="net.minecraft.launchwrapper.Launch" launcherType="Vanilla">

Keybase proof

I hereby claim:

  • I am smbarbour on github.
  • I am smbarbour ( on keybase.
  • I have a public key whose fingerprint is 778B 2D5E 60E9 05AE 8EE6 F3FB 3B74 8407 B9FD 513A

To claim this, I am signing this object:

View agricraft.zs
import mods.agricraft.growing.BaseBlock;
BaseBlock.set(<AgriCraft:seedAurigold>, <minecraft:gold_block>, 1, true);
BaseBlock.set(<AgriCraft:seedCuprosia>, <ThermalFoundation:Storage:0>, 1, true);
BaseBlock.set(<AgriCraft:seedDiamahlia>, <minecraft:diamond_block>, 1, true);
BaseBlock.set(<AgriCraft:seedEmeryllis>, <minecraft:emerald_block>, 1, true);
BaseBlock.set(<AgriCraft:seedFerranium>, <minecraft:iron_block>, 1, true);
BaseBlock.set(<AgriCraft:seedJaslumine>, <ImmersiveEngineering:storage:1>, 1, true);
BaseBlock.set(<AgriCraft:seedLapender>, <minecraft:lapis_block>, 1, true);
BaseBlock.set(<AgriCraft:seedNiccissus>, <ThermalFoundation:Storage:4>, 1, true);
smbarbour /
Last active Oct 15, 2016
ItemColors implementation
package com.example.examplemod;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.FMLLog;
* Created by sbarbour on 4/7/16.
View gist:dbfc57e2b1f4cb95b30f
CREATE OR REPLACE FUNCTION meta_find_references(tablename text)
RETURNS TABLE (type text, name text)
AS $$
SELECT 'View', table_name FROM information_schema.views WHERE view_definition ~* $1
SELECT 'Function', routine_name FROM information_schema.routines WHERE routine_definition ~* $1
View fml-client-latest.log
This file has been truncated, but you can view the full file.
[01:34:55] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[01:34:55] [main/INFO] [FML/]: Forge Mod Loader version for Minecraft 1.7.10 loading
[01:34:55] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_72, running on Linux:amd64:3.19.0-49-generic, installed at /usr/lib/jvm/java-8-oracle/jre
smbarbour / partitioning.sql
Last active Jan 29, 2016
PostgreSQL inter-related table partitioning
View partitioning.sql
CREATE TABLE testsummary
rowid serial NOT NULL,
rundate date,
data text,
CREATE TABLE testdetail
smbarbour / Meddle.xml
Created Dec 10, 2015
Including Meddle in MCUpdater modpacks
View Meddle.xml
<Module name="Meddle" id="meddle">
<URL priority="0"></URL>
<ModType order="1" launchArgs="--tweakClass net.fybertech.meddle.Meddle">Library</ModType>
<Submodule id="launchwrapper" name="Mojang (LaunchWrapper)">
<URL priority="0"></URL>
<URL priority="1"></URL>
smbarbour /
Created Aug 4, 2015
Convert MapWriter block color file for use with AnvilMapper
use strict;
open(IN, "<", $ARGV[0]);
my @fields;
while(<IN>) {
@fields = split(' ', $_);
if ($fields[1] ne '*') {
if ($fields[0] eq 'biome') {
View gist:7c66e6609e7547783001
[22:31:14] [Netty IO #2/ERROR] [FML/]: NetworkDispatcher exception
java.lang.IllegalArgumentException: Payload may not be larger than 2097050 bytes
at<init>( ~[gr.class:?]
at ~[FMLProxyPacket.class:?]
at ~[NetworkDispatcher.class:?]
at ~[DefaultChannelHandlerContext.class:?]
at ~[DefaultChannelHandlerContext.class:?]
at ~[DefaultChannelHandlerContext.class:?]