Jump to content

Recommended Posts

Posted (edited)

So I've made a multiblock structure (and basically followed this video: https://www.youtube.com/watch?v=GQRxeJSoUI4) and everything works fine but there are some lighting problems because the model of the controller is bigger than one block (it is 2x2 blocks):

image.png.845b4d8b99aa2b8d8c02816d4d50f29d.png

I know that you used to fix this by overriding isFullBlock and later getRenderLayer but both of these methods don't exist anymore. Using

RenderTypeLookup.setRenderLayer(block, RenderType.getCutout())

 didn't work either.

Edited by Boy132
Posted (edited)

The darkness is associated with ambient occlusion, in your block class you can modify this with:

@Override
public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) {
	return (some float);
}

I've found that small values (usually around 0.1F) reduce the dark. Alternatively in your block model json you can disable or enable occlusion with:

"ambientocclusion": true/false

 

Edited by urbanxx001
Posted
5 hours ago, urbanxx001 said:

The darkness is associated with ambient occlusion, in your block class you can modify this with:


@Override
public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) {
	return (some float);
}

I've found that small values (usually around 0.1F) reduce the dark. Alternatively in your block model json you can disable or enable occlusion with:


"ambientocclusion": true/false

 

Thank you for your answer! Sadly none of that worked for me, I tried it with 0f, 0.05f, 0.1f and 0.2f (and editing the model json) and the result were the same as before.

Posted (edited)
2 hours ago, Boy132 said:

Thank you for your answer! Sadly none of that worked for me, I tried it with 0f, 0.05f, 0.1f and 0.2f (and editing the model json) and the result were the same as before.

Ah ok I'm sorry to hear that. I dug a little and it appears if occlusion doesn't solve it, then it might be an issue with Forge's lighting engine and/or model loading, according to this issue thread. To summarize, the engine is particular about vertex ordering in the model, which means certain sides are incorrectly taking the lighting values that should be applied to other sides. The only thing I can suggest is enabling an experimental feature in Forge's config called experimentalForgeLightingPipelineEnabled.

 

Edited by urbanxx001
  • Thanks 1

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello everyone. I am trying to set up a modded Minecraft server for version 1.20.1 but am running into an issue in which the server "freezes" during startup. The logs end at a certain point during startup, and no useful error messages are provided. Does anybody have any idea what might be happening? I am using a custom modlist.   Log File: https://api.mclo.gs/1/raw/eW4Nukg (There is an error message for "Quark", but it is not causing the issue I am having)
    • Hello everyone. I am trying to set up a modded Minecraft server for version 1.20.1 but am running into an issue in which the server "freezes" during startup. The logs end at a certain point during startup, and no useful error messages are provided. Does anybody have any idea what might be happening? I am using a custom modlist.   Log File: https://api.mclo.gs/1/raw/eW4Nukg (There is an error message for "Quark", but it is not causing the issue I am having)
    • bedbuewfbyirewibuewbufbiuewfbhiewbvuiwrv
    • System Info:     - OS: CachyOS x86_64 - (Arch based)     - Kernel: Linux 6.13.0-2-cachyos     - CPU: AMD Ryzen 5 7600X (12) @ 5.45 GHz     - GPU 1: NVIDIA GeForce RTX 4070 [Discrete]     - GPU 2: AMD Raphael [Integrated] Versions:     - openjdk 23.0.2 2025-01-21     - forge-1.21.4-54.0.21-installer.jar Log:     - forge-1.21.4-54.0.21-installer.jar.log Error: net/minecraft/world/ticks/package-info.class version.json Processor failed, invalid outputs: /home/ori/Desktop/Bots/Serverbot/MC_Worlds/ForgeTest/./libraries/net/minecraft/server/1.21.4/server-1.21.4-official.jar Expected: 0c21a12f2007a8243664e81cb1c353d94ed721a1 Actual: 0cf72b1d313f7cd54003e29428c02769068f25db There was an error during installation Regardless if I am installing client or server, it throws this error. I have tried changing my java version to java 18, tried different forge installer versions. I am out of ideas.
    • https://drive.google.com/file/d/1WAmKOoSLzlAFLW9O8JyphyGUXNzTMkAd/view?usp=sharing  there is also this debug log
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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