Hello my friend

This commit is contained in:
TheVitya2127 2026-07-23 16:49:55 +04:00 committed by HbmMods
parent d2098e2b83
commit fa2b0a2ca4
4 changed files with 1118 additions and 531 deletions

View File

@ -24,12 +24,16 @@ public class RenderPylon extends RenderPylonBase implements IItemRendererProvide
TileEntityPylon pylon = (TileEntityPylon)tile;
if(tile.getBlockType() == ModBlocks.red_pylon_steel)
bindTexture(ResourceManager.pylon_steel_tex);
else
if(tile.getBlockType() == ModBlocks.red_pylon)
bindTexture(ResourceManager.pylon_tex);
else
bindTexture(ResourceManager.pylon_steel_tex);
if(tile.getBlockType() == ModBlocks.red_pylon )
ResourceManager.pylon.renderPart("Pylon");
else
ResourceManager.pylon.renderPart("Pylon_steel");
ResourceManager.pylon.renderAll();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glPopMatrix();
@ -62,13 +66,15 @@ public class RenderPylon extends RenderPylonBase implements IItemRendererProvide
public void renderCommonWithStack(ItemStack stack) {
GL11.glScaled(1, 1, 1);
if(stack.getItem() == Item.getItemFromBlock(ModBlocks.red_pylon_steel))
bindTexture(ResourceManager.pylon_steel_tex);
else
if(stack.getItem() == Item.getItemFromBlock(ModBlocks.red_pylon))
bindTexture(ResourceManager.pylon_tex);
else
bindTexture(ResourceManager.pylon_steel_tex);
ResourceManager.pylon.renderAll();
GL11.glShadeModel(GL11.GL_FLAT);
if(stack.getItem() == Item.getItemFromBlock(ModBlocks.red_pylon) )
ResourceManager.pylon.renderPart("Pylon");
else
ResourceManager.pylon.renderPart("Pylon_steel");
}
};
}

View File

@ -6220,7 +6220,7 @@ tile.red_cable_paintable.desc=Right-click with a solid block to set a paint$Pain
tile.red_connector.name=Electricity Connector
tile.red_connector_super.name=Heavy Duty Electricity Connector
tile.red_pylon.name=Wooden Electricity Pylon
tile.red_pylon_steel.name=Wooden Electricity Pylon
tile.red_pylon_steel.name=Steel Electricity Pylon
tile.red_pylon_large.name=Large Electricity Pylon
tile.red_pylon_medium_steel.name=Medium Steel Electricity Pylon
tile.red_pylon_medium_steel_transformer.name=Medium Steel Electricity Pylon with Transformer

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB