Jump to content

[1.11] How do i change the texture size for my mob?


Triphion

Recommended Posts

I have checked through the vanilla coding a bit, but i do not understand how i can change the texture size, i have done the 

Quote

this.body.setTextureSize

To specify how big i want the texture size to be, but no matter how high or low i put it, its always a really, really small point in the left upper corner. I have no idea why. The model and mob itself works extraordinary, but the texture doesn't change its size. 

 

Here is my render and model class (the model class is where i specified texture size and all that) - https://gist.github.com/triphion/36a928dbc1ba75c9b81589933d6ee4ba

 

(Should also point out that i used a picture with different colours to find out where the texture area was).

Edited by Triphion
Link to comment
Share on other sites

private int textureWidth = 64;
	private int textureHeight = 64;
	
	public ModelClottIce() { 
		this.body = new ModelRenderer(this, 0, 0); 
		this.body.setRotationPoint(-4F, 16F, -4F); 
		this.body.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F);
this.body.setTextureSize(32, 16);

 

Hmm...one look and the problem is found, as i can see. Think again about the first 2 lines and the last one.

 

Link to comment
Share on other sites

should they be the same? Is that what youre trying to say? Because i tried that.

Quote

    private int textureWidth = 64;
    private int textureHeight = 64;
    
    public ModelClottIce() { 
        this.body = new ModelRenderer(this, 0, 0); 
        this.body.setRotationPoint(-4F, 16F, -4F); 
        this.body.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F);
        this.body.setTextureSize(64, 64);
    }

Still the same thing. 

Edited by Triphion
Link to comment
Share on other sites

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.