It would seem Fireflies aren't going to be a food item for Frogs, but maybe there's a different use for them.
(a) Within a given chunk that has fireflies in it, have a random number of fireflies be facing each direction (N, S, E, or W). Each time a firefly updates, it has a 25% chance to rotate to another direction.
(b) Have Lanterns attract fireflies. If a Firefly detects a lantern within 8 blocks, it will proceed to that Lantern block and stay there indefinitely, 'inhabiting' the Lantern using the same behavior as Bees with Beehives. Additional Fireflies which find the Lantern will continue to occupy it until the entity cramming limit is reached. (You will probably want to enclose the Lantern in solid blocks at some point.)
(c) Now when Fireflies attach to a Lantern, they cause the Lantern to generate a Redstone signal. The direction each Firefly is facing would have some impact on the strength of the Redstone signal being generated. Maybe it's only a 15 or 0 signal that is sent, depending on if there's more East/West-facing Fireflies or North/South-facing Fireflies when the Lantern updates? Or maybe a different algorithm is used that allows the signal to vary between 0 and 15 inclusive? (I am not sure which would be easier to implement.)
Instead of (or in addition to) normal torch Lanterns being used in this way, a new block could be added? Jar of Fireflies? I know Redstone Lantern is rejected as a new light source per se, but maybe it would be useful for this.
Please sign in to leave a comment.
0 Comments