Skip to content

Instantly share code, notes, and snippets.

View antihack3r's full-sized avatar
:shipit:
Lunar client is bloatware

antihack3r antihack3r

:shipit:
Lunar client is bloatware
  • Saint-Petersburg, Russia
  • 22:10 (UTC +03:00)
  • YouTube @rusnuker
View GitHub Profile
@OlivierLD
OlivierLD / 01.README.md
Last active February 12, 2024 23:34
Manage Ctrl-C from Java

Ctrl-C from Java

This shows how to manage a Ctrl-C interrupt from a Java program.
Look into the synchonized blocks...

What are mixins?

Mixins are a way to inject code or change the minecraft source code directly and should be use with caution. If you can do a PR to Forge or use an event, try those first. If all else fails, then mixins may be a good option to look into. Here are some resources for mixins:

Now, I'll be honest, the official mixin doc is kind of terrible to learn from for most people. It's extremely dense and and really only helps people who already knows in-depth bytecode and stuff. But most modders aren't like that and just wants to do small stuff lol. But I'll give you the run-down here. There's a few kinds of mixins that you will encounter quite often.

@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active June 13, 2024 04:20
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@fkaa
fkaa / mod_Bleary.java
Created December 19, 2011 22:21
A very silly mod to demonstrate full-screen blurring via a 7x7 gaussian blur. Made by UltraMoogleMan.
package net.minecraft.src;
import net.minecraft.client.Minecraft;
import java.io.File;
import java.util.*;
import java.nio.*;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.ContextCapabilities;
import org.lwjgl.opengl.GLContext;