Jump to content

Recommended Posts

Posted

Hey there,

 

Just a word beforehand: I'm new to modding and I have a Server up for a few years running a giant city map with several mods (List see below), which is why I can't upgrade easily everything to MC 1.8 or higher because many Mods we use are discontinued or totally rewritten, so our years long hard work would be lost!

 

My Problem is, that I have some Light Bugs which only effect some TileEntities of three mods (including my own).

The Bug occurs only while looking at the TE from a certain perspective:

 

Light Bug

 

  Reveal hidden contents

 

 

No Light Bug

 

  Reveal hidden contents

 

 

I already searched the web and the Forums and I already know how the Lighting system of Minecraft works, but still can't fix it.

My TE Rendering Code looks like this so far:

 

@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y,
		double z, float f) {



	GL11.glPushMatrix();
		GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
		GL11.glRotatef(180, 0F, 0F, 1F);
		this.bindTexture(texture);

		TileEntitySchildAutobahn tile = (TileEntitySchildAutobahn) tileentity;
		int direction = tile.direction;
		GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);


		this.model.renderModel(0.0625f);


	GL11.glPopMatrix();
}

//Set the lighting stuff, so it changes it's brightness properly.       
    private void adjustLightFixture(World world, int i, int j, int k, Block block) {
        Tessellator tess = Tessellator.instance;
        float brightness = block.getBlockBrightness(world, i, j, k);
        int skyLight = world.getLightBrightnessForSkyBlocks(i, j, k, 0);
        int modulousModifier = skyLight % 65536;
        int divModifier = skyLight / 65536;
        tess.setColorOpaque_F(brightness, brightness, brightness);
        OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) modulousModifier, divModifier);

    }

 

So as you can see, I already tried that common Light Fix Stuff, but it doesn't fix my issue at all.

Any ideas?

 

BTW the modlist:

 

  Reveal hidden contents

 

 

I really someone might help me, even the MC Version is way outdated. I'm getting crazy on this issue -.-

Posted

1.6.4 is no longer supported by Forge. Update to 1.10.2.

 

You can't stay on old versions forever. You have to update someday.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Title: Why Is It So Hard to Rename and Restructure Mods Like Xray or AntiXray? 🤔 Post text: Hey everyone! I’ve been digging into Minecraft modding for a while and have one big question that I can’t figure out on my own. Maybe someone with more experience could help or give me some advice. Here’s the issue: When I take a “normal” Minecraft mod — for example, one that just adds some blocks or new items — I can easily change its structure, package names, or even rebrand it entirely. It’s straightforward. But as soon as I try this with cheat-type mods like XrayMod or AntiXray, everything falls apart. Even if I just rename the classes, refactor the packages, or hide its identity somehow, the mod either breaks or stops working properly. XrayMod in particular is proving to be a nightmare to modify without losing its core function. So my question is — why is this so much harder with cheat mods like Xray? Is there something fundamentally different about how they’re coded, loaded, or protected that prevents simple renaming or restructuring? And if so, how can I actually learn to understand someone else’s cheat mod enough to safely refactor it without breaking the core features? I’ve already been spending over two months trying to figure this out and haven’t gotten anywhere. It feels like there must be some trick or knowledge I’m missing. Would really appreciate any thoughts, tips, or references — maybe there are guides or techniques for understanding cheat-mod internals? Or if you’ve successfully “disguised” a cheat mod like Xray before, I’d love to hear how you did it. Thanks in advance for any help or discussion. ✌️
    • just started making cinamatic contect check it out on my channel or check out my facebook page    Humbug City Minecraft Youtube https://www.youtube.com/watch?v=v2N6OveKwno https://www.facebook.com/profile.php?id=61575866982337  
    • Where did you get the schematic? Source/Link? And do use an own modpack or a pre-configured from curseforge? If yes, which one On a later time, I can make some tests on my own - but I need the schematic and the modpack name
  • Topics

×
×
  • Create New...

Important Information

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