[SPIGOT-4311] Phantoms Dont Naturally Spawn Created: 26/Aug/18  Updated: 26/Aug/18  Resolved: 26/Aug/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: village_admin Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: phantom
Environment:

Linux

 


Version: CraftBukkit version git-Bukkit-d0bb0a1 (MC: 1.13.1) (Implementing API version 1.13.1-R0.1-SNAPSHOT)
Plugin: none
Guidelines Read: Yes

 Description   

Both in 1.13 and still in 1.13.1 phantoms do not naturally spawn at night. I can spawn them with a spawn egg and by command.

In both vanilla servers for 1.13 and 1.13.1 i see phantoms spawn at night.

Using craftbukkit 1.13.1 with no plugins, I sit outside uncovered, not sleeping, in survival, non-op, 5+ day/night cycles in a row and not one phantom has ever spawned.

Also tested in 1.13 for a month with 20 players online and a plugin to log any phantoms spawned. Not one phantom spawned and nothing logged unless i spawn one with a spawn egg.

 

server.properties

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

#Minecraft server properties
#Sun Aug 26 11:52:49 EDT 2018
spawn-protection=0
max-tick-time=60000
generator-settings=
force-gamemode=false
allow-nether=true
enforce-whitelist=false
gamemode=0
broadcast-console-to-ops=true
enable-query=false
player-idle-timeout=0
difficulty=3
spawn-monsters=true
op-permission-level=4
pvp=true
snooper-enabled=false
level-type=LARGEBIOMES
hardcore=false
enable-command-block=false
max-players=50
network-compression-threshold=256
resource-pack-sha1=
max-world-size=50000
server-port=25565
server-ip=
spawn-npcs=true
allow-flight=false
level-name=maps/main
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
generate-structures=true
online-mode=true
max-build-height=256
level-seed=[Redacted]
prevent-proxy-connections=false
use-native-transport=true
enable-rcon=false
motd=Map Since July 2018

 



 Comments   
Comment by md_5 [ 26/Aug/18 ]

Spawning is random.
You could have the world difficulty set differently.
I see you're also using largebiomes which may affect it

Also ticks-per.monster-spawns option

Comment by village_admin [ 26/Aug/18 ]

I have not changed sea level, it is whatever the default is. I was wondering if one of the settings in my server.properties could make the difference?

After submitting this report i continued to sit online waiting for phantoms. They finally spawned but it was after the 12th night, verified with "/time query day".

Any idea why it took until the 12th night? Is is possible a server.property setting changes why my server acts differently than yours?

Since they eventually did spawn i will rule out sea level as a possible reason.

I retested on vanilla today and they spawned just after (/time query day) 5 days.

 

Comment by md_5 [ 26/Aug/18 ]

Amongst other things the player must be above sea level.
If you have a plugin that altered world gen the sea level may be different.

Otherwise phantoms actually spawn rather rarely.

They will only attempt to spawn every ~ minute, and the chance that they spawn is 1/(ticksSinceSlept - 72000)
Which means after two hours of not sleeping it will still only be a 50% chance of a phantom spawning every ~minute.

I tested on my server and two phantoms spawned successfully, there is even a spawnreason given for them in the API;

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL

Generated at Sat Apr 05 09:38:05 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.