ItemSwapper

ItemSwapper

636k Downloads

Customize smart slots

dairymoose opened this issue ยท 1 comments

commented

Is your feature request related to a problem?

When using the ItemSwapper hotkey on a pickaxe, it shows vanilla tools such as the pickaxe itself, shovel, hoe, etc. This works great. However, my mod adds a chainsaw which is basically an axe tool. While supporting every mod is obviously not do-able, my hope was that the mod had a feature to define custom sets in the form of a datapack or json config type file.

Describe the solution you'd like

I was hoping to have something like a config file, like minecraft__diamond_pickaxe.json (just an example), that has a format like:
"target": "minecraft:diamond_pickaxe",
"append": "true",
"item_list": ["modernlife:chainsaw"]

This would then show my normal inventory, the pickaxe, the shovel, but now also showing the chainsaw in the list. It would be OK if this didn't work in reverse - i.e., choosing chainsaw and hitting ItemSwapper would not show the pickaxe/etc. But then I could make a new file or configset with target="modernlife:chainsaw" to manually correct this.


Also, unrelated to the above, I was hoping for a way to sort the item list that pops up alphabetically, such that if I have a pickaxe, shovel, and hoe, the list would popup with these 3 items but it would always be in the order Hoe, Pickaxe, Shovel irrespective of which item I have selected.

Describe alternatives you've considered

No response

Additional context

No response

commented

The items and orders are all controlled by the resource pack. Check the documentation for how to modify/overwrite the built-in palettes and lists https://github.com/tr7zw/ItemSwapper/blob/main/docs/1.%20Resource%20Pack%20Overview.md . For reference, the built-in one can be found here: https://github.com/tr7zw/ItemSwapper/tree/main/src/main/resources/resourcepacks/default .