Open Tyfyter opened 1 year ago
Not exactly sure how it would be beneficial. Any examples how mods could use such hook?
For example: a biome which tries to convert its blocks back to it after some time.
or for that matter, reacting with something like an enemy spawn or projectile
For spreading, there's Convert method in (iirc) ALConvert class
The convert method is not a hook, nor is it even used when converting tiles from what I recall.
first example clearly is spreading
and unless I missed a method call while going through the source of AltLibrary.Core.ALConvert.Convert
that example is impossible without using monomod to detour AltLibrary like the others because there is no built-in way to run code when a tile is converted from a biome regardless of which biome it's converted to
GetAltBlock is run before a tile is converted to its biome, but there isn't a hook run on the biome the block is being converted from, I believe such a hook would be significantly beneficial.