Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

Yesterday I tried to make a tank block, just like Thaumcraft and Buildcraft, but while coding I hit a roadblock. Had to use the Water Texture FX (ID: 205 from the "/terrain.png") and also Textures from my one sprite, I there any way to make this happen? and if so how, I would really appreciate it.

  :)

Yes typically, unless you do a custom renderer, the simplest solution is to write a TextureFX that will copy a texture from one sprite sheet to another.

It's fairly easy to do, just need to look into it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

I do use a custom renderer for my block but the renderer still uses my one Sprite, Can you please help me making my one TextureFX, I would really appreciate it  :):

 

package mtm.src.render;

 

import net.minecraft.src.Block;

import net.minecraft.src.IBlockAccess;

import net.minecraft.src.RenderBlocks;

import net.minecraft.src.Tessellator;

import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;

import cpw.mods.fml.client.registry.RenderingRegistry;

 

public class MTMTankRenderer implements ISimpleBlockRenderingHandler

{

public static final int MTMTankRenderID = RenderingRegistry.getNextAvailableRenderId();

 

@Override

public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)

{

}

 

@Override

public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int renderType, RenderBlocks renderBlock)

{

Tessellator tessellator = Tessellator.instance;

 

if(renderType == MTMTankRenderID)

{

float metaData = world.getBlockMetadata(x, y, z);

float fluidHeight = (metaData / 4) + (y - 1);

 

//renderBlock.clearOverrideBlockTexture();

//renderBlock.renderStandardBlock(block, x, y, z);

 

//Water

renderBlock.renderBottomFace(block, x, fluidHeight, z, Block.waterStill.blockIndexInTexture);

renderBlock.renderTopFace(block, x, fluidHeight, z, Block.waterStill.blockIndexInTexture);

renderBlock.renderEastFace(block, x, fluidHeight, z + 0.06F, Block.waterStill.blockIndexInTexture);

renderBlock.renderWestFace(block, x, fluidHeight, z - 0.06F, Block.waterStill.blockIndexInTexture);

renderBlock.renderNorthFace(block, x + 0.06F, fluidHeight, z, Block.waterStill.blockIndexInTexture);

renderBlock.renderSouthFace(block, x - 0.06F, fluidHeight, z, Block.waterStill.blockIndexInTexture);

 

renderBlock.renderBottomFace(block, x, y, z, block.getBlockTextureFromSide(0));

renderBlock.renderTopFace(block, x, y, z, block.getBlockTextureFromSide(1));

renderBlock.renderEastFace(block, x, y, z, block.getBlockTextureFromSide(2));

renderBlock.renderWestFace(block, x, y, z, block.getBlockTextureFromSide(3));

renderBlock.renderNorthFace(block, x, y, z, block.getBlockTextureFromSide(4));

renderBlock.renderSouthFace(block, x, y, z, block.getBlockTextureFromSide(5 ));

}

 

return true;

}

 

@Override

public boolean shouldRender3DInInventory()

{

return false;

}

 

@Override

public int getRenderId()

{

return MTMTankRenderID;

}

}

 

 

switch your textures

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author
:-[ I'm so sorry that I keep bothering you but how do you mean,
switch your textures
and how can you create your one TextureFX's. I have searched the whole forum for this but I keep finding, use ModLoader, use Optifine, use Forge, use MCPather etz. I would really like a clear explaination from somebody. I would reallry like that.  :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.