Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

 

  • Author

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.