Skip to content

Instantly share code, notes, and snippets.

View LakMoore's full-sized avatar

Lak Moore LakMoore

View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@LakMoore
LakMoore / action_error.json
Last active May 4, 2021 19:21
GitHub Actions error.json
{
"name":"HttpError",
"status":500,
"headers":{
"access-control-allow-origin":"*",
"access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset",
"connection":"close",
"content-length":"0",
"content-security-policy":"default-src 'none'",
"content-type":"application/json; charset=utf-8",
@LakMoore
LakMoore / Dragon API Errors
Created October 16, 2016 08:52
Dragon API Errors
[09:48:06] [Client thread/WARN]: Could not find itemResourcefrom thaumcraft.common.config.ConfigItems
[09:48:06] [Client thread/WARN]: Thaumcraft not detected.
[09:48:06] [Client thread/ERROR]: DRAGONAPI ERROR: magicalcrops field not found! MagmaCrop
[09:48:06] [Client thread/INFO]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NoSuchFieldException: MagmaCrop
[09:48:06] [Client thread/INFO]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.Class.getField(Class.java:1703)
[09:48:06] [Client thread/INFO]: [java.lang.Throwable$WrappedPrintStream:println:748]: at Reika.DragonAPI.ModInteract.ItemHandlers.MagicCropHandler.<init>(MagicCropHandler.java:264)
[09:48:06] [Client thread/INFO]: [java.lang.Throwable$WrappedPrintStream:println:748]: at Reika.DragonAPI.ModInteract.ItemHandlers.MagicCropHandler.<clinit>(MagicCropHandler.java:229)
[09:48:06] [Client thread/INFO]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.Class.forName0(Native Method)
[09:48:06] [
@LakMoore
LakMoore / IMCReflection.java
Created September 28, 2016 10:00
Reduced Flint Damage
public static boolean reducedFlintDamage()
{
Field dmgField = getField(ItemTool.class, "field_77865_bY", "damageVsEntity");
try
{
dmgField.set(IMC.item_flint_spade, Float.valueOf(0.25F));
dmgField.set(IMC.item_flint_pick, Float.valueOf(0.25F));
@LakMoore
LakMoore / IMC.java
Created September 28, 2016 09:55
Mob registration
int entityID = 0;
EntityRegistry.registerModEntity(EntityMiningTNTPrimed.class, "MiningTNTPrimed", ++entityID, this, 64, 5, true);
EntityRegistry.registerModEntity(EntityWildCow.class, "WildCow", ++entityID, this, 64, 3, true);
EntityRegistry.registerModEntity(EntityWildPig.class, "WildPig", ++entityID, this, 64, 3, true);
EntityRegistry.registerModEntity(EntityWildSheep.class, "WildSheep", ++entityID, this, 64, 3, true);
EntityRegistry.registerModEntity(EntityWildChicken.class, "WildChicken", ++entityID, this, 64, 3, true);
try
{
EntityRegistry.registerGlobalEntityID(EntityPigman.class, "Pigman",
@LakMoore
LakMoore / ServerLog.txt
Created September 25, 2016 10:09
Suspended Server Permanently Suspended :-(
This file has been truncated, but you can view the full file.
[20:13:55] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[20:13:55] [main/INFO] [FML/]: Forge Mod Loader version 7.99.39.1566 for Minecraft 1.7.10 loading
[20:13:55] [main/INFO] [FML/]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_102, running on Linux:amd64:3.16.0-4-amd64, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
[20:13:55] [main/DEBUG] [FML/]: Java classpath at launch is forge-1.7.10-10.13.4.1566-1.7.10-universal.jar
[20:13:55] [main/DEBUG] [FML/]: Java library path at launch is /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
[20:13:55] [main/DEBUG] [FML/]: Enabling runtime deobfuscation
[20:13:55] [main/DEBUG] [FML/]: Instantiating coremod class FMLCorePlugin
[20:13:55] [main/DEBUG] [FML/]: Added access transformer class cpw.mods.fml.common.asm.transformers.AccessTransformer to enqueued access transformers
[20:13:55] [main/DEBUG] [FML/]: Enqueued coremod FMLCorePlugin
[20:13:55] [main