hibiii / Windchimes

A lightweight mod to add swaying, chiming wind chimes for Minecraft
The Unlicense
9 stars 8 forks source link

Suggestion - make comparators detect current weather by windchimes #6

Open Dqu1J opened 2 years ago

Dqu1J commented 2 years ago

Make comparators be able to detect current weather when placed next to a windchime

For example: Clear weather - signal strength of 0 Rain - signal strength of 6 Thunder - signal strength of 15

Снимок экрана 2022-04-18 в 23 33 53
hibiii commented 2 years ago

Hi,

Wind chimes aren't meant to be redstone components, they're only meant to be decorative blocks. They already have some redstone function, but that's because any non-air block (including carpets) can be pushed into the space under them and they'll be muted.

Although reading your suggestion, I realized I could make the chimes send block updates whenever it's time to ring, and given that there's ranges for how long the chimes have to wait for before ringing again for each type of weather, a contraption could be made (specially using fade-out clocks) to detect the weather. I'll have to give it a thought before including this in because block updates aren't free in mspt and you'll need an amount of chimes to get a certain amount of precision.

Windchimes 1.2.0 is binary incompatible with 1.19 snapshots, so observing chimes may get included as I'll have to update the anyway.

Thanks for the suggestion though and thanks for playing!