Currently, you can only provide a namespaced key to the new 24w36a component minecraft:tooltip_style which will then be converted into the texture path tooltip/{path}_background for the background and tooltip/{path}_frame for the frame.
If it used a resource location instead of namespaced key (similar to how the advancement screen background works), we would be able to use any texture from the game as a tooltip background, without the need for any resource packs.
This would be a game-changer and allow for amazing item customization while still being vanilla and requiring no resource packs.
For example:
/give @a dirt[minecraft:tooltip_style={frame:'minecraft:textures/block/glowstone',background:'minecraft:textures/block/nether_portal'}]
Would give a dirt block with a cool nether portal tiled tooltip and a glowstone outline.
The way it is currently, there is no way to do this unless you load a resource pack, copy the nether portal and glowstone textures to tooltip/texturename_background and tooltip/texturename_frame and give yourself an item like this:
/give @a dirt[minecraft:tooltip_style='custom:texturename'] 1
Please sign in to leave a comment.
0 Comments