This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EntityDeathEvent extends EntityEvent { | |
@Getter | |
@Setter | |
List<ItemStack> droppedItems; | |
@Getter | |
@Setter | |
int droppedExp; | |
@Getter | |
@Setter | |
String message; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MCP_VERSION="721" | |
FORGE_VERSION="latest" | |
MCP_URL="https://dl.dropbox.com/s/dao8itysfwuhj9q/mcp$MCP_VERSION.zip?dl=1" | |
FORGE_URL="http://files.minecraftforge.net/minecraftforge-src-$FORGE_VERSION.zip" | |
mkdir -p forge | |
cd forge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum DeathCause implements DeathCauseFactory { | |
DROWNING { | |
public Cause<?> buildCause(Entity victim, Entity killer) { | |
return new DrowningCause(victim); | |
} | |
}, | |
FALLING { | |
public Cause<?> buildCause(Entity victim, Entity killer) { | |
//TODO |