Paint's Anti-Clutter is a datapack that declutters your inventory.
If you have the raw items (such as raw iron or redstone) that can be made into a product, then it will be crafted automatically.
As long as:

1. You have enough raw item to make the block (usually 9 but sometimes 4).
2. You have an inventory slot with at least 1, but fewer than 64, of the product that will be autocrafted
(Meaning you have to manually craft or otherwise obtain the first one).

You autocraft one product every second, with priority given to the items at the top of the following list.

The autocraftings that this datapack supports:

1 . bamboo -> bamboo_block
2 . wheat -> hay_block
3 . melon_slice -> melon
4 . clay_ball -> clay *
5 . snowball -> snow_block *
6 . brick -> bricks *
7 . nether_brick -> nether_bricks *
8 . coal -> coal_block
9 . bone_meal -> bone_block
10 . slime_ball -> slime_block
11. raw_copper -> raw_copper_block
12. copper_ingot -> copper_block
13. iron_nugget -> iron_ingot
14. raw_iron -> raw_iron_block
15. iron_ingot -> iron_block
16. gold_nugget -> gold_ingot
17. raw_gold -> raw_gold_block
18. gold_ingot -> gold_block
19. lapis_lazuli -> lapis_block
20. redstone -> redstone_block
21. quartz -> quartz_block *
22. glowstone_dust -> glowstone
23. emerald -> emerald_block
24. diamond -> diamond_block
25. netherite_ingot -> netherite_block
26. ice -> packed_ice *
27. packed_ice -> blue_ice *

* Careful with these ones, they cannot be crafted back into their raw form.

Gamerules:
* Use /function paint:pac/gamerules to toggle gamerules. Everyone has their own gamerules do toggling yours will not effect another player.
	* Can stop the actionbar from telling you what you just autocrafted.
	* Can prevent the sound from occuring.
	* Can prevent the autocrafting into blocks that cannot be crafted back into their raw items.
	* All autocrafting

Known issue:
* If you have multiple slots that hold the block you're autocrafting, and one of them becomes a full stack of 64,
 you will have to click & unclick on the other stack in your inventory that is not yet full for
 the datapack to recognize that slot as a potential slot for filling.
 
 u/PaintTheFuture on Reddit
 
 PaintTheFuture on PlanetMinecraft & Curseforge