Skip to content

🔥 Prevents hostile mob spawns and burns them around the campfire in a configurable radius.

License

Notifications You must be signed in to change notification settings

Serilum/No-Hostiles-Around-Campfire

Repository files navigation

No Hostiles Around Campfire

Download

You can download No Hostiles Around Campfire on CurseForge and Modrinth:

  CurseForge:   https://curseforge.com/minecraft/mc-mods/no-hostiles-around-campfire
  Modrinth:      https://modrinth.com/mod/no-hostiles-around-campfire

Issue Tracker

To keep a better overview of all mods, the issue tracker is located in a separate repository.
  For issues, ideas, suggestions or anything else, please follow this link:

    -> Issue Tracker

Pull Requests

Because of the way mod loader files are bundled into one jar, some extra information is needed to do a PR.
  A wiki page entry about it is available here:

    -> Pull Request Information

Mod Description

Requires the library mod Collective. 

   This mod is part of The Vanilla Experience.

No Hostiles Around Campfire is a configurable mod which prevents hostile mob spawns around the campfire in a configurable radius. The mod will also prevent modded entities from spawning if they are classified under "EntityClassification/MobCategory.Monster". When there are hostile mobs around the campfire while placing it, the mod will burn them for 30 seconds, until they're dead or until the campfire is broken.

The Soul Campfire in the 1.16 version is compatible! This is configurable.

You may also be interested in Healing Campfire.


Some entities might not be classified as "Monster" but can still be hostile to players. There is a custom list within the mod which contains these specific entities. If you've found one, let me know via the issue tracker so I can add it to the list.
Currently on the list: FoxHound from Quark.


Configurable: ( how do I configure? )
preventHostilesRadius (default = 48, min 1, max 128): .The radius around the campfire in blocks where hostile mob spawns will be blocked.
burnHostilesAroundWhenPlaced (default = true): If enabled, burns all hostile mobs around the campfire within the radius whenever a player places a campfire.
burnHostilesRadiusModifier (default = 0.5, min 0, max 1.0): By default set to 0.5. This means that if the radius is 16, the campfire burns prior mobs in a radius of 8.
preventMobSpawnerSpawns (default = false): When enabled, the mob spawners spawns are also disabled when a campfire is within the radius.

campfireMustBeLit (default = true): When enabled, the campfire only has an effect when the block is lit up.
campfireMustBeSignalling (default = false): When enabled, the campfire only has an effect when the block is signalling.

1.16+_only config options:
enableEffectForNormalCampfires (default = true): When enabled, the mod will work with normal campfires.
enableEffectForSoulCampfires (default = true): When enabled, the mod will work with soul campfires.


------------------

You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.

Serilum.com contains an overview and more information on all mods available.

Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!