Skip to content

Instantly share code, notes, and snippets.

View ItsDoot's full-sized avatar

Christian Hughes ItsDoot

  • Texas, United States
  • 17:19 (UTC -05:00)
View GitHub Profile
@HeathLoganCampbell
HeathLoganCampbell / !Extra info.md
Last active March 13, 2024 08:05
A weekend project to allow minecraft worlds to be saved in a mysql database, mysql worlds. This was done on top of Paper 1.17 on fa53a1a7f

SkyPaper

Uploading and download Minecraft worlds from mysql

The idea was to be able to upload worlds to a database so that we could have multiple servers upload and download them at will to enable load balancing for servers such as skyblock as the demands of scalable 1.17 servers grow while the performance falls version to version.

The important idea here was to see if it was possible to upload worlds to a database, which the answer is yes :D. but this even works better for skyblock servers as they are mostly air, which allowed us to do a small optimization. which is when a chunk is empty, we don't have it, as generating empty chunks is cheap as chips, but storing them has about 500B of overhead. so it ends up taking longer to fetch them from the database, then just generate them.

@PhoenixVX
PhoenixVX / HowToFabric.md
Last active June 9, 2021 06:04
A simple easy-to-understand guide on how to port Fabric in it's entirety.

Generating Intermediary

This should not be used unless you are making Fabric run on a version which there are no (similar) intermediaries available for.

Generating intermediary requires Stitch (pre-built releases) or available at the source repository Stitch (source) After either building or downloading a pre-built release, one must have a minecraft JAR to use and the Stitch JAR.

  • Open a Command Prompt (Windows) / Terminal (MacOS/Linux variants)
  • Go to the directory which contains both the Minecraft JAR and Stitch using cd
  • Invoke the Java Runtime Environment to run Stitch. Stitch has the available commands:
@udalov
udalov / getKType.kt
Last active March 16, 2021 21:54
DEPRECATED example how to obtain KType instance from reified T. Please use "typeOf" since 1.3.40!
import java.lang.reflect.*
import kotlin.reflect.KClass
import kotlin.reflect.KType
import kotlin.reflect.KTypeProjection
import kotlin.reflect.KVariance
import kotlin.reflect.full.createType
// --- Interface ---
inline fun <reified T : Any> getKType(): KType =