Skip to content

Instantly share code, notes, and snippets.

View Drullkus's full-sized avatar
🧮
Hacking Minecrafts

Drullkus

🧮
Hacking Minecrafts
  • Drullkus Industries
View GitHub Profile
<blockstate> == {
"forge_marker": 1,
"defaults": <variant>, // optional, added to all variants
"variants": {
"<property>": {
"<value>": <variant> // variant definition for the specified value of this property; variants for multiple values can be specified.
},
"<variant name>": <variant>, // variant definition for the full variant string
"<variant name>": [<variant1>, ...], // array of definitions for the full variant - result will be the random variant
}
@vegaasen
vegaasen / supress-warning-idea.md
Created November 27, 2015 12:59
SuppressWarnings with IntelliJ Idea

@SuppressWarnings - IntelliJ modes

Information

This list may grow each year with either new versions or patches. Enjoy!

Usage

Following is an example related to the usage of the various ignore capabilities.

@RainWarrior
RainWarrior / grammar.js
Last active January 27, 2022 10:35
Animation State Machine grammar
{
"parameters": { "name": <time_value>, ... },
"clips": { "name": <clip>, ... },
"states": [ "name", ... ],
"transitions": { "name_from": "name_to", ... },
"start_state": "name"
}
<time_value> ::=
<number> // result = number; Constant value.
We can't make this file beautiful and searchable because it's too large.
domain,path,variant,
advgenerators,generators_data_port,inventory,
advgenerators,generators_data_port,normal,
appliedenergistics2,models/block/crafting/crafting_accelerator/builtin,,
appliedenergistics2,models/blocks/spatial_pylon/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_16k/builtin,,
appliedenergistics2,models/block/crafting/crafting_unit/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_4k/builtin,,
appliedenergistics2,models/block/crafting/crafting_storage_1k/builtin,,
appliedenergistics2,models/block/crafting/crafting_monitor/builtin,,
Texture2D[] layers;
Texture2D compiledTexture = new Texture2D(layers[0].width, layers[0].height);
foreach(Texture2D layer in layers){
Color[] baseColors = compiledTexture.GetPixels();
Color[] layerColors = layer.GetPixels();
for(int p = 0; p < baseColors.Length; p++){
@Sturmlilie
Sturmlilie / apitrace-tutorial.md
Last active April 20, 2025 17:06
Debugging OpenGL issues in Minecraft mods using apitrace

Apitrace tutorial

Debugging OpenGL issues in Minecraft mods using apitrace

In the transition of Minecraft version 1.14 to 1.15, Mojang introduced some sweeping changes to the way rendering is performed; while the internal code still relies on GL1-era immediate-mode, block and entity renderer classes now provide their vertices to a specific RenderLayer* which are later rendered in ordered batches.

These changes broke a majority of Minecraft mods; in the process of porting a mod to 1.15, I had to frequently rely on a tool called “apitrace”, and I thought a quick how-to might come in handy for others struggling with similar problems. Apitrace allows capturing every OpenGL call an application makes, and later replaying these calls and inspecting the entire GL state machine at each rendering step.

For this tutorial, I am using the MultiMC launcher.

First step: Install apitrace

@toka7290
toka7290 / material.txt
Last active February 8, 2024 20:57
Minecraft (Bedrock) 1.16.200.x~ entitiy material list
alpha_block
alpha_block_color
banner
banner_pole
beacon_beam
beacon_beam_transparent
charged_creeper //帯電クリーパー表面
conduit_wind
entity //ベース
entity_alphablend //半透明
@CorgiTaco
CorgiTaco / BiomeDataGenerator.java
Last active July 30, 2020 02:13
Use this to generate biomes from code to json. Tested and used in 20w29a. Code is a bit sloppy but yeah :) PLEASE FOR THE LOVE OF GOD PUT THIS IN ITS OWN EMPTY FOLDER, IF YOU DON'T THE DIRECTORY ITS IN WILL GET THANOS SNAPPED. Here's why https://streamable.com/efrpiw
/*
MIT License
Copyright (c) 2020 Corgi Taco
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@pjobson
pjobson / apple_install_dates.md
Last active June 16, 2025 20:34
OSX Install Dates

Various Versions of macOS/OSX will fail on install for various reasons. You can fix them by disconnecting from your wifi or network or resetting your NVRAM. Booting from your USB stick, opening terminal and doing: date ########## where the # nubers are below. Format is: MMDDhhmmYY

10.16 - 0.5 Leopard   - date 0101010121 <- Currently not needed
10.15 - Catalina      - date 0101010120 <- Currently not needed
10.14 - Mojave        - date 0101010119 <- Currently not needed
10.13 - High Sierra   - date 0101010118

10.12 - Sierra - date 0101010117

@T3sT3ro
T3sT3ro / renderdoc-how-to.md
Last active April 18, 2025 18:45
Guide: launching renderdoc with java gradle project on minecraft "Create" mod example

So you want to launch RenderDoc with Java, huh?

Here is a good resource to check out first

First of all, check what command is run when you in fact launch your app. For me (Create minecraft mod) this command was executed when I run runClient configuration (line breaks, tabs and backslashes added for readability):

Step 1. command for running minecraft with mods - generated by gradle

/home/tooster/.sdkman/candidates/java/14.0.1-open/bin/java