Minecraft Data Packs / Game Mechanic

Items Filter - Create easy and auto sorting system!

  • check_circle Functions
  • check_circle Recipes
  • 40,113 views, 112 today
  • 6,784 downloads, 23 today
  • 173
  • 209
  • 60
KawaMood's Avatar KawaMood
Level 74 : Legendary Programmer
655
Items Filter V.3.1.0
Create easy and auto sorting system!
From Minecraft 1.20.2 to 1.20.5




Important
- Read if you were using V.2


If you want to convert existing Hopper Sorters (V.2) to Items Filters (V.3), follow the steps of the "🔧 Update from V.2" section of the Modrinth page.

What is Items Filter ?



Items Filters allow you to you to filter several types of items from a container placed above it to another container placed below it. You can choose what items the filter let pass by presetting them in an adjacent reference container.
Items Filters can also directly drop their sorted items if you there is a fluid block below them (air, water or lava).


If you used to use V.2, you may have noticed that the data pack changed its name. This is due to the fact it doesn't strictly rely on hoppers anymore: you can directly pass an item from a chest or a shulker box to another one if you want to.




Items Filter - Create easy and auto sorting system! Minecraft Data Pack
Items Filter - Create easy and auto sorting system! Minecraft Data Pack
Items Filter - Create easy and auto sorting system! Minecraft Data Pack
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

9 Update Logs

V.3.1.0 - 26 April 2024 : by KawaMood 04/26/2024 12:45:33 pmApr 26th

Changes:
- ⚠️ Updated all features to match the new 1.20.5 syntaxes and references. Do not install it on 1.20.4 or less, as it would break the data pack's functioning.
- Thanks to new features of 1.20.5, items filters are now visible in the recipes book, and the output is no longer a knowledge book, but directly the expected item.
- Completely reworked the filtering process.
- Items filters items will automatically update when you get them in your inventory.

⚠️ You will also need to set again your ignored components for the strict mode if you used some.
LOAD MORE LOGS

Create an account or sign in to comment.

1
04/26/2024 10:43 am
Level 1 : New Miner
FlyFur
FlyFur's Avatar
Is there a way to change the number of items transferred/outputted by the items filter at one time?
1
04/26/2024 12:46 pm
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Nope, it always transfer items one by one, like regular hoppers. But you can change its tick rate (up to 1 per item per tick).
1
03/11/2024 10:18 am
Level 68 : High Grandmaster Engineer
UltroGhast
UltroGhast's Avatar
Very good dp man. Probably going to use it in my historical survival world.

Anyway, quoting your words, "Command blocks are actually used by this data pack to construct commands with dynamic arguments that can't be interpreted within a function.". I'm a bit obsolete in datapacking, but shouldn't you use macros for that?
1
03/11/2024 11:20 am
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Yes, and that's also why a V.3 is going to be released very soon (maybe even tomorrow).

You came at the perfect time for it. I don't recommend to use V.2 for the moment of course.
1
03/11/2024 2:36 pm
Level 68 : High Grandmaster Engineer
UltroGhast
UltroGhast's Avatar
Oooh nice. I'll wait for it.

Also, wanted to ask, are you using any tool like Beet, Bolt or anything or writing directly in .mcfunction without any help?



Cause I wanted to update some olds datapacks and were thinking about using some of these new tools but only get confused with it. I do not actually know how much those are used so here to ask to someone who looks good in datapacking.
1
03/13/2024 1:16 pm
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
V.3 is now available
1
03/11/2024 6:09 pm
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Nope, I don't use any dev kit or libs like Beet or so.
If you're not comfortable with data packs yet and want to upgrade data packs, there is an automatic upgrader on Misode's website: https://misode.github.io/upgrader/
1
01/15/2024 4:29 pm
Level 1 : New Miner
Stivola
Stivola's Avatar
Hello kawa, i've build a storage system with your datapack and I faced a problem... When the hopper below the filter is full, the itens that are supposed to just continue the main flow are getting ejected out of the system, this causes a lot of lag and it doesn't make sense. That's it, thank you!
1
01/15/2024 6:23 pmhistory
Level 74 : Legendary Programmer
KawaMood
KawaMood's Avatar
Yeah, as explained in the thread this is an intended behavior for the moment. Unfortunately with commands, it would be too heavy to check if a slot in the container is able to accept a specific set of items, so if the hopper doesn't manage to pass them after some ticks, it simply eject them from the side.
This is a constraint you can play with. For example with automatic farms, most of people take benefits of that behavior to delete their extra items, making them drop in cacti or in lava.
But I would like to find a way to avoid that in the future, if I find a light enough way to do it.
1
01/04/2024 9:26 pmhistory
Level 1 : New Crafter
CamronJK
CamronJK's Avatar
In the event that the item sorter is full, and ejects the item, would it be possible to automatically make it eject out the opposite side from the chest (i.e. chest front, sorter middle, eject rear) it's checking for what to sort? Would allow for a disposal system to be set up, or even just a lava source.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome