This project already supports a climate effect that impacts sea levels, so we can adapt some of the principles to include a new climate effect that negatively impacts coral reefs as temperatures get too high.
This effect could begin scanning loaded chunks once temperatures exceed the configurable threshold and only process chunks whose Biome is one where coral reefs can ever naturally spawn in. See warm oceans.
Ideally this sort of effect would routinely apply some small level of damage to coral reefs at first, but progressively do more damage as the temperature increases. If the temperature is just barely meeting the threshold then we should expect it to take a fairly long time to fully obliterate a coral reef.
Minecraft has block Material for both alive and dead coral, so one aspect of this effect would be to slowly convert living coral to dead coral. We could outright set the block type to the dead variant of coral, or perhaps consider setting the WaterLogged state to false which might induce a more gradual dying process.
Since we're modifying the game mechanics of warm, and deep warm ocean biomes. We can also consider increasing the growth rates of the types of sea grass and kelp which could be consistent with the CO2 fertilization effect.
A lot of fun can be had with implementing a new climate effect like this, lets keep it interesting realistic but most importantly still fun.
This project already supports a climate effect that impacts sea levels, so we can adapt some of the principles to include a new climate effect that negatively impacts coral reefs as temperatures get too high.
This effect could begin scanning loaded chunks once temperatures exceed the configurable threshold and only process chunks whose Biome is one where coral reefs can ever naturally spawn in. See warm oceans.
Ideally this sort of effect would routinely apply some small level of damage to coral reefs at first, but progressively do more damage as the temperature increases. If the temperature is just barely meeting the threshold then we should expect it to take a fairly long time to fully obliterate a coral reef.
Minecraft has block Material for both alive and dead coral, so one aspect of this effect would be to slowly convert living coral to dead coral. We could outright set the block type to the dead variant of coral, or perhaps consider setting the WaterLogged state to false which might induce a more gradual dying process.
Since we're modifying the game mechanics of warm, and deep warm ocean biomes. We can also consider increasing the growth rates of the types of sea grass and kelp which could be consistent with the CO2 fertilization effect.
A lot of fun can be had with implementing a new climate effect like this, lets keep it interesting realistic but most importantly still fun.