Meteor Defence

Meteor Defence

538 Downloads
This mod adds a meteorite defence system to your farm, which is good because it also lets you make multiple meteorites fall per meteor shower!

By default, it lets you use a special Space Laser to shoot down meteorites instead of letting them fall on your farm.

You can use this with DGA Space Laser, available at:

https://www.nexusmods.com/stardewvalley/mods/10642

or specify any big craftable you like to act as a meteor defence object instead.

To make meteorites fall more often, you can use Night Event Chance Tweak.


The config options are as follows:


    "StrikeAnywhere": false, - setting this to true lets meteorites fall anywhere on your farm, making meteorites strike much more common
    "MinMeteorites": 1, - minimum number of meteorites per strike
    "MaxMeteorites": 1, - maximum number of meteorites per strike
    "DefenceObject": "Space Laser", - use either a name or index
    "MeteorsPerObject": 1, - how many meteorites can be shot down per defence object placed. Set to -1 to allow a single object to destroy all meteorites that fall.
    "DefenceSound": "debuffSpell", - name of the sound played for shooting the meteorite
    "ExplodeSound": "explosion" - name of the sound played for the meteorite explosion

Meteorites will fall consecutively, and you will hear the meteorite sound for each one. If the meteorite is being shot down, you will hear the defence sound followed by the explosion sound as well.

Meteorites that are shot down will drop their resources in the place they would have crashed.

You can edit all the config variables using Generic Mod Config Menu, or editing the config.json file.

Technical

Requires SMAPI, uses Harmony.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.