2

In my resource pack, most of the textures are the default resolution (16x16) but two item textures are 32x32 instead. These mostly display correctly, except when held in the player's hand. Then, the higher resolution items appear too big. In the inventory/Creative menu, and when dropped on the ground, the items are all the correct size, regardless of texture resolution.

Here is an example of the double resolution item (the squid tentacle) on the ground beside two standard resolution items: items on ground all have correct sizes

And here is the player holding a 32x item (the same squid tentacle) and a 16x item (the fish): too big 32x item in hand normal 16x item in hand

Is there a way to scale down the higher resolution item's size when in the player's hand, so that it matches the other items?


This is the image I'm using for the item texture: squid tentacle item texture

And here is squid.item.json from the behavior pack:

{  
  "format_version": "1.20.30",  
  "minecraft:item": {  
        "description": {  
            "identifier": "addtns:squid",  
            "menu_category": {  
                "group": "itemGroup.name.rawFood",
                "category": "nature"
            }  
        },  
        "components": {
            "minecraft:hand_equipped": false,
            "minecraft:max_stack_size": 64,
            "minecraft:icon": {  
                "texture": "squid"  
            },  
            "minecraft:display_name": {  
                "value": "Squid"  
            },
            "minecraft:use_duration": 2,
            "minecraft:use_animation": "eat",
            "minecraft:food": {
                "nutrition": 3,
                "saturation_modifier": 0.4,
                "can_always_eat": false
            }
        }
    }
}
3
  • 1
    In MCJava, there are item models. Are you using something like that in MCBE, too? If yes, please attach it. Do other 32×32 packs work as expected? Commented Oct 2, 2023 at 7:53
  • @FabianRöling I'm not using a custom model for the item, just a .png texture and the JSON files. (I will update the question to include all relevant files and the image.) The squid is a custom item, not a retextured vanilla item. I haven't tried other 32x32 packs - the pack I'm working on is meant to be 16x16, except for the squid tentacle because the suction cups weren't distinct at that resolution. Commented Oct 2, 2023 at 20:13
  • In MCJava, models are JSON. Commented Oct 3, 2023 at 14:22

1 Answer 1

0

As is discussed in this article which was recently contributed to the Bedrock Wiki by user BlazeDrake, it is necessary to use something called an attachable along with items having texture resolutions other than 16x16 (at least for Minecraft Bedrock Edition texture packs).

Quoting from the article:

You may have noticed an issue with higher resolution items though: They end up looking larger rather than more detailed!
...
The solution to this is using an attachable to scale the item down while being held. ...[I]t will look very similar to a normal item, save for some slight differences in rotation and in how it animates when you punch with it. The main idea of what it does is that it uses an animation to scale the size of the item down to what the size should be[.]

The linked page also provides a template for the 3 required resource pack files: attachable, render controller, and animation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.