Skip to content

Instantly share code, notes, and snippets.

@Keridos
Keridos / MainBase.cs
Last active February 24, 2018 08:01
Space Engineers Solar/Battery Code
IMyTextPanel LCD = null;
void printLine(string message) {
LCD.WritePublicText(message + "\n", true);
}
void printAll(float solarPower, float batteryEnergy, float batteryInput, float batteryOutput, string scales) {
//LCD.WritePublicText("Main Base Energy System \n");
printLine("");
printLine(" Battery input (bugged): " + batteryInput.ToString("F") + " " + scales[1].ToString().Replace(" ","") + "W");
printLine(" Battery output: " + batteryOutput.ToString("F") + " "+ scales[2].ToString().Replace(" ","") + "W");
1.7.10 EnderIO-1.7.10-2.3.0.421_beta.jar mcjtylib-1.8.0.jar ProjectRed-1.7.10-4.7.0pre9.92-World.jar
[1.7.10]Better_Furnaces_V4.3.jar EnderStorage-1.7.10-1.4.7.37-universal.jar MineFactoryReloaded-[1.7.10]2.8.0-104.jar Railcraft_1.7.10-9.8.0.0.jar
ae2stuff-rv3-0.5.0.5-mc1.7.10.jar EnderTech-1.7.10-0.3.2.405.jar MineTweaker3-1.7.10-3.0.10B.jar ReactorCraft 1.7.10 V9b.jar
AgriCraft-1.7.10-1.4.5.jar EnderZoo-1.7.10-1.0.15.32.jar miscMFRcircuits-1.7.10-0.6.0.jar RecallStones-1.7.10-0.5.2.jar
AOBD-2.8.4.jar ExtraCells-1.7.10-2.3.2b158.jar MmmMmmMmmMmm-1.6.jar RedstoneArsenal-[1.7.10]1.1.1-89.jar
appliedenergistics2-rv3-alpha-10.jar extrautilities-1.2.12.jar MobiusCore-1.2.5_1.7.10.jar
[07:24:38] [Client thread/TRACE] [FML/]: Verifying mod requirements are satisfied
[07:24:38] [Client thread/TRACE] [FML/]: All mod requirements are satisfied
[07:24:38] [Client thread/TRACE] [FML/]: Sorting mods into an ordered list
[07:24:38] [Client thread/TRACE] [FML/]: Mod sorting completed successfully
[07:24:38] [Client thread/DEBUG] [FML/]: Mod sorting data
[07:24:38] [Client thread/DEBUG] [FML/]: BiomesOPlenty(Biomes O' Plenty:2.1.0): BiomesOPlenty-1.7.10-2.1.0.1465-universal.jar (after:Natura; required-after:Forge@[10.12.2.1147,))
[07:24:38] [Client thread/DEBUG] [FML/]: CoFHAPI(API: CoFHAPI:1.7.10R1.0.2): FloodLights-1.7.10-1.0.2-46.jar ()
[07:24:38] [Client thread/DEBUG] [FML/]: CoFHAPI|energy(API: CoFHAPI|energy:1.7.10R1.0.13B1): extrautilities-1.2.12.jar ()
[07:24:38] [Client thread/DEBUG] [FML/]: BuildCraftAPI|core(API: BuildCraftAPI|core:1.0): extrautilities-1.2.12.jar ()
[09:28:38] [Client thread/ERROR] [FML/]: The first mod in the cycle is FMLMod:DragonAPI{1.0}
[09:28:38] [Client thread/ERROR] [FML/]: The mod cycle involves
[09:28:38] [Client thread/ERROR] [FML/]: Dummy Container (AfterAll) @746226975 : before: [], after: []
[09:28:38] [Client thread/ERROR] [FML/]: FMLMod:TConstruct{1.7.10-1.8.8.build988} : before: [UndergroundBiomes], after: [Forge@[10.13.3.1384,11.14), Mantle@[1.7.10-0.3.2,), MineFactoryReloaded@[1.7.10R2.8.0RC7,), ThermalExpansion@[1.7.10R4.0.0RC2,), ThermalFoundation@[1.7.10R1.0.0RC3,), armourersWorkshop@[1.7.10-0.28.0,), CoFHAPI|energy, CoFHCore, battlegear2, ZeldaItemAPI, DynamicSkillsAPI, NotEnoughItems, Waila]
[09:28:38] [Client thread/ERROR] [FML/]: FMLMod:ExtraUtilities{1.2.12} : before: [TConstruct@[1.7.10-1.8.5,)], after: [Forge@[10.13.2.1291,), ForgeMultipart@[1.2.0.336,), Baubles, ThermalFoundation, EE3]
[09:28:38] [Client thread/ERROR] [FML/]: Dummy Container (After) @695160674 : before: [], after: []
[09:28:38] [Client thread/ERROR] [FML/]: F
@Keridos
Keridos / ExU-ReikaFix.zs
Created December 14, 2015 03:49
Fixing Extra Utilities unstable ingot recipes when used with Reikas mods and TConstruct
# fixing ExU Ingot Recipes when TCon, DragonAPI is installed
val stableSigil = <ExtraUtilities:divisionSigil>.onlyWithTag({stable: 1});
val normalSigil = <ExtraUtilities:divisionSigil>;
val ironIngot = <minecraft:iron_ingot>;
val diamond = <minecraft:diamond>;
recipes.removeShaped(<ExtraUtilities:unstableingot>); # remove the bugged recipes
recipes.addShaped(<ExtraUtilities:unstableingot:2>,[[ironIngot],[stableSigil],[diamond]]);
// Hacked together with a quick perl script, because MineTweaker doesn't have regex/wildcard support for NBT tags
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
@Keridos
Keridos / RotatableBlockRenderer.java
Created February 2, 2016 04:36
RotatableBlockRenderer.java
package de.keridos.floodlights.client.render.block;
import net.minecraftforge.fml.client.registry.ISimpleBlockRenderingHandler;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import de.keridos.floodlights.init.ModBlocks;
import de.keridos.floodlights.reference.RenderIDs;
import de.keridos.floodlights.tileentity.TileEntityFL;
import de.keridos.floodlights.util.RenderUtil;
import net.minecraft.block.Block;
{
"elements": [{
"from": [0, 0, 0],
"to": [16, 16, 16],
"faces": {
"down": {
"texture": "#bottom",
"cullface": "down",
"tintindex": 1
},
{
"forge_marker": 1,
"defaults": {
"model": "FloodLights:colorable_cube_bottom_top", // might be top_bottom, I don't remember. You probably need a copy of this model with all the faces specifying tintindex so that colormultiplier will work (see the gist for more info)
"transform": "forge:default-block",
"textures": {
"top": {"texture": "FloodLights:blocks/carbonFloodlight_top" },
"side": {"texture": "FloodLights:blocks/carbonFloodlight_side"},
"bottom": {"texture": "FloodLights:blocks/carbonFloodlight_bot" } // set some default textures, that cascade down to all variants below
}
package de.keridos.floodlights.client.render.block;
import de.keridos.floodlights.item.ItemLightDebugTool;
import de.keridos.floodlights.tileentity.TileEntityUVLightBlock;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;