Skip to content

Instantly share code, notes, and snippets.

@Commoble
Commoble / VoxelShapeGetters.java
Last active December 10, 2023 22:31
What's the difference between the different VoxelShape getters in forge for minecraft 1.16.4?
/**
AbstractBlock::getShape(BlockState, IBlockReader, BlockPos, ISelectionContext)
The primary shape for "selection" raytraces, like clicking a block.
Defaults to a full cube. Delegated to by AbstractBlockState::getShape(IBlockReader, BlockPos, ISelectionContext)
Most of the other shape getters either default to this or default to empty,
so just overriding this shape getter is sufficient if finer variations aren't needed.
AbstractBlock::getCollisionShape(BlockState, IBlockReader, BlockPos, ISelectionContext)
The primary shape for collision raytraces.
Delegated to by AbstractBlockState::getCollisionShape(IBlockReader, BlockPos, ISelectionContext)
package chisel.scripts;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
@gwpantazes
gwpantazes / How to Install JDK MacOS Homebrew.md
Last active November 13, 2024 09:42
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents

@Lance5057
Lance5057 / ArchimedesScrew.java
Created August 27, 2016 20:14
ArchimedesScrew Model
package IHaveNoIdea;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
/**
* ArchimedesScrew - Lance5057
* Created using Tabula 4.1.1
*/
@williewillus
williewillus / breakdown.txt
Last active June 20, 2016 20:22
Fluid Cap breakdown
Personal notes for fluid cap and general fluid grokking since this seems really unintuitive to me.
I have not worked with fluids before and the fluid cap seems very baggage-laden to me.
It feels held back by the previous implementation of Fluids,
and is not consistent with the interface of `IItemHandler`, the inventory cap.
Oh well. Here goes.
Classes:
- `IFluidHandler`: The Capability Interface for the fluid cap.
@williewillus
williewillus / primer.md
Last active June 15, 2023 03:33
Capabilities: A Primer (tm)

Capabilities

Another award-winning primer by williewillus

Capabilities...a wondrous new system. That you've probably been forced into using. But let's not talk about that and get straight into the learning!

Terms and definitions

  • Capability System - This entire system; what this primer is about. This system is named very literally for what it does.
    • Capability - the quality of being capable; capacity; ability
  • Capable - having power and ability
@williewillus
williewillus / primer.md
Last active December 20, 2020 08:13
1.8.9 to 1.9 quick primer
@williewillus
williewillus / Primer.md
Last active July 16, 2023 03:18
1.8 rendering primer

1.8 Rendering Primer by williewillus (formatted to markdown by gigaherz)

Note: This primer assumes you are using MinecraftForge 1.8.9 build 1670 or above. Correctness not guaranteed otherwise. Note 2: This primer is for 1.8.x. Changes in 1.9 are on another gist: https://gist.github.com/williewillus/e37edde85dc78d2e138c

This guide is intended for those with a clear knowledge of general modding and want a quick up to speed on how new things work. If you are confused, please hop on IRC and ask for help!

Blocks and Items

  • 1.7: EVERY BLOCK SHAPE EVER was hardcoded into RenderBlocks or your ISBRH. Oh God, just look at that class. Actually don’t, if you value your sanity.
@ljfa-ag
ljfa-ag / modelbase_to_json.perl
Last active November 1, 2022 14:02
Script for converting exported Techne models for Minecraft into other model formats
#!/usr/bin/env perl
# Released into Public Domain
# A quick and dirty script to convert ModelBase Java code as generated
# by Techne (or possibly Tabula) into Minecraft's JSON model format.
# It is quite limited (it does not handle rotations, as the JSON model format
# is limited in that regard anyway), but it is at least a help.
# Usage:
# modelbase_to_json input.java > output.json
@SoniEx2
SoniEx2 / list_of_mod_makers_breaking_curse_tos.md
Last active August 27, 2016 02:11
List of mod makers breaking Curse's TOS

List of mod makers breaking Curse's TOS

Note: This list is incomplete. It'll be expanded as time goes on. Feel free to comment below with a link to your Curse profile to help me expand the list.

So apparently Curse has this ridiculous term on their TOS (archived at the time of making this gist):

In order to access some features of the Websites, you will have to create an account. You must be at least 18 years of age to register an account. Minor children may only access account-related features using a parent or guardian’s account so long as the