Help with custom block model culling & animation not playing when facing away

Started by Panterakawaii on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with custom block model culling & animation not playing when facing away

I successfully made a boom gate model & animation as a block for use in my own personal world (not for production).

The model, block and animation work as intended, however i need help with the following:

  1. Looking at a direction where the block bound box itself is not visible (but the model still is cus the gate is large) or going too far away causes the model to disappear, most likely due to some culling optimization thing.
  2. If the model disappears, the animation of the gate opening & closing will not play until the model is rendered again (aka looking back at it or coming closer if too far)

I'd like to know if there is a way to prevent the model from culling so it can be visible from far away and/or make the animation play correctly.

Tried changing render settings in Minecraft but to no avail.

Is this a setting in Minecraft or i have to do something in the code... or it's something else... or it plain up cannot be done?

Thanks!!