Jump to content

Recommended Posts

Posted

Hello

 

I can spawn my entities now in verson 1.14.3.

But how can i make one of them smaller (if i try to create the model smaller, it will have not more enough texture-pixels for the face.)?

So i want to scale it, while it renders.

How does that work in this version?

Posted (edited)
	protected void preRenderCallback(EntityJungleSpider nttLizSt, float par2) 
	{
		GL11.glScalef(0.2F, 0.2F, 0.2F);
	}

I think this is what you're looking for: it goes in the render class. Obviously just change it to your entity and Whatever scale you want.

Oh, this is still working 1.13. I have no 1.14 version.

Edited by salvestrom
Clarification
  • Sad 1
Posted

Do not use GL11 directly. Use GLStateManager. For half size you want GLStateManager.scale(0.5, 0.5, 0.5)

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
9 hours ago, Drachenbauer said:

if i try to create the model smaller, it will have not more enough texture-pixels for the face

The physical size of the model is not relevant to its resolution.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted (edited)

I have this now, that works for me (in the render-class):

    @Override
    public float prepareScale(BluesEntity entitylivingbaseIn, float partialTicks)
    {
        GlStateManager.scalef(0.5F, 0.5F, 0.5F);
        return super.prepareScale(entitylivingbaseIn, partialTicks);
    }

 

17 hours ago, DavidM said:

The physical size of the model is not relevant to its resolution.

I create my entity models with blockbench and save them as java-classes.

Blockbench links the texture resolution directly to the size of the created cube, if i create an entity model.

So i must create some of them bigger to give them the right look and shrink them back down with the shown method in their renders.

Edited by Drachenbauer

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.