Skip to content

Instantly share code, notes, and snippets.

View coderbot16's full-sized avatar
🐐

coderbot coderbot16

🐐
View GitHub Profile
@coderbot16
coderbot16 / sodium_compatibility_mixins.md
Created January 24, 2023 20:42
Documentation of Sodium Compatibility mixins in Iris

Documentation of Sodium Compatibility mixins in Iris

  • block_id
    • The Iris extended vertex format requires the block state / fluid state to calculate the block ID to write into the vertex format, so we need to thread the required block state / fluid state information through to the vertex writer.
    • Similarly, at_midBlock stores the relative positioning of each vertex from the center of the current block being rendered, which requires the position of the current block being rendered.
  • clouds
    • The Sodium cloud renderer is replaced by an alternate Iris code path when shaders are active. I am not sure how it differs from the Sodium code path.
  • directional_shading
    • Shader packs calculate their own lighting, so directional shading effects should be disabled with most packs. level.getShade is redirected to return 1.0 for terrain rendering when shaders are active. In the case of SmoothLightPipeline, this is accomplished by cancelling the applySidedBrightness method
  • fast_render
@coderbot16
coderbot16 / 1.15.2.txt
Last active July 14, 2020 19:51
Mod statistics as of July 14, powered by SpecialBunny
Total mods: 3160
Total mods using MCreator: 486 (19.7% of Forge mods)
Total mods with core mods: 92 (3.7% of Forge mods, 4.6% excluding MCreator)
Total mods with access transformers: 391 (15.9% of Forge mods, 19.8% excluding MCreator)
Forge mods using Mixins: 70 (2.8% of Forge mods, 3.5% excluding MCreator)
Fabric mods using Mixins: 548 (80.7% of Fabric mods)
Fabric: 679 (21.4%) Forge: 2457 (77.7%) Both: 16 (0.5%) Forge 1.12 or below: 4 (0.1%) Neither: 4 (0.1%)
A+Block+of+Charcoal-1.2.jar
A+Block+of+Flint-1.0.jar
absentbydesign-1.14.4-1.0.3.jar
acceleratorcraft-1.1.1.jar
AceCraft_1.14.4-0.1.0.jar
autodoors_1.14-1.3.jar
betbeacpl_1.14-1.0.jar
bunchofbiomes-1.14.2-1.0.3.jar
Compressium-1.14-Forge-1.0.3.jar
cycp_1.14-1.0.jar
@coderbot16
coderbot16 / danger.md
Created March 25, 2020 20:50
The Danger of (Method) Access Transformers

The Danger of Access Transformers

Setup

Consider the following classes

Internal.java

package internal;
@coderbot16
coderbot16 / patchwork-v1.md
Created September 18, 2019 23:50
Just a basic outline of what Patchwork (Fabric + Forge compatibility) could look like

Patchwork Architecture v1

Part 1: Patching Mod Files

  • Remaps MCP/SRG to Yarn/Intermediary

  • Directly converts Forge mod jars to jars loadable by fabric-loader

  • These jars get their mcmod.info converted to a fabric.mod.json

@coderbot16
coderbot16 / terrestria.json
Last active July 25, 2019 19:03
Extra Pieces piece pack for Terrestria by Snupbups, make sure to put this in config/extrapieces/piecepacks
{
"redwood_log": {
"base": "terrestria:redwood_log",
"textures": {
"top": "terrestria:block/redwood_log_top"
}
},
"redwood": {
"base": "terrestria:redwood_planks",
"vanilla_pieces": {
@coderbot16
coderbot16 / biomes.json
Created July 24, 2019 05:19
Biomes configuration json
{
"freeze": false,
"continental": {
"japanese_maple_forest": {
"weight": 1.0,
"enable": true
},
"hemlock_rainforest": {
"weight": 1.0,
"enable": true
2019-07-15 14:21:59
Full thread dump OpenJDK 64-Bit Server VM (25.212-b03 mixed mode):
"Server-Worker-12" #71 daemon prio=5 os_prio=0 tid=0x00007f8e84024800 nid=0x591c waiting on condition [0x00007f8eb87f7000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005cb849218> (a java.util.concurrent.ForkJoinPool)
at java.util.concurrent.ForkJoinPool.awaitWork(ForkJoinPool.java:1824)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1693)
@coderbot16
coderbot16 / Lines 18495 to 18531
Created July 4, 2019 22:46
Fields from Direction and subclasses of yarn 1.14.3 mappings, build 12
FIELD fa I g field_11032 id
FIELD fa I h field_11031 idOpposite
FIELD fa I i field_11030 idHorizontal
FIELD fa Lfa$a; k field_11047 axis
FIELD fa Lfa$b; l field_11044 direction
FIELD fa Lfa; a field_11033 field_11033
FIELD fa Lfa; b field_11036 field_11036
FIELD fa Lfa; c field_11043 field_11043
FIELD fa Lfa; d field_11035 field_11035
FIELD fa Lfa; e field_11039 field_11039
@coderbot16
coderbot16 / biome mod dump
Created June 27, 2019 01:34
Pretty much all biome mods that aren't complete garbage
https://www.curseforge.com/minecraft/mc-mods/new-dawn
https://www.curseforge.com/minecraft/mc-mods/realistic-terrain-generation
https://www.curseforge.com/minecraft/mc-mods/alternate-terrain-generation
https://www.curseforge.com/minecraft/mc-mods/vintage-terrain-generation/screenshots
https://www.curseforge.com/minecraft/mc-mods/vintagecraft/screenshots
https://www.curseforge.com/minecraft/mc-mods/climate-control-geographicraft
https://www.curseforge.com/minecraft/mc-mods/environs/screenshots
https://www.curseforge.com/minecraft/mc-mods/wildnature/screenshots
https://www.curseforge.com/minecraft/mc-mods/traitors-better-swampland-mod