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

    • BobbyLikesCake
      1.16.4 (Heavily decent modded with around 150ish mods) Crash with exit code -1 most of the time and sometimes exit code 0.

      By BobbyLikesCake · Posted 1 minute ago

      Ok, The debug log is here:  https://pastebin.aquilenet.fr/?b2c84859c3c0ad45#26FCvr6VHB8TKL24Ux83N7G1k1eCNAHhQJNaTuAYKLyB
    • diesieben07
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By diesieben07 · Posted 11 minutes ago

      In 1.16 Forge has SeparatePerspectiveModel, which you can trivally port to 1.15.
    • metword
      [1.16.4] Config file will not update.

      By metword · Posted 11 minutes ago

      Thank you all so much. Loading the config was my problem. I think it is all in order now!
    • diesieben07
      [1.16.4] How i can open a container by clicking on my mob

      By diesieben07 · Posted 12 minutes ago

      Make a new class. An anonymous inner class is usually the most sensible choice here.
    • diesieben07
      [1.16.4] Forge server *.jar file not showing console window

      By diesieben07 · Posted 13 minutes ago

      Some zip managers like to take control of the .jar file extension away from Java. Make sure you have Java installed and try running Jarfix once, then try the installer again.
  • Topics

    • BobbyLikesCake
      2
      1.16.4 (Heavily decent modded with around 150ish mods) Crash with exit code -1 most of the time and sometimes exit code 0.

      By BobbyLikesCake
      Started 1 hour ago

    • Woodside
      1
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside
      Started 49 minutes ago

    • metword
      17
      [1.16.4] Config file will not update.

      By metword
      Started Wednesday at 04:20 PM

    • Klarks
      15
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started 23 hours ago

    • iiDk_lol
      4
      [1.16.4] Forge server *.jar file not showing console window

      By iiDk_lol
      Started 2 hours ago

  • Who's Online (See full list)

    • Witherking25
    • MadSkillMaster
    • Woodside
    • Danebi
    • Draco18s
    • Squidsword
    • BobbyLikesCake
    • diesieben07
    • Moonik
    • YOMAMAISCOOL
    • Alexkr
    • Klarks
    • EnergizedAB
    • Forix
    • Jason_Whittaker
    • kxroshii_
    • triplesticks09
    • Edrax
  • 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