sp614x / optifine

1.8k stars 418 forks source link

[Feature request] Custom menu icons #7149

Open WantedRobot opened 1 year ago

WantedRobot commented 1 year ago

been thinking would be nice to have a feature that allow a texture pack to change the creative menu icons to other blocks, items or even give them a custom texture maybe this could be done by creating an icons.properties and in that would have the list of icons

image image

example icons.properties

###############################################################################
# Sample configuration for OptiFine's Custom menu icons feature.
###############################################################################
# icon.properties
###############################################################################
# This file is offered without any copyright restrictions. 
# Please copy and modify it to suit your needs.
#
# Location: "/assets/minecraft/optifine/icon.properties"
#
# Creative menu icons
#
Building Blocks=brick
Natural Blocks=grass block
Functional Blocks=oak sign
Redstone= redstone
Saved Toolbars=bookshelf
Search=compass
Tools=diamond pickaxe
Combat=netherite sword
Consumables=golden apple
Crafting=iron ingot
Spawn Eggs=pig spawn egg
Inventory=chest
#
# Recipe book icons
#
compass=compass
iron axe=iron axe
gold sword=gold sword
brick=brick
lava bucket=lava bucket
apple=apple
redstone=redstone
ZenithRogue commented 1 year ago

instead of items, it would be nice to define the path to the model IE block/model.json