Download Enhanced Comparator — Minecraft Mods — MetaMods

Enhanced Comparator

Active

Downloads

0

Last update

11 years ago
Client
Technological

Enhanced Comparator Mod

What does this mod do?

This modification fixes a common issue - many developers (including myself) forget to add comparator support for their blocks. Now this problem can be solved once and for all.

Core functionality

If a block already has built-in comparator support, it will work as in the standard game version. However, if the block is a container with inventory, the mod automatically detects its contents and generates the corresponding redstone signal level, similar to a regular comparator.

Special features

Unique logic is implemented for some blocks - for example, for the anvil and note block. The system is built in a modular way, allowing easy addition of special comparator support for any blocks where standard inventory content counting is not the optimal solution. Developers can also use a special API to extend functionality.

Possible issues and solutions

Sometimes players encounter situations where the redstone signal doesn't update after changing inventory contents. This happens because the container doesn't call the markDirty() method when its contents change. In this case, it's recommended to politely report the error to the container block developer.

Difficulties may also arise with remote inventories (such as transvector interfaces, remote I/O, etc.), since updates occur at the original block rather than at the interface.

Simple update problem solution

Place redstone clocks one block away from the comparator - they shouldn't touch it directly. Any nearby redstone updates will automatically cause the comparator to update.

Project members
ephys

ephys

Created: 10 Aug 2014

ID: 91171