codetaylor / pyrotech-1.12

An early game mod with new primitive devices, combustion machines, smelting mechanics, storage options, tools, torches, advancements, and absolutely zero GUIs -- with exception to the substantially complete, mostly illustrated, and charred guidebook.
https://pyrotech.readthedocs.io/en/latest/
Other
52 stars 19 forks source link

Custom heat source support for soaking pot #385

Open Foreck1 opened 2 years ago

Foreck1 commented 2 years ago

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 )