ExtrabiomesXL

ExtrabiomesXL

3M Downloads

Slimes do not spawn in Green Swamplands at night.

Rosethorns opened this issue ยท 8 comments

commented

Slime mobs do not currently spawn in Green Swampland biomes as they do in Default swamp biomes as of 1.4.*

commented

Why not edit the vanilla code? (is noob)

commented

@redwaller66 because:

  1. Make mod less compatible. Potentially breaks stuff.
  2. Cannot be open source because you cannot redistrubute Mojang's code that was edited

I have added entity spawning hooks to forge that can be used for this purpose.

commented

Requires vanilla code changes. The slime entity has the vanilla swamp biome hardcoded within it as a valid spawn biome.

commented

Can this be implemented now since Scott wrote hooks for it?

commented

I left right after my hooks were added. This probably needs to be revisited now.

commented

Slimes were added to GreenSwamp in 93c0a69 (March of '13). Is this still an issue?

commented

Yeah we need to add an even listener for LivingSpawnEvent.CheckSpawn, as the slime spawning code (EntitySlime.getCanSpawnHere) does a test to see if the biome is swampland, and if it is not then it will not let smiles spawn above 40.

Adding a listner for LivingSpawnEvent.CheckSpawn that returns Result.ALLOW when the biome is our green swamp and the same conditions that the normal swamp uses are set should see them spawning in the biome at night.

commented

Fixed in 99731e6.