Skip to content

Instantly share code, notes, and snippets.

@robotgryphon
robotgryphon / frame_registration.txt
Created May 13, 2016 18:21
Bedcraft and Beyond Frame Registration
[14:19:26] [Client thread/INFO]: Loading frame data from the ore dictionary...
[14:19:26] [Client thread/INFO]: Got oredict entry "Oak Wood Planks. Adding to "minecraft:planks", as meta 0.
[14:19:26] [Client thread/INFO]: Got oredict entry "Spruce Wood Planks. Adding to "minecraft:planks", as meta 1.
[14:19:26] [Client thread/INFO]: Got oredict entry "Birch Wood Planks. Adding to "minecraft:planks", as meta 2.
[14:19:26] [Client thread/INFO]: Got oredict entry "Jungle Wood Planks. Adding to "minecraft:planks", as meta 3.
[14:19:26] [Client thread/INFO]: Got oredict entry "Acacia Wood Planks. Adding to "minecraft:planks", as meta 4.
[14:19:26] [Client thread/INFO]: Got oredict entry "Dark Oak Wood Planks. Adding to "minecraft:planks", as meta 5.
[14:19:26] [Client thread/INFO]: Got oredict entry "Sacred Oak Wood Planks". Adding to "biomesoplenty:planks_0", as meta 0.
[14:19:26] [Client thread/INFO]: Got oredict entry "Cherry Wood Planks". Adding to "biomesoplenty:planks_0", as meta 1.
[14:19:26] [Client thre
@robotgryphon
robotgryphon / en_US.json
Created May 25, 2016 19:39
JSON lang format?
{
"tile": {
"beds": {
"wooden.name": "Wooden Bed",
"stone.name": "Stone Bed"
},
"bedcraftbeyond": {
"rug": {
"Black.name": "Black Rug",
@robotgryphon
robotgryphon / gist:60f2dd19b6b19965b41d2250bb6c5490
Created May 25, 2016 21:23
Bedcraft And Beyond: Commands!
[17:19:18] [Client thread/INFO]: [CHAT] frames, debug
[17:19:18] [Client thread/INFO]: [CHAT] add, remove, check, reload, list
/bedcraftbeyond [TAB]
[17:19:17] [Client thread/INFO]: [CHAT] frames, debug
/bedcraftbeyond frames [TAB]
[17:19:19] [Client thread/INFO]: [CHAT] add, remove, check, reload, list
/bedcraftbeyond frames list [TAB, then options:]
[17:19:31] [Client thread/INFO]: [CHAT] wood, stone
@robotgryphon
robotgryphon / input.conv
Last active May 31, 2016 18:40
LangConvert version 1.0
a_normal_entry: "Testing"
// A comment
entries {
~: "Group-level"
normal: "Testing #2"
}
entries2 {
@robotgryphon
robotgryphon / en_US.conv
Created May 31, 2016 18:42
LangConvert: Real-World Test
tile.bedcraftbeyond {
// Beds
beds {
wooden.name: "Wooden Bed"
stone.name: "Stone Bed"
}
// Rugs
rug {
Black.name: "Black Rug"
@robotgryphon
robotgryphon / example.json
Created July 1, 2016 04:53
Bedcraft and Beyond Example Frame File - Version 2
{
"entries": [
{
"key": "minecraft:planks",
"type": "wood",
"whitelist": ["0-5"]
},
{
"key": "biomesoplenty:planks_0",
"type": "wood",
package net.minecraftforge.test;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
RenderGameOverlayEvent
Categories: effect, hud, overlays, debug
effect (anything obscuring the player vision)
pumpkin overlay
portal
player hud (hotbar, etc)
hotbar
@Override
public void drawForeground(Point mouse) {
// GuiUtils.drawRectangle(contentArea, Color.MAGENTA);
Point drawOffset = displayedContentArea.getLocation();
drawOffset.translate(contentArea.x, contentArea.y);
GlStateManager.pushMatrix();
GlStateManager.disableLighting();
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}