Download Neutron — Minecraft Mods — MetaMods
Neutron

Neutron

Active

Downloads

0

Last update

8 months ago

Versions

1.20.1 — 1.21.1
Server
Fabric
Quilt
Forge
Adventure
Game mechanics
Mobs
Utils

Neutron

Turn Hostile Mobs into Neutral Ones

This mod allows you to make all mobs in Minecraft neutral towards players. You can activate this feature for all server participants or for specific users of your choice.

It's important to note that some actions that typically provoke aggression in neutral creatures continue to work. For example, if you stare at an enderman or destroy a bee hive, these mobs will still attack you. However, you no longer need to wear golden armor for piglins or avoid darkness for spiders — these factors no longer provoke their anger.

Command Management

By default, neutral mode is disabled. To activate it, use the following commands:

  • /neutron global — check the status of global neutral mode
  • /neutron global <enable | disable> — enable or disable neutral mode for all players
  • /neutron player <username> — check the status of neutral mode for a specific player
  • /neutron player <username> <enable | disable> — enable or disable neutral mode for the specified player
  • /neutron resetall — reset all player settings in both modes

Configuration Settings

The configuration file is located at config/neutron.json and contains the following parameters:

  • exceptions — list of mobs that ignore neutrality
  • preventEndermanEyeContact — whether endermen should ignore eye contact with players in neutral mode (default false)
  • excludePatrollers — whether patrolling mobs should remain neutral even if their type is listed in exceptions (default true)

By default, bosses and some mobs found only in specific structures do not become neutral. This preserves the challenge of boss battles and completing special locations.

Mobs That Do Not Become Neutral by Default - Wither - Evoker - Vindicator - Pillagers - Ravager - Vex - Piglin Brute - Blaze - Wither Skeleton - Guardian - Elder Guardian - Warden - Breeze - Shulker - Endermite

Note: Ender Dragon behavior is not changed by this mod, as it uses a special targeting system and does not have the concept of neutrality.


Developer API ### ShouldBeNeutralCallback Triggers when checking a mob's neutrality towards a specific entity. - register(callback: (entity: LivingEntity, target: LivingEntity) -&gt; Boolean): entity — the mob that will or will not be neutral, target — the entity the mob will attack. Returning true will make the mob neutral towards the target. - registerPlayers(callback: (entity: LivingEntity, target: PlayerEntity) -&gt; Boolean) Same as register but only considers player targets The mob will become neutral towards the target if any listener returns true.

Important: command autocompletion and result messages may not work if the mod is not installed on the client, but everything else will function correctly when installed only on the server.

Project members
mikhailtapio

mikhailtapio

ThePotatoArchivist

ThePotatoArchivist

Developer

Created: 9 Apr 2024

ID: 13479