Jump to content

Assaru

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Assaru

  1. Did you read my reply? I said I used gradlew build. Whatever thank you for helping me (I feel sort of stupid right now).
  2. Hi everybody! I have now finished my European cities mod , so i tried exporting it. I used gradlew build, and it said "build successful". All of that went as expected. The problem showed up when I started up my normal minecraft client (with forge and my mod). None of the textures showed up. I googled the problem and everything said something like "make sure you don't have any capitalisation errors". I double checked my code like a 100 times, but that didn't fix the problem. Then I got the idea to check what's inside the .jar and if it is the path in the .jar file that's wrong. I opened the .jar and found that my assets folder was missing. only the main package with the code was in the .jar. I then manually tried copying the assets folder from the src/main/java folder and put it in the .jar, but then when I tried to start minecraft it said that it couldn't find the main class. Screenshot of whats inside the .jar (right after exporting) (I don't know why its says its from the 80's)
  3. I also started thinking of making a custom render class and so on, but that would be really hard with rotation. I may try it later though.
  4. Nobody??
  5. What I found working for myself was to write "setupDevWorkspace eclipse"
  6. Hi! I am trying to make a streetcar track as a part of my European cities mod (basically the track is a whole block instead of on top of another block). I have tried a LOT of stuff and finally succesfully changed the collision box BUT, It still doesn't render correctly. I use the code I usually use for multi-textured blocks. The issue is just that the game STILL thinks it is a normal track. (I have changed the renderType to zero). The reason I have set isOpaqueCube() and renderAsNormalBlock() false is because otherwise it looks even more messed up. I guess I will just change that back if I get this working. public class Test extends BlockRailBase { @SideOnly(Side.CLIENT) private Icon theIcon; @SideOnly(Side.CLIENT) private int renderType = 0; @SideOnly(Side.CLIENT) public static Icon topIcon; @SideOnly(Side.CLIENT) public static Icon bottomIcon; @SideOnly(Side.CLIENT) public static Icon sideIcon; @Override @SideOnly(Side.CLIENT) public void setRenderType(int value) { setRenderType(0); } public boolean isBlockSolid() { return true; } @Override public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { int l = par1IBlockAccess.getBlockMetadata(1, 1, 1); if (l >= 2 && l <= 5) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } } protected Test(int par1) { super(3512, false); setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } public Icon getIcon(int par1, int par2) { if(par1 == 0) { return bottomIcon; } else if(par1 == 1) { return topIcon; } else { return sideIcon; } } public void registerIcons(IconRegister par1IconRegister) { super.registerIcons(par1IconRegister); this.theIcon = par1IconRegister.registerIcon(this.getTextureName() + "curve"); topIcon = par1IconRegister.registerIcon(Path); bottomIcon = par1IconRegister.registerIcon(Path); sideIcon = par1IconRegister.registerIcon(Path); } protected void func_94358_a(World par1World, int par2, int par3, int par4, int par5, int par6, int par7) { if (par7 > 0 && Block.blocksList[par7].canProvidePower() && (new BlockBaseRailLogic(this, par1World, par2, par3, par4)).getNumberOfAdjacentTracks() == 3) { this.refreshTrackShape(par1World, par2, par3, par4, false); } } public float getRailMaxSpeed(World world, EntityMinecart cart, int y, int x, int z) { return 0.4f; } @Override public boolean isOpaqueCube() { return false; } @Override public boolean renderAsNormalBlock() { return false; } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.