Skip to content

Instantly share code, notes, and snippets.

@StillManic
StillManic / cmb2_tesseract.obj
Created February 20, 2015 19:11
cmb2_tesseract.obj
# This file uses centimeters as units for non-parametric coordinates.
mtllib cmb2_tesseract.mtl
v 0.950000 0.000000 1.050000
v 1.050000 0.000000 1.050000
v 0.950000 1.000000 1.050000
v 1.050000 1.000000 1.050000
v 0.950000 1.000000 0.950000
v 1.050000 1.000000 0.950000
v 0.950000 0.000000 0.950000
@StillManic
StillManic / cmb2_tesseract.mtl
Created February 20, 2015 19:12
cmb2_tesseract.mtl
newmtl lambert7SG
Kd 1.00 1.00 1.00
Ka 0.00 0.00 0.00
#map_Kd forgedebugmodelloaderregistry:texture
map_Kd minecraft:blocks/cobblestone
newmtl lambert8SG
Kd 1.00 1.00 0.00
Ka 0.00 0.00 0.00
map_Kd minecraft:blocks/cobblestone
public class RCTickHandler {
public static boolean disableTrackItemAnimation = false;
public static float rollAmount = 0.0f;
public static boolean flipped = false;
private Minecraft mc = Minecraft.getMinecraft();
private Field camRoll = ReflectionHelper.findField(EntityRenderer.class, new String[] {"camRoll", "field_78495_O"});
private EntityLivingBase prevViewEntity = mc.renderViewEntity;
private EntityPassenger passenger = null;
@SubscribeEvent
public class EntityPassenger extends EntityLivingBase {
public EntityLivingBase player = this;
public static RCKeyBinding[] rcKeys;
public EntityPassenger(World world, RCKeyBinding[] rcKeys) {
super(world);
width = 0;
height = 0;
}
public final class MultiBlockManager {
private static final MultiBlockManager instance = new MultiBlockManager();
private static HashMap structMap = new HashMap();
private boolean haveStructuresBeenRegistered = false;
public static MultiBlockManager getInstance() {
return instance;
}
private MultiBlockManager() {}
public abstract class MultiBlockStructure {
private List<Block> structure = new ArrayList<Block>();
private List<Block> rotated1 = new ArrayList<Block>();
private List<Block> rotated2 = new ArrayList<Block>();
private List<Block> rotated3 = new ArrayList<Block>();
private List<Block> aliases;
private int[] aliasIndices;
private int[] aliasIndices1;
private int[] aliasIndices2;
private int[] aliasIndices3;
@StillManic
StillManic / gist:1ca20f8b530367c7ed7a
Created May 23, 2015 00:51
IMultiBlockStructure
public interface IMultiBlockStructure {
public boolean isStructureFormed(int id, TileEntity tileEntity);
public boolean checkStructure(int id, World world, int x, int y, int z, ForgeDirection direction, MultiBlockStructure structure);
public void registerStructure();
public MultiBlockStructure getStructure(int id);
}
@StillManic
StillManic / gist:3fcfc4a962e5763be440
Created May 23, 2015 00:53
MultiBlockTrackFabricator
public class MultiBlockTrackFabricator extends MultiBlockStructure {
public static MultiBlockTrackFabricator structure = new MultiBlockTrackFabricator();
@Override
public void registerStructure() {
structure.addLayer(RCBlocks.track_fabricator, "#O#", "O#O", "#F#", '#', RCBlocks.track_fabricator_casing, 'F', RCBlocks.track_fabricator, 'O', RCBlocks.track_fabricator_output);
structure.addLayer(null, "#G#", "G G", "#G#", '#', RCBlocks.track_fabricator_casing, 'G', RCBlocks.track_fabricator_glass);
structure.addLayer(null, "###", "###", "###", '#', RCBlocks.track_fabricator_casing);
structure.setStructureDimensions(3, 3, 3);
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch main
git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit --rebase main master
From https://github.com/MinecraftForge/MinecraftForge
* branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
error: The following untracked working tree files would be overwritten by checkout:
---- Minecraft Crash Report ----
// But it works on my machine.
Time: 6/14/15 12:57 PM
Description: Initializing game
java.lang.RuntimeException: No base model or submodel provided for this MultiModel.Baked.
at net.minecraftforge.client.model.MultiModel$Baked.<init>(MultiModel.java:50)
at net.minecraftforge.client.model.MultiModel.bake(MultiModel.java:196)
at net.minecraftforge.client.model.ModelLoader$WeightedPartWrapper.bake(ModelLoader.java:390)