Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.11] How do i change the texture size for my mob?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Triphion

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

By Triphion, October 7, 2017 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Triphion    0

Triphion

Triphion    0

  • Creeper Killer
  • Triphion
  • Members
  • 0
  • 110 posts
Posted October 7, 2017 (edited)

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 October 7, 2017 by Triphion
  • Quote

Share this post


Link to post
Share on other sites

Dustpuppy    1

Dustpuppy

Dustpuppy    1

  • Creeper Killer
  • Dustpuppy
  • Members
  • 1
  • 120 posts
Posted October 7, 2017
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.

 

  • Quote

Share this post


Link to post
Share on other sites

Triphion    0

Triphion

Triphion    0

  • Creeper Killer
  • Triphion
  • Members
  • 0
  • 110 posts
Posted October 7, 2017 (edited)

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 October 7, 2017 by Triphion
  • Quote

Share this post


Link to post
Share on other sites

Triphion    0

Triphion

Triphion    0

  • Creeper Killer
  • Triphion
  • Members
  • 0
  • 110 posts
Posted October 7, 2017

Bump

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Liffy
      Minecraft modded server

      By Liffy · Posted 9 minutes ago

      i can see the mods in the debug menu  
    • Liffy
      Minecraft modded server

      By Liffy · Posted 10 minutes ago

      i've been trying to post images but it isnt letting me
    • uraketu
      Minecraft Server Crashing

      By uraketu · Posted 13 minutes ago

      What that means? That's the full log i think
    • Maekuno
      Problem with my modded forge server

      By Maekuno · Posted 14 minutes ago

      Okay so here is the thing, I need help with my forge server. I installed the 1.16.5 forge version to make a private modded minecraft server with me and my friends. I installed a few mods that work perfectly fine but they don't make any big changements (itemphysics, bettersound...). I also have 3/4 others bigs mods that add a lot like (oh the biome you'll go, I like wood, spartan weaponry...) , they work great on my solo games but not on my server. When I put my self in creative I see the items, I can pick them, but not crafting them. Why ? I don't understand. I placed them in the mods folder and all but it simply don't work. I really need help.
    • diesieben07
      Minecraft Server Crashing

      By diesieben07 · Posted 18 minutes ago

      The log does not seem complete.
  • Topics

    • Liffy
      3
      Minecraft modded server

      By Liffy
      Started 58 minutes ago

    • uraketu
      2
      Minecraft Server Crashing

      By uraketu
      Started 29 minutes ago

    • Maekuno
      0
      Problem with my modded forge server

      By Maekuno
      Started 14 minutes ago

    • nicktom
      1
      mod crash

      By nicktom
      Started 37 minutes ago

    • matthyit
      10
      my 1.16.5 modded game crashes after a while of playing

      By matthyit
      Started 6 hours ago

  • Who's Online (See full list)

    • usedneedlez
    • uraketu
    • Axonos
    • Yuqera
    • Godis_apan
    • Maekuno
    • Liffy
    • Sepinula
    • <Gl33p_0r4nge>
    • diesieben07
    • lIxenaIl
    • Slimerr
    • Leronus
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.11] How do i change the texture size for my mob?
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community