No items with 32x32 textures?

Started by walix.force@gm… on

Topic category: Help with modding (Java Edition)

Last seen on 10:50, 3. Dec 2017
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No items with 32x32 textures?

Hello!

 

I just wanted to make an item with a 32x32 texture.

That means it would be BIGGER in hands, not the texture smaller.

How can I do that? Whenever I import texture it just make it small and done, ,,you suck" - MCreator

I would make a nice sword that's bigger than others, like in the LotR mod, or Custom NPCs.

[I use Mcreator 1.7.2 for 1.7.10]

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First of all there is not any
Tue, 06/27/2017 - 13:18

First of all there is not any reason to create 2 same topics within so short time. 
Next , there are two different things - the texture and the mesh (the model). In case that you do not use a custom model , the game generates one from the texture , however this generic model has some specific default size. If you change size of the texture , it just changes the resolution of the texture on the mesh . not size of the mesh. For 1.8+ it is easy to chaneg the mesh size inside its .json file.
For older versions you need create a class that extends IItemRenderer and register it using MinecraftForgeClient.registerItemRenderer(YOUR_ITEM, INSTANCE_OF_YOUR_CLASS);
So for example: using MinecraftForgeClient.registerItemRenderer(mcreator_crossbow.block, CrossbowRenderer);

In the render function of the renderer just use GL11.glScalef(scale,scale,scale) for changing the scale , for example something like this:

public class CrossbowRenderer implements IItemRenderer {
    
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
return type == ItemRenderType.EQUIPPED || type == ItemRenderType.EQUIPPED_FIRST_PERSON;
}

@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
switch (type) {
case EQUIPPED_FIRST_PERSON:
     renderEquippedItem(item, (EntityLivingBase) data[1], true,type);
     break;
case EQUIPPED:
     renderEquippedItem(item, (EntityLivingBase) data[1], false,type);
     break;
default:
}
}

private void renderEquippedItem(ItemStack stack, EntityLivingBase entity, boolean firstPerson) {
GL11.glPushMatrix();
GL11.glScalef(2f,2f,2f);
RenderManager.instance.itemRenderer.renderItem(entity,stack,0,type);
GL11.glPopMatrix();
}

}

Last seen on 10:50, 3. Dec 2017
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:First of all there is not any
Wed, 06/28/2017 - 13:26

@#2 And what if I want to use 2 different items? One for the texture, when it's in tab, inventory etc, and one that is in my hand?

Last seen on 10:50, 3. Dec 2017
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@#2 Sorry, I pasted my name,
Wed, 06/28/2017 - 13:27

@#2 Sorry, I pasted my name, not yours in the reply

Last seen on 15:31, 19. Mar 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know if you know…
Mon, 10/23/2023 - 21:44

I don't know if you know this, but you put your email address as your username.