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

Allow extra chests in exchange for unused dispensers. #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gosella
Copy link

@gosella gosella commented Jan 16, 2017

This patch allows to automatically extend the upper limit for chests and trapped chests, adding one extra chest for every three dispensers not used (but allowed) on the craft.

No other block limit is changed (including the craft size) and it won't affect any of the current crafts (but allows to manually remove dispensers and replace them with chests).

Additionally, the detection process now gives more information when a fly block limit is not met (not only percentages but also block counts and craft size). It also reports all the violations found (not only the first one). Examples:

Not enough flyblock: redstone block -> 9 < 10 (1,00% of 1000)

or

Too much flyblock: chest -> 31 > 29 (3,00% of 999) + 1 extra (in exchange for 3 dispensers)
Not enough flyblock: redstone block -> 8 < 9 (1,00% of 999)

This feature is controlled by the config entry ExchangeDispensersForChests which is false by default (for backward compatibility).

This patch allows to automatically extend the upper limit for chests and trapped chests, adding one extra chest for every three dispensers not used (but allowed) on the craft.

No other block limit is changed (including the craft size) and it won't affect any of the current crafts (but allows to manually remove dispensers and replace them with chests).

Additionally, the detection process now gives more information when a fly block limit is not met (not only percentages but also block counts and craft size). It also reports all the violations found (not only the first one). Examples:

    Not enough flyblock: redstone block -> 9 < 10 (1,00% of 1000)

or

    Too much flyblock: chest -> 31 > 29 (3,00% of 999) + 1 extra (in exchange for 3 dispensers)
    Not enough flyblock: redstone block -> 8 < 9 (1,00% of 999)

This feature is controlled by the config entry `ExchangeDispensersForChests` which is `false` by default (for backward compatibility).
@TheRedCrafter344
Copy link

damn that's good

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.

2 participants