Blood Magic

Blood Magic

90M Downloads

Info request: Where are incense garden blocks listed?

MentalMouse opened this issue · 6 comments

commented

I found where four of the seven types were registered, but I can't seem to find where the blocks used in the garden get tranquility values, or even a listing of them by type.

commented

https://github.com/WayofTime/BloodMagic/blob/1.12/src/main/java/WayofTime/bloodmagic/api/impl/BloodMagicCorePlugin.java#L52-L64
and

IncenseTranquilityRegistry.registerTranquilityHandler((world, pos, block, state) -> block instanceof BlockLeaves ? new TranquilityStack(EnumTranquilityType.PLANT, 1.0D) : null);
IncenseTranquilityRegistry.registerTranquilityHandler((world, pos, block, state) -> block instanceof BlockFire ? new TranquilityStack(EnumTranquilityType.FIRE, 1.0D) : null);
IncenseTranquilityRegistry.registerTranquilityHandler((world, pos, block, state) -> block instanceof BlockGrass ? new TranquilityStack(EnumTranquilityType.EARTHEN, 0.5D) : null);
IncenseTranquilityRegistry.registerTranquilityHandler((world, pos, block, state) -> block instanceof BlockLog ? new TranquilityStack(EnumTranquilityType.TREE, 1.0D) : null);
IncenseTranquilityRegistry.registerTranquilityHandler((world, pos, block, state) -> BloodMagicAPI.INSTANCE.getValueManager().getTranquility().get(state));

commented

This is where I was talking about where some of the categories get defined. Are you saying that these categories just refer back to the Minecraft/Forge classes for the respective blocks? (And I presume water and fire are just the respective liquid blocks? But then what about life essence?)

commented

But then what about life essence?)

Did you click the first link?

commented

Ah, I see, I wsasn't looking closely and thought it was a duplicate. Thanks!

commented

Hmm. This would seem to be a good candidate for a config-file list to add new blocks (notably crops, but I'm struck that no flowers seem to be included).

commented

Flowers are not tranquil, obviously.