This file contains hidden or 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
API = require("buttonAPI") | |
local event = require("event") | |
local computer = require("computer") | |
local term = require("term") | |
local component = require("component") | |
local gpu = component.gpu | |
local rs = component.redstone | |
local colors = require("colors") | |
local side = require("sides") |
This file contains hidden or 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
repositories { | |
maven { // The repo from which to get waila | |
name "Mobius Repo" | |
url "http://mobiusstrip.eu/maven" | |
} | |
maven { // the repo from which to get NEI and stuff | |
name 'CB Repo' | |
url "http://chickenbones.net/maven/" | |
} | |
} |
This file contains hidden or 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
@Optional.Method(modid = "CoFHAPI|tool") | |
@Override | |
public ArrayList<ItemStack> dismantleBlock(EntityPlayer player, World world, int x, int y, int z, boolean a){ | |
if (!player.isSneaking()) { | |
((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).changeMode(player); | |
return null; | |
} else { | |
ArrayList<ItemStack> result = new ArrayList<ItemStack>(1); | |
result.add(new ItemStack(Item.getItemFromBlock(ModBlocks.blockElectricLight))); | |
world.setBlock(x,y,z, Blocks.air); |
This file contains hidden or 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
"FloodLights": { | |
"function": "CheckCurse", | |
"active": true, | |
"curse": { | |
"id": "224728", | |
"name": "floodlights", | |
"regex": "FloodLights-(?P<mc>.+?)-(?P<version>.+).jar" | |
} | |
} |
This file contains hidden or 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
private void wideConeSource(int sourceX, int sourceY, int sourceZ, ForgeDirection direction, boolean remove) { | |
for (int i = 1; i <= configHandler.rangeConeFloodlight / 2; i++) { | |
for (int j = 1; j <= 8; j++) { | |
int a = i; | |
int b = 0; | |
int c = 0; | |
switch (j) { | |
case 0: | |
b += i; | |
case 1: |
This file contains hidden or 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 boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float p_149727_7_, float p_149727_8_, float p_149727_9_) { | |
if (player.getHeldItem() == null && !world.isRemote && player.isSneaking()) { | |
((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).toggleInverted(); | |
boolean b = ((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).getInverted(); | |
player.addChatMessage(new ChatComponentText("Light now: " + (b ? "inverted" : "not inverted"))); | |
} else if (player.getHeldItem() != null && !world.isRemote && player.isSneaking()) { | |
Logger.getGlobal().info("poke, found item") ; | |
if (player.getHeldItem().getItem() == getMinecraftItem("stick")) { | |
((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).changeMode(player); | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
maven { | |
name = "sonatype" | |
url = "https://oss.sonatype.org/content/repositories/snapshots/" |
This file contains hidden or 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
INFO MultiMC 5, (c) 2013 MultiMC Contributors | |
INFO Version : "0.5" | |
INFO Git commit : "214fa57d7c775dc22ef44dd8f87cbb01ba9b1310" | |
INFO Work dir before adjustment : "E:/Programme/Minecraft/MultiMC5" | |
INFO Work dir after adjustment : "E:/Programme/Minecraft/MultiMC5" | |
INFO Adjusted by : "Command line E:/Programme/Minecraft/MultiMC5" | |
INFO Binary path : "E:/Programme/Minecraft/MultiMC5" | |
INFO Application root path : "E:/Programme/Minecraft/MultiMC5" | |
INFO Static data path : "E:/Programme/Minecraft/MultiMC5" | |
INFO New FTB setup |
This file contains hidden or 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
package de.keridos.floodlights.client.gui; | |
import de.keridos.floodlights.client.gui.container.ContainerCarbonFloodlight; | |
import de.keridos.floodlights.reference.Textures; | |
import de.keridos.floodlights.tileentity.TileEntityCarbonFloodlight; | |
import net.minecraft.client.gui.inventory.GuiContainer; | |
import net.minecraft.entity.player.InventoryPlayer; | |
import net.minecraft.util.ResourceLocation; | |
import org.lwjgl.opengl.GL11; |