Skip to content

Instantly share code, notes, and snippets.

@makamys
makamys / 1.7.10-optifine-alternatives.md
Last active February 19, 2024 11:06
List of OptiFine Alternatives for 1.7.10
@makamys
makamys / 1.7.10-security-vulnerabilities.md
Last active February 7, 2024 10:43
1.7.10 Security Vulnerabilities

1.7.10 Security Vulnerabilities

Having been released over 9 years ago, Minecraft 1.7.10 is no longer officially supported, which means it is up to the users to mitigate security vulnerabilities.

I cannot guarantee this list is complete or accurate, this is just a compilation of what I have learned.

Log4J CVE-2021-44228 ("Log4Shell")

Date discovered: 2021-12-10

import zipfile
import sys
import java_manifest
if len(sys.argv) != 2:
sys.exit('''Usage: {} JAR_PATH
Generates JVM and program arguments needed to launch a mod in an IDE directly, given a jar of it.'''.format(sys.argv[0]))
man = java_manifest.loads(zipfile.ZipFile(sys.argv[1]).open("META-INF/MANIFEST.MF", "r").read().decode("utf8"))[0]
@makamys
makamys / compile-1.7.10-forge-mod-in-current-year.md
Last active February 1, 2024 04:55
How to compile a 1.7.10 Forge mod in 2022

So you want to compile an old 1.7.10 mod, but Gradle is throwing some cryptic errors at you?

This guide will show you how to revitalize the build script using a fork of ForgeGradle, which has a critical issue fixed. We will be building the GalaxyOdyssey fork of EnviroMine as the example mod, as it showcases various issues you can run into. But of course, you can use any other mod.

Introduction

What you need

  • You need to have Java 8 installed on your machine.
  • It is recommended to have Git installed
  • It is recommended to have Gradle 4.4.1 installed
@makamys
makamys / forgegradle1.2-1.7.10-fixer-upper.sh
Last active November 16, 2022 01:01
ForgeGradle 1.2 "Response 403" workaround for 1.7.10 (Only works with upstream ForgeGradle. Deprecated! Check https://gist.github.com/makamys/27bfbcb3fe6ec4a35f1e809476e651d7 instead.)
#!/bin/bash
#
# ForgeGradle 1.2 needs the following files to build a 1.7.10 mod:
#
# ~/.gradle/caches/minecraft/assets/indexes/1.7.10.json
# ~/.gradle/caches/minecraft/net/minecraft/minecraft/1.7.10/minecraft-1.7.10.jar
# ~/.gradle/caches/minecraft/net/minecraft/minecraft/1.7.10/minecraft-1.7.10.jar.md5
# ~/.gradle/caches/minecraft/net/minecraft/minecraft_server/1.7.10/minecraft_server-1.7.10.jar
# ~/.gradle/caches/minecraft/net/minecraft/minecraft_server/1.7.10/minecraft_server-1.7.10.jar.md5
#
@makamys
makamys / 1.7.10-essentials.md
Last active April 13, 2024 10:51
List of "Essential" 1.7.10 Mods

List of "Essential" 1.7.10 Mods

This is a list of Minecraft 1.7.10 mods that are not focused on adding new original content. Instead, they make the base game run better, or port over features from other versions of vanilla.

These lists try to comprehensively list all the available options. You will not want to use all of the listed mods at once.

Some of the listed mods require a Mixin bootstrap mod in order to work. See the Mixin mods section near the end of the document for information about that.

Table of Contents

import sys
from pathlib import Path
import csv
if len(sys.argv) != 2:
sys.exit(r'''Usage: {} MCP_CONF_DIR
Dumps every method name in an MCP mapping, in a format ready to use in Mixin
annotations.
@makamys
makamys / zip_search.py
Last active January 19, 2024 11:34
Recursive zip search
import glob
from zipfile import ZipFile, BadZipFile
import sys
import os
if len(sys.argv) != 3 and len(sys.argv) != 4:
sys.exit('''Usage: {} ROOT_DIR QUERY [--names]
Searches the zip files in ROOT_DIR recursively for QUERY.
@makamys
makamys / alias.map
Last active January 8, 2021 15:56
MAtmos 35 TFC(+) compatibility alias map
# TFC blocks
stone=terrafirmacraft:StoneIgIn,terrafirmacraft:StoneIgEx,terrafirmacraft:StoneSed,terrafirmacraft:StoneMM
dirt=terrafirmacraft:Dirt,terrafirmacraft:Dirt2
grass=terrafirmacraft:Grass,terrafirmacraft:Grass2,terrafirmacraft:ClayGrass,terrafirmacraft:ClayGrass2,terrafirmacraft:PeatGrass,terrafirmacraft:DryGrass,terrafirmacraft:DryGrass2
leaves=terrafirmacraft:leaves,terrafirmacraft:leaves
water=terrafirmacraft:SaltWater,terrafirmacraft:SaltWaterStationary,terrafirmacraft:FreshWater,terrafirmacraft:FreshWaterStationary,terrafirmacraft:HotWater,terrafirmacraft:HotWaterStationary
sand=terrafirmacraft:Sand,terrafirmacraft:Sand2
torch=terrafirmacraft:Torch
snow_layer=terrafirmacraft:Snow
ice=terrafirmacraft:Ice