Jump to content

Recommended Posts

Posted

Hello everyone, I am doing a mod involving a panel block class. This block has multiple blockstateproperties

@Override
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {
    builder.add(
            BlockStateProperties.HORIZONTAL_FACING,
            GridSupport.ROTATED,
            GRID,
            NORTH_EAST,
            NORTH_WEST,
            SOUTH_EAST,
            SOUTH_WEST,
            BlockStateProperties.NORTH,
            BlockStateProperties.SOUTH,
            BlockStateProperties.WEST,
            BlockStateProperties.EAST
    );
}

I decided to add a new properties scale that do not change rendering of block. this property is a integer property that allow 4 values : 0,1,2,3 each for modifying pixel length when modifying panel image. Before doing it, minecraft was launching normally but after that it is not working at all and minecraft stop launching after this line :

[18:43:11] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 512x512 textures-atlas

I don't know if there is any reason why it is suddenly lagging. Here is the commit of my code before adding scale with all others features implying it : https://github.com/matt1999rd/SignMod

Posted (edited)

what do you mean by pre-computed ? is a tab with model for each possibilities created when using multipart ? for my mod I deleted the attributes.

Another strange bug happened with lag in loading in minecraft : when I add .doesnotblockmovement to my blocks it is loading really slowly.

Edited by matt1999rd
no problem at all : two textures

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



×
×
  • Create New...

Important Information

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