ldtteam / minecolonies-features

This is a repo only to discuss minecolonies features (requested and planned)
10 stars 3 forks source link

Warning Bell or Alarm System #815

Open joan-teriihoania opened 5 months ago

joan-teriihoania commented 5 months ago

Prerequisites

Context

Is your feature request related to a problem?

Not really. More of a lack in flexibility.

Feature description

This feature is an Alarm System or Warning Bell that is basically the same as when ringing a village bell in vanilla minecraft. I don't believe I saw anything like that being implemented or requested (though I might be just bad at searching through the repo). There is already the "Raid Alarm" that will send all colonists to their home, so it already is implemented in some sort and this feature request is more a request to extend this mechanic. So, technically, what I propose is an enhancement to give players the ability to enact lockdowns or curfews by activating a bell (redstone-enabled?).

Although it may seem like this enhancement only addresses defence-oriented mechanics (and it probably mainly does), I found myself in a few non-defence-related situations where I would've loved to have a "warning bell".

Usecase 1 : I have a world in which my objective is to develop a city in "realistic" conditions. To this end, I am using Weather2 which adds realistic weather conditions that includes all kinds of natural phenomena including tornadoes and sandstorms. Now, I've disabled block destruction and such, but still left entity displacement (mobs get yeeted into the air) when they are outside. You might have guessed my problem: Colonists get yeeted into space. By linking a Tornado Detector to a Warning Bell of some sort with redstone, it would be possible to trigger a colony-wide "find shelter" alert and thus prevent yeet-related incidents.

Usecase 2 : Again with the same objective of developing a city in "realistic" conditions. We have made a datapack that basically implements an infection system (much like the flu or the plague). These infections spread with minecraft entities (e.g., any entities that are not items or armor stands) in proximity to one another - it's a bit more complex but not relevant here. Entities will exhibit symptoms (green particles - again, it's a bit more complicated than that) and upon noticing those symptoms, players should quarantine the infected entities until they are cured (or die), or kill them on the spot. Basically, a Warning Bell would enable players to enact a lockdown upon detecting a symptom, and thus being able to stop the spread (or limit it considerably) and cure (or kill) the infected colonists.

Notes or related things


Viewers

Thodor12 commented 5 months ago

I like the idea of a warning bell added to something like a barracks, but not automated, we don't need it working with redstone, manual is fine for our mod since we don't have to make sure we can effectively work with every mod

joan-teriihoania commented 5 months ago

I like the idea of a warning bell added to something like a barracks, but not automated, we don't need it working with redstone, manual is fine for our mod since we don't have to make sure we can effectively work with every mod

I have added a "?" to the redstone-enabled mention. I'm curious what others might think. I'm more-or-less ok with both though. I was mentioning it just for mod-compatibility but if it's not an important or relevant aspect for Minecolonies.

YumatanGames commented 4 months ago

I think if it is not too much of an issue to trigger it with redstone, it would just mimic an already existing vanilla behavior, since bells already are activated by redstone.