Skip to content

Instantly share code, notes, and snippets.

package net.minecraftforge.test;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityBoat;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.util.math.BlockPos;
@howtonotwin
howtonotwin / models.md
Last active December 30, 2016 00:41
Makeshift homepage for my Minecraft model docs

Read everything in this folder (advanced models optional) in the order specified here.

@howtonotwin
howtonotwin / Model.scala
Created August 20, 2016 17:22
A representation of Minecraft's block models in code.
sealed abstract class Axis {
import Axis._
def json: String = this match {
case X => "\"x\""
case Y => "\"y\""
case Z => "\"z\""
}
}
object Axis {
@howtonotwin
howtonotwin / Had had diagram.txt
Created August 17, 2016 15:30
An analysis of the sentence "James, while John had had 'had,' had had 'had had'; 'had had' had had a better effect on the teacher," that will hopefully make it easier to understand.
James, while John had had "had," had had "had had"; "had had" had had a better effect on the teacher.
Subject (doing the thing)
Verb (what is being done) ("to have" in the pluperfect tense)
Direct Obj (what the verb being done to; in this case the quotes make "had had" one object with no special meaning.)
James | had had | "had had"
------|---------|-----------
| \
\ while Subordinating conjunction (connects two clauses together, subordinating one as dependent on the other)
\
@howtonotwin
howtonotwin / SmallBlockMaker.scala
Last active August 19, 2016 21:20
Makes little 1x1x1 voxels in Minecraft's model JSONs
/**
* Makes a 1 voxel small block at the coordinates specified.
*
* Result starts at [x,y,z], and ends at [x+1,y+1,z+1]. The result uses
* the texture variable specified as both the texture for faces and the
* name of the element, which is named ""texture""-""x""-""y""-""z"".
* The texture UV is [0,0,16,16]
*
* Each element of the remaining tuples is the name of a face
* ("north", "south", etc.) and the extra attributes for each face.