Jump to content

How to add custom icons: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:


To initialize the process, run this once:
To initialize the process, run this once:
* /scriptevent leaf:leaficon:add_icon_pack {"ns":"custom_icons","name":"My custom icon pack!","version":1}
* /scriptevent leaficon:add_icon_pack {"ns":"custom_icons","name":"My custom icon pack!","version":1}


remember to replace ns and name!!!!!
remember to replace ns and name!!!!!
Line 37: Line 37:
=== Adding icons ===
=== Adding icons ===


* /scriptevent leaficon:add_icon_to_pack {"["pack":"your_namespace","name":"my_icon","texture_path":"textures/custom_icons/icon"}
* /scriptevent leaficon:add_icon_to_pack {"pack":"your_namespace","name":"my_icon","texture_path":"textures/custom_icons/icon"}


=== Registering the icon pack into leaf ===
=== Registering the icon pack into leaf ===