Pyrotech

Pyrotech

897k Downloads

Custom heat source support for soaking pot

Foreck1 opened this issue ยท 0 comments

commented

Adding CraftTweaker support for different blockstates to be able to heat the soaking pot other than the campfire as well as supporting placement of it. This is for the purpose of allowing a plethora of possible heaters added to modpacks to be usable for soaking pot recipes of all kinds. The method would be as follows:

static void addSoakingHeatSource(
  IBlockState heatSource, // heat source block
  boolean renderSupport,  // will render supporting legs when over block (defaults to false)
  IBlock allowRender      // if renderSupport is true, render supporting legs regardless of IBlockState
);

Additionally, a removeSoakingHeatSource could be useful for people who don't want the campfire to be usable for whatever reason..

Examples of mods that allow for adding heat sources and could be useful for this implementation include:
Zen Foundry ( https://github.com/ZengineeringTeam/Foundry/blob/zen/src/main/java/exter/foundry/integration/crafttweaker/CrTHeatingHandler.java )
and Ex Sartagine Requiem ( https://github.com/Tfarcenim/ExSartagine/blob/c21a2db29b75d7b9738382e1f1e84e39f3a19355/src/main/java/subaraki/exsartagine/integration/CraftTweakerSupport.java#L116 )