Skip to content

Instantly share code, notes, and snippets.

View alcatrazEscapee's full-sized avatar
💭
This party never stops, time is dead and meaning has no meaning!

alcatrazEscapee

💭
This party never stops, time is dead and meaning has no meaning!
View GitHub Profile
@alcatrazEscapee
alcatrazEscapee / shrimps_whip_up.py
Created August 10, 2021 23:57
A script to identify some weirdness in the blackstone data, thrown together from random bits from mappificator.
import json
BLACKSTONE_FILE = './build/blackstone-1.17.1.json'
def main():
blackstone = json.loads(load_text(BLACKSTONE_FILE))
weird = []
parse_blackstone(blackstone, weird)
for thing in weird:
227c227
< "name": "source"
---
> "name": "channel"
267c267
< "name": "source"
---
> "name": "channel"
10684c10684
< "name": "matrixStack"
> Configure project :
[MixinGradle] Skipping eclipse integration, extension not found
Using mappings: parchment / mappificator.v16-1.17.1
Setting up MCP environment
Initializing steps
Executing steps
> Running 'downloadManifest'
> Running 'downloadJson'
> Running 'downloadClient'
> Running 'downloadServer'
@alcatrazEscapee
alcatrazEscapee / gradle.log
Created October 18, 2021 02:17
Output of `./gradlew eclipse -Dfg.debugRepo=true --stacktrace`
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Configure project :
Using mappings: parchment / mappificator.v16-1.17.1
Parent: net.minecraftforge:forge:1.17.1-37.0.53:userdev
Parent: de.oceanlabs.mcp:mcp_config:1.17.1-20210706.113038@zip
MinecraftUserRepo Request: net.minecraft:client:1.17.1:null@pom
MCPRepo Request: net.minecraft:client:1.17.1:null@pom
MCPRepo Request: net.minecraft:client:1.17.1:@pom
@alcatrazEscapee
alcatrazEscapee / latest.log
Created November 11, 2021 16:32
Cyanide log output using crashvillage.zip
Caused by: com.google.gson.JsonParseException: Error(s) loading registries:
Error(s) loading registry minecraft:worldgen/template_pool:
Missing "processors" list
at: "processors" at index 35
Missing "processors" list
at: "processors" at index 33
Missing "processors" list
at: "processors" at index 32
Missing "processors" list
@alcatrazEscapee
alcatrazEscapee / BiMapRaceCondition.java
Created November 13, 2021 03:05
Race condition involving `BiMap.put` and `BiMap.get`, where `get` returns `null` despite no null ever being present in the map.
package bi_map_race_condition;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
public class BiMapRaceCondition
{
@alcatrazEscapee
alcatrazEscapee / AgeTracker.java
Created November 17, 2021 20:36
Prototype, untested age/familiarity fast forwarding mechanic.
package net.dries007.tfc.common.entities;
import net.dries007.tfc.util.Helpers;
import net.dries007.tfc.util.calendar.Calendars;
import net.dries007.tfc.util.calendar.ICalendar;
public class AgeTracker
{
public static final float AGE_RATE = 0.5f / ICalendar.TICKS_IN_DAY;
public static final float FAMILIARITY_DECAY_RATE = 0.1f / ICalendar.TICKS_IN_DAY; // Familiarity decay / tick
@alcatrazEscapee
alcatrazEscapee / nether.json
Created November 20, 2021 02:10
The default dimension JSON for the nether in Minecraft.
{
"type": "minecraft:the_nether",
"generator": {
"biome_source": {
"humidity_noise": {
"firstOctave": -7,
"amplitudes": [
1.0,
1.0
]
@alcatrazEscapee
alcatrazEscapee / hexlands_nether.json
Created November 20, 2021 02:28
A template for HexLands nether preset, based on vanilla, in 1.16.5
{
"type": "minecraft:the_nether",
"generator": {
"type": "hexlands:hexlands",
"seed": 555,
"settings": "minecraft:nether",
"biome_source": {
"type": "hexlands:hexlands",
"seed": 555,
"biome_source": {
package constructor_reference_hacks;
import java.util.function.Predicate;
public class ConstructorReferenceHacks
{
static class Super
{
// Super class has a constructor parameter of a predicate, which we want to be able to use 'this'
protected Super(Predicate<String> function) {}