zen-flow 16.0.2 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zenflow.d.ts +3 -7
- package/dist/zenflow.js +4 -4
- package/package.json +1 -1
package/dist/zenflow.d.ts
CHANGED
|
@@ -749,16 +749,12 @@ declare const addFurnaceFuel: (fuel: string) => (n: number) => string;
|
|
|
749
749
|
* @see https://minetweaker3.aizistral.com/wiki/Tutorial:Furnace
|
|
750
750
|
*/
|
|
751
751
|
declare const removeFurnaceFuel: (fuel: string) => string;
|
|
752
|
-
type RecipeLocalisation = {
|
|
753
|
-
id: string;
|
|
754
|
-
value: string;
|
|
755
|
-
};
|
|
756
752
|
/**
|
|
757
753
|
* Add localisation string
|
|
758
754
|
*
|
|
759
755
|
* @see https://minetweaker3.aizistral.com/wiki/Tutorial:Localization_164
|
|
760
756
|
*/
|
|
761
|
-
declare const setLocalisation: (locale: string) => (
|
|
757
|
+
declare const setLocalisation: (locale: string) => (id: string) => (text: string) => string;
|
|
762
758
|
|
|
763
759
|
/**
|
|
764
760
|
* Add an entity to the [Auto-Spawner](https://feed-the-beast.fandom.com/wiki/Auto-Spawner) blacklist, disabling spawning
|
|
@@ -2483,7 +2479,7 @@ declare const addResearch: (recipe: RecipeResearch) => string;
|
|
|
2483
2479
|
*
|
|
2484
2480
|
* @see https://minetweaker3.aizistral.com/wiki/ModTweaker:Thaumcraft_4_Support:Research
|
|
2485
2481
|
*/
|
|
2486
|
-
declare const addResearchPage: (id: string) => string;
|
|
2482
|
+
declare const addResearchPage: (research: string) => (id: string) => string;
|
|
2487
2483
|
type TextResearchImage = {
|
|
2488
2484
|
src: Texture;
|
|
2489
2485
|
x?: number;
|
|
@@ -2643,4 +2639,4 @@ type RecipeResearchMove = {
|
|
|
2643
2639
|
declare const moveResearch: (recipe: RecipeResearchMove) => string;
|
|
2644
2640
|
|
|
2645
2641
|
export { ASPECT, COLOR, ENCHANTMENT, FOCI, HARVESTER_TYPE, MATERIAL, MODIFIER, RESEARCH, RESEARCH_CATEGORY, STYLE, add, addAlchemy, addAltar, addArcane, addArcaneShaped, addArcaneShapeless, addAspectEntity, addAspectItem, addBiomeRubberTree, addBlacklistAutospawner, addBloodOrb, addBloodOrbShaped, addBloodOrbShapeless, addCarpenter, addCastingBasin, addCastingTable, addCentrifuge, addChestLoot, addComposter, addCompressor, addCrucible, addCrucibleAlchemy, addCrucibleFuel, addDryingRack, addExtreme, addFabricator, addFabricatorGlass, addFermenter, addFermenterFuel, addFurnace, addFurnaceFuel, addGrinder, addHammer, addHarvester, addInductionSmelter, addInfusion, addInfusionEnchantment, addInscriber, addInsolator, addLaserFoci, addLaserOre, addLootCommon, addLootRare, addLootUncommon, addMagmaCrucible, addMirror, addMoistener, addOreDict, addPlanter, addPress, addPulverizer, addQED, addRedstoneFurnace, addRepairMaterial, addResearch, addResearchPage, addResearchPageArcane, addResearchPageCrafting, addResearchPageCrucible, addResearchPageEnchantment, addResearchPageInfusion, addResearchRequirement, addResearchSibling, addResearchTab, addRitualBinding, addRitualHarvest, addRitualMeteor, addSawmill, addSeed, addShaped, addShapeless, addSieve, addSludgeBoiler, addSmelteryAlloy, addSmelteryFluid, addSmelteryFuel, addSqueezer, addStill, addTransposerExtract, addTransposerFill, addWarpItem, addWarpResearch, createBlock, createItem, createLiquid, createMaterial, formatResearchPage, hide, joinOreDict, mirrorOreDict, moveResearch, orphanResearch, refreshResearch, remove, removeAlchemy, removeAltar, removeArcane, removeAspectEntity, removeAspectItem, removeBiomeRubberTree, removeBlacklistAutospawner, removeCarpenter, removeCastingBasin, removeCastingTable, removeCentrifuge, removeChestLoot, removeComposter, removeCompressor, removeCrucible, removeCrucibleAlchemy, removeCrucibleFuel, removeDryingRack, removeExtreme, removeFabricator, removeFabricatorGlass, removeFermenter, removeFermenterFuel, removeFurnace, removeFurnaceFuel, removeGrinder, removeHammer, removeInductionSmelter, removeInfusion, removeInfusionEnchantment, removeInsolator, removeLaserFoci, removeLaserOre, removeLootCommon, removeLootRare, removeLootUncommon, removeMagmaCrucible, removeModifier, removeMoistener, removeOreDict, removePressInscriber, removePulverizer, removeQED, removeRedstoneFurnace, removeRepairMaterial, removeResearch, removeResearchRequirement, removeResearchSibling, removeResearchTab, removeRitualBinding, removeRitualMeteor, removeSawmill, removeSeed, removeShaped, removeShapeless, removeSieve, removeSludgeBoiler, removeSmelteryAlloy, removeSmelteryFluid, removeSmelteryFuel, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, removeWarp, removeWarpItem, removeWarpResearch, rename, resetResearch, setArrowAccuracy, setArrowBreakChance, setArrowMass, setArrowStats, setAspectEntity, setAspectItem, setBowMaterialDrawspeed, setBowMaterialDurability, setBowMaterialFlightSpeed, setBowMaterialStats, setLocalisation, setMaterialDamage, setMaterialDurability, setMaterialHandleModifier, setMaterialLevelStonebound, setMaterialMiningLevel, setMaterialName, setMaterialReinforcedLevel, setMaterialSpeed, setMaterialStats, setMaterialStyle, setResearchAspects, setResearchComplexity, setResearchTypeAuto, setResearchTypeHidden, setResearchTypeRound, setResearchTypeSecondary, setResearchTypeSpikey, setResearchTypeStub, setResearchTypeVirtual, show, withEnchantment, withName, withTag, withTooltip, withTooltipShift, withWeight };
|
|
2646
|
-
export type { ArrowStats, Bonus, BonusHammer, BowStats, Cast, ChestLoot, Enchantment, Ingredient, Liquid, MaterialStats, RecipeAlchemy, RecipeAltar, RecipeArcane, RecipeArcaneShaped, RecipeArcaneShapeless, RecipeBlock, RecipeCarpenter, RecipeCastingBasin, RecipeCastingTable, RecipeCentrifuge, RecipeComposter, RecipeCompressor, RecipeCrucibleAlchemy, RecipeDryingRack, RecipeFabricator, RecipeFabricatorGlass, RecipeFermenter, RecipeFermenterFuel, RecipeFurnace, RecipeGrinder, RecipeHarvester, RecipeInductionSmelter, RecipeInfusion, RecipeInfusionEnchantment, RecipeInsolator, RecipeItem, RecipeLaser, RecipeLiquid,
|
|
2642
|
+
export type { ArrowStats, Bonus, BonusHammer, BowStats, Cast, ChestLoot, Enchantment, Ingredient, Liquid, MaterialStats, RecipeAlchemy, RecipeAltar, RecipeArcane, RecipeArcaneShaped, RecipeArcaneShapeless, RecipeBlock, RecipeCarpenter, RecipeCastingBasin, RecipeCastingTable, RecipeCentrifuge, RecipeComposter, RecipeCompressor, RecipeCrucibleAlchemy, RecipeDryingRack, RecipeFabricator, RecipeFabricatorGlass, RecipeFermenter, RecipeFermenterFuel, RecipeFurnace, RecipeGrinder, RecipeHarvester, RecipeInductionSmelter, RecipeInfusion, RecipeInfusionEnchantment, RecipeInsolator, RecipeItem, RecipeLaser, RecipeLiquid, RecipeMagmaCrucible, RecipeMaterial, RecipeMeteor, RecipeMoistener, RecipePressInscriber, RecipePulverizer, RecipeRedstoneFurnace, RecipeRepairMaterial, RecipeResearch, RecipeResearchMove, RecipeResearchTab, RecipeSawmill, RecipeSmelteryAlloy, RecipeSmelteryFluid, RecipeSmelteryFuel, RecipeSqueezer, RecipeStill, RecipeTransposerExtract, RecipeTransposerFill, Shaped, ShapedExtreme, Shapeless, Stack, Text, TextResearch, TextResearchImage, TextRich, Texture };
|
package/dist/zenflow.js
CHANGED
|
@@ -465,11 +465,11 @@ const removeFurnace = (output, input) => {
|
|
|
465
465
|
};
|
|
466
466
|
const addFurnaceFuel = (fuel) => (n) => `furnace.setFuel(${recipe(fuel, n)});`;
|
|
467
467
|
const removeFurnaceFuel = (fuel) => addFurnaceFuel(fuel)(0);
|
|
468
|
-
const setLocalisation = (locale) => (
|
|
468
|
+
const setLocalisation = (locale) => (id) => (text) => {
|
|
469
469
|
const out = recipe(
|
|
470
470
|
literal(locale),
|
|
471
|
-
literal(
|
|
472
|
-
literal(
|
|
471
|
+
literal(id),
|
|
472
|
+
literal(text)
|
|
473
473
|
);
|
|
474
474
|
return `game.setLocalization(${out});`;
|
|
475
475
|
};
|
|
@@ -1407,7 +1407,7 @@ const addResearch = (recipe$1) => {
|
|
|
1407
1407
|
);
|
|
1408
1408
|
return `mods.thaumcraft.Research.addResearch(${out});`;
|
|
1409
1409
|
};
|
|
1410
|
-
const addResearchPage = (id) => `mods.thaumcraft.Research.addPage(${recipe(literal(
|
|
1410
|
+
const addResearchPage = (research) => (id) => `mods.thaumcraft.Research.addPage(${recipe(literal(research), literal(`tc.research_page.${id}`))});`;
|
|
1411
1411
|
const formatResearchPage = (...lines) => lines.map((line) => {
|
|
1412
1412
|
if (typeof line === "string") return "<LINE>";
|
|
1413
1413
|
return line.map((text) => {
|