Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add magnet filters #2769

Open
wants to merge 3 commits into
base: 1.20.1
Choose a base branch
from

Conversation

omergunr100
Copy link
Contributor

What

Adds the ability to set a normal/tag filter in every magnet.

Implementation Details

Doesn't support smart filters because the player isn't an Electrolyzer/Centrifuge/Sifter.

Stores a filter tag in the magnets NBT tag and read/write to it using the existing filter methods via a mock ItemStack.
Added a filter check in the last stage before item pickup by the magnet.
Shift r-click toggles the magnet (as it used to), r-click opens the filter editor gui, there's a button at the top right to switch filter modes.

Outcome

Resolves #2418

Additional Information

Editor gui images:
image
image
image

@omergunr100 omergunr100 requested a review from a team as a code owner January 19, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow a way to control the item magnet around in-world processes.
1 participant