Skip to content

Commit

Permalink
alpha 0.2.6 release changes
Browse files Browse the repository at this point in the history
- Added the raw models for the rails.
- Reworked the VAT Log Car and it's texture.
- Fixed a positional bug with the grouped model render.
- Fixed the missing link in the mod info.
- Changed the version number in the main file.
  • Loading branch information
EternalBlueFlame committed Jun 15, 2017
1 parent 688d996 commit fb50e24
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 164 deletions.
Binary file modified rawmodels/VATLogCar.mtb
Binary file not shown.
Binary file added rawmodels/Van_curve.mtb
Binary file not shown.
Binary file added rawmodels/Van_straight.mtb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/ebf/tim/TrainsInMotion.java
Expand Up @@ -44,7 +44,7 @@ public class TrainsInMotion {
/**the ID of the mod and the version displayed in game, as well as used for version check in the version.txt file*/
public static final String MODID = "tim";
/**the version identifier of the mod*/
public static final String MOD_VERSION="0.2.5.0 alpha";
public static final String MOD_VERSION="0.2.6.0 alpha";
/**an instance of the mod*/
@Mod.Instance(MODID)
public static TrainsInMotion instance;
Expand Down
Expand Up @@ -41,7 +41,7 @@ public EntityVATLogCar(World world){
* <h2>Bogie Offset</h2>
*/
@Override
public List<Double> getRenderBogieOffsets(){return Arrays.asList(-0.9, 0.9);}
public List<Double> getRenderBogieOffsets(){return Arrays.asList(-1.3, 1.3);}
/**
* <h2>Inventory Size</h2>
*/
Expand All @@ -61,7 +61,7 @@ public EntityVATLogCar(World world){
* <h2>Hitbox offsets</h2>
*/
@Override
public double[] getHitboxPositions(){return new double[]{-1.25d,0d,1.25d};}
public double[] getHitboxPositions(){return new double[]{-1.5d,0,1.5d};}
/**
* <h2>Lamp offset</h2>
*/
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/ebf/tim/models/GroupedModelRender.java
Expand Up @@ -113,12 +113,12 @@ public void doRender(RenderBlocks field_147909_c, ItemStack blockStack, RenderEn
GL11.glPushMatrix();
//define position from model
GL11.glTranslated(((block.offsetX + block.rotationPointX) / 16),
((block.offsetY + block.rotationPointY) / 16),
((block.offsetZ + block.rotationPointZ) / 16));
((block.offsetY + block.rotationPointY) / 16) -0.06,
((block.offsetZ + block.rotationPointZ) / 16) +0.06);
//define the rotation from the model
GL11.glRotated(block.rotateAngleX * RailUtility.degreesD, 1, 0, 0);
GL11.glRotated(block.rotateAngleY * RailUtility.degreesD, 0, 1, 0);
GL11.glRotated(block.rotateAngleZ * RailUtility.degreesD, 0, 0, 1);
GL11.glRotated((block.rotateAngleZ * RailUtility.degreesD)+90, 0, 0, 1);
//define scale based on the model
GL11.glScaled(block.xScale - 0.0175, block.yScale - 0.0175, block.zScale - 0.0175);
//now actually render the block.
Expand Down
Expand Up @@ -12,8 +12,8 @@
package ebf.tim.models.rollingstock;

import ebf.tim.models.StaticModelAnimator;
import ebf.tim.models.tmt.ModelRendererTurbo;
import ebf.tim.models.tmt.ModelBase;
import ebf.tim.models.tmt.ModelRendererTurbo;
import net.minecraft.entity.Entity;

public class PullmansPalace extends ModelBase
Expand Down
250 changes: 94 additions & 156 deletions src/main/java/ebf/tim/models/rollingstock/VATLogCar.java

Large diffs are not rendered by default.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Expand Up @@ -6,7 +6,7 @@
"version": "${version}",
"mcversion": "${mcversion}",
"url": "https://github.com/EternalBlueFlame/Trains-In-Motion",
"updateUrl": "",
"updateUrl": "https://github.com/EternalBlueFlame/Trains-In-Motion/releases",
"authorList": ["Eternal Blue Flame"],
"credits": "Eternal Blue Flame",
"logoFile": "",
Expand Down

0 comments on commit fb50e24

Please sign in to comment.