Skip to content

Instantly share code, notes, and snippets.

View witchica's full-sized avatar

Jessica witchica

View GitHub Profile
@witchica
witchica / gist:6ab79ce8449d73c09c72
Created June 24, 2014 09:00
1.7.10-pre4-1.7.10_pre4-10.12.2.1136-prerelease isn ot in the form 'MCVersion-apiVersion-branch'
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
org.gradle.api.ProjectConfigurationException: You must set the Minecraft Version!
at net.minecraftforge.gradle.user.patch.UserPatchExtension.getApiVersion(UserPatchExtension.java:64)
at net.minecraftforge.gradle.user.patch.UserPatchExtension_Decorated.getApiVersion(Unknown Source)
at net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.getApiVersion(UserPatchBasePlugin.java:245)
@witchica
witchica / gist:1c6a95fb490e311b4b04
Created June 24, 2014 09:02
String index out of range: -14
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
FAILURE: Build failed with an exception.
## DO NOT EDIT THIS, IT IS DELETED AT RUNTIME, USE WV_CUSTOM.CFG
tile.air=0
tile.stone=0
tile.grass=0
tile.dirt=0
tile.stonebrick=0
tile.wood=0
tile.sapling=0
tile.bedrock=0
tile.water=0
@witchica
witchica / gist:daf7d58f2df39138d7f8
Created August 7, 2014 11:40
Broken Mob Rendering
@Override
protected void drawGuiContainerForegroundLayer(int i, int j)
{
super.drawGuiContainerForegroundLayer(i, j);
try
{
GL11.glPushMatrix();
GL11.glTranslatef(guiLeft + (256 / 2), guiTop + 97, 100);
package me.modforgery.cc.client;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
/**
* Created by Toby on 19/08/2014.
package me.modforgery.cc.block;
import me.modforgery.cc.CompactChests;
import me.modforgery.cc.tileentity.TileEntityDoubleChest;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
@witchica
witchica / gist:b487a75fce9a34ab1760
Created December 5, 2014 19:42
A simple example of PistonExtendEvent and PistonRetractEvent
package net.minecraftforge.test;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.PistonEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Mod(modid = "pistonTest")
local component = require("component")
local hologram = component.hologram
function setVoxel(x, y, z, value)
local current = hologram.get(x, z)
local positiveMask = bit32.lshift(1, y - 1)
if value then
hologram.set(x, z, bit32.bor(current, positiveMask))
else
local negativeMask = bit32.bnot(positiveMask)
local event = require "event" -- load event table and store the pointer to it in event
local char_space = string.byte(" ") -- numerical representation of the space char
local running = true -- state variable so the loop can terminate
function unknownEvent()
-- do nothing if the event wasn't relevant
end
-- table that holds all event handlers, and in case no match can be found returns the dummy function unknownEvent
@witchica
witchica / Funny.meme
Created October 27, 2015 10:14
Funny.meme
<00:33:04> You poked "MageProtocol".
<00:33:04> "MageProtocol": Received your poke!
<00:33:04> You poked "MageProtocol".
<00:33:04> "MageProtocol": Received your poke!
<00:33:04> You poked "MageProtocol".
<00:33:04> "MageProtocol": Received your poke!
<00:33:04> You poked "MageProtocol".
<00:33:04> "MageProtocol": Received your poke!
<00:33:05> You poked "MageProtocol".
<00:33:05> "MageProtocol": Received your poke!