zen-flow 16.0.3 → 16.2.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 +4 -8
- package/dist/zenflow.js +5 -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
|
|
@@ -2464,14 +2460,14 @@ type RecipeResearch = {
|
|
|
2464
2460
|
/** Typically between 0 and 15 */
|
|
2465
2461
|
complexity: number;
|
|
2466
2462
|
/** Item ID */
|
|
2467
|
-
icon: string;
|
|
2463
|
+
icon: string | Texture;
|
|
2468
2464
|
};
|
|
2469
2465
|
/**
|
|
2470
2466
|
* Add [Research](https://thaumcraft-4.fandom.com/wiki/Research)
|
|
2471
2467
|
*
|
|
2472
2468
|
* Creates `tc.research_name.<id>` (title) and `tc.research_text.<id>` (tooltip) localization keys
|
|
2473
2469
|
*
|
|
2474
|
-
* **Note**: Requires pages, will crash otherwise
|
|
2470
|
+
* **Note**: Requires pages, will crash otherwise. Will also crash if `x` or `y` collides with existing research.
|
|
2475
2471
|
*
|
|
2476
2472
|
* @see https://minetweaker3.aizistral.com/wiki/ModTweaker:Thaumcraft_4_Support:Research
|
|
2477
2473
|
*/
|
|
@@ -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
|
};
|
|
@@ -1403,7 +1403,8 @@ const addResearch = (recipe$1) => {
|
|
|
1403
1403
|
recipe$1.x,
|
|
1404
1404
|
recipe$1.y,
|
|
1405
1405
|
recipe$1.complexity,
|
|
1406
|
-
recipe$1.icon
|
|
1406
|
+
typeof recipe$1.icon === "string" ? recipe$1.icon : literal(recipe$1.icon.domain),
|
|
1407
|
+
typeof recipe$1.icon !== "string" ? literal(recipe$1.icon.path) : void 0
|
|
1407
1408
|
);
|
|
1408
1409
|
return `mods.thaumcraft.Research.addResearch(${out});`;
|
|
1409
1410
|
};
|