Skip to content

nomobs flag does not prevent Phantom from spawning/entering residence #1420

@LingFeng4559

Description

@LingFeng4559

Describe_the_bug: |
When the nomobs flag is enabled in a residence, Phantom mobs are still able to
spawn or enter the residence and attack players.

According to the flag description, nomobs should prevent mobs from entering
the residence when AutoMobRemoval is enabled. However, Phantom spawning
does not appear to be affected by this flag.

To_Reproduce: |
Steps to reproduce the behavior:

  1. Create a residence.
  2. Enable the flag:
    /res set nomobs true
  3. Ensure AutoMobRemoval is enabled in the Residence configuration.
  4. Stay awake long enough for Phantom spawning conditions to trigger.
  5. Phantom will spawn above or enter the residence and attack the player
    inside the residence.

Screenshots: |
Not applicable.

Server_version: |
Output from /res version:

Residence version: 6.0.1.6
CMILib version: 1.5.8.8
Java version: 21.0.5

Server software:
LightingLuminol 1.21.11-DEV-ver/1.21.11@36c3ec0
API version: 1.21.11-R0.1-SNAPSHOT

Additional_context: |
Other hostile mobs appear to be handled correctly by the nomobs flag,
but Phantom is not affected.

This might be related to Phantom using a special spawning mechanic
(player-triggered phantom spawn) rather than standard hostile mob
spawning events.

Expected behavior:

  • Phantom should not spawn inside the residence area when nomobs
    is enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions