Skip to content

Instantly share code, notes, and snippets.

View tterrag1098's full-sized avatar

tterrag tterrag1098

View GitHub Profile
@tterrag1098
tterrag1098 / ItemOffsetTool.java
Last active August 27, 2015 12:42
V* SHIFTING :D
package team.chisel.item;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
This file has been truncated, but you can view the full file.
[23:20:07] [INFO] LaunchFrame.main:185: FTBLaunch starting up (version 1.3.5)
[23:20:07] [INFO] JGoogleAnalyticsTracker$2.run:483: AnalyticsBackgroundThread started
[23:20:07] [INFO] LaunchFrame.main:186: Java version: 1.7.0_45
[23:20:07] [INFO] LaunchFrame.main:187: Java vendor: Oracle Corporation
[23:20:07] [INFO] LaunchFrame.main:188: Java home: C:\Program Files\Java\jre7
[23:20:07] [INFO] LaunchFrame.main:189: Java specification: Java Virtual Machine Specification version: 1.7 by Oracle Corporation
[23:20:07] [INFO] LaunchFrame.main:191: Java vm: Java HotSpot(TM) 64-Bit Server VM version: 24.45-b08 by Oracle Corporation
[23:20:07] [INFO] LaunchFrame.main:192: OS: amd64 Windows 7 6.1
[23:20:07] [INFO] LaunchFrame.main:193: Launcher Install Dir: C:\FTB
[23:20:07] [INFO] LaunchFrame.main:194: System memory: 9598M free, 16322M total
@tterrag1098
tterrag1098 / gist:9433253
Created March 8, 2014 15:25
Smeltery code
local pulses = 0
local ticksSinceLast = 0
while true do
if redstone.getInput("left") == true then
pulses = pulses + 1 --stack up pulses
end
if ticksSinceLast >= 200 and pulses > 0 then --10 seconds
redstone.setOutput("right", true)
ticksSinceLast = 0 --reset ticks
int id = OreDictionary.getOreID(stack);
for (ItemStack i : OreDictionary.getOres(id))
{
if (GameRegistry.findUniqueIdentifierFor(i.getItem()).modId.contains("modid"))
//drop items
}
player.fallDistance = Math.min(player.fallDistance, 2.5f);
if (!player.capabilities.isFlying)
{
player.motionY = Math.min(player.motionY, -0.32f);
}
package tterrag.supermassivetech.tile;
import java.util.List;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagFloat;
public static void checkRecipes()
{
Set<ShapedRecipes> shaped = new HashSet<ShapedRecipes>();
Set<ShapelessRecipes> shapeless = new HashSet<ShapelessRecipes>();
Set<ShapedOreRecipe> shapedOre = new HashSet<ShapedOreRecipe>();
Set<ShapelessOreRecipe> shapelessOre = new HashSet<ShapelessOreRecipe>();
for (Object o : CraftingManager.getInstance().getRecipeList())
{
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
1401157165262 ### java.lang.NullPointerException
1401157165262 ### at tterrag.tppibot.runnables.ReminderProcess.isRemindEnabledFor(ReminderProcess.java:88)
1401157165262 ### at tterrag.tppibot.commands.DisableRemind.onCommand(DisableRemind.java:15)
1401157165262 ### at tterrag.tppibot.TPPIBot.onMessage(TPPIBot.java:59)
1401157165262 ### at org.jibble.pircbot.PircBot.handleLine(PircBot.java:990)
1401157165262 ### at org.jibble.pircbot.InputThread.run(InputThread.java:92)
package tterrag.supermassivetech.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.util.Color;
import tterrag.supermassivetech.client.gui.button.ButtonSlider;
import tterrag.supermassivetech.lib.Reference;