The dragon egg is not spawned when killing the ender dragon for the first time if there already is an end gateway
The dragon egg does not spawn if there already is an end gateway.
Steps to reproduce
- Create a new world
- Go to the End
- Place an end gateway (for example using the command /setblock ~ ~100 ~ end_gateway to make sure that the dragon does not escape through it)
- Leave the world (or the server) and open it again (or rejoin)
- Kill the ender dragon. Note that no egg is spawned.
The egg will spawn if you skipped step 3 or step 4.
Original report
If you are trying to Spawn a Dragon for the first time and you have an End Gateway around for some reason already, it will spawn a Dragon which does not behave like the first one. I think changing the detection for endPortals to something like this is going to be sufficient.
if (tileentity instanceof TileEntityEndPortal && !(tileentity instanceof TileEntityEndGateway)) {...}
instead of
if (tileentity instanceof TileEntityEndPortal) {...}
2017-05-18, 10:55 PM
2018-07-22, 11:38 AM
2018-07-22, 11:38 AM
12
8
dragon_egg, end_gateway, ender_dragon
Minecraft 1.11.2, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5
-