author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
139,040
23.12.2020 18:07:23
-3,600
b566c1c8f65099d84c22a90b7f7e8fabec30a4c9
docs.json and no mkdocs.yml
[ { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs.json", "new_path": "docs_exported/crafttweaker/docs.json", "diff": "{\n- \"vanilla\": {\n- \"api\": {\n- \"block\": {\n- \"material\": {\n+ \"nav\": {\n+ \"Vanilla\": {\n+ \"Api\": {\n+ \"Block\": {\n+ \"Material\": {\n\"MCMaterial\": \"vanilla/api/block/material/MCMaterial.md\",\n\"MCMaterialColor\": \"vanilla/api/block/material/MCMaterialColor.md\"\n}\n},\n- \"blocks\": {\n+ \"Blocks\": {\n\"MCBlock\": \"vanilla/api/blocks/MCBlock.md\",\n\"MCBlockState\": \"vanilla/api/blocks/MCBlockState.md\"\n},\n- \"brackets\": {\n+ \"Brackets\": {\n\"CommandStringDisplayable\": \"vanilla/api/brackets/CommandStringDisplayable.md\"\n},\n- \"commands\": {\n- \"custom\": {\n+ \"Commands\": {\n+ \"Custom\": {\n\"CustomCommands\": \"vanilla/api/commands/custom/CustomCommands.md\",\n\"MCAmbiguityConsumer\": \"vanilla/api/commands/custom/MCAmbiguityConsumer.md\",\n\"MCArgumentBuilder\": \"vanilla/api/commands/custom/MCArgumentBuilder.md\",\n\"MCSuggestionsBuilder\": \"vanilla/api/commands/custom/MCSuggestionsBuilder.md\"\n}\n},\n- \"data\": {\n+ \"Data\": {\n\"BoolData\": \"vanilla/api/data/BoolData.md\",\n\"ByteArrayData\": \"vanilla/api/data/ByteArrayData.md\",\n\"ByteData\": \"vanilla/api/data/ByteData.md\",\n\"ShortData\": \"vanilla/api/data/ShortData.md\",\n\"StringData\": \"vanilla/api/data/StringData.md\"\n},\n- \"enchantment\": {\n+ \"Enchantment\": {\n\"MCEnchantment\": \"vanilla/api/enchantment/MCEnchantment.md\"\n},\n- \"entities\": {\n+ \"Entities\": {\n\"MCEntityType\": \"vanilla/api/entities/MCEntityType.md\"\n},\n- \"entity\": {\n+ \"Entity\": {\n\"MCEntity\": \"vanilla/api/entity/MCEntity.md\",\n\"MCEntityClassification\": \"vanilla/api/entity/MCEntityClassification.md\",\n\"MCLivingEntity\": \"vanilla/api/entity/MCLivingEntity.md\",\n\"MCPlayerEntity\": \"vanilla/api/entity/MCPlayerEntity.md\"\n},\n- \"event\": {\n- \"player\": {\n+ \"Event\": {\n+ \"Player\": {\n\"MCAnvilRepairEvent\": \"vanilla/api/event/player/MCAnvilRepairEvent.md\",\n\"MCPlayerEvent\": \"vanilla/api/event/player/MCPlayerEvent.md\"\n},\n\"MCEvent\": \"vanilla/api/event/MCEvent.md\",\n\"MCLivingEvent\": \"vanilla/api/event/MCLivingEvent.md\"\n},\n- \"fluid\": {\n+ \"Fluid\": {\n\"IFluidStack\": \"vanilla/api/fluid/IFluidStack.md\",\n\"MCFluid\": \"vanilla/api/fluid/MCFluid.md\"\n},\n- \"food\": {\n+ \"Food\": {\n\"MCFood\": \"vanilla/api/food/MCFood.md\"\n},\n- \"game\": {\n+ \"Game\": {\n\"MCGame\": \"vanilla/api/game/MCGame.md\"\n},\n- \"item\": {\n+ \"Item\": {\n\"Ingredient\": \"vanilla/api/item/Ingredient.md\",\n\"ItemStack\": \"vanilla/api/item/ItemStack.md\",\n\"MCItemDefinition\": \"vanilla/api/item/MCItemDefinition.md\"\n},\n- \"items\": {\n+ \"Items\": {\n\"/ExpandIIngredientTransformers\": \"vanilla/api/items/ExpandIIngredientTransformers.md\",\n\"IIngredient\": \"vanilla/api/items/IIngredient.md\",\n\"IIngredientTransformer\": \"vanilla/api/items/IIngredientTransformer.md\",\n\"MCIngredientTransformed\": \"vanilla/api/items/MCIngredientTransformed.md\",\n\"MCWeightedItemStack\": \"vanilla/api/items/MCWeightedItemStack.md\"\n},\n- \"logger\": {\n+ \"Logger\": {\n\"ILogger\": \"vanilla/api/logger/ILogger.md\"\n},\n- \"managers\": {\n+ \"Managers\": {\n\"BlastFurnaceManager\": \"vanilla/api/managers/BlastFurnaceManager.md\",\n\"CampFireManager\": \"vanilla/api/managers/CampFireManager.md\",\n\"CraftingTableManager\": \"vanilla/api/managers/CraftingTableManager.md\",\n\"SmokerManager\": \"vanilla/api/managers/SmokerManager.md\",\n\"StoneCutterManager\": \"vanilla/api/managers/StoneCutterManager.md\"\n},\n- \"mods\": {\n+ \"Mods\": {\n\"ModInfo\": \"vanilla/api/mods/ModInfo.md\",\n\"Mods\": \"vanilla/api/mods/Mods.md\"\n},\n- \"potion\": {\n+ \"Potion\": {\n\"MCPotion\": \"vanilla/api/potion/MCPotion.md\",\n\"MCPotionEffect\": \"vanilla/api/potion/MCPotionEffect.md\",\n\"MCPotionEffectInstance\": \"vanilla/api/potion/MCPotionEffectInstance.md\"\n},\n- \"recipe\": {\n+ \"Recipe\": {\n\"RecipeFilter\": \"vanilla/api/recipe/RecipeFilter.md\",\n\"RecipeFunctionArray\": \"vanilla/api/recipe/RecipeFunctionArray.md\",\n\"RecipeFunctionMatrix\": \"vanilla/api/recipe/RecipeFunctionMatrix.md\",\n\"RecipeFunctionSingle\": \"vanilla/api/recipe/RecipeFunctionSingle.md\",\n\"WrapperRecipe\": \"vanilla/api/recipe/WrapperRecipe.md\"\n},\n- \"tags\": {\n+ \"Tags\": {\n\"MCTag\": \"vanilla/api/tags/MCTag.md\",\n\"TagManager\": \"vanilla/api/tags/TagManager.md\",\n\"TagManagerBlock\": \"vanilla/api/tags/TagManagerBlock.md\",\n\"TagManagerFluid\": \"vanilla/api/tags/TagManagerFluid.md\",\n\"TagManagerItem\": \"vanilla/api/tags/TagManagerItem.md\"\n},\n- \"util\": {\n- \"text\": {\n+ \"Util\": {\n+ \"Text\": {\n\"MCStyle\": \"vanilla/api/util/text/MCStyle.md\",\n\"MCTextComponent\": \"vanilla/api/util/text/MCTextComponent.md\",\n\"TextFormatting\": \"vanilla/api/util/text/TextFormatting.md\"\n\"DirectionAxis\": \"vanilla/api/util/DirectionAxis.md\",\n\"MCResourceLocation\": \"vanilla/api/util/MCResourceLocation.md\"\n},\n- \"world\": {\n+ \"World\": {\n\"MCBiome\": \"vanilla/api/world/MCBiome.md\",\n\"MCWorld\": \"vanilla/api/world/MCWorld.md\"\n},\n}\n}\n}\n+}\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "diff": "@@ -17,17 +17,17 @@ import crafttweaker.api.item.IIngredientTransformer;\nReturn Type: string\n```zenscript\n-IIngredientTransformer.getCommandString(transformedIngredient as T) as string\n+IIngredientTransformer.getCommandString(ingredient as T) as string\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| transformedIngredient | T | No Description Provided |\n-### transform\n+| ingredient | T | No Description Provided |\n+### matches\n-Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n+Return Type: boolean\n```zenscript\n-IIngredientTransformer.transform(stack as IItemStack) as IItemStack\n+IIngredientTransformer.matches(stack as IItemStack) as boolean\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n" }, { "change_type": "DELETE", "old_path": "docs_exported/crafttweaker/mkdocs.yml", "new_path": null, "diff": "- Vanilla:\n- Api:\n- BracketHandlers: 'vanilla/api/BracketHandlers.md'\n- Block:\n- Material:\n- MCMaterial: 'vanilla/api/block/material/MCMaterial.md'\n- MCMaterialColor: 'vanilla/api/block/material/MCMaterialColor.md'\n- Blocks:\n- MCBlock: 'vanilla/api/blocks/MCBlock.md'\n- MCBlockState: 'vanilla/api/blocks/MCBlockState.md'\n- Brackets:\n- CommandStringDisplayable: 'vanilla/api/brackets/CommandStringDisplayable.md'\n- Commands:\n- Custom:\n- CustomCommands: 'vanilla/api/commands/custom/CustomCommands.md'\n- MCAmbiguityConsumer: 'vanilla/api/commands/custom/MCAmbiguityConsumer.md'\n- MCArgumentBuilder: 'vanilla/api/commands/custom/MCArgumentBuilder.md'\n- MCArgumentCommandNode: 'vanilla/api/commands/custom/MCArgumentCommandNode.md'\n- MCCommand: 'vanilla/api/commands/custom/MCCommand.md'\n- MCCommandContext: 'vanilla/api/commands/custom/MCCommandContext.md'\n- MCCommandContextBuilder: 'vanilla/api/commands/custom/MCCommandContextBuilder.md'\n- MCCommandDispatcher: 'vanilla/api/commands/custom/MCCommandDispatcher.md'\n- MCCommandNode: 'vanilla/api/commands/custom/MCCommandNode.md'\n- MCCommandSource: 'vanilla/api/commands/custom/MCCommandSource.md'\n- MCImmutableStringReader: 'vanilla/api/commands/custom/MCImmutableStringReader.md'\n- MCLiteralArgumentBuilder: 'vanilla/api/commands/custom/MCLiteralArgumentBuilder.md'\n- MCLiteralCommandNode: 'vanilla/api/commands/custom/MCLiteralCommandNode.md'\n- MCParseResults: 'vanilla/api/commands/custom/MCParseResults.md'\n- MCParsedArgument: 'vanilla/api/commands/custom/MCParsedArgument.md'\n- MCParsedCommandNode: 'vanilla/api/commands/custom/MCParsedCommandNode.md'\n- MCRedirectModifier: 'vanilla/api/commands/custom/MCRedirectModifier.md'\n- MCRequiredArgumentBuilder: 'vanilla/api/commands/custom/MCRequiredArgumentBuilder.md'\n- MCResultConsumer: 'vanilla/api/commands/custom/MCResultConsumer.md'\n- MCRootCommandNode: 'vanilla/api/commands/custom/MCRootCommandNode.md'\n- MCSingleRedirectModifier: 'vanilla/api/commands/custom/MCSingleRedirectModifier.md'\n- MCStringRange: 'vanilla/api/commands/custom/MCStringRange.md'\n- MCSuggestion: 'vanilla/api/commands/custom/MCSuggestion.md'\n- MCSuggestionContext: 'vanilla/api/commands/custom/MCSuggestionContext.md'\n- MCSuggestionProvider: 'vanilla/api/commands/custom/MCSuggestionProvider.md'\n- MCSuggestions: 'vanilla/api/commands/custom/MCSuggestions.md'\n- MCSuggestionsBuilder: 'vanilla/api/commands/custom/MCSuggestionsBuilder.md'\n- Data:\n- ByteArrayData: 'vanilla/api/data/ByteArrayData.md'\n- ByteData: 'vanilla/api/data/ByteData.md'\n- DoubleData: 'vanilla/api/data/DoubleData.md'\n- FloatData: 'vanilla/api/data/FloatData.md'\n- ICollectionData: 'vanilla/api/data/ICollectionData.md'\n- IData: 'vanilla/api/data/IData.md'\n- INumberData: 'vanilla/api/data/INumberData.md'\n- IntArrayData: 'vanilla/api/data/IntArrayData.md'\n- IntData: 'vanilla/api/data/IntData.md'\n- ListData: 'vanilla/api/data/ListData.md'\n- LongArrayData: 'vanilla/api/data/LongArrayData.md'\n- LongData: 'vanilla/api/data/LongData.md'\n- MapData: 'vanilla/api/data/MapData.md'\n- ShortData: 'vanilla/api/data/ShortData.md'\n- StringData: 'vanilla/api/data/StringData.md'\n- Entities:\n- MCEntityClassification: 'vanilla/api/entities/MCEntityClassification.md'\n- MCEntityType: 'vanilla/api/entities/MCEntityType.md'\n- Entity:\n- Player:\n- MCPlayerEntity: 'vanilla/api/entity/player/MCPlayerEntity.md'\n- Event:\n- IEvent: 'vanilla/api/event/IEvent.md'\n- Fluid:\n- IFluidStack: 'vanilla/api/fluid/IFluidStack.md'\n- MCFluid: 'vanilla/api/fluid/MCFluid.md'\n- Food:\n- MCFood: 'vanilla/api/food/MCFood.md'\n- Game:\n- MCGame: 'vanilla/api/game/MCGame.md'\n- Items:\n- IIngredient: 'vanilla/api/items/IIngredient.md'\n- IIngredientTransformer: 'vanilla/api/items/IIngredientTransformer.md'\n- IIngredientTransformer: 'vanilla/api/items/IIngredientTransformer.md'\n- IItemStack: 'vanilla/api/items/IItemStack.md'\n- ITooltipFunction: 'vanilla/api/items/ITooltipFunction.md'\n- IngredientList: 'vanilla/api/items/IngredientList.md'\n- MCIngredientConditioned: 'vanilla/api/items/MCIngredientConditioned.md'\n- MCIngredientTransformed: 'vanilla/api/items/MCIngredientTransformed.md'\n- MCWeightedItemStack: 'vanilla/api/items/MCWeightedItemStack.md'\n- Logger:\n- ILogger: 'vanilla/api/logger/ILogger.md'\n- Managers:\n- BlastFurnaceManager: 'vanilla/api/managers/BlastFurnaceManager.md'\n- CampFireManager: 'vanilla/api/managers/CampFireManager.md'\n- CraftingTableManager: 'vanilla/api/managers/CraftingTableManager.md'\n- FurnaceManager: 'vanilla/api/managers/FurnaceManager.md'\n- ICookingRecipeManager: 'vanilla/api/managers/ICookingRecipeManager.md'\n- IRecipeManager: 'vanilla/api/managers/IRecipeManager.md'\n- SmithingManager: 'vanilla/api/managers/SmithingManager.md'\n- SmokerManager: 'vanilla/api/managers/SmokerManager.md'\n- StoneCutterManager: 'vanilla/api/managers/StoneCutterManager.md'\n- Mods:\n- ModInfo: 'vanilla/api/mods/ModInfo.md'\n- Mods: 'vanilla/api/mods/Mods.md'\n- Potions:\n- MCPotion: 'vanilla/api/potions/MCPotion.md'\n- MCPotionEffect: 'vanilla/api/potions/MCPotionEffect.md'\n- MCPotionEffectInstance: 'vanilla/api/potions/MCPotionEffectInstance.md'\n- Recipe:\n- RecipeFilter: 'vanilla/api/recipe/RecipeFilter.md'\n- RecipeFunctionArray: 'vanilla/api/recipe/RecipeFunctionArray.md'\n- RecipeFunctionMatrix: 'vanilla/api/recipe/RecipeFunctionMatrix.md'\n- RecipeFunctionSingle: 'vanilla/api/recipe/RecipeFunctionSingle.md'\n- WrapperRecipe: 'vanilla/api/recipe/WrapperRecipe.md'\n- Tags:\n- MCTag: 'vanilla/api/tags/MCTag.md'\n- Util:\n- BlockPos: 'vanilla/api/util/BlockPos.md'\n- Direction: 'vanilla/api/util/Direction.md'\n- DirectionAxis: 'vanilla/api/util/DirectionAxis.md'\n- MCResourceLocation: 'vanilla/api/util/MCResourceLocation.md'\n- Text:\n- MCStyle: 'vanilla/api/util/text/MCStyle.md'\n- MCTextComponent: 'vanilla/api/util/text/MCTextComponent.md'\n- TextFormatting: 'vanilla/api/util/text/TextFormatting.md'\n- World:\n- MCBiome: 'vanilla/api/world/MCBiome.md'\n- MCWorld: 'vanilla/api/world/MCWorld.md'\n-\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
docs.json and no mkdocs.yml
139,040
23.12.2020 18:10:00
-3,600
0b8fe3ad48f8ef36f081803691e24f0690ce08f6
First same level, then nesting
[ { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs.json", "new_path": "docs_exported/crafttweaker/docs.json", "diff": "\"nav\": {\n\"Vanilla\": {\n\"Api\": {\n+ \"BracketHandlers\": \"vanilla/api/BracketHandlers.md\",\n\"Block\": {\n\"Material\": {\n\"MCMaterial\": \"vanilla/api/block/material/MCMaterial.md\",\n\"MCPlayerEntity\": \"vanilla/api/entity/MCPlayerEntity.md\"\n},\n\"Event\": {\n- \"Player\": {\n- \"MCAnvilRepairEvent\": \"vanilla/api/event/player/MCAnvilRepairEvent.md\",\n- \"MCPlayerEvent\": \"vanilla/api/event/player/MCPlayerEvent.md\"\n- },\n\"IEvent\": \"vanilla/api/event/IEvent.md\",\n\"MCEntityEvent\": \"vanilla/api/event/MCEntityEvent.md\",\n\"MCEvent\": \"vanilla/api/event/MCEvent.md\",\n- \"MCLivingEvent\": \"vanilla/api/event/MCLivingEvent.md\"\n+ \"MCLivingEvent\": \"vanilla/api/event/MCLivingEvent.md\",\n+ \"Player\": {\n+ \"MCAnvilRepairEvent\": \"vanilla/api/event/player/MCAnvilRepairEvent.md\",\n+ \"MCPlayerEvent\": \"vanilla/api/event/player/MCPlayerEvent.md\"\n+ }\n},\n\"Fluid\": {\n\"IFluidStack\": \"vanilla/api/fluid/IFluidStack.md\",\n\"TagManagerItem\": \"vanilla/api/tags/TagManagerItem.md\"\n},\n\"Util\": {\n+ \"BlockPos\": \"vanilla/api/util/BlockPos.md\",\n+ \"Direction\": \"vanilla/api/util/Direction.md\",\n+ \"DirectionAxis\": \"vanilla/api/util/DirectionAxis.md\",\n+ \"MCResourceLocation\": \"vanilla/api/util/MCResourceLocation.md\",\n\"Text\": {\n\"MCStyle\": \"vanilla/api/util/text/MCStyle.md\",\n\"MCTextComponent\": \"vanilla/api/util/text/MCTextComponent.md\",\n\"TextFormatting\": \"vanilla/api/util/text/TextFormatting.md\"\n- },\n- \"BlockPos\": \"vanilla/api/util/BlockPos.md\",\n- \"Direction\": \"vanilla/api/util/Direction.md\",\n- \"DirectionAxis\": \"vanilla/api/util/DirectionAxis.md\",\n- \"MCResourceLocation\": \"vanilla/api/util/MCResourceLocation.md\"\n+ }\n},\n\"World\": {\n\"MCBiome\": \"vanilla/api/world/MCBiome.md\",\n\"MCWorld\": \"vanilla/api/world/MCWorld.md\"\n- },\n- \"BracketHandlers\": \"vanilla/api/BracketHandlers.md\"\n+ }\n}\n}\n}\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
First same level, then nesting
139,040
23.12.2020 18:39:30
-3,600
b412e4230bddcc933fac03bb531abbde387b334f
After fixing the leading slash
[ { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs.json", "new_path": "docs_exported/crafttweaker/docs.json", "diff": "\"MCItemDefinition\": \"vanilla/api/item/MCItemDefinition.md\"\n},\n\"Items\": {\n- \"/ExpandIIngredientTransformers\": \"vanilla/api/items/ExpandIIngredientTransformers.md\",\n+ \"ExpandIIngredientTransformers\": \"vanilla/api/items/ExpandIIngredientTransformers.md\",\n\"IIngredient\": \"vanilla/api/items/IIngredient.md\",\n\"IIngredientTransformer\": \"vanilla/api/items/IIngredientTransformer.md\",\n\"IItemStack\": \"vanilla/api/items/IItemStack.md\",\n\"WrapperRecipe\": \"vanilla/api/recipe/WrapperRecipe.md\"\n},\n\"Tags\": {\n+ \"ExpandItemTag\": \"vanilla/api/tags/ExpandItemTag.md\",\n\"MCTag\": \"vanilla/api/tags/MCTag.md\",\n\"TagManager\": \"vanilla/api/tags/TagManager.md\",\n\"TagManagerBlock\": \"vanilla/api/tags/TagManagerBlock.md\",\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/entity/MCEntityClassification.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/entity/MCEntityClassification.md", "diff": "@@ -10,7 +10,7 @@ import crafttweaker.api.entity.MCEntityClassification;\n```\n-## Extending Enum<MCEntityClassification>\n+## Extending Enum&lt;MCEntityClassification&gt;\nMCEntityClassification extends Enum&lt;[MCEntityClassification](/vanilla/api/entity/MCEntityClassification)&gt;. That means all methods available in Enum&lt;[MCEntityClassification](/vanilla/api/entity/MCEntityClassification)&gt; are also available in MCEntityClassification\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/crafttweaker/docs/vanilla/api/tags/ExpandItemTag.md", "diff": "+# Expansion for MCTag&lt;MCItemDefinition&gt;\n+\n+This expansion was added by a mod with mod-id `crafttweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Casters\n+\n+| Result type | Is Implicit |\n+|-------------|-------------|\n+| [IData](/vanilla/api/data/IData) | true |\n+| [IIngredient](/vanilla/api/items/IIngredient) | true |\n+\n+## Methods\n+\n+### add\n+\n+Return Type: void\n+\n+```zenscript\n+MCTag.add(items as stdlib.List<IItemStack>) as void\n+```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| items | stdlib.List&lt;[IItemStack](/vanilla/api/items/IItemStack)&gt; | No Description Provided |\n+### asIData\n+\n+Return Type: [IData](/vanilla/api/data/IData)\n+\n+```zenscript\n+MCTag.asIData() as IData\n+myMCTag.asIData()\n+```\n+### asIIngredient\n+\n+Return Type: [IIngredient](/vanilla/api/items/IIngredient)\n+\n+```zenscript\n+MCTag.asIIngredient() as IIngredient\n+myMCTag.asIIngredient()\n+```\n+\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/util/Direction.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/util/Direction.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.util.Direction;\n```\n-## Extending Enum<Direction>\n+## Extending Enum&lt;Direction&gt;\nDirection extends Enum&lt;[Direction](/vanilla/api/util/Direction)&gt;. That means all methods available in Enum&lt;[Direction](/vanilla/api/util/Direction)&gt; are also available in Direction\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/util/DirectionAxis.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/util/DirectionAxis.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.util.DirectionAxis;\n```\n-## Extending Enum<DirectionAxis>\n+## Extending Enum&lt;DirectionAxis&gt;\nDirectionAxis extends Enum&lt;[DirectionAxis](/vanilla/api/util/DirectionAxis)&gt;. That means all methods available in Enum&lt;[DirectionAxis](/vanilla/api/util/DirectionAxis)&gt; are also available in DirectionAxis\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
After fixing the leading slash
139,040
23.12.2020 23:17:50
-3,600
2fa65cf32a3760f24e6b66e62295d85b44f0b5b3
Moved Events, and removed them from the main docs.json
[ { "change_type": "MODIFY", "old_path": "docs.json", "new_path": "docs.json", "diff": "\"Vanilla\": {\n\"How to\": {\n\"Crafting Table Recipes\": \"vanilla/how_to/crafting_table.md\"\n- },\n- \"Api\": {\n- \"Block\": {\n- \"Material\": {\n- \"MCMaterial\": \"vanilla/api/block/material/MCMaterial.md\",\n- \"MCMaterialColor\": \"vanilla/api/block/material/MCMaterialColor.md\"\n- }\n- },\n- \"Blocks\": {\n- \"MCBlock\": \"vanilla/api/blocks/MCBlock.md\",\n- \"MCBlockState\": \"vanilla/api/blocks/MCBlockState.md\"\n- },\n- \"Brackets\": {\n- \"CommandStringDisplayable\": \"vanilla/api/brackets/CommandStringDisplayable.md\"\n- },\n- \"Data\": {\n- \"ByteArrayData\": \"vanilla/api/data/ByteArrayData.md\",\n- \"ByteData\": \"vanilla/api/data/ByteData.md\",\n- \"DoubleData\": \"vanilla/api/data/DoubleData.md\",\n- \"FloatData\": \"vanilla/api/data/FloatData.md\",\n- \"ICollectionData\": \"vanilla/api/data/ICollectionData.md\",\n- \"IData\": \"vanilla/api/data/IData.md\",\n- \"INumberData\": \"vanilla/api/data/INumberData.md\",\n- \"IntArrayData\": \"vanilla/api/data/IntArrayData.md\",\n- \"IntData\": \"vanilla/api/data/IntData.md\",\n- \"ListData\": \"vanilla/api/data/ListData.md\",\n- \"LongArrayData\": \"vanilla/api/data/LongArrayData.md\",\n- \"LongData\": \"vanilla/api/data/LongData.md\",\n- \"MapData\": \"vanilla/api/data/MapData.md\",\n- \"ShortData\": \"vanilla/api/data/ShortData.md\",\n- \"StringData\": \"vanilla/api/data/StringData.md\"\n- },\n- \"Entities\": {\n- \"MCEntityClassification\": \"vanilla/api/entities/MCEntityClassification.md\",\n- \"MCEntityType\": \"vanilla/api/entities/MCEntityType.md\"\n- },\n- \"Entity\": {\n- \"Player\": {\n- \"MCPlayerEntity\": \"vanilla/api/entity/player/MCPlayerEntity.md\"\n- }\n- },\n- \"Event\": {\n- \"Entity\": {\n- \"Player\": {\n- \"MCAdvancementEvent\": \"vanilla/api/event/entity/player/MCAdvancementEvent.md\",\n- \"MCAnvilRepairEvent\": \"vanilla/api/event/entity/player/MCAnvilRepairEvent.md\",\n- \"MCArrowLooseEvent\": \"vanilla/api/event/entity/player/MCArrowLooseEvent.md\",\n- \"MCArrowNockEvent\": \"vanilla/api/event/entity/player/MCArrowNockEvent.md\",\n- \"MCAttackEntityEvent\": \"vanilla/api/event/entity/player/MCAttackEntityEvent.md\",\n- \"MCBonemealEvent\": \"vanilla/api/event/entity/player/MCBonemealEvent.md\",\n- \"MCCriticalHitEvent\": \"vanilla/api/event/entity/player/MCCriticalHitEvent.md\",\n- \"MCEntityItemPickupEvent\": \"vanilla/api/event/entity/player/MCEntityItemPickupEvent.md\",\n- \"MCFillBucketEvent\": \"vanilla/api/event/entity/player/MCFillBucketEvent.md\",\n- \"MCItemFishedEvent\": \"vanilla/api/event/entity/player/MCItemFishedEvent.md\",\n- \"MCItemTooltipEvent\": \"vanilla/api/event/entity/player/MCItemTooltipEvent.md\",\n- \"MCPlayerDestroyItemEvent\": \"vanilla/api/event/entity/player/MCPlayerDestroyItemEvent.md\",\n- \"MCPlayerFlyableFallEvent\": \"vanilla/api/event/entity/player/MCPlayerFlyableFallEvent.md\",\n- \"MCPlayerSetSpawnEvent\": \"vanilla/api/event/entity/player/MCPlayerSetSpawnEvent.md\",\n- \"MCPlayerSleepInBedEvent\": \"vanilla/api/event/entity/player/MCPlayerSleepInBedEvent.md\",\n- \"MCPlayerWakeUpEvent\": \"vanilla/api/event/entity/player/MCPlayerWakeUpEvent.md\",\n- \"MCSleepingLocationCheckEvent\": \"vanilla/api/event/entity/player/MCSleepingLocationCheckEvent.md\",\n- \"MCSleepingTimeCheckEvent\": \"vanilla/api/event/entity/player/MCSleepingTimeCheckEvent.md\",\n- \"MCUseHoeEvent\": \"vanilla/api/event/entity/player/MCUseHoeEvent.md\",\n- \"PlayerContainerEvent\": {\n- \"MCClose\": \"vanilla/api/event/entity/player/PlayerContainerEvent/MCClose.md\",\n- \"MCOpen\": \"vanilla/api/event/entity/player/PlayerContainerEvent/MCOpen.md\"\n- },\n- \"PlayerEvent\": {\n- \"MCItemCraftedEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCItemCraftedEvent.md\",\n- \"MCItemPickupEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCItemPickupEvent.md\",\n- \"MCItemSmeltedEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCItemSmeltedEvent.md\",\n- \"MCPlayerChangedDimensionEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCPlayerChangedDimensionEvent.md\",\n- \"MCPlayerLoggedInEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCPlayerLoggedInEvent.md\",\n- \"MCPlayerLoggedOutEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCPlayerLoggedOutEvent.md\",\n- \"MCPlayerRespawnEvent\": \"vanilla/api/event/entity/player/PlayerEvent/MCPlayerRespawnEvent.md\"\n- },\n- \"PlayerInteractEvent\": {\n- \"MCEntityInteract\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCEntityInteract.md\",\n- \"MCEntityInteractSpecific\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCEntityInteractSpecific.md\",\n- \"MCLeftClickBlock\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCLeftClickBlock.md\",\n- \"MCLeftClickEmpty\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCLeftClickEmpty.md\",\n- \"MCRightClickBlock\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickBlock.md\",\n- \"MCRightClickEmpty\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickEmpty.md\",\n- \"MCRightClickItem\": \"vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickItem.md\"\n- },\n- \"PlayerXpEvent\": {\n- \"MCLevelChange\": \"vanilla/api/event/entity/player/PlayerXpEvent/MCLevelChange.md\",\n- \"MCPickupXp\": \"vanilla/api/event/entity/player/PlayerXpEvent/MCPickupXp.md\",\n- \"MCXpChange\": \"vanilla/api/event/entity/player/PlayerXpEvent/MCXpChange.md\"\n- }\n- }\n- }\n- },\n- \"Food\": {\n- \"MCFood\": \"vanilla/api/food/MCFood.md\"\n- },\n- \"Items\": {\n- \"IIngredient\": \"vanilla/api/items/IIngredient.md\",\n- \"IItemStack\": \"vanilla/api/items/IItemStack.md\"\n- },\n- \"Logger\": {\n- \"ILogger\": \"vanilla/api/logger/ILogger.md\"\n- },\n- \"Managers\": {\n- \"BlastFurnaceManager\": \"vanilla/api/managers/BlastFurnaceManager.md\",\n- \"CampFireManager\": \"vanilla/api/managers/CampFireManager.md\",\n- \"CraftingTableManager\": \"vanilla/api/managers/CraftingTableManager.md\",\n- \"FurnaceManager\": \"vanilla/api/managers/FurnaceManager.md\",\n- \"ICookingRecipeManager\": \"vanilla/api/managers/ICookingRecipeManager.md\",\n- \"IRecipeManager\": \"vanilla/api/managers/IRecipeManager.md\",\n- \"SmokerManager\": \"vanilla/api/managers/SmokerManager.md\",\n- \"StoneCutterManager\": \"vanilla/api/managers/StoneCutterManager.md\"\n- },\n- \"Recipe\": {\n- \"RecipeFilter\": \"vanilla/api/recipe/RecipeFilter.md\",\n- \"RecipeFunctionArray\": \"vanilla/api/recipe/RecipeFunctionArray.md\",\n- \"RecipeFunctionMatrix\": \"vanilla/api/recipe/RecipeFunctionMatrix.md\",\n- \"RecipeFunctionSingle\": \"vanilla/api/recipe/RecipeFunctionSingle.md\"\n- },\n- \"Potions\": {\n- \"MCPotion\": \"vanilla/api/potions/MCPotion.md\",\n- \"MCPotionEffect\": \"vanilla/api/potions/MCPotionEffect.md\",\n- \"MCPotionEffectInstance\": \"vanilla/api/potions/MCPotionEffectInstance.md\"\n- },\n- \"Tags\": {\n- \"MCTag\": \"vanilla/api/tags/MCTag.md\"\n- },\n- \"Util\": {\n- \"BlockPos\": \"vanilla/api/util/BlockPos.md\",\n- \"Direction\": \"vanilla/api/util/Direction.md\",\n- \"DirectionAxis\": \"vanilla/api/util/DirectionAxis.md\"\n- },\n- \"World\": {\n- \"MCBiome\": \"vanilla/api/world/MCBiome.md\",\n- \"MCBiomeSpawnEntry\": \"vanilla/api/world/MCBiomeSpawnEntry.md\"\n- }\n}\n},\n\"Mods\": {\n\"Botany Pots\": \"mods/BotanyPots/BotanyPots.md\"\n},\n\"ContentTweaker\": {\n- \"Simple Walkthrough\": \"mods/contenttweaker/SimpleWalkthrough.md\",\n- \"API\": {\n- \"BracketHandlers\": \"mods/contenttweaker/API/BracketHandlers.md\",\n- \"Api\": {\n- \"IIsBuilder\": \"mods/contenttweaker/API/api/IIsBuilder.md\"\n- },\n- \"Block\": {\n- \"BlockBuilder\": \"mods/contenttweaker/API/block/BlockBuilder.md\",\n- \"BlockTypeBuilder\": \"mods/contenttweaker/API/block/BlockTypeBuilder.md\",\n- \"Basic\": {\n- \"BlockBuilderBasic\": \"mods/contenttweaker/API/block/basic/BlockBuilderBasic.md\"\n- },\n- \"Pillar\": {\n- \"BlockBuilderPillarRotatable\": \"mods/contenttweaker/API/block/pillar/BlockBuilderPillarRotatable.md\"\n- },\n- \"Stairs\": {\n- \"BlockBuilderStairs\": \"mods/contenttweaker/API/block/stairs/BlockBuilderStairs.md\"\n- }\n- },\n- \"Item\": {\n- \"ItemBuilder\": \"mods/contenttweaker/API/item/ItemBuilder.md\",\n- \"ItemTypeBuilder\": \"mods/contenttweaker/API/item/ItemTypeBuilder.md\",\n- \"MCItemGroup\": \"mods/contenttweaker/API/item/MCItemGroup.md\",\n- \"MCToolType\": \"mods/contenttweaker/API/item/MCToolType.md\",\n- \"Basic\": {\n- \"ItemBuilderBasic\": \"mods/contenttweaker/API/item/basic/ItemBuilderBasic.md\"\n- },\n- \"Tool\": {\n- \"ItemBuilderTool\": \"mods/contenttweaker/API/item/tool/ItemBuilderTool.md\"\n- }\n- }\n- }\n+ \"Simple Walkthrough\": \"mods/contenttweaker/SimpleWalkthrough.md\"\n},\n\"InitialInventory\": {\n\"InitialInventory\": \"mods/InitialInventory/InitialInventory.md\"\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs.json", "new_path": "docs_exported/crafttweaker/docs.json", "diff": "},\n\"Event\": {\n\"CTEventManager\": \"vanilla/api/event/CTEventManager.md\",\n- \"MCEntityEvent\": \"vanilla/api/event/MCEntityEvent.md\",\n\"MCEvent\": \"vanilla/api/event/MCEvent.md\",\n- \"MCLivingEvent\": \"vanilla/api/event/MCLivingEvent.md\",\n\"Entity\": {\n+ \"MCEntityEvent\": \"vanilla/api/event/entity/MCEntityEvent.md\",\n+ \"MCLivingEvent\": \"vanilla/api/event/entity/MCLivingEvent.md\",\n\"Player\": {\n\"MCItemCraftedEvent\": \"vanilla/api/event/entity/player/MCItemCraftedEvent.md\",\n\"MCItemPickupEvent\": \"vanilla/api/event/entity/player/MCItemPickupEvent.md\",\n\"MCItemSmeltedEvent\": \"vanilla/api/event/entity/player/MCItemSmeltedEvent.md\",\n+ \"MCPlayerEvent\": \"vanilla/api/event/entity/player/MCPlayerEvent.md\",\n\"MCPlayerLoggedInEvent\": \"vanilla/api/event/entity/player/MCPlayerLoggedInEvent.md\",\n\"MCPlayerLoggedOutEvent\": \"vanilla/api/event/entity/player/MCPlayerLoggedOutEvent.md\",\n\"MCPlayerRespawnEvent\": \"vanilla/api/event/entity/player/MCPlayerRespawnEvent.md\",\n}\n},\n\"Player\": {\n- \"MCAnvilRepairEvent\": \"vanilla/api/event/player/MCAnvilRepairEvent.md\",\n- \"MCPlayerEvent\": \"vanilla/api/event/player/MCPlayerEvent.md\"\n+ \"MCAnvilRepairEvent\": \"vanilla/api/event/player/MCAnvilRepairEvent.md\"\n}\n},\n\"Fluid\": {\n" }, { "change_type": "RENAME", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/MCEntityEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/MCEntityEvent.md", "diff": "" }, { "change_type": "RENAME", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/MCLivingEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/MCLivingEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.entity.MCLivingEvent;\n## Extending MCEntityEvent\n-MCLivingEvent extends [MCEntityEvent](/vanilla/api/event/MCEntityEvent). That means all methods available in [MCEntityEvent](/vanilla/api/event/MCEntityEvent) are also available in MCLivingEvent\n+MCLivingEvent extends [MCEntityEvent](/vanilla/api/event/entity/MCEntityEvent). That means all methods available in [MCEntityEvent](/vanilla/api/event/entity/MCEntityEvent) are also available in MCLivingEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemCraftedEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemCraftedEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.player.MCItemCraftedEvent;\n## Extending MCPlayerEvent\n-MCItemCraftedEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCItemCraftedEvent\n+MCItemCraftedEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCItemCraftedEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemPickupEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemPickupEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.entity.player.MCItemPickupEvent;\n## Extending MCPlayerEvent\n-MCItemPickupEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCItemPickupEvent\n+MCItemPickupEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCItemPickupEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemSmeltedEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCItemSmeltedEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.entity.player.MCItemSmeltedEvent;\n## Extending MCPlayerEvent\n-MCItemSmeltedEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCItemSmeltedEvent\n+MCItemSmeltedEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCItemSmeltedEvent\n## Methods\n" }, { "change_type": "RENAME", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/player/MCPlayerEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.entity.player.MCPlayerEvent;\n## Extending MCLivingEvent\n-MCPlayerEvent extends [MCLivingEvent](/vanilla/api/event/MCLivingEvent). That means all methods available in [MCLivingEvent](/vanilla/api/event/MCLivingEvent) are also available in MCPlayerEvent\n+MCPlayerEvent extends [MCLivingEvent](/vanilla/api/event/entity/MCLivingEvent). That means all methods available in [MCLivingEvent](/vanilla/api/event/entity/MCLivingEvent) are also available in MCPlayerEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerLoggedInEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerLoggedInEvent.md", "diff": "# MCPlayerLoggedInEvent\nThe playerLoggedIn event does not add any new Properties.\n- Since it is a [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent), you can already access the getter\n+ Since it is a [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent), you can already access the getter\nThis class was added by a mod with mod-id `crafttweaker`. So you need to have this mod installed if you want to use this feature.\n@@ -15,5 +15,5 @@ import crafttweaker.api.event.entity.player.MCPlayerLoggedInEvent;\n## Extending MCPlayerEvent\n-MCPlayerLoggedInEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCPlayerLoggedInEvent\n+MCPlayerLoggedInEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCPlayerLoggedInEvent\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerLoggedOutEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerLoggedOutEvent.md", "diff": "# MCPlayerLoggedOutEvent\nThe playerLoggedOut event does not add any new Properties.\n- Since it is a [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent), you can already access the getter\n+ Since it is a [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent), you can already access the getter\nThis class was added by a mod with mod-id `crafttweaker`. So you need to have this mod installed if you want to use this feature.\n@@ -15,5 +15,5 @@ import crafttweaker.api.event.entity.player.MCPlayerLoggedOutEvent;\n## Extending MCPlayerEvent\n-MCPlayerLoggedOutEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCPlayerLoggedOutEvent\n+MCPlayerLoggedOutEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCPlayerLoggedOutEvent\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerRespawnEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/MCPlayerRespawnEvent.md", "diff": "@@ -14,7 +14,7 @@ import crafttweaker.api.event.entity.player.MCPlayerRespawnEvent;\n## Extending MCPlayerEvent\n-MCPlayerRespawnEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCPlayerRespawnEvent\n+MCPlayerRespawnEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCPlayerRespawnEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/interact/MCPlayerInteractEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/entity/player/interact/MCPlayerInteractEvent.md", "diff": "@@ -15,7 +15,7 @@ import crafttweaker.api.event.entity.player.interact.MCPlayerInteractEvent;\n## Extending MCPlayerEvent\n-MCPlayerInteractEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCPlayerInteractEvent\n+MCPlayerInteractEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCPlayerInteractEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/event/player/MCAnvilRepairEvent.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/event/player/MCAnvilRepairEvent.md", "diff": "@@ -12,7 +12,7 @@ import crafttweaker.api.event.entity.player.MCAnvilRepairEvent;\n## Extending MCPlayerEvent\n-MCAnvilRepairEvent extends [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/player/MCPlayerEvent) are also available in MCAnvilRepairEvent\n+MCAnvilRepairEvent extends [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent). That means all methods available in [MCPlayerEvent](/vanilla/api/event/entity/player/MCPlayerEvent) are also available in MCAnvilRepairEvent\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "diff": "@@ -17,17 +17,17 @@ import crafttweaker.api.item.IIngredientTransformer;\nReturn Type: string\n```zenscript\n-IIngredientTransformer.getCommandString(transformedIngredient as T) as string\n+IIngredientTransformer.getCommandString(ingredient as T) as string\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| transformedIngredient | T | No Description Provided |\n-### transform\n+| ingredient | T | No Description Provided |\n+### matches\n-Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n+Return Type: boolean\n```zenscript\n-IIngredientTransformer.transform(stack as IItemStack) as IItemStack\n+IIngredientTransformer.matches(stack as IItemStack) as boolean\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n" }, { "change_type": "DELETE", "old_path": "mkdocs.yml", "new_path": null, "diff": "-# If you add a page, you must add it to the index here\n-nav:\n- Home: 'index.md'\n- Getting Started With Scripts: 'getting_started.md'\n- Commands: \"commands.md\"\n- Examples: \"examples.md\"\n- Recipes:\n- Recipe Managers: \"recipes/recipe_managers.md\"\n- Vanilla:\n- How to:\n- Crafting Table Recipes: 'vanilla/how_to/crafting_table.md'\n- Api:\n- Block:\n- Material:\n- MCMaterial: 'vanilla/api/block/material/MCMaterial.md'\n- MCMaterialColor: 'vanilla/api/block/material/MCMaterialColor.md'\n- Blocks:\n- MCBlock: 'vanilla/api/blocks/MCBlock.md'\n- MCBlockState: 'vanilla/api/blocks/MCBlockState.md'\n- Brackets:\n- CommandStringDisplayable: 'vanilla/api/brackets/CommandStringDisplayable.md'\n- Data:\n- ByteArrayData: 'vanilla/api/data/ByteArrayData.md'\n- ByteData: 'vanilla/api/data/ByteData.md'\n- DoubleData: 'vanilla/api/data/DoubleData.md'\n- FloatData: 'vanilla/api/data/FloatData.md'\n- ICollectionData: 'vanilla/api/data/ICollectionData.md'\n- IData: 'vanilla/api/data/IData.md'\n- INumberData: 'vanilla/api/data/INumberData.md'\n- IntArrayData: 'vanilla/api/data/IntArrayData.md'\n- IntData: 'vanilla/api/data/IntData.md'\n- ListData: 'vanilla/api/data/ListData.md'\n- LongArrayData: 'vanilla/api/data/LongArrayData.md'\n- LongData: 'vanilla/api/data/LongData.md'\n- MapData: 'vanilla/api/data/MapData.md'\n- ShortData: 'vanilla/api/data/ShortData.md'\n- StringData: 'vanilla/api/data/StringData.md'\n- Entities:\n- MCEntityClassification: 'vanilla/api/entities/MCEntityClassification.md'\n- MCEntityType: 'vanilla/api/entities/MCEntityType.md'\n- Entity:\n- Player:\n- MCPlayerEntity: 'vanilla/api/entity/player/MCPlayerEntity.md'\n- Event:\n- Entity:\n- Player:\n- MCAdvancementEvent: 'vanilla/api/event/entity/player/MCAdvancementEvent.md'\n- MCAnvilRepairEvent: 'vanilla/api/event/entity/player/MCAnvilRepairEvent.md'\n- MCArrowLooseEvent: 'vanilla/api/event/entity/player/MCArrowLooseEvent.md'\n- MCArrowNockEvent: 'vanilla/api/event/entity/player/MCArrowNockEvent.md'\n- MCAttackEntityEvent: 'vanilla/api/event/entity/player/MCAttackEntityEvent.md'\n- MCBonemealEvent: 'vanilla/api/event/entity/player/MCBonemealEvent.md'\n- MCCriticalHitEvent: 'vanilla/api/event/entity/player/MCCriticalHitEvent.md'\n- MCEntityItemPickupEvent: 'vanilla/api/event/entity/player/MCEntityItemPickupEvent.md'\n- MCFillBucketEvent: 'vanilla/api/event/entity/player/MCFillBucketEvent.md'\n- MCItemFishedEvent: 'vanilla/api/event/entity/player/MCItemFishedEvent.md'\n- MCItemTooltipEvent: 'vanilla/api/event/entity/player/MCItemTooltipEvent.md'\n- MCPlayerDestroyItemEvent: 'vanilla/api/event/entity/player/MCPlayerDestroyItemEvent.md'\n- MCPlayerFlyableFallEvent: 'vanilla/api/event/entity/player/MCPlayerFlyableFallEvent.md'\n- MCPlayerSetSpawnEvent: 'vanilla/api/event/entity/player/MCPlayerSetSpawnEvent.md'\n- MCPlayerSleepInBedEvent: 'vanilla/api/event/entity/player/MCPlayerSleepInBedEvent.md'\n- MCPlayerWakeUpEvent: 'vanilla/api/event/entity/player/MCPlayerWakeUpEvent.md'\n- MCSleepingLocationCheckEvent: 'vanilla/api/event/entity/player/MCSleepingLocationCheckEvent.md'\n- MCSleepingTimeCheckEvent: 'vanilla/api/event/entity/player/MCSleepingTimeCheckEvent.md'\n- MCUseHoeEvent: 'vanilla/api/event/entity/player/MCUseHoeEvent.md'\n- PlayerContainerEvent:\n- MCClose: 'vanilla/api/event/entity/player/PlayerContainerEvent/MCClose.md'\n- MCOpen: 'vanilla/api/event/entity/player/PlayerContainerEvent/MCOpen.md'\n- PlayerEvent:\n- MCItemCraftedEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCItemCraftedEvent.md'\n- MCItemPickupEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCItemPickupEvent.md'\n- MCItemSmeltedEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCItemSmeltedEvent.md'\n- MCPlayerChangedDimensionEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCPlayerChangedDimensionEvent.md'\n- MCPlayerLoggedInEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCPlayerLoggedInEvent.md'\n- MCPlayerLoggedOutEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCPlayerLoggedOutEvent.md'\n- MCPlayerRespawnEvent: 'vanilla/api/event/entity/player/PlayerEvent/MCPlayerRespawnEvent.md'\n- PlayerInteractEvent:\n- MCEntityInteract: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCEntityInteract.md'\n- MCEntityInteractSpecific: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCEntityInteractSpecific.md'\n- MCLeftClickBlock: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCLeftClickBlock.md'\n- MCLeftClickEmpty: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCLeftClickEmpty.md'\n- MCRightClickBlock: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickBlock.md'\n- MCRightClickEmpty: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickEmpty.md'\n- MCRightClickItem: 'vanilla/api/event/entity/player/PlayerInteractEvent/MCRightClickItem.md'\n- PlayerXpEvent:\n- MCLevelChange: 'vanilla/api/event/entity/player/PlayerXpEvent/MCLevelChange.md'\n- MCPickupXp: 'vanilla/api/event/entity/player/PlayerXpEvent/MCPickupXp.md'\n- MCXpChange: 'vanilla/api/event/entity/player/PlayerXpEvent/MCXpChange.md'\n- Food:\n- MCFood: 'vanilla/api/food/MCFood.md'\n- Items:\n- IIngredient: 'vanilla/api/items/IIngredient.md'\n- IItemStack: 'vanilla/api/items/IItemStack.md'\n- Logger:\n- ILogger: 'vanilla/api/logger/ILogger.md'\n- Managers:\n- BlastFurnaceManager: 'vanilla/api/managers/BlastFurnaceManager.md'\n- CampFireManager: 'vanilla/api/managers/CampFireManager.md'\n- CraftingTableManager: 'vanilla/api/managers/CraftingTableManager.md'\n- FurnaceManager: 'vanilla/api/managers/FurnaceManager.md'\n- ICookingRecipeManager: 'vanilla/api/managers/ICookingRecipeManager.md'\n- IRecipeManager: 'vanilla/api/managers/IRecipeManager.md'\n- SmokerManager: 'vanilla/api/managers/SmokerManager.md'\n- StoneCutterManager: 'vanilla/api/managers/StoneCutterManager.md'\n- Recipe:\n- RecipeFilter: 'vanilla/api/recipe/RecipeFilter.md'\n- RecipeFunctionArray: 'vanilla/api/recipe/RecipeFunctionArray.md'\n- RecipeFunctionMatrix: 'vanilla/api/recipe/RecipeFunctionMatrix.md'\n- RecipeFunctionSingle: 'vanilla/api/recipe/RecipeFunctionSingle.md'\n- Potions:\n- MCPotion: 'vanilla/api/potions/MCPotion.md'\n- MCPotionEffect: 'vanilla/api/potions/MCPotionEffect.md'\n- MCPotionEffectInstance: 'vanilla/api/potions/MCPotionEffectInstance.md'\n- Tags:\n- MCTag: 'vanilla/api/tags/MCTag.md'\n- Util:\n- BlockPos: 'vanilla/api/util/BlockPos.md'\n- Direction: 'vanilla/api/util/Direction.md'\n- DirectionAxis: 'vanilla/api/util/DirectionAxis.md'\n- World:\n- MCBiome: 'vanilla/api/world/MCBiome.md'\n- MCBiomeSpawnEntry: 'vanilla/api/world/MCBiomeSpawnEntry.md'\n- Mods:\n- ContentTweaker:\n- Simple Walkthrough: 'mods/contenttweaker/SimpleWalkthrough.md'\n- API:\n- BracketHandlers: 'mods/contenttweaker/API/BracketHandlers.md'\n- Api:\n- IIsBuilder: 'mods/contenttweaker/API/api/IIsBuilder.md'\n- Block:\n- BlockBuilder: 'mods/contenttweaker/API/block/BlockBuilder.md'\n- BlockTypeBuilder: 'mods/contenttweaker/API/block/BlockTypeBuilder.md'\n- Basic:\n- BlockBuilderBasic: 'mods/contenttweaker/API/block/basic/BlockBuilderBasic.md'\n- Pillar:\n- BlockBuilderPillarRotatable: 'mods/contenttweaker/API/block/pillar/BlockBuilderPillarRotatable.md'\n- Stairs:\n- BlockBuilderStairs: 'mods/contenttweaker/API/block/stairs/BlockBuilderStairs.md'\n- Item:\n- ItemBuilder: 'mods/contenttweaker/API/item/ItemBuilder.md'\n- ItemTypeBuilder: 'mods/contenttweaker/API/item/ItemTypeBuilder.md'\n- MCItemGroup: 'mods/contenttweaker/API/item/MCItemGroup.md'\n- MCToolType: 'mods/contenttweaker/API/item/MCToolType.md'\n- Basic:\n- ItemBuilderBasic: 'mods/contenttweaker/API/item/basic/ItemBuilderBasic.md'\n- Tool:\n- ItemBuilderTool: 'mods/contenttweaker/API/item/tool/ItemBuilderTool.md'\n- InitialInventory:\n- InitialInventory: 'mods/InitialInventory/InitialInventory.md'\n- JEITweaker:\n- JEITweaker: 'mods/JEITweaker/JEITweaker.md'\n- StoneAge:\n- Drying Rack: 'mods/StoneAge/DryingRackManager.md'\n- Flint Workbench: 'mods/StoneAge/FlintWorkbenchManager.md'\n- Millstone: 'mods/StoneAge/MillstoneManager.md'\n- Tanning Rack: 'mods/StoneAge/TanningRackManager.md'\n- Tree Stump: 'mods/StoneAge/TreeStumpManager.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Moved Events, and removed them from the main docs.json
139,040
24.12.2020 02:10:39
-3,600
f8e777a610d533cf2c4f626f4dfe2d23036d9ff4
After fixing the duplicate Name
[ { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs.json", "new_path": "docs_exported/crafttweaker/docs.json", "diff": "\"Items\": {\n\"ExpandIIngredientTransformers\": \"vanilla/api/items/ExpandIIngredientTransformers.md\",\n\"IIngredient\": \"vanilla/api/items/IIngredient.md\",\n+ \"IIngredientCondition\": \"vanilla/api/items/IIngredientCondition.md\",\n\"IIngredientTransformer\": \"vanilla/api/items/IIngredientTransformer.md\",\n\"IItemStack\": \"vanilla/api/items/IItemStack.md\",\n\"ITooltipFunction\": \"vanilla/api/items/ITooltipFunction.md\",\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientCondition.md", "diff": "+# IIngredientCondition&LT;T : IIngredient&GT;\n+\n+This class was added by a mod with mod-id `crafttweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import crafttweaker.api.item.IIngredientCondition;\n+```\n+\n+\n+## Methods\n+\n+### getCommandString\n+\n+Return Type: string\n+\n+```zenscript\n+IIngredientCondition.getCommandString(ingredient as T) as string\n+```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| ingredient | T | No Description Provided |\n+\n+### matches\n+\n+Return Type: boolean\n+\n+```zenscript\n+IIngredientCondition.matches(stack as IItemStack) as boolean\n+```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/items/IIngredientTransformer.md", "diff": "@@ -17,18 +17,18 @@ import crafttweaker.api.item.IIngredientTransformer;\nReturn Type: string\n```zenscript\n-IIngredientTransformer.getCommandString(ingredient as T) as string\n+IIngredientTransformer.getCommandString(transformedIngredient as T) as string\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| ingredient | T | No Description Provided |\n+| transformedIngredient | T | No Description Provided |\n-### matches\n+### transform\n-Return Type: boolean\n+Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n```zenscript\n-IIngredientTransformer.matches(stack as IItemStack) as boolean\n+IIngredientTransformer.transform(stack as IItemStack) as IItemStack\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/crafttweaker/docs/vanilla/api/items/MCIngredientConditioned.md", "new_path": "docs_exported/crafttweaker/docs/vanilla/api/items/MCIngredientConditioned.md", "diff": "@@ -41,6 +41,6 @@ MCIngredientConditioned.matches(stack as IItemStack, ignoreDamage as boolean) as\n| Name | Type | Has Getter | Has Setter |\n|------|------|------------|------------|\n| baseIngredient | T | true | false |\n-| condition | [IIngredientTransformer](/vanilla/api/items/IIngredientTransformer)&lt;T&gt; | true | false |\n+| condition | [IIngredientCondition](/vanilla/api/items/IIngredientCondition)&lt;T&gt; | true | false |\n| items | [IItemStack](/vanilla/api/items/IItemStack)[] | true | false |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
After fixing the duplicate Name
139,040
09.01.2021 20:00:49
-3,600
481b12bd1bc53a5b8d82a2310e41cd5df974ad85
Migration guide as separate page
[ { "change_type": "MODIFY", "old_path": "docs.json", "new_path": "docs.json", "diff": "{\n\"nav\": {\n\"Home\": \"index.md\",\n- \"Migrations\": {\n- \"7.1.0\": \"migrations/migration_7_1_0.md\"\n- },\n+ \"Migration Guide\": \"migration_guide.md\",\n\"Getting Started With Scripts\": \"getting_started.md\",\n\"Commands\": \"commands.md\",\n\"Examples\": \"examples.md\",\n+ \"Migrations\": {\n+ \"7.1.0\": \"migrations/migration_7_1_0.md\"\n+ },\n\"Recipes\": {\n\"Recipe Managers\": \"recipes/recipe_managers.md\"\n},\n" }, { "change_type": "MODIFY", "old_path": "docs/index.md", "new_path": "docs/index.md", "diff": "# CraftTweaker\n-**[There is a new Migration Guide for verion 7.1.0, click here to check it out](/migrations/migration_7_1_0.md)**\n+**[There is a new Migration Guide for verion 7.1.0, click here to check it out](/migrations/migration_7_1_0)**\nCraftTweaker is a Minecraft mod that allows modpack authors to customize the game, allowing for new recipes to be added, old ones to be removed and just general modpack customization!\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/migration_guide.md", "diff": "+# Migration Guide\n+\n+This page will list links to the required steps that need to be taken to migrate scripts from older versions of CraftTweaker to newer versions.\n+For most CraftTweaker updates, there won't be any steps necessary, so these updates are not listed here.\n+\n+* [CraftTweaker version 7.0.0 to 7.1.0](/migrations/migration_7_1_0)\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Migration guide as separate page
139,040
12.01.2021 22:54:13
-3,600
d70d4c0cf376a851676abb886d234a59bdc06319
Update migration_7_1_0.md
[ { "change_type": "MODIFY", "old_path": "docs/migrations/migration_7_1_0.md", "new_path": "docs/migrations/migration_7_1_0.md", "diff": "@@ -11,9 +11,10 @@ We replaced Tags with a generic system that is more extensible and will work bet\nThat change will break existing scripts in two ways:\n1) The specialized addition and removal methods have been removed. <br>You now use `add` and `remove` instead of `addItems`, `addFluids` and the like.\n-2) The syntax of the Bracket handlers now requires the tag type as an additional parameter. <br>So `<tag:forge:gems>` becomes `<tag:item:forge:gems>`\n+2) The syntax of the Bracket handlers now requires the tag type as an additional parameter. <br>So `<tag:forge:gems>` becomes `<tag:items:forge:gems>`\nThe `/ct dump tags` and `/ct hand` commands have been updated to reflect this change.\n+If you need to use any of IIngredient's expansion methods from an item tag, you need to call `.asIIngredient()` first.\nMigration example\n```zenscript\n@@ -35,6 +36,11 @@ myGemTagOld.removeItems(<item:minecraft:diamond>);\nvar myGemTagNew = <tag:items:forge:gems>;\nmyGemTagNew.add(<item:minecraft:bedrock>);\nmyGemTagNew.remove(<item:minecraft:diamond>);\n+\n+\n+//IIngredient expansins\n+var reuseOld = <tag:forge:gems>.reuse();\n+var reuseNew = <tag:items:forge:gems>.asIIngredient().reuse();\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update migration_7_1_0.md
139,090
29.06.2021 17:24:15
-3,600
dfcb9b86a2d555111b990008c6a9faa6127fd850
Added PneumaticCraft: Repressurized docs (for v2.12.6+)
[ { "change_type": "MODIFY", "old_path": "docs.json", "new_path": "docs.json", "diff": "\"Infusion Crafting\": \"mods/MysticalAgriculture/InfusionCrafting.md\",\n\"Reprocessor Crafting\": \"mods/MysticalAgriculture/ReprocessorCrafting.md\"\n},\n+ \"PneumaticCraft: Repressurized\": {\n+ \"Assembly System\": \"mods/PneumaticCraft-Repressurized/AssemblySystem.md\",\n+ \"Block Heat Properties\": \"mods/PneumaticCraft-Repressurized/BlockHeatProperties.md\",\n+ \"Fluid Mixer\": \"mods/PneumaticCraft-Repressurized/FluidMixer.md\",\n+ \"Explosion Crafting\": \"mods/PneumaticCraft-Repressurized/ExplosionCrafting.md\",\n+ \"Experience Fluids\": \"mods/PneumaticCraft-Repressurized/XPFluids.md\",\n+ \"Fuel Quality\": \"mods/PneumaticCraft-Repressurized/FuelQuality.md\",\n+ \"Heat Frame Cooling\": \"mods/PneumaticCraft-Repressurized/HeatFrameCooling.md\",\n+ \"Pressure Chamber\": \"mods/PneumaticCraft-Repressurized/PressureChamber.md\",\n+ \"Refinery\": \"mods/PneumaticCraft-Repressurized/Refinery.md\",\n+ \"Thermopneumatic Processing Plant\": \"mods/PneumaticCraft-Repressurized/ThermoPlant.md\"\n+ },\n\"RecipeStages\": {\n\"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/AssemblySystem.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Assembly System\n+\n+Assembly System recipes are a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implement all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`. There are two separate Assembly recipe types: `<recipetype:pneumaticcraft:assembly_laser>` and `<recipetype:pneumaticcraft:assembly_drill>`.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Assembly recipes require a single input item and a single output item.\n+\n+The following script adds a recipe to convert 8 Slimeballs into 1 Magma Cream with the laser:\n+\n+```zenscript\n+// <recipetype:pneumaticcraft:assembly_laser>.addRecipe(name as string, IIngredientWithAmount input, IItemStack output)\n+<recipetype:pneumaticcraft:assembly_laser>.addRecipe(\"slime_to_magma\", <item:minecraft:slimeball> * 8, <item:minecraft:magma_cream>);\n+```\n+\n+The following script adds a recipe to convert 1 Glass into 4 Glass Panes with the drill:\n+\n+```zenscript\n+// <recipetype:pneumaticcraft:assembly_laser>.addRecipe(name as string, IIngredientWithAmount input, IItemStack output)\n+<recipetype:pneumaticcraft:assembly_drill>.addRecipe(\"glass_to_pane\", <item:minecraft:glass>, <item:minecraft:glass_pane> * 4);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Assembly recipes:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:assembly_laser>.removeAll();\n+<recipetype:pneumaticcraft:assembly_drill>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/ExplosionCrafting.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Explosion Crafting\n+\n+Explosion Crafting is a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implements all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Explosion Crafting recipes require a single input item, a list of output items and an integer (percentage) loss rate.\n+\n+The following script removes the default recipes converting Iron to Compressed Iron (at 20% loss rate) and adds much less generous replacements:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:explosion_crafting>.removeAll();\n+\n+// <recipetype:pneumaticcraft:explosion_crafting>.addRecipe(name as string, IIngredientWithAmount input, IItemStack[] outputs, int lossRate)\n+<recipetype:pneumaticcraft:explosion_crafting>.addRecipe(\"hard_compressed_iron_ingot\", <tag:forge:ingots/iron>, [<item:pneumaticcraft:ingot_iron_compressed>], 75);\n+<recipetype:pneumaticcraft:explosion_crafting>.addRecipe(\"hard_compressed_iron_block\", <tag:forge:storage_blocks/iron>, [<item:pneumaticcraft:compressed_iron_block>], 75);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Explosion Crafting recipes:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:explosion_crafting>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/FluidMixer.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Fluid Mixer\n+\n+The Fluid Mixer is a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implements all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Fluid Mixer recipes require two input fluids, an optional output fluid and output item (although at least one of those must be non-empty), a minimum pressure, and base processing time, in ticks (effective processing time may be lower if extra pressure is supplied).\n+\n+The following script adds a recipe to convert 50mB of Diesel and 50mB of Lava into 100mB Lubricant and no item, requiring 2.5 bar of pressure and 60 ticks base processing time.\n+\n+```zenscript\n+//<recipetype:pneumaticcraft:fluid_mixer>.addRecipe(name as string, input1 as CTFluidIngredient, input2 as CTFluidIngredient, fluidOutput as IFluidStack, itemOutput as IItemStack, pressure as float, processingTime as int)\n+<recipetype:pneumaticcraft:fluid_mixer>.addRecipe(\"diesel_lava_to_lubricant\", <fluid:pneumaticcraft:diesel> * 50, <fluid:minecraft:lava> * 50, <fluid:pneumaticcraft:lubricant> * 100, <item:minecraft:air> * 0, 2.5, 60);\n+```\n+\n+The following script adds a recipe to convert 1000mB of Molten Plastic and 2000mB of Water to 2 Plastic Sheets (and no fluid), requiring 4 bar of pressure and taking 200 ticks base processing time:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:fluid_mixer>.addRecipe(\"water_plastic_to_sheets\", <fluid:pneumaticcraft:plastic> * 1000, <fluid:minecraft:water> * 2000, <fluid:minecraft:water> * 0, <item:pneumaticcraft:plastic> * 2, 4.0, 200);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Fluid Mixer recipes:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:fluid_mixer>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/FuelQuality.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Fuel Quality\n+\n+Fuel Quality is a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implements all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`.\n+\n+Fuel Quality recipes define the amount of compressed air produced by burning a given fluid in a Liquid Compressor (or Advanced Liquid Compressor). They also affect the length of time a fuel will burn in the Kerosene Lamp.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Fuel Quality recipes require a single input fluid ingredient, an integer defining the amount of compressed air produced by burning that fluid, and an optional burn rate, which determines how fast the fuel burns without affecting the overall air generation.\n+\n+For reference, the default fuel values for PneumaticCraft fuels are (for 1000mB of the fuel):\n+\n+* Crude Oil: 200,000mL air (burn rate = 0.25)\n+* Ethanol: 400,000mL air\n+* Diesel and Biodiesel: 1,000,000mL air (burn rate = 0.8)\n+* Kerosene: 1,100,000mL air\n+* Gasoline: 1,500,000mL air (burn rate = 1.5)\n+* LPG: 1,800,000mL air (burn rate = 1.25)\n+\n+Fuel values can be inspected in any Liquid Compressor GUI via the Fuels side tab.\n+\n+The following script adds a recipe to give Memory Essence a fuel value of 2,500mL air/mB & a burn rate of 2.0:\n+\n+```zenscript\n+// <recipetype:pneumaticcraft:fuel_quality>.addRecipe(name as string, inputFuel as CTFluidIngredient, airProduced as int, @Optional burnRate as float)\n+<recipetype:pneumaticcraft:fuel_quality>.addRecipe(\"memory_essence_fuel\", <fluid:pneumaticcraft:memory_essence> * 1, 2500, 2.0);\n+```\n+\n+The following script adds a recipe to give Water a fuel value of 1mL air/mB:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:fuel_quality>.addRecipe(\"water_fuel\", <fluid:minecraft:water> * 1, 1);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Fuel Quality entries (making Liquid Compressors useless!):\n+\n+```zenscript\n+<recipetype:pneumaticcraft:fuel_quality>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/PressureChamber.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Pressure Chamber\n+\n+The Pressure Chamber is a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implements all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Pressure Chamber recipes require a list of input item ingredients, a list of output items, and a minimum pressure. If the supplied pressure is negative, the chamber's pressure must be *below* that pressure, i.e. it is the absolute value of the pressure that is considered.\n+\n+The following script adds a recipe to convert a Diamond and 4 Slime Balls into an Emerald, requiring 4.0 bar of pressure:\n+\n+```zenscript\n+// <recipetype:pneumaticcraft:pressure_chamber>.addRecipe(name as string, input as IIngredientWithAmount[], outputs as IItemStack, pressure as float)\n+<recipetype:pneumaticcraft:pressure_chamber>.addRecipe(\"diamond_to_emerald\", [<tag:forge:gems/diamond>, <tag:items:forge:slimeballs> * 4], [<item:minecraft:emerald>], 4.0);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Pressure Chamber recipes:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:pressure_chamber>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/ThermoPlant.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Thermopneumatic Processing Plant\n+\n+The Thermopneumatic Processing Plant is a type of [IRecipeManager](/vanilla/api/managers/IRecipeManager) and implements all the methods that are available to IRecipeManager's, such as `removeRecipe()` and `removeAll()`.\n+\n+## Methods\n+\n+#### Add Recipe\n+\n+Thermopneumatic Processing Plant recipes require a single input fluid ingredient, a single input item ingredient, and an output fluid and/or item (at least one of the outputs must be non-empty), as well as a pressure and minimum temperature (in Kelvin).\n+\n+The following additional optional parameters can be provided:\n+* A maximum temperature (in Kelvin, default: `Integer.MAX_VALUE`)\n+* A processing speed multiplier (default: 1.0)\n+* A boolean indicating if this reaction is *exothermic*, i.e. produces heat when it runs (default: false)\n+\n+The following script adds a recipe to convert 140mL Memory Essence (or other experience fluid) and a Bottle into a Bottle o' Enchanting, requiring 2.0 bar of pressure and no specific temperature:\n+\n+```zenscript\n+// <recipetype:pneumaticcraft:thermo_plant>.addRecipe(name as string, inputFluid as CTFluidIngredient, inputItem as IIngredient, outputFluid as IFluidStack, outputItem as IItemStack, float pressure, int minTemperature, @Optional int maxTemperature, @Optional float speedMultiplier, @Optional boolean isExothermic)\n+<recipetype:pneumaticcraft:thermo_plant>.addRecipe(\"xp_bottling\", <tag:fluids:forge:experience> * 140, <item:minecraft:glass_bottle>, <fluid:minecraft:water> * 0, <item:minecraft:experience_bottle>, 2.0, 0);\n+// as above but runs at half speed (2147483647 max temperature is Integer.MAX_VALUE)\n+<recipetype:pneumaticcraft:thermo_plant>.addRecipe(\"xp_bottling\", <tag:fluids:forge:experience> * 140, <item:minecraft:glass_bottle>, <fluid:minecraft:water> * 0, <item:minecraft:experience_bottle>, 2.0, 0, 2147483647, 0.5);\n+```\n+\n+#### Remove Recipes\n+\n+The following script will remove all Thermopneumatic Processing Plant recipes:\n+\n+```zenscript\n+<recipetype:pneumaticcraft:thermo_plant>.removeAll();\n+```\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/PneumaticCraft-Repressurized/XPFluids.md", "diff": "+::requiredMod[PneumaticCraft: Repressurized]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized}\n+\n+Requires PneumaticCraft: Repressurized v2.12.6 or newer.\n+\n+# Experience Fluids\n+\n+Experience Fluids provide a way to register extra fluids (or fluid tags) with PneumaticCraft to be treated as experience fluids. Such fluids are assigned a mB -> XP point ratio, and can be accepted or output by an Aerial Interface with an installed Dispenser upgrade. Where multiple fluids are available, the Aerial Interface GUI provides an option to select which fluid that particular Aerial Interface should use.\n+\n+By default, any fluids in the `forge:experience` fluid tag are registered with a ratio of 20mB -> 1 XP point. This includes PneumaticCraft's own Memory Essence fluid. Changing the ratio for `forge:experience` is very strongly *not advised* since other mods also use this ratio. If you want to have other fluids treated as experience fluids with the standard 20mB/XP ratio, you should add that fluid to the `forge:experience` fluid tag rather than registering it here.\n+\n+## Methods\n+\n+#### Registering Fluids\n+\n+The following script adds Lava as an experience fluid with an XP ratio of 1000mB Lava to 1 XP point:\n+\n+```zenscript\n+// mods.pneumaticcraft.XPFluid.registerXPFluid(fluid as CTFluidIngredient, ratio as int)\n+mods.pneumaticcraft.XPFluid.registerXPFluid(<fluid:minecraft:lava> * 1, 1000)\n+// equivalent to above\n+mods.pneumaticcraft.XPFluid.registerXPFluid(<fluid:minecraft:lava> * 1000, 1000000)\n+```\n+\n+The following script unregisters all `forge:experience` fluids:\n+```zenscript\n+mods.pneumaticcraft.XPFluid.unregisterXPFluid(<tag:fluids:forge:experience>);\n+```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added PneumaticCraft: Repressurized docs (for v2.12.6+) (#441)
139,044
29.06.2021 22:08:17
-7,200
00c7893eadb0a7fe13708bfc9f4ca020d2fb18a7
Added Atum 2 documention for 1.16
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/Atum2/Kiln.md", "diff": "+::requiredMod[Atum 2]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/atum}\n+\n+# Kiln\n+\n+The Kiln is a multiblock used for quickly processing building blocks, that can be acquired through smelting something in a furnace.\n+\n+## Blacklist\n+\n+The Kiln recipes are based on the vanilla Furnaces recipes, sorting out everything besides building blocks. The blacklist is a way for you to further minimize what recipes are grabbed from the vanilla Furnace.\n+\n+`<recipetype:atum:kiln>.blacklist(id);`\n+\n+- `id` A namespaced ID for the input block/item that should be blacklisted.\n+\n+Removes the recipe(s) with the specified item/block from the recipes the Kiln will pull from the vanilla Furnace\n+\n+```zenscript\n+<recipetype:atum:kiln>.blacklist(\"minecraft:cobblestone\");\n+```\n+\n+## Adding a Recipe\n+\n+`<recipetype:atum:kiln>.addRecipe(input, output, experience, @Optional cookTime);`\n+\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `experience` Float number\n+- `cookTime` Integer number (If left empty, it'll default to 75)\n+\n+Adds a recipe with the specified input, output, experience & cook time\n+\n+```zenscript\n+<recipetype:atum:kiln>.addRecipe(<item:atum:dirty_bone_block>, <item:atum:alabaster>, 0.2);\n+```\n+\n+## Removing a Recipe\n+\n+The removal methods only work for recipes added specifically for the Kiln by Atum (Or other mods)\n+By default in Atum this will only be the Marl to White Ceramic Tile Block recipe.\n+If you wish to remove something else, you're probably looking for the blacklist (Documentation above)\n+\n+### Remove Recipes by Output\n+\n+`<recipetype:atum:kiln>.removeRecipeByOutput(output);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n+\n+```zenscript\n+<recipetype:atum:kiln>.removeRecipeByOutput(<item:atum:marl>);\n+```\n+\n+### Remove Recipes by Output & Input\n+\n+`<recipetype:atum:kiln>.removeRecipeByOutputInput(output, input);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes the specific recipe, with the specified output & input\n+\n+```zenscript\n+<recipetype:atum:kiln>.removeRecipeByOutputInput(<item:atum:cermic_white>, <item:atum:marl>);\n+```\n+\n+### Other removal methods\n+\n+See [Recipe Managers](/recipes/recipe_managers) for other ways to remove Spinning Wheel recipes\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/Atum2/Quern.md", "diff": "+::requiredMod[Atum 2]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/atum}\n+\n+# Quern\n+\n+## Adding a Recipe\n+\n+`<recipetype:atum:quern>.addRecipe(input, output, rotations);`\n+\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `rotations` Any number above 0\n+\n+Adds a recipe with the specified input & output, that takes the specified rotations to complete querning\n+\n+```zenscript\n+<recipetype:atum:quern>.addRecipe(<item:atum:fertile_soil>, <item:atum:fertile_soil_pile>, 3);\n+```\n+\n+## Removing a Recipe\n+\n+### Remove Recipes by Output\n+\n+`<recipetype:atum:quern>.removeRecipeByOutput(output);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n+\n+```zenscript\n+<recipetype:atum:quern>.removeRecipeByOutput(<item:atum:emmer_flour>);\n+```\n+\n+### Remove Recipes by Output & Input\n+\n+`<recipetype:atum:quern>.removeRecipeByOutputInput(output, input);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes the specific recipe, with the specified output & input\n+\n+```zenscript\n+<recipetype:atum:quern>.removeRecipeByOutputInput(<item:atum:emmer_flour>, <item:atum:emmer>);\n+```\n+\n+### Other removal methods\n+\n+See [Recipe Managers](/recipes/recipe_managers) for other ways to remove Quern recipes\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/mods/Atum2/SpinningWheel.md", "diff": "+::requiredMod[Atum 2]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/atum}\n+\n+# Spinning Wheel\n+\n+## Adding a Recipe\n+\n+`<recipetype:atum:spinning_wheel>.addRecipe(input, output, rotations);`\n+\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `rotations` Any number above 0\n+\n+Adds a recipe with the specified input & output, that takes the specified rotations to complete the recipe\n+\n+```zenscript\n+<recipetype:atum:spinning_wheel>.addRecipe(<item:atum:scroll>, <item:minecraft:string>, 3);\n+```\n+\n+## Removing a Recipe\n+\n+### Remove Recipes by Output\n+\n+`<recipetype:atum:spinning_wheel>.removeRecipeByOutput(output);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n+\n+```zenscript\n+<recipetype:atum:spinning_wheel>.removeRecipeByOutput(<item:atum:linen_thread>);\n+```\n+\n+### Remove Recipes by Output & Input\n+\n+`<recipetype:atum:spinning_wheel>.removeRecipeByOutputInput(output, input);`\n+\n+- `output` [IItemStack](/vanilla/api/items/IItemStack)\n+- `input` [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes the specific recipe, with the specified output & input\n+\n+```zenscript\n+<recipetype:atum:spinning_wheel>.removeRecipeByOutputInput(<item:atum:linen_thread>, <item:atum:flax>);\n+```\n+\n+### Other removal methods\n+\n+See [Recipe Managers](/recipes/recipe_managers) for other ways to remove Spinning Wheel recipes\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Atum 2 documention for 1.16 (#443)
139,071
20.07.2021 00:45:58
-3,600
6824e559959160f1c7ac0d7844f9389dbddca4ea
Add documentation for Farmer's Delight support * Add documentation for (hopefully) upcoming Farmer's Delight support See * Add autogenerated docs
[ { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/farmersdelight/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"Farmersdelight\": {\n+ \"CookingPot\": \"mods/farmersdelight/CookingPot.md\",\n+ \"CuttingBoard\": \"mods/farmersdelight/CuttingBoard.md\",\n+ \"ToolIngredient\": \"mods/farmersdelight/ToolIngredient.md\"\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/farmersdelight/docs/mods/farmersdelight/CookingPot.md", "diff": "+# CookingPot\n+\n+Farmer's Delight Cooking Pot recipes.\n+\n+This class was added by a mod with mod-id `farmersdelight`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.CookingPot;\n+```\n+\n+\n+## Implemented Interfaces\n+CookingPot implements the following interfaces. That means all methods defined in these interfaces are also available in CookingPot\n+\n+- [IRecipeManager](/vanilla/api/managers/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJSONRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.addJSONRecipe(name as string, data as IData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| data | [IData](/vanilla/api/data/IData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+Add a cooking pot recipe.\n+\n+Return Type: void\n+\n+```zenscript\n+// CookingPot.addRecipe(name as string, output as IItemStack, inputs as IIngredient[], container as IItemStack, experience as float, cookTime as int) as void\n+\n+<recipetype:farmersdelight:cooking>.addRecipe(\"cooking_pot_test\", <item:minecraft:enchanted_golden_apple>, [<item:minecraft:gold_block>], <item:minecraft:apple>, 100, 400);\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| name | string | Name of the recipe to add | false | |\n+| output | [IItemStack](/vanilla/api/items/IItemStack) | Output item | false | |\n+| inputs | [IIngredient](/vanilla/api/items/IIngredient)[] | Input ingredients | false | |\n+| container | [IItemStack](/vanilla/api/items/IItemStack) | Container item | true | |\n+| experience | float | Experience granted | true | 0.0 |\n+| cookTime | int | Cooking time | true | 200 |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt;\n+\n+```zenscript\n+// CookingPot.getAllRecipes() as stdlib.List<WrapperRecipe>\n+\n+<recipetype:farmersdelight:cooking>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)\n+\n+```zenscript\n+CookingPot.getRecipeByName(name as string) as WrapperRecipe\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)[[MCResourceLocation](/vanilla/api/util/MCResourceLocation)]\n+\n+```zenscript\n+// CookingPot.getRecipeMap() as WrapperRecipe[MCResourceLocation]\n+\n+<recipetype:farmersdelight:cooking>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt;\n+\n+```zenscript\n+CookingPot.getRecipesByOutput(output as IIngredient) as stdlib.List<WrapperRecipe>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/items/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// CookingPot.removeAll() as void\n+\n+<recipetype:farmersdelight:cooking>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeByModid(modid as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modid | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeByModid(modid as string, exclude as RecipeFilter) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modid | string | No Description Provided |\n+| exclude | [RecipeFilter](/vanilla/api/recipe/RecipeFilter) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeByName(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeByRegex(regex as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| regex | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeRecipe(output as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/items/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeRecipe(output as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeRecipeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+CookingPot.removeRecipeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt; | true | false | No Description Provided |\n+| recipeMap | [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)[[MCResourceLocation](/vanilla/api/util/MCResourceLocation)] | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/farmersdelight/docs/mods/farmersdelight/CuttingBoard.md", "diff": "+# CuttingBoard\n+\n+Farmer's Delight Cutting Board recipes.\n+\n+This class was added by a mod with mod-id `farmersdelight`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.CuttingBoard;\n+```\n+\n+\n+## Implemented Interfaces\n+CuttingBoard implements the following interfaces. That means all methods defined in these interfaces are also available in CuttingBoard\n+\n+- [IRecipeManager](/vanilla/api/managers/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJSONRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.addJSONRecipe(name as string, data as IData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| data | [IData](/vanilla/api/data/IData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+Add a cutting board recipe.\n+\n+Return Type: void\n+\n+```zenscript\n+// CuttingBoard.addRecipe(name as string, input as IIngredient, results as IItemStack[], tool as IIngredient, sound as string) as void\n+\n+<recipetype:farmersdelight:cutting>.addRecipe(\"cutting_board_test\", <item:minecraft:gravel>, [<item:minecraft:flint>], <item:minecraft:string>, \"minecraft:block.gravel.break\");\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| name | string | Name of the recipe to add | false | |\n+| input | [IIngredient](/vanilla/api/items/IIngredient) | Input ingredient | false | |\n+| results | [IItemStack](/vanilla/api/items/IItemStack)[] | Output items | false | |\n+| tool | [IIngredient](/vanilla/api/items/IIngredient) | Tool ingredient | false | |\n+| sound | string | Sound event name | true | |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt;\n+\n+```zenscript\n+// CuttingBoard.getAllRecipes() as stdlib.List<WrapperRecipe>\n+\n+<recipetype:farmersdelight:cutting>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)\n+\n+```zenscript\n+CuttingBoard.getRecipeByName(name as string) as WrapperRecipe\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)[[MCResourceLocation](/vanilla/api/util/MCResourceLocation)]\n+\n+```zenscript\n+// CuttingBoard.getRecipeMap() as WrapperRecipe[MCResourceLocation]\n+\n+<recipetype:farmersdelight:cutting>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt;\n+\n+```zenscript\n+CuttingBoard.getRecipesByOutput(output as IIngredient) as stdlib.List<WrapperRecipe>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/items/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// CuttingBoard.removeAll() as void\n+\n+<recipetype:farmersdelight:cutting>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeByModid(modid as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modid | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeByModid(modid as string, exclude as RecipeFilter) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modid | string | No Description Provided |\n+| exclude | [RecipeFilter](/vanilla/api/recipe/RecipeFilter) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeByName(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeByRegex(regex as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| regex | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeRecipe(output as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/items/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeRecipe}\n+\n+Remove a cutting board recipe with multiple outputs.\n+\n+Return Type: void\n+\n+```zenscript\n+// CuttingBoard.removeRecipe(outputs as IItemStack[]) as void\n+\n+<recipetype:farmersdelight:cutting>.removeRecipe([<item:farmersdelight:cooked_salmon_slice> * 2, <item:minecraft:bone_meal>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| outputs | [IItemStack](/vanilla/api/items/IItemStack)[] | Output items |\n+\n+\n+:::\n+\n+:::group{name=removeRecipeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoard.removeRecipeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;[WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)&gt; | true | false | No Description Provided |\n+| recipeMap | [WrapperRecipe](/vanilla/api/recipe/WrapperRecipe)[[MCResourceLocation](/vanilla/api/util/MCResourceLocation)] | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/farmersdelight/docs/mods/farmersdelight/ToolIngredient.md", "diff": "+# ToolIngredient\n+\n+An ingredient that matches any item with the given tool type.\n+\n+This class was added by a mod with mod-id `farmersdelight`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.ToolIngredient;\n+```\n+\n+\n+## Implemented Interfaces\n+ToolIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in ToolIngredient\n+\n+- [IIngredient](/vanilla/api/items/IIngredient)\n+\n+## Static Methods\n+\n+:::group{name=getToolIngredient}\n+\n+Get a tool ingredient from a tool type name.\n+\n+Returns: The ingredient\n+Return Type: [ToolIngredient](/mods/farmersdelight/ToolIngredient)\n+\n+```zenscript\n+<toolingredient:axe>\n+\n+// ToolIngredient.getToolIngredient(type as string) as ToolIngredient\n+\n+ToolIngredient.getToolIngredient(\"axe\");\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| type | string | The name of the type |\n+\n+\n+:::\n+\n+:::group{name=getToolIngredient}\n+\n+Get a tool ingredient from a tool type.\n+\n+Returns: The ingredient\n+Return Type: [ToolIngredient](/mods/farmersdelight/ToolIngredient)\n+\n+```zenscript\n+// ToolIngredient.getToolIngredient(type as ToolType) as ToolIngredient\n+\n+ToolIngredient.getToolIngredient(<tooltype:axe>);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| type | [ToolType](/vanilla/api/tool/ToolType) | The tool type |\n+\n+\n+:::\n+\n+## Casters\n+\n+| Result type | Is Implicit |\n+|-------------|-------------|\n+| [IData](/vanilla/api/data/IData) | true |\n+| [MapData](/vanilla/api/data/MapData) | true |\n+\n+## Methods\n+\n+:::group{name=addGlobalAttributeModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.addGlobalAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation, slotTypes as MCEquipmentSlotType[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| attribute | [Attribute](/vanilla/api/entity/Attribute) | No Description Provided |\n+| name | string | No Description Provided |\n+| value | double | No Description Provided |\n+| operation | [AttributeOperation](/vanilla/api/entity/AttributeOperation) | No Description Provided |\n+| slotTypes | [MCEquipmentSlotType](/vanilla/api/util/MCEquipmentSlotType)[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addGlobalAttributeModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.addGlobalAttributeModifier(attribute as Attribute, uuid as string, name as string, value as double, operation as AttributeOperation, slotTypes as MCEquipmentSlotType[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| attribute | [Attribute](/vanilla/api/entity/Attribute) | No Description Provided |\n+| uuid | string | No Description Provided |\n+| name | string | No Description Provided |\n+| value | double | No Description Provided |\n+| operation | [AttributeOperation](/vanilla/api/entity/AttributeOperation) | No Description Provided |\n+| slotTypes | [MCEquipmentSlotType](/vanilla/api/util/MCEquipmentSlotType)[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addShiftTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.addShiftTooltip(arg0 as MCTextComponent, arg1 as MCTextComponent) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| arg0 | [MCTextComponent](/vanilla/api/util/text/MCTextComponent) | No Description Provided | false | |\n+| arg1 | [MCTextComponent](/vanilla/api/util/text/MCTextComponent) | No Description Provided | true | |\n+\n+\n+:::\n+\n+:::group{name=addTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.addTooltip(content as MCTextComponent) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| content | [MCTextComponent](/vanilla/api/util/text/MCTextComponent) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=anyDamage}\n+\n+Return Type: [MCIngredientConditioned](/vanilla/api/items/MCIngredientConditioned)&lt;[IIngredient](/vanilla/api/items/IIngredient)&gt;\n+\n+```zenscript\n+// ToolIngredient.anyDamage() as MCIngredientConditioned<IIngredient>\n+\n+myToolIngredient.anyDamage();\n+```\n+\n+:::\n+\n+:::group{name=clearTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+// ToolIngredient.clearTooltip() as void\n+\n+myToolIngredient.clearTooltip();\n+```\n+\n+:::\n+\n+:::group{name=contains}\n+\n+Return Type: boolean\n+\n+```zenscript\n+ToolIngredient.contains(ingredient as IIngredient) as boolean\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| ingredient | [IIngredient](/vanilla/api/items/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRemainingItem}\n+\n+Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n+\n+```zenscript\n+ToolIngredient.getRemainingItem(stack as IItemStack) as IItemStack\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=matches}\n+\n+Return Type: boolean\n+\n+```zenscript\n+ToolIngredient.matches(stack as IItemStack) as boolean\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=modifyShiftTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.modifyShiftTooltip(arg0 as ITooltipFunction, arg1 as ITooltipFunction) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| arg0 | [ITooltipFunction](/vanilla/api/items/ITooltipFunction) | No Description Provided | false | |\n+| arg1 | [ITooltipFunction](/vanilla/api/items/ITooltipFunction) | No Description Provided | true | |\n+\n+\n+:::\n+\n+:::group{name=modifyTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.modifyTooltip(function as ITooltipFunction) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| function | [ITooltipFunction](/vanilla/api/items/ITooltipFunction) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=only}\n+\n+Return Type: [MCIngredientConditioned](/vanilla/api/items/MCIngredientConditioned)&lt;[IIngredient](/vanilla/api/items/IIngredient)&gt;\n+\n+```zenscript\n+ToolIngredient.only(condition as IIngredientCondition<IIngredient>) as MCIngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| condition | [IIngredientCondition](/vanilla/api/items/IIngredientCondition)&lt;[IIngredient](/vanilla/api/items/IIngredient)&gt; | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=onlyDamaged}\n+\n+Return Type: [MCIngredientConditioned](/vanilla/api/items/MCIngredientConditioned)&lt;[IIngredient](/vanilla/api/items/IIngredient)&gt;\n+\n+```zenscript\n+// ToolIngredient.onlyDamaged() as MCIngredientConditioned<IIngredient>\n+\n+myToolIngredient.onlyDamaged();\n+```\n+\n+:::\n+\n+:::group{name=onlyIf}\n+\n+Return Type: [MCIngredientConditioned](/vanilla/api/items/MCIngredientConditioned)&lt;[IIngredient](/vanilla/api/items/IIngredient)&gt;\n+\n+```zenscript\n+ToolIngredient.onlyIf(arg0 as string, arg1 as Predicate<IItemStack>) as MCIngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| arg0 | string | No Description Provided | false | |\n+| arg1 | Predicate&lt;[IItemStack](/vanilla/api/items/IItemStack)&gt; | No Description Provided | true | |\n+\n+\n+:::\n+\n+:::group{name=removeGlobalAttribute}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.removeGlobalAttribute(attribute as Attribute, slotTypes as MCEquipmentSlotType[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| attribute | [Attribute](/vanilla/api/entity/Attribute) | No Description Provided |\n+| slotTypes | [MCEquipmentSlotType](/vanilla/api/util/MCEquipmentSlotType)[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeGlobalAttributeModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.removeGlobalAttributeModifier(uuid as string, slotTypes as MCEquipmentSlotType[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| uuid | string | No Description Provided |\n+| slotTypes | [MCEquipmentSlotType](/vanilla/api/util/MCEquipmentSlotType)[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeTooltip}\n+\n+Return Type: void\n+\n+```zenscript\n+ToolIngredient.removeTooltip(regex as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| regex | string | No Description Provided |\n+\n+\n+:::\n+\n+\n+## Operators\n+\n+:::group{name=CONTAINS}\n+\n+```zenscript\n+ingredient as IIngredient in myToolIngredient\n+```\n+\n+:::\n+\n+:::group{name=OR}\n+\n+```zenscript\n+myToolIngredient | other as IIngredient\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| burnTime | void | false | true | No Description Provided |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add documentation for Farmer's Delight support (#395) * Add documentation for (hopefully) upcoming Farmer's Delight support See https://github.com/vectorwing/FarmersDelight/pull/181 * Add autogenerated docs Co-authored-by: eutropius225 <eutropius225@users.noreply.github.com>
139,040
30.10.2021 19:04:10
-7,200
b2f775a2f96ea1ecea373f7d98b99465d73c7c09
Added Arrays and List page * Added Arrays and List page Closes * codeblocks use zenscript not zencode
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/tutorial/IntroductionToScripting/ArraysAndLists.md", "diff": "+# Arrays and Lists\n+\n+Often in programming you will encounter a situation, where you need not one of something, but multiple elements.\n+For example, when creating a crafting table recipe, you need not one input, but up to 9.\n+Still, all of these elements somehow \"belong\" together as a single grouping.\n+\n+Depending on whom you ask, this grouping can have many names.\n+These names could include `Lists`, `Arrays`, `Sets`, `Collections`, `Fields`, `Vectors`.\n+Furthermore, some of these names carry specific meanings with them as to what these structures allow you to do with the data stored inside them.\n+\n+In this page, we will look at the way `Lists` and `Arrays` can be used from within ZenCode scripts.\n+For the terminology, we will call the items inside a List or an Array as `Elements` of that structure.\n+For example, in the array below, `\"A\"`, `\"B\"` and `\"C\"` would be the elements of the array `arr`.\n+\n+```zenscript\n+var arr = [\"A\", \"B\", \"C\"] as string[];\n+```\n+\n+Also, this guide will only cover *linear* Arrays.\n+These are the arrays that you will most likely encounter when working with mods.\n+\n+The other sort of arrays are *rectangular* Arrays, which take more than one index at a time, like below.\n+They will be covered in another wiki page eventually, though some of their properties are not yet implemented properly.\n+```zenscript\n+var rectangularArray = new string[,](3, 3, \"X\"); //creates a 3x3 Grid which is filled with \"X\" on every slot.\n+println(rectangularArray[0,0]); //Accessing elements here requires 2 indices\n+```\n+\n+## The main difference between Lists and Arrays\n+\n+The most important difference between Lists and Arrays is their size.\n+Or rather, if they can shrink or expand in size.\n+\n+Arrays are said to have a **fixed size**. That means that once you have created an Array, you **cannot add additional elements to it**.\n+You can, however, replace an element inside the array with another element.\n+\n+Lists on the other hand are said to have a **variable size**. That means you **can add additional** elements to a list if you need to.\n+\n+So if a List's size can be changed but an Array's cannot, why not always use Lists?\n+That comes from the ways that fixed sizes also gives you the ensurance that nothing gets messed up by accident.\n+For example, what if you registered a crafting recipe but then added a new item to the List you used as inputs?\n+Would the recipe now need to heed that additional item or adhere to the List you gave it at the beginning?\n+Additionally, the Array's type syntax might be easier to read for some, especially when it comes to nested structures.\n+For example, `string[][]` might be easier to read and understand than `List<List<string>>` for some.\n+\n+## Lists and Arrays can be converted to each other\n+\n+You can convert between Lists and Arrays if you need to.\n+For example, you could convert an Array to a List, add an additional element to the List and then convert it back to an Array.\n+However, note that these operations will always create **new** objects and not modify the existing ones.\n+\n+Below you can see such an example:\n+\n+```zenscript\n+\n+var oldArray = [\"A\", \"B\", \"C\"] as string[];\n+\n+var list = oldArray stdlib.List<string>;\n+list.add(\"D\");\n+\n+var newArray = oldArray as string[];\n+\n+println(oldArray.length); //oldArray still has 3 elements so it prints \"3\"\n+println(newArray.length); //newArray now also has \"D\", so it prints \"4\"\n+```\n+\n+\n+## Creating a List or an Array\n+\n+Lists can be created via their constructor.\n+Arrays on the other hand, have multiple different ways to create them:\n+The easiest way is to simply specify the elements inside `[]` and with commas separating them from each other.\n+For most cases that way is the way to go, as you don't have to write any more code than necessary.\n+The Examples in most of this wiki will use that format when using arrays, like for adding recipes to the crafting table.\n+More sophisticated ways include using functions to specify which element belongs where in the array.\n+\n+In the examples, you need to fill `ELEMENT_TYPE` with the proper type, e.g. `string` or `IItemStack`.\n+See further below for working examples\n+\n+```zenscript\n+// Creates an empty list and fill it using .add() calls\n+var list = new List<ELEMENT_TYPE>();\n+list.add(ELEMENT);\n+\n+\n+// Create an Array and provide its elements directly\n+var array = [ELEMENTS] as ELEMENT_TYPE;\n+\n+// Creates a new array that can hold SIZE elements\n+// All elements will be the default value of the provided type\n+var array = new ELEMENT_TYPE[](SIZE);\n+\n+// Creates a new array that holds SIZE elements with each being assigned to INITIAL_VALUE\n+var array = new ELEMENT_TYPE[](SIZE, INITIAL_VALUE);\n+\n+\n+// The next two lines create a new array which holds SIZE elements.\n+// Each element is determined by invoking the \"lambda\" function with the given element's index (starting at 0).\n+var lambda as function(index as usize) as ELEMENT_TYPE = (index as usize) as ELEMENT_TYPE => someFunction();\n+var array = new ELEMENT_TYPE[](SIZE, filler);\n+\n+\n+// You can also create a new array based on an existing one.\n+// Here you must provide a \"projection_function\" that maps the values from the old array to the values from the new array.\n+// This function can either only take the old array's elements' values or both the element and the element's index into account.\n+var oldArray = ... as SOME_TYPE[];\n+\n+var projection_function as function(element as SOME_TYPE) as ELEMENT_TYPE = (element as SOME_TYPE) as ELEMENT_TYPE => some_function();\n+var projection_function_indexed as function(element as SOME_TYPE, index) as ELEMENT_TYPE = (element as SOME_TYPE, index) as ELEMENT_TYPE => some_function();\n+\n+var array = new ELEMENT_TYPE[]<SOME_TYPE>(oldArray, projection_function);\n+var array = new ELEMENT_TYPE[]<SOME_TYPE>(oldArray, projection_function_indexed);\n+```\n+\n+## Retrieving and setting an element\n+\n+You can access elements in Lists and Arrays using the Getter and Setter syntax.\n+Here, each element has a number starting from 0.\n+\n+```zenscript\n+var array = [\"A\", \"B\", \"C\"] as string[];\n+\n+// Retrieving Values\n+println(array[0]); // \"A\"\n+println(array[1]); // \"B\"\n+println(array[2]); // \"C\"\n+//println(array[3]); // Error at runtime: ArrayIndexOutOfBounds Exception\n+\n+// Arrays only: Retrieving a Range of Values as new Array\n+var subArray = array[1 .. 3]; //subArray now contains the elements [array[1], array[2]], 3 exclusive\n+println(subArray[0]); // \"B\"\n+println(subArray[1]); // \"C\"\n+\n+\n+// Setting Values\n+array[2] = \"X\";\n+println(array[2]); // \"X\"\n+\n+\n+// For lists you can do the same thing\n+var list = new stdlib.List<string>();\n+list.add(\"A\");\n+list.add(\"B\");\n+list.add(\"C\");\n+\n+println(array[0]); // \"A\"\n+println(array[1]); // \"B\"\n+println(array[2]); // \"C\"\n+//println(array[3]); // Error at runtime: IndexOutOfBounds Exception\n+\n+// Setting a value\n+list[2] = \"X\";\n+println(list[2]); // \"X\"\n+\n+// Since lists are variable sized, these methods are only available for lists\n+\n+// Adding a new Element at the end of the list\n+list.add(\"D\"); // now the list has 4 elements: \"A\", \"B\", \"X\", \"D\"\n+\n+// Add a new Element at the given index, moving all following elements one index further\n+list.insert(0, \"_\"); // Now the list has 5 elements: \"_\", \"A\", \"B\", \"X\", \"D\"\n+\n+// Removes the element at the given index.\n+// This method also returns the element returned\n+list.remove(3); // Removes the \"X\" element, the list now has 4 elements: \"_\", \"A\", \"B\", \"D\"\n+println(list.remove(0)); //Removes the \"_\" element and prints it to the console. The list now has 3 Elements: \"A\", \"B\", \"D\"\n+```\n+\n+## Doing something for each element in the List or Array\n+\n+Many times you create Lists or arrays in order to shorten your code.\n+For this you can use for-loops.\n+```zenscript\n+var array = [\"A\", \"B\", \"C\"] as string[];\n+\n+// Works for both Arrays and Lists:\n+for element in array {\n+ // The code in here will be run three times.\n+ // The 1st time, \"element\" will refer to \"A\"\n+ // The 2nd time, \"element\" will refer to \"B\"\n+ // The 3rd time, \"element\" will refer to \"C\"\n+\n+ println(element);\n+}\n+\n+// Arrays only:\n+// You can also use the index (0, 1, 2) and the element value (\"A\", \"B\", \"C\")\n+for index, element in array {\n+ println(\"At index \" + index + \" you can find: \" + element);\n+}\n+```\n+\n+## Getting information on the List or Array\n+\n+At some times you may need to get the length of an array, or whether or not it is empty or contains a given element.\n+These methods exist on both Lists and Arrays.\n+```zenscript\n+var array = [\"\"] as string[];\n+\n+println(array.length); //prints \"1\"\n+println(array.isEmpty); //prints \"false\"\n+\n+// Try it out, change the array constructor above to contain other elements and see how the prints change ^^\n+if(\"\" in array) { // If \"\" is an element of array\n+ println(\"array contains the empty string!\");\n+} else {\n+ println(\"array does not contain the empty string!\");\n+}\n+```\n+\n+\n+## Other methods existing in Arrays and Lists\n+\n+There are many more methods existing on Arrays and Lists.\n+Not all of them are working yet and not all of them are available for both structures.\n+If you are interested in these additional methods, check out the stdlib Entries for them.\n+\n+You can find them here:\n+\n+- [Arrays.zs](https://github.com/ZenCodeLang/StdLibs/blob/master/src/main/zencode/stdlib/src/Arrays.zs)\n+- [List.zs](https://github.com/ZenCodeLang/StdLibs/blob/master/src/main/zencode/stdlib/src/List.zs)\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"What Are Scripts\": \"tutorial/IntroductionToScripting/WhatAreScripts.md\",\n\"The CraftTweaker Log File\": \"tutorial/IntroductionToScripting/TheCraftTweakerLogFile.md\",\n\"Writing Your First Script\": \"tutorial/IntroductionToScripting/WritingYourFirstScript.md\",\n- \"What Are Bracket Handlers\": \"tutorial/IntroductionToScripting/WhatAreBracketHandlers.md\"\n+ \"What Are Bracket Handlers\": \"tutorial/IntroductionToScripting/WhatAreBracketHandlers.md\",\n+ \"Arrays and Lists\": \"tutorial/IntroductionToScripting/ArraysAndLists.md\"\n},\n\"Recipes\": {\n\"Recipe Managers\": \"tutorial/Recipes/RecipeManagers.md\",\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Arrays and List page (#485) * Added Arrays and List page Closes #482 * codeblocks use zenscript not zencode
139,040
30.10.2021 22:53:23
-7,200
06ec54e82fcc36202362c8cceab20024821482cd
Fix method name in ReactantDynamo, closes
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Modtweaker/ThermalExpansion/Dynamos/ReactantDynamo.md", "new_path": "docs/1.12/content/Mods/Modtweaker/ThermalExpansion/Dynamos/ReactantDynamo.md", "diff": "@@ -17,8 +17,8 @@ mods.thermalexpansion.ReactantDynamo.addReaction(<minecraft:bedrock>, <liquid:wa\n## Add Elemental Reaction\n```zenscript\n-//mods.thermalexpansion.ReactantDynamo.addElementalReaction(IItemStack item, ILiquidStack liquid, int energy);\n-mods.thermalexpansion.ReactantDynamo.addElementalReaction(<minecraft:bedrock>, <liquid:water>, 13);\n+//mods.thermalexpansion.ReactantDynamo.addReactionElemental(IItemStack item, ILiquidStack liquid, int energy);\n+mods.thermalexpansion.ReactantDynamo.addReactionElemental(<minecraft:bedrock>, <liquid:water>, 13);\n```\n## Remove Reaction\n@@ -32,6 +32,6 @@ mods.thermalexpansion.ReactantDynamo.removeReaction(<minecraft:bedrock>, <liquid\n## Remove Elemental Reaction\n```zenscript\n-//mods.thermalexpansion.ReactantDynamo.removeElementalReaction(IItemStack item, ILiquidStack liquid);\n-mods.thermalexpansion.ReactantDynamo.removeElementalReaction(<minecraft:bedrock>, <liquid:water>);\n+//mods.thermalexpansion.ReactantDynamo.removeReactionElemental(IItemStack item, ILiquidStack liquid);\n+mods.thermalexpansion.ReactantDynamo.removeReactionElemental(<minecraft:bedrock>, <liquid:water>);\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix method name in ReactantDynamo, closes #411 (#486)
139,040
31.10.2021 14:47:46
-3,600
be7280f634a8423dd662105a7de918cfb640cc68
Fix code examples in ArraysAndLists
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/tutorial/IntroductionToScripting/ArraysAndLists.md", "new_path": "docs/1.16/content/tutorial/IntroductionToScripting/ArraysAndLists.md", "diff": "@@ -55,7 +55,7 @@ Below you can see such an example:\nvar oldArray = [\"A\", \"B\", \"C\"] as string[];\n-var list = oldArray stdlib.List<string>;\n+var list = oldArray as stdlib.List<string>;\nlist.add(\"D\");\nvar newArray = oldArray as string[];\n@@ -84,7 +84,7 @@ list.add(ELEMENT);\n// Create an Array and provide its elements directly\n-var array = [ELEMENTS] as ELEMENT_TYPE;\n+var array = [ELEMENT, ELEMENT, ...] as ELEMENT_TYPE[];\n// Creates a new array that can hold SIZE elements\n// All elements will be the default value of the provided type\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix code examples in ArraysAndLists
139,080
04.11.2021 23:27:14
-28,800
68a117cf225e5755b575c8165ab13e0be2434c0e
default arguments
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/AdvancedFunctions/Custom_Functions.md", "new_path": "docs/1.12/content/AdvancedFunctions/Custom_Functions.md", "diff": "@@ -71,6 +71,22 @@ function add(a as int,b as int) as int{\n}\n```\n+## Default arguments\n+\n+You can also set some parameters default value. These parameters can be ignored and use default value when you call the function.\n+\n+```zenscript\n+function name(a as int, b as int = 2, c as int = 3) as void {\n+ print(a + b + c);\n+}\n+\n+name(1); // print 6 [1 + 2 (default) + 3 (default)]\n+name(1, 3); // print 7 [1 + 3 + 3 (default)]\n+name(1, 1, 4); // print 6 [1 + 1 + 4]\n+```\n+\n+* You can use bracket handlers and functions for default arguments. But variables are not allowed.\n+* Once a parameter has a default argument, the parameters after it also require a default argument.\n## Functions as variables\nYou can also use functions like variables. In this case, they will be created as separate classes. Other than that, they work pretty much the same as static functions, you call them by their variable name.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
default arguments (#488)
139,072
11.11.2021 23:06:52
-28,800
44f45b7af298132711997f1c63c971cac7170df0
fix colons display problem
[ { "change_type": "MODIFY", "old_path": "docs/1.12/docs.json", "new_path": "docs/1.12/docs.json", "diff": "\"Supercooler\": \"Mods/NuclearCraft/Machine_Recipes/Supercooler.md\"\n}\n},\n- \"NuclearCraft&#58; Overhauled\": {\n+ \"NuclearCraft: Overhauled\": {\n\"Important Info\": \"Mods/NuclearCraft_Overhauled/Important_Info.md\",\n\"Radiation\": \"Mods/NuclearCraft_Overhauled/Radiation.md\",\n\"Recipe Info\": \"Mods/NuclearCraft_Overhauled/Recipe_Info.md\",\n\"Preprocessor\": \"Mods/Pack_Mode/Preprocessors/Preprocessor_Packmode.md\",\n\"Command\": \"Mods/Pack_Mode/Commands/Packmode_Command.md\"\n},\n- \"PneumaticCraft&#58; Repressurized\": {\n- \"About PneumaticCraft&#58; Repressurized\": \"Mods/PneumaticCraft_Repressurized/PneumaticCraft_Repressurized.md\",\n+ \"PneumaticCraft: Repressurized\": {\n+ \"About PneumaticCraft: Repressurized\": \"Mods/PneumaticCraft_Repressurized/PneumaticCraft_Repressurized.md\",\n\"Crafting\": {\n\"Assembly System\": \"Mods/PneumaticCraft_Repressurized/Assembly.md\",\n\"Explosion Crafting\": \"Mods/PneumaticCraft_Repressurized/ExplosionCrafting.md\",\n\"Vacuum Freezer\": \"Mods/Tech_Reborn/Vacuum_Freezer.md\",\n\"Wire Mill\": \"Mods/Tech_Reborn/Wire_Mill.md\"\n},\n- \"TerraFirmaCraft&#58; The Next Generation\": {\n+ \"TerraFirmaCraft: The Next Generation\": {\n\"Terrafirmacraft\": \"Mods/Terrafirmacraft/Terrafirmacraft.md\",\n\"Heating\": \"Mods/Terrafirmacraft/Heating.md\",\n\"HeatingTemperatures\": \"Mods/Terrafirmacraft/HeatingTemperatures.md\",\n\"Death Chest Spawning\": \"Mods/VanillaDeathChest/Death_Chest_Spawning.md\",\n\"VanillaDeathChest\": \"Mods/VanillaDeathChest/VanillaDeathChest.md\"\n},\n- \"Zen&#58; Foundry\": {\n- \"Zen&#58; Foundry\": \"Mods/Zen_Foundry/ZenFoundry.md\",\n+ \"Zen: Foundry\": {\n+ \"Zen: Foundry\": \"Mods/Zen_Foundry/ZenFoundry.md\",\n\"Machines\": {\n\"Alloying Crucible\": \"Mods/Zen_Foundry/Machines/AlloyingCrucible.md\",\n\"Alloy Mixer\": \"Mods/Zen_Foundry/Machines/AlloyMixer.md\",\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
fix colons display problem (#491)
139,033
08.02.2022 02:10:02
-3,600
485c7a256a1630a650e724608d1eeb2121edf454
CI Doc export for build 1.18-5 Matches git commit
[ { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/initialinventory/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"Initialinventory\":{\"InvHandler\":\"mods/initialinventory/InvHandler.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/initialinventory/docs/mods/initialinventory/InvHandler.json", "diff": "+{\"path\":\"mods/initialinventory/InvHandler.md\",\"zenCodeName\":\"mods.initialinventory.InvHandler\",\"searchTerms\":[\"addStartingItem\",\"addRespawnItem\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/initialinventory/docs/mods/initialinventory/InvHandler.md", "diff": "+# InvHandler\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.initialinventory.InvHandler;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=addRespawnItem}\n+\n+Adds an item to the player's inventory when they respawn after dying.\n+\n+ The slotIndex is where in the inventory the item will go.\n+ By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds),\n+ then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player.\n+\n+ For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0.\n+\n+ The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\n+\n+Return Type: void\n+\n+```zenscript\n+// InvHandler.addRespawnItem(item as IItemStack, slotIndex as int, onGiven as BiFunction<IItemStack,Player,IItemStack>) as void\n+\n+InvHandler.addRespawnItem(<item:minecraft:diamond_sword>, 2, (stack as IItemStack, player as Player) as IItemStack => {\n+ return stack.withDisplayName(new crafttweaker.api.text.TranslatableComponent(\"%s's sword\", [player.name]));\n+ });\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| item | [IItemStack](/vanilla/api/item/IItemStack) | The item to give to the player on initial join | false | |\n+| slotIndex | int | The slot to put the item into, or `-1` | true | -1 |\n+| onGiven | BiFunction&lt;[IItemStack](/vanilla/api/item/IItemStack),[Player](/vanilla/api/entity/type/player/Player),[IItemStack](/vanilla/api/item/IItemStack)&gt; | The function to modify the item before it is given to the player. | true | (stack as crafttweaker.api.item.IItemStack, player as crafttweaker.api.entity.type.player.Player) as crafttweaker.api.item.IItemStack => stack |\n+\n+\n+:::\n+\n+:::group{name=addStartingItem}\n+\n+Adds an item to the player's inventory when they join a world.\n+\n+ The key is used as a flag that tracks if the player has previously received the item. This flag is used to prevent players from receiving duplicate items by joining the game multiple times.\n+ Multiple items may share the same key however it is recommended to give each item a unique key or to group keys based on the pack version.\n+\n+ Following these recommendations will ensure that existing players from a previous version of the pack will still receive new items when updating the pack.\n+\n+ For example if version 1.0.0 of your pack gives the player a stick and an apple you could give both items the key \"1.0.0\".\n+ Then if you later add a new item like a stone pickaxe in version 1.0.1 of your pack you would give it the key \"1.0.1\".\n+ This will ensure that players who have already played 1.0.0 will receive the stone pickaxe when updating to 1.0.8.\n+\n+ The slotIndex is where in the inventory the item will go.\n+ By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds),\n+ then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player.\n+\n+ For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0.\n+\n+ The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\n+\n+Return Type: void\n+\n+```zenscript\n+// InvHandler.addStartingItem(key as string, item as IItemStack, slotIndex as int, onGiven as BiFunction<IItemStack,Player,IItemStack>) as void\n+\n+InvHandler.addStartingItem(\"one\", <item:minecraft:diamond_sword>, 2, (stack as crafttweaker.api.item.IItemStack, player as crafttweaker.api.entity.type.player.Player) as crafttweaker.api.item.IItemStack => {\n+ return stack * (player.level.random.nextInt(6) + 1);\n+ });\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| key | string | The key used to determine if the player has already received this item. | false | |\n+| item | [IItemStack](/vanilla/api/item/IItemStack) | The item to give to the player on initial join | false | |\n+| slotIndex | int | The slot to put the item into, or `-1` | true | -1 |\n+| onGiven | BiFunction&lt;[IItemStack](/vanilla/api/item/IItemStack),[Player](/vanilla/api/entity/type/player/Player),[IItemStack](/vanilla/api/item/IItemStack)&gt; | The function to modify the item before it is given to the player. | true | (stack as crafttweaker.api.item.IItemStack, player as crafttweaker.api.entity.type.player.Player) as crafttweaker.api.item.IItemStack => stack |\n+\n+\n+:::\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI Doc export for build 1.18-5 Matches git commit fbea4946c61f6c03195a1c42ae2f0a66944dedea
139,033
17.02.2022 03:06:03
-3,600
f336f8478d7420c9fadff68cb85a69e3ed074081
CI doc export for CreateTweaker build 4 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// CrushingManager.addRecipe(name as string, output as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:compacting>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:glass>, 200);\n+<recipetype:create:crushing>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:glass>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n@@ -62,7 +62,7 @@ Return Type: stdlib.List&lt;T&gt;\n```zenscript\n// CrushingManager.getAllRecipes() as stdlib.List<T>\n-<recipetype:create:compacting>.getAllRecipes();\n+<recipetype:create:crushing>.getAllRecipes();\n```\n:::\n@@ -89,7 +89,7 @@ Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n```zenscript\n// CrushingManager.getRecipeMap() as T[ResourceLocation]\n-<recipetype:create:compacting>.getRecipeMap();\n+<recipetype:create:crushing>.getRecipeMap();\n```\n:::\n@@ -149,7 +149,7 @@ Return Type: void\n```zenscript\n// CrushingManager.removeAll() as void\n-<recipetype:create:compacting>.removeAll();\n+<recipetype:create:crushing>.removeAll();\n```\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 4 Matches git commit 7241e39276d6cceaf3a9dadbba8443d8eb65f17d on branch 1.18
139,068
17.02.2022 21:15:12
-3,600
8cf70b69eb4a4ad484c04c60e54010961d4531c7
First commit :P
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Immersive_Engineering/CraftTweaker_Support/Blast_Furnace.md", "new_path": "docs/1.12/content/Mods/Immersive_Engineering/CraftTweaker_Support/Blast_Furnace.md", "diff": "@@ -32,7 +32,7 @@ mods.immersiveengineering.BlastFurnace.addRecipe(<minecraft:diamond>, <ore:logWo\n```zenscript\n//Example:\nmods.immersiveengineering.BlastFurnace.removeRecipe(IItemStack output);\n-mods.immersiveengineering.BlastFurnace.removeRecipe(<minecraft:diamond>;\n+mods.immersiveengineering.BlastFurnace.removeRecipe(<minecraft:diamond>);\n```\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/zencode/Objects.md", "diff": "+# Objects in Programming\n+\n+This page aims to orient the scripter that aims to work with features and concepts that require a bit more than just chaining crafting table calls.\n+It will help you understand a bit of how Java and ZenCode programming actually works, which is crucial to understand and manage concepts where logic is necessary, such as Loot Modifiers, Events, or JEI Categories.\n+Now, onto the explanation!\n+\n+Most tangible things you manipulate and use as parameters are Objects. Objects have a type, properties and methods that you can use or access.\n+\n+Kinds of objects you should have seen at this point:\n+- String (Stores a sequence of letters), example: `\"hello\"`\n+- Int (Stores a numerical, whole value), example : `42`\n+- Double and Float (Store a numerical decimal value), examples: `0.2` and `0.2f`\n+- IItemStack (Stores an Item), example: `<item:minecraft:pumpkin>`\n+- FluidStack (Stores a fluid with its amount), example: `<fluid:minecraft:water> * 100`\n+\n+Doubles and floats are mostly interchangeable and the difference is that you need the \"f\" character in case it is a float. In most cases ZC will cast them for you.\n+\n+Complex Objects in Java are basically made out of simpler objects. A proper Java program is basically the combination of existing libraries and new classes to create objects that contain properties you want to use.\n+Recipes, Items, Entities, NBT data are all examples of this. Due to this, most of this objects have more methods and properties than just their raw value.\n+\n+An example of this is IItemStacks containing data such as, the amount, the Item that they come from, their NBT tag...\n+\n+\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/zencode/ZenCode.md", "new_path": "docs/1.16/content/zencode/ZenCode.md", "diff": "This is the documentation section that talks about ZenCode, the programming language that CraftTweaker employs to read and interpret scripts.\nThis section aims to appeal to the more experienced coder that aims to dive into the more complex side of the language in order to approach parts of the mod such as Loot Modifiers, Events, ZenClasses or Functions.\n-This is not to say that the novice scripter has no place here, but keep in mind that the usages of features in this section go further than adding and removing recipes.\n+This is not to say that the novice scripter has no place here, but keep in mind that the usages of features in this section go further than adding and removing recipes. Due to this, some of the pages in this section have a letter that represents it's difficulty grade. The grade goes from easier (D) to harder (S) features to use. While nothing stops you from jumping at the harder things, some concepts might prove to be slightly harder if you aren't prepared. You shouldn't drive a car if you have no idea how to turn the engine on.\nCurrently documented features:\n- - [Arrays And Lists](/zencode/ArraysAndLists)\n+ - [Arrays And Lists](/zencode/ArraysAndLists) - Graded C\n- - [Preprocessors](/zencode/Preprocessors/Preprocessors)\n+ - [Preprocessors](/zencode/Preprocessors/Preprocessors) - Graded C\n-Other concepts:\n+General programming concepts:\n-- [Conditional Code](/zencode/ConditionalCode)\n+- [Conditional Code](/zencode/ConditionalCode) - Graded B\n+- [Objects](/zencode/Objects) - Graded B\n+\n+Scripting concepts :\n+\n+- [CraftingTable](/vanilla/how_to/crafting_table) - Graded D\n+- [ContentTweaker](/mods/contenttweaker/SimpleWalkthrough) - Graded A\n+- [JEITweakerCategories](/zencode/Features/JEITweaker/)\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
First commit :P
139,068
18.02.2022 19:29:31
-3,600
6446ddf50fa49814989683378362890674af6a1d
Push objects and CT Compat 1
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/zencode/ZenCode.md", "new_path": "docs/1.16/content/zencode/ZenCode.md", "diff": "@@ -19,5 +19,4 @@ Scripting concepts :\n- [CraftingTable](/vanilla/how_to/crafting_table) - Graded D\n- [ContentTweaker](/mods/contenttweaker/SimpleWalkthrough) - Graded A\n-- [JEITweakerCategories](/zencode/Features/JEITweaker/)\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/integration/Introduction.md", "diff": "+# CraftTweaker in a development environment\n+\n+## About this category\n+\n+This category is oriented to **Mod Developers** who seek to add explicit CraftTweaker support to their mods. This might include configuring a recipe, changing some values, or enabling and disabling things that could otherwise be done through the creation.\n+\n+## Adding CraftTweaker to your environment:\n+\n+You should be adding crafttweaker through a maven repository in your `repositories` block :\n+\n+```groovy\n+ maven {\n+ url \"https://maven.blamejared.com\"\n+ }\n+```\n+General maven rules apply. The format to add it to your `dependencies` is the same.\n+Use `maven:fileDescriptor`.\n+\n+The naming of the file is `CraftTweaker-MC_VERSION-MAJOR_VERSION-MINOR_VERSION`, for versions lower than 1.17, and `CraftTweaker-LOADER-MC_VERSION-MAJOR_VERSION-MINOR_VERSION` for versions above 1.16\n+An example of this being applied is:\n+\n+```groovy\n+dependencies {\n+ def minecraftVersion= 'net.minecraftforge:forge:1.18.1-39.0.46'\n+ minecraft minecraftVersion\n+\n+ def ctDep = 'com.blamejared.crafttweaker:CraftTweaker-forge-1.18.1:9.0.57'\n+ compileOnly(ctDep)\n+ runtimeOnly(fg.deobf(ctDep))\n+\n+ //AnnotationProcessor is here for generating docs. Check \"the Generating Docs\" page for more information\n+ annotationProcessor 'com.blamejared.crafttweaker:Crafttweaker_Annotation_Processors-1.18.1:2.0.0.59'\n+ annotationProcessor minecraftVersion\n+ annotationProcessor ctDep\n+}\n+```\n+\n+That's it! Don't forget to refresh gradle to be able to use CraftTweaker in your development environment!\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"About ZenCode\": \"zencode/ZenCode.md\",\n\"Arrays and Lists\": \"zencode/ArraysAndLists.md\",\n\"Conditional Code\": \"zencode/ConditionalCode.md\",\n+ \"Objects\": \"zencode/Objects.md\",\n\"Preprocessors\": {\n\"Preprocessors\": \"zencode/Preprocessors/Preprocessors.md\",\n\"Loader Preprocessor\": \"zencode/Preprocessors/LoaderPreprocessor.md\",\n\"Priority Preprocessor\": \"zencode/Preprocessors/PriorityPreprocessor.md\"\n}\n+ },\n+ \"Mod Dev\": {\n+ \"CraftTweaker in a development environment\" : \"integration/Introduction.md\"\n}\n}\n}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Push objects and CT Compat 1
139,068
18.02.2022 19:49:39
-3,600
05a4cd2094019ce3d7da62e3a368079abf023807
Forgot Objects lol
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/zencode/Objects.md", "diff": "+# Objects in Programming\n+\n+This page aims to orient the scripter that aims to work with features and concepts that require a bit more than just chaining crafting table calls.\n+It will help you understand a bit of how Java and ZenCode programming actually works, which is crucial to understand and manage concepts where logic is necessary, such as Loot Modifiers, Events, or JEI Categories.\n+Now, onto the explanation!\n+\n+Most tangible things you manipulate and use as parameters are Objects. Objects have a type, properties and methods that you can use or access.\n+\n+Kinds of objects you should have seen at this point:\n+- String (Stores a sequence of letters), example: `\"hello\"`\n+- Int (Stores a numerical, whole value), example : `42`\n+- Double and Float (Store a numerical decimal value), examples: `0.2` and `0.2f`\n+- IItemStack (Stores an Item), example: `<item:minecraft:pumpkin>`\n+- FluidStack (Stores a fluid with its amount), example: `<fluid:minecraft:water> * 100`\n+\n+Doubles and floats are mostly interchangeable and the difference is that you need the \"f\" character in case it is a float. In most cases ZC will cast them for you.\n+\n+Complex Objects in Java are basically made out of simpler objects. A proper Java program is basically the combination of existing libraries and new classes to create objects that contain properties you want to use.\n+Recipes, Items, Entities, NBT data are all examples of this. Due to this, most of this objects have more methods and properties than just their raw value.\n+\n+An example of this is IItemStacks containing data such as, the amount, the Item that they come from, their NBT tag...\n+\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Forgot Objects lol
139,068
19.02.2022 01:54:41
-3,600
a7c1bcb3b14ea6f86819f0c862025f892255a6f5
Making a ZenClass tutorial
[ { "change_type": "ADD", "old_path": "docs/1.18/content/integration/GeneratingDocs.md", "new_path": "docs/1.18/content/integration/GeneratingDocs.md", "diff": "" }, { "change_type": "ADD", "old_path": "docs/1.18/content/integration/RecipeFunctions.md", "new_path": "docs/1.18/content/integration/RecipeFunctions.md", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/integration/RecipeManager.md", "diff": "+# Exposing the Class\n+\n+This page will explain how to add CraftTweaker support to your custom recipetype or mechanic. This is done through a couple of annotations that allow you to expose a Class and the annotated Methods to the ZC engine.\n+\n+## Mechanic Support\n+\n+The first step consists of creating the java class you will be exposing to ZenCode. The class should be public and be annotated with both `@ZenRegister` and `@ZenCodeType.Name(String name)`\n+The name of the class is, by convention, `mods.modid.ClassName`. Once your ZenClass exists, you will be able to use any of the available annotations on the `ZenCodeType` class.\n+\n+From here, it depends on your specific case, as you might be looking to either annotate a constructor with `@ZenCodeType.Constructor` or make static methods with `@ZenCodeType.Method`.\n+Whatever the case, you should know that any method annotated with `@ZenCodeType.Method` needs to be public and calling it in a script will require the specified arguments in the java class. `static` methods will be treated as such, and other methods will be ignored.\n+\n+Be aware that any code that executes code and is not applying an `IRuntimeAction` is untouched by ZenCode, meaning that if you register anything anywhere, you'll have to manually clear it by yourself. If your method puts objects in a Map, you should be clearing the Map with a reload listener every time the game is reloaded to avoid acumulating outdated or unwanted data.\n+\n+## RecipeType Support\n+\n+RecipeType support is slightly more complicated. This page assumes you have a proper, working, RecipeType registered, with a proper serializer. If you are doing recipes through code and not using the vanilla IRecipe system, which allows users to use datapacks to customise recipes, you're doing it wrong.\n+This system allows CraftTweaker to already support recipe removals for you.\n+\n+Adding support to add and remove recipes from your mod is slightly more complicated than a simple mechanic.\n+You need a class that implements `IRecipeHandler<CustomIRecipe>` and `IRecipeManager`. Annotate the class with `@IRecipeHandler.For(CustomIRecipe.class)`, `@ZenRegister`, and `@ZenCodeType.Name(String name)`.\n+Now you need to override the java methods: `getRecipeType()` and `dumpToCommandString`. The first one should point to your registered RecipeType, while the second one should use the Manager and the IRecipe object, to create a String that will be printed when the recipe is processed by any of the recipe dumping commands.\n+\n+After this, you want to anotate an instance method with `@ZenCodeType.Method` with a name along the lines of `addRecipe`, that allows users to add a new recipe with your parameters. In the event that you need more methods, make those clear. It is possible you also want to Override some of the removal methods to cater better to your own IRecipe.\n+\n+Adding and removing recipes should be done through the use of a class that implements `IRuntimeAction`, a whole package of premade actions already exist for you to extend, override and use.\n+\n+To sum up, an example of a class would look like this:\n+\n+```java\n+@IRecipeHandler.For(CustomIRecipe.class)\n+@ZenRegister\n+@ZenCodeType.Name(\"mods.zencode.CustomIRecipe\")\n+public class CustomIRecipeManager implements IRecipeManager, IRecipeHandler<CustomIRecipe> {\n+ @Override\n+ public IRecipeType getRecipeType() {\n+ return RecipeRegistry.getCustomRecipeType();\n+ }\n+\n+ @Override\n+ public String dumpToCommandString(IRecipeManager manager, CookingPotRecipe recipe) {\n+ return manager.getCommandString() + recipe.getName() + recipe.getOutput() + \"[\" + recipe.getInputs() + \"]\";\n+ }\n+\n+ @ZenCodeType.Method\n+ public void addRecipe(String name, IItemStack output, IIngredient[] inputs){\n+ name = fixRecipeName(name);\n+ ResourceLocation resourceLocation = new ResourceLocation(Crafttweaker.MODID, name);\n+ CraftTweakerAPI.apply(new ActionAddCustomIRecipe(this, new CustomIRecipe(resourceLocation, output.getInternal(), Arrays.stream(inputs).map(inputs -> inputs.asVanillaIngredient()).collect(Collectors.toList()))));\n+ }\n+}\n+```\n+\n+That sums up the basics of making your own ZenClass. The next step includes autogenerating docs and adding more extensive support, through the use of Replacers and Recipe Functions.\n+\n+\n+\n+\n" }, { "change_type": "ADD", "old_path": "docs/1.18/content/integration/ReplacerSupport.md", "new_path": "docs/1.18/content/integration/ReplacerSupport.md", "diff": "" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "}\n},\n\"Mod Dev\": {\n- \"CraftTweaker in a development environment\" : \"integration/Introduction.md\"\n+ \"CraftTweaker in a Development Environment\" : \"integration/Introduction.md\",\n+ \"Exposing a ZenClass\" : \"integration/RecipeManager.md\"\n}\n}\n}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Making a ZenClass tutorial
139,068
26.02.2022 19:52:01
-3,600
b11821d957386a0737c46ea3fb6aae4750857865
Objects, AssociativeArrays (a lot of inspiration from the 1.12 page), and some fixes in CT integration
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/AdvancedFunctions/Associative_Arrays.md", "new_path": "docs/1.12/content/AdvancedFunctions/Associative_Arrays.md", "diff": "@@ -44,7 +44,7 @@ val assocArray = {\n//array[index]\nprint(assocArray[<minecraft:dirt>]);\n-//You can also use varaibles here, as long as the variable is of the correct type\n+//You can also use variables here, as long as the variable is of the correct type\nprint(assocArray[dirt]);\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/integration/Introduction.md", "new_path": "docs/1.18/content/integration/Introduction.md", "diff": "@@ -28,7 +28,7 @@ dependencies {\ncompileOnly(ctDep)\nruntimeOnly(fg.deobf(ctDep))\n- //AnnotationProcessor is here for generating docs. Check \"the Generating Docs\" page for more information\n+ //AnnotationProcessor is here for generating docs. Check the \"Generating Docs\" page for more information\nannotationProcessor 'com.blamejared.crafttweaker:Crafttweaker_Annotation_Processors-1.18.1:2.0.0.59'\nannotationProcessor minecraftVersion\nannotationProcessor ctDep\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/integration/RecipeManager.md", "new_path": "docs/1.18/content/integration/RecipeManager.md", "diff": "@@ -7,10 +7,11 @@ This page will explain how to add CraftTweaker support to your custom recipetype\nThe first step consists of creating the java class you will be exposing to ZenCode. The class should be public and be annotated with both `@ZenRegister` and `@ZenCodeType.Name(String name)`\nThe name of the class is, by convention, `mods.modid.ClassName`. Once your ZenClass exists, you will be able to use any of the available annotations on the `ZenCodeType` class.\n-From here, it depends on your specific case, as you might be looking to either annotate a constructor with `@ZenCodeType.Constructor` or make static methods with `@ZenCodeType.Method`.\n-Whatever the case, you should know that any method annotated with `@ZenCodeType.Method` needs to be public and calling it in a script will require the specified arguments in the java class. `static` methods will be treated as such, and other methods will be ignored.\n+ZenCode annotations respect method access. If you want a method to be exposed it should have public access. Whether you make the method static or instance only depends on the semantics you want to provide and whether you want to give access to your custom object or not.\n-Be aware that any code that executes code and is not applying an `IRuntimeAction` is untouched by ZenCode, meaning that if you register anything anywhere, you'll have to manually clear it by yourself. If your method puts objects in a Map, you should be clearing the Map with a reload listener every time the game is reloaded to avoid acumulating outdated or unwanted data.\n+If your mechanic is similar to a recipe, in the sense that it's methods should only be run during game reloads, you should run your code by calling `CraftTweakerAPI#apply` passing an existing, or custom IAction parameter on it. Using this system ensures proper book-keeping for CraftTweaker and proper logging, allowing for easier debugging of scripts.\n+\n+Otherwise, directly running code in your exposed method's body is what you should do.\n## RecipeType Support\n@@ -21,7 +22,7 @@ Adding support to add and remove recipes from your mod is slightly more complica\nYou need a class that implements `IRecipeHandler<CustomIRecipe>` and `IRecipeManager`. Annotate the class with `@IRecipeHandler.For(CustomIRecipe.class)`, `@ZenRegister`, and `@ZenCodeType.Name(String name)`.\nNow you need to override the java methods: `getRecipeType()` and `dumpToCommandString`. The first one should point to your registered RecipeType, while the second one should use the Manager and the IRecipe object, to create a String that will be printed when the recipe is processed by any of the recipe dumping commands.\n-After this, you want to anotate an instance method with `@ZenCodeType.Method` with a name along the lines of `addRecipe`, that allows users to add a new recipe with your parameters. In the event that you need more methods, make those clear. It is possible you also want to Override some of the removal methods to cater better to your own IRecipe.\n+After this, you want to anotate a method with `@ZenCodeType.Method` with a name along the lines of `addRecipe`, that allows users to add a new recipe with your parameters. In the event that you need more methods, make those clear. It is possible you also want to Override some of the removal methods to cater better to your own IRecipe.\nAdding and removing recipes should be done through the use of a class that implements `IRuntimeAction`, a whole package of premade actions already exist for you to extend, override and use.\n@@ -38,7 +39,7 @@ public class CustomIRecipeManager implements IRecipeManager, IRecipeHandler<Cust\n}\n@Override\n- public String dumpToCommandString(IRecipeManager manager, CookingPotRecipe recipe) {\n+ public String dumpToCommandString(IRecipeManager manager, CustomIRecipe recipe) {\nreturn manager.getCommandString() + recipe.getName() + recipe.getOutput() + \"[\" + recipe.getInputs() + \"]\";\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/zencode/AssociativeArrays.md", "diff": "+### Associative Arrays\n+\n+An Associative Array, sometimes called a Map, is a type of Object similar to an Array that stores objects behind another object, which acts as a key.\n+Associative Arrays are sometimes also called Maps or Dictionaries because of their similarity with those. A dictionary consists of entries, and each entry consists of a word that has a text attached to it.\n+\n+If this helps you, Arrays only store a single type of values, so they have no need for keys. You access an individual value in an array using the index of the value, represented by an integer. A key in an Associative Array can be any kind of object, a String, an IItemStack, anything you'd like.\n+\n+## Arrays in a Script\n+\n+Arrays are declared using a structure that looks like this:\n+\n+```zencode\n+val associativeArray as valuetype[keytype] = {\n+ key1 : value1,\n+ key2 : value2,\n+ key3 : value3\n+};\n+```\n+Time to analyse this in depth.\n+\n+`val associativeArray = ` : This is standard variable declaration. We use `val` because we don't want our value to change.\n+\n+`as valuetype[keytpe]` : Casts the array to it's type. This is required or else CraftTweaker will throw an error. The required types depend on what keys and values you assign to your array. Make sure to import the types too or casting will fail.\n+\n+`{` : Associative Arrays, as opposed to regular Arrays, use curly braces to wrap their contents. This tells ZenCode that this is in fact an Associative Array.\n+\n+`key1 : value1` : This maps a key to the value. Accessing the array with that key will return the value.\n+\n+`,` : Commas are required while there is still another member to map.\n+\n+`}` : Signals the end of the Associative Array.\n+\n+`;` : Signals the end of the expression or line.\n+\n+## Accessing a value from a Map\n+\n+Getting a value from an Associative Array is done in a similar fashion to how you would acces a member in an array. However, instead of the position, you need to pass in a variable that is of the same type as the map's key type. Accesing a map with a key that isn't mapped will return a `null` object.\n+\n+```zencode\n+val dirt = <minecraft:dirt>;\n+val assocArray = {\n+ <minecraft:dirt> : \"This is me\"\n+} as string[IItemStack];\n+\n+//array[index]\n+print(assocArray[<minecraft:dirt>]);\n+\n+//You can also use variables here, as long as the variable is of the correct type\n+print(assocArray[dirt]);\n+```\n+\n+You can also directly set the value of something in an Associative Array by using a setter on the accessed value:\n+\n+```zencode\n+val changingArray = {\n+ <minecraft:dirt> : \"this is me\",\n+ <minecraft:gold_ingot> : \"and I hate it\"\n+} as string[IItemStack];\n+\n+val gg = <minecraft:gold>;\n+\n+//Overrides the value of gold_ingot\n+changingArray[gg] = \"and I love it\";\n+\n+//adds a new entry\n+changingArray[<minecraft:grass>] = \"Power!\";\n+```\n+\n+## Looping over an Associative Array\n+\n+Looping over an Associative Array is similar to looping over a regular array, but since in this case we have an extra object, which is a key, we need to include that in our loop declaration:\n+\n+```zencode\n+for key, value in associativeArray {\n+//loop body\n+}\n+```\n+\n+## Example\n+\n+This is a script that creates an Associative Array that maps vanilla logs to their planks, and remakes the crafting table shapeless recipes to output 2 planks instead of the default 4.\n+\n+```zencode\n+import crafttweaker.api.item.IItemStack;\n+import crafttweaker.api.ingredient.IIngredient;\n+\n+//Makes a map that links each log to each plank\n+\n+val log_plank_map as IItemStack[IIngredient] = {\n+ <item:minecraft:oak_log>: <item:minecraft:oak_planks>,\n+ <item:minecraft:spruce_log>: <item:minecraft:spruce_planks>,\n+ <item:minecraft:birch_log>: <item:minecraft:birch_planks>,\n+ <item:minecraft:jungle_log>: <item:minecraft:jungle_planks>,\n+ <item:minecraft:acacia_log>: <item:minecraft:acacia_planks>,\n+ <item:minecraft:dark_oak_log>: <item:minecraft:dark_oak_planks>,\n+ //You can expand this with modded logs and planks\n+};\n+\n+//loops over left and right part of the map, which are the keys and values\n+\n+for log, plank in log_plank_map {\n+ //removes the plank recipes\n+ craftingTable.remove(plank);\n+ //Description\n+ println(\"Remaking logs and planks to half the original output\");\n+ //Remakes the recipe with the conditions we want (in this case, you get a 2:1 plank to log ratio)\n+ craftingTable.addShapeless(\"log_to_planks_\" + plank.registryName, plank * 2, [log]);\n+}\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/zencode/Objects.md", "new_path": "docs/1.18/content/zencode/Objects.md", "diff": "@@ -4,20 +4,34 @@ This page aims to orient the scripter that aims to work with features and concep\nIt will help you understand a bit of how Java and ZenCode programming actually works, which is crucial to understand and manage concepts where logic is necessary, such as Loot Modifiers, Events, or JEI Categories.\nNow, onto the explanation!\n+## What are Objects?\n+\nMost tangible things you manipulate and use as parameters are Objects. Objects have a type, properties and methods that you can use or access.\nKinds of objects you should have seen at this point:\n- String (Stores a sequence of letters), example: `\"hello\"`\n- Int (Stores a numerical, whole value), example : `42`\n- Double and Float (Store a numerical decimal value), examples: `0.2` and `0.2f`\n-- IItemStack (Stores an Item), example: `<item:minecraft:pumpkin>`\n+- IItemStack (Stores an ItemStack, which is an Item plus it's data), example: `<item:minecraft:pumpkin>`\n- FluidStack (Stores a fluid with its amount), example: `<fluid:minecraft:water> * 100`\nDoubles and floats are mostly interchangeable and the difference is that you need the \"f\" character in case it is a float. In most cases ZC will cast them for you.\n-Complex Objects in Java are basically made out of simpler objects. A proper Java program is basically the combination of existing libraries and new classes to create objects that contain properties you want to use.\n-Recipes, Items, Entities, NBT data are all examples of this. Due to this, most of this objects have more methods and properties than just their raw value.\n+## Why Objects?\n+Minecraft is written in Java, a programming language. A proper Java program is basically the combination of existing libraries and new files written in order to create Objects. These contain properties and methods. Properties store a value, which can be anything, like an entity's registryName, it's position, it's health, while Methods execute an action with relation to the Object itself. Going back to an Entity, a method might kill the entity, change it's position, or manipulate it's attributes. Methods can therefore, take parameters which affect the desired result.\n+\n+Recipes, Items, Entities, NBT data are all examples of Objects created through code.\n+\n+CraftTweaker exposes *most* of the properties and methods that exist in code to you, the user, so you can access them. The collection of what is available for you to use is found in the autogenerated pages in the site.\n+\n+You are going to need to understand getting, manipulating, and using objects for the moment you choose to dive into the more complex aspects of CraftTweaker. You've used them in the past, whenever you tweaked a recipe, modified some loot or hid an Item from JEI. However, if you want to check for conditions, or build a complex loop, you'll need to start building complex structures where using properties and methods will be a huge percentage of what you're doing. In other words, you'll start to program and write code!\n+\n+## The purpose\n-An example of this is IItemStacks containing data such as, the amount, the Item that they come from, their NBT tag...\n+Understanding Objects goes further than knowing `<item:minecraft:pumpkin>` is called `IItemStack`. It's understanding what an IItemStack represents in code, which methods are available to it.\n+The beauty of designing an object is making the code as abstract as possible and putting everything behind a layer of abstraction, to later worry as little as possible about specific cases.\n+It takes a while to start abstracting concepts and parameters, but the key is getting used to checking the documentation page for each class, and understanding which method and which property does what, whether it is a complex type or one as simple as an integer.\n+However, it is something that will come naturally by spending time with the mod and tinkering with things.\n+Just know that, in the context of an event and in the game, types are not isolated. Entities have a Level they exist in, a position, IItemStacks have data, Players have Inventories, Players are also Entities too, along with other concepts you'll find by mostly playing with CraftTweaker and looking at the docs.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"ZenCode\": {\n\"About ZenCode\": \"zencode/ZenCode.md\",\n\"Arrays and Lists\": \"zencode/ArraysAndLists.md\",\n+ \"Associative Arrays\" : \"zencode/AssociativeArrays.md\",\n\"Conditional Code\": \"zencode/ConditionalCode.md\",\n\"Objects\": \"zencode/Objects.md\",\n\"Preprocessors\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Objects, AssociativeArrays (a lot of inspiration from the 1.12 page), and some fixes in CT integration
139,033
04.03.2022 21:00:14
-3,600
99bcf8746ab4525d9a9ecc2c102016e9313ab33a
CI doc export for CreateTweaker build 6 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MechanicalCrafterManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MechanicalCrafterManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// MechanicalCrafterManager.addMirroredRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]) as void\n-<recipetype:create:mechanical_crafting>.addMirroredRecipe(\"mirrorized\", <item:minecraft:glass>, [[<item:minecraft:diamond>, <item:minecraft:air>, <item:minecraft:diamond>], [<<item:minecraft:air>, <item:minecraft:diamond>, <item:minecraft:air>]]);\n+<recipetype:create:mechanical_crafting>.addMirroredRecipe(\"mirrorized\", <item:minecraft:glass>, [[<item:minecraft:diamond>, <item:minecraft:air>, <item:minecraft:diamond>], [<item:minecraft:air>, <item:minecraft:diamond>, <item:minecraft:air>]]);\n```\n| Parameter | Type | Description |\n@@ -63,7 +63,7 @@ Return Type: void\n```zenscript\n// MechanicalCrafterManager.addRecipe(name as string, output as IItemStack, ingredients as IIngredient[][]) as void\n-<recipetype:create:mechanical_crafting>.addRecipe(\"mechanized\", <item:minecraft:diamond>, [[<item:minecraft:dirt>, <item:minecraft:air>, <item:minecraft:dirt>], [<<item:minecraft:air>, <item:minecraft:dirt>, <item:minecraft:air>]]);\n+<recipetype:create:mechanical_crafting>.addRecipe(\"mechanized\", <item:minecraft:diamond>, [[<item:minecraft:dirt>, <item:minecraft:air>, <item:minecraft:dirt>], [<item:minecraft:air>, <item:minecraft:dirt>, <item:minecraft:air>]]);\n```\n| Parameter | Type | Description |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 6 Matches git commit 518656aa41247dc7ed0c98c6cfb101dd0addc566 on branch 1.18
139,033
13.03.2022 17:55:54
-3,600
8223612fd3196efdfa9f306411b03d7756ea779d
CI doc export for CreateTweaker build 7 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs.json", "new_path": "docs_exported/1.18/createtweaker/docs.json", "diff": "-{\"nav\":{\"Mods\":{\"Createtweaker\":{\"CompactingManager\":\"mods/createtweaker/CompactingManager.md\",\"CrushingManager\":\"mods/createtweaker/CrushingManager.md\",\"CuttingManager\":\"mods/createtweaker/CuttingManager.md\",\"DeployerApplicationManager\":\"mods/createtweaker/DeployerApplicationManager.md\",\"EmptyingManager\":\"mods/createtweaker/EmptyingManager.md\",\"FillingManager\":\"mods/createtweaker/FillingManager.md\",\"HauntingManager\":\"mods/createtweaker/HauntingManager.md\",\"IProcessingRecipeManager\":\"mods/createtweaker/IProcessingRecipeManager.md\",\"MechanicalCrafterManager\":\"mods/createtweaker/MechanicalCrafterManager.md\",\"MillingManager\":\"mods/createtweaker/MillingManager.md\",\"MixingManager\":\"mods/createtweaker/MixingManager.md\",\"PressingManager\":\"mods/createtweaker/PressingManager.md\",\"SandPaperPolishingManager\":\"mods/createtweaker/SandPaperPolishingManager.md\",\"SequencedAssemblyManager\":\"mods/createtweaker/SequencedAssemblyManager.md\",\"SplashingManager\":\"mods/createtweaker/SplashingManager.md\",\"Recipe\":{\"ProcessingRecipeBuilder\":\"mods/createtweaker/recipe/ProcessingRecipeBuilder.md\",\"ProcessingRecipeFactory\":\"mods/createtweaker/recipe/ProcessingRecipeFactory.md\",\"SequencedAssemblyRecipeBuilder\":\"mods/createtweaker/recipe/SequencedAssemblyRecipeBuilder.md\"},\"Recipes\":{\"HeatCondition\":\"mods/createtweaker/recipes/HeatCondition.md\",\"Type\":{\"AbstractCrushingRecipe\":\"mods/createtweaker/recipes/type/AbstractCrushingRecipe.md\",\"BasinRecipe\":\"mods/createtweaker/recipes/type/BasinRecipe.md\",\"CompactingRecipe\":\"mods/createtweaker/recipes/type/CompactingRecipe.md\",\"CrushingRecipe\":\"mods/createtweaker/recipes/type/CrushingRecipe.md\",\"CuttingRecipe\":\"mods/createtweaker/recipes/type/CuttingRecipe.md\",\"DeployerApplicationRecipe\":\"mods/createtweaker/recipes/type/DeployerApplicationRecipe.md\",\"EmptyingRecipe\":\"mods/createtweaker/recipes/type/EmptyingRecipe.md\",\"FillingRecipe\":\"mods/createtweaker/recipes/type/FillingRecipe.md\",\"HauntingRecipe\":\"mods/createtweaker/recipes/type/HauntingRecipe.md\",\"IAssemblyRecipe\":\"mods/createtweaker/recipes/type/IAssemblyRecipe.md\",\"MillingRecipe\":\"mods/createtweaker/recipes/type/MillingRecipe.md\",\"MixingRecipe\":\"mods/createtweaker/recipes/type/MixingRecipe.md\",\"PressingRecipe\":\"mods/createtweaker/recipes/type/PressingRecipe.md\",\"ProcessingRecipe\":\"mods/createtweaker/recipes/type/ProcessingRecipe.md\",\"SandPaperPolishingRecipe\":\"mods/createtweaker/recipes/type/SandPaperPolishingRecipe.md\",\"SplashingRecipe\":\"mods/createtweaker/recipes/type/SplashingRecipe.md\"}}}}}}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"Createtweaker\":{\"CompactingManager\":\"mods/createtweaker/CompactingManager.md\",\"CrushingManager\":\"mods/createtweaker/CrushingManager.md\",\"CuttingManager\":\"mods/createtweaker/CuttingManager.md\",\"DeployerApplicationManager\":\"mods/createtweaker/DeployerApplicationManager.md\",\"EmptyingManager\":\"mods/createtweaker/EmptyingManager.md\",\"FillingManager\":\"mods/createtweaker/FillingManager.md\",\"FluidIngredient\":\"mods/createtweaker/FluidIngredient.md\",\"HauntingManager\":\"mods/createtweaker/HauntingManager.md\",\"IProcessingRecipeManager\":\"mods/createtweaker/IProcessingRecipeManager.md\",\"MechanicalCrafterManager\":\"mods/createtweaker/MechanicalCrafterManager.md\",\"MillingManager\":\"mods/createtweaker/MillingManager.md\",\"MixingManager\":\"mods/createtweaker/MixingManager.md\",\"PressingManager\":\"mods/createtweaker/PressingManager.md\",\"ProcessingOutput\":\"mods/createtweaker/ProcessingOutput.md\",\"SandPaperPolishingManager\":\"mods/createtweaker/SandPaperPolishingManager.md\",\"SequencedAssemblyManager\":\"mods/createtweaker/SequencedAssemblyManager.md\",\"SplashingManager\":\"mods/createtweaker/SplashingManager.md\",\"Recipe\":{\"ProcessingRecipeBuilder\":\"mods/createtweaker/recipe/ProcessingRecipeBuilder.md\",\"ProcessingRecipeFactory\":\"mods/createtweaker/recipe/ProcessingRecipeFactory.md\",\"SequencedAssemblyRecipeBuilder\":\"mods/createtweaker/recipe/SequencedAssemblyRecipeBuilder.md\"},\"Recipes\":{\"HeatCondition\":\"mods/createtweaker/recipes/HeatCondition.md\",\"Type\":{\"AbstractCrushingRecipe\":\"mods/createtweaker/recipes/type/AbstractCrushingRecipe.md\",\"BasinRecipe\":\"mods/createtweaker/recipes/type/BasinRecipe.md\",\"CompactingRecipe\":\"mods/createtweaker/recipes/type/CompactingRecipe.md\",\"CrushingRecipe\":\"mods/createtweaker/recipes/type/CrushingRecipe.md\",\"CuttingRecipe\":\"mods/createtweaker/recipes/type/CuttingRecipe.md\",\"DeployerApplicationRecipe\":\"mods/createtweaker/recipes/type/DeployerApplicationRecipe.md\",\"EmptyingRecipe\":\"mods/createtweaker/recipes/type/EmptyingRecipe.md\",\"FillingRecipe\":\"mods/createtweaker/recipes/type/FillingRecipe.md\",\"HauntingRecipe\":\"mods/createtweaker/recipes/type/HauntingRecipe.md\",\"IAssemblyRecipe\":\"mods/createtweaker/recipes/type/IAssemblyRecipe.md\",\"MillingRecipe\":\"mods/createtweaker/recipes/type/MillingRecipe.md\",\"MixingRecipe\":\"mods/createtweaker/recipes/type/MixingRecipe.md\",\"PressingRecipe\":\"mods/createtweaker/recipes/type/PressingRecipe.md\",\"ProcessingRecipe\":\"mods/createtweaker/recipes/type/ProcessingRecipe.md\",\"SandPaperPolishingRecipe\":\"mods/createtweaker/recipes/type/SandPaperPolishingRecipe.md\",\"SplashingRecipe\":\"mods/createtweaker/recipes/type/SplashingRecipe.md\"}}}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FluidIngredient.json", "diff": "+{\"path\":\"mods/createtweaker/FluidIngredient.md\",\"zenCodeName\":\"mods.createtweaker.FluidIngredient\",\"searchTerms\":[\"test\",\"matchingFluidStacks\",\"requiredAmount\",\"getRequiredAmount\",\"getMatchingFluidStacks\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FluidIngredient.md", "diff": "+# FluidIngredient\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.createtweaker.FluidIngredient;\n+```\n+\n+\n+## Implemented Interfaces\n+FluidIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in FluidIngredient\n+\n+- Predicate\n+\n+## Methods\n+\n+:::group{name=getMatchingFluidStacks}\n+\n+Return Type: stdlib.List&lt;[IFluidStack](/forge/api/fluid/IFluidStack)&gt;\n+\n+```zenscript\n+// FluidIngredient.getMatchingFluidStacks() as stdlib.List<IFluidStack>\n+\n+myFluidIngredient.getMatchingFluidStacks();\n+```\n+\n+:::\n+\n+:::group{name=getRequiredAmount}\n+\n+Return Type: int\n+\n+```zenscript\n+// FluidIngredient.getRequiredAmount() as int\n+\n+myFluidIngredient.getRequiredAmount();\n+```\n+\n+:::\n+\n+:::group{name=test}\n+\n+Return Type: boolean\n+\n+```zenscript\n+FluidIngredient.test(t as IFluidStack) as boolean\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| t | [IFluidStack](/forge/api/fluid/IFluidStack) | No Description Provided |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| matchingFluidStacks | stdlib.List&lt;[IFluidStack](/forge/api/fluid/IFluidStack)&gt; | true | false | No Description Provided |\n+| requiredAmount | int | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ProcessingOutput.json", "diff": "+{\"path\":\"mods/createtweaker/ProcessingOutput.md\",\"zenCodeName\":\"mods.createtweaker.ProcessingOutput\",\"searchTerms\":[\"stack\",\"chance\",\"getChance\",\"rollOutput\",\"getStack\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ProcessingOutput.md", "diff": "+# ProcessingOutput\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.createtweaker.ProcessingOutput;\n+```\n+\n+\n+## Methods\n+\n+:::group{name=getChance}\n+\n+Return Type: float\n+\n+```zenscript\n+// ProcessingOutput.getChance() as float\n+\n+myProcessingOutput.getChance();\n+```\n+\n+:::\n+\n+:::group{name=getStack}\n+\n+Return Type: [IItemStack](/vanilla/api/item/IItemStack)\n+\n+```zenscript\n+// ProcessingOutput.getStack() as IItemStack\n+\n+myProcessingOutput.getStack();\n+```\n+\n+:::\n+\n+:::group{name=rollOutput}\n+\n+Return Type: [IItemStack](/vanilla/api/item/IItemStack)\n+\n+```zenscript\n+// ProcessingOutput.rollOutput() as IItemStack\n+\n+myProcessingOutput.rollOutput();\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| chance | float | true | false | No Description Provided |\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) | true | false | No Description Provided |\n+\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/FillingRecipe.json", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/FillingRecipe.json", "diff": "-{\"path\":\"mods/createtweaker/recipes/type/FillingRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ProcessingRecipe\",\"searchTerms\":[\"mods.createtweaker.ProcessingRecipe\",\"mods.createtweaker.IAssemblyRecipe\"]}\n+{\"path\":\"mods/createtweaker/recipes/type/FillingRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ProcessingRecipe\",\"searchTerms\":[\"mods.createtweaker.ProcessingRecipe\",\"getRequiredFluid\",\"mods.createtweaker.IAssemblyRecipe\",\"requiredFluid\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/FillingRecipe.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/FillingRecipe.md", "diff": "@@ -17,3 +17,24 @@ FillingRecipe implements the following interfaces. That means all methods define\n- [IAssemblyRecipe](/mods/createtweaker/recipes/type/IAssemblyRecipe)\n+## Methods\n+\n+:::group{name=getRequiredFluid}\n+\n+Return Type: [FluidIngredient](/mods/createtweaker/FluidIngredient)\n+\n+```zenscript\n+// FillingRecipe.getRequiredFluid() as FluidIngredient\n+\n+myFillingRecipe.getRequiredFluid();\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| requiredFluid | [FluidIngredient](/mods/createtweaker/FluidIngredient) | true | false | No Description Provided |\n+\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/ProcessingRecipe.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/type/ProcessingRecipe.md", "diff": "@@ -17,10 +17,10 @@ ProcessingRecipe implements the following interfaces. That means all methods def\n:::group{name=getFluidIngredients}\n-Return Type: stdlib.List\n+Return Type: stdlib.List&lt;[FluidIngredient](/mods/createtweaker/FluidIngredient)&gt;\n```zenscript\n-// ProcessingRecipe.getFluidIngredients() as stdlib.List\n+// ProcessingRecipe.getFluidIngredients() as stdlib.List<FluidIngredient>\nmyProcessingRecipe.getFluidIngredients();\n```\n@@ -29,10 +29,10 @@ myProcessingRecipe.getFluidIngredients();\n:::group{name=getFluidResults}\n-Return Type: stdlib.List\n+Return Type: stdlib.List&lt;[IFluidStack](/forge/api/fluid/IFluidStack)&gt;\n```zenscript\n-// ProcessingRecipe.getFluidResults() as stdlib.List\n+// ProcessingRecipe.getFluidResults() as stdlib.List<IFluidStack>\nmyProcessingRecipe.getFluidResults();\n```\n@@ -65,10 +65,10 @@ myProcessingRecipe.getRequiredHeat();\n:::group{name=getRollableResults}\n-Return Type: stdlib.List\n+Return Type: stdlib.List&lt;[ProcessingOutput](/mods/createtweaker/ProcessingOutput)&gt;\n```zenscript\n-// ProcessingRecipe.getRollableResults() as stdlib.List\n+// ProcessingRecipe.getRollableResults() as stdlib.List<ProcessingOutput>\nmyProcessingRecipe.getRollableResults();\n```\n@@ -77,10 +77,10 @@ myProcessingRecipe.getRollableResults();\n:::group{name=getRollableResultsAsItemStacks}\n-Return Type: stdlib.List&lt;[ItemStack](/vanilla/api/item/ItemStack)&gt;\n+Return Type: stdlib.List&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;\n```zenscript\n-// ProcessingRecipe.getRollableResultsAsItemStacks() as stdlib.List<ItemStack>\n+// ProcessingRecipe.getRollableResultsAsItemStacks() as stdlib.List<IItemStack>\nmyProcessingRecipe.getRollableResultsAsItemStacks();\n```\n@@ -89,10 +89,10 @@ myProcessingRecipe.getRollableResultsAsItemStacks();\n:::group{name=rollResults}\n-Return Type: stdlib.List&lt;[ItemStack](/vanilla/api/item/ItemStack)&gt;\n+Return Type: stdlib.List&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;\n```zenscript\n-// ProcessingRecipe.rollResults() as stdlib.List<ItemStack>\n+// ProcessingRecipe.rollResults() as stdlib.List<IItemStack>\nmyProcessingRecipe.rollResults();\n```\n@@ -104,10 +104,10 @@ myProcessingRecipe.rollResults();\n| Name | Type | Has Getter | Has Setter | Description |\n|------|------|------------|------------|-------------|\n-| fluidIngredients | stdlib.List | true | false | No Description Provided |\n-| fluidResults | stdlib.List | true | false | No Description Provided |\n+| fluidIngredients | stdlib.List&lt;[FluidIngredient](/mods/createtweaker/FluidIngredient)&gt; | true | false | No Description Provided |\n+| fluidResults | stdlib.List&lt;[IFluidStack](/forge/api/fluid/IFluidStack)&gt; | true | false | No Description Provided |\n| processingDuration | int | true | false | No Description Provided |\n| requiredHeat | [HeatCondition](/mods/createtweaker/recipes/HeatCondition) | true | false | No Description Provided |\n-| rollableResults | stdlib.List | true | false | No Description Provided |\n-| rollableResultsAsItemStacks | stdlib.List&lt;[ItemStack](/vanilla/api/item/ItemStack)&gt; | true | false | No Description Provided |\n+| rollableResults | stdlib.List&lt;[ProcessingOutput](/mods/createtweaker/ProcessingOutput)&gt; | true | false | No Description Provided |\n+| rollableResultsAsItemStacks | stdlib.List&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | true | false | No Description Provided |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 7 Matches git commit 6c76a5779c860132d2bb6b53ab9d7f6df8cab968 on branch 1.18
139,068
14.03.2022 18:48:22
-3,600
34fafe7429cd91b256460f045047a93ec7226e7d
Upload functions, update ZenCode page to show grades
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/zencode/ZenCode.md", "new_path": "docs/1.16/content/zencode/ZenCode.md", "diff": "@@ -13,7 +13,7 @@ Currently documented features:\nGeneral programming concepts:\n- [Conditional Code](/zencode/ConditionalCode) - Graded B\n-- [Objects](/zencode/Objects) - Graded B\n+- [Objects](/zencode/Objects) - Graded C\nScripting concepts :\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/zencode/Functions.md", "diff": "+# Custom Functions\n+\n+Functions are a way to simplify and clean up code. In ZenCode, a function is a piece of code, that executes some code.\n+That's the most bare-bones definition of it. An actual function is an abstract chunk of code that takes parameters and executes code based on them, with an optional return type.\n+\n+## Declaring a Custom Function\n+\n+Declaring a custom function is done through a syntax similar to this:\n+\n+```zenscript\n+<public> function functionName(params... as ParamTypes) as ReturnType {\n+ //Function body goes here.\n+ //If the function has a return type, a return statement will be necessary:\n+ return value;\n+}\n+```\n+\n+Let's break this down, shall we?\n+\n+`<public>` This is an optional access keyword. Adding the public keyword will make the function accessible through other scripts.\n+\n+`function` This is standard function declaration. This tells the ZenCode engine to treat whatever is coming as a function.\n+\n+`functionName` The function needs a unique name, which is how it will be executed.\n+\n+`(params... as ParamTypes)` A function can have parameters. Parameters are declared by typing in the parameter name and casting it to the desired type. The parameter name is used in the function's body, while the parameter type is used by the ZenCode engine to ensure that, when calling the function, the desired and used types for the parameters match.\n+\n+`as ReturnType` A function must have a return type. If it should return nothing, `void` should be use. Otherwise, you use whatever type you wish the function to return.\n+\n+`{` This marks the beginning of the function's body. Code that interacts with the supplied parameters will be placed here. If a function has a return type that's not `void`, a return statement is necessary.\n+\n+`}` This marks the ending of a function's body and declaration. No semicolons are necessary after this.\n+\n+## Calling a function\n+\n+Calling or executing a function is pretty easy. It requires you to use the function's name and it's parameters.\n+\n+```zenscript\n+\n+functionName(params);\n+\n+```\n+\n+## Example\n+\n+Let's take a look at different kinds of functions. These do different things, from niche things to simplifying our code.\n+For simplicity's sake, they have been split into declaration and execution, but the order they are placed in a script does not matter.\n+\n+\n+\n+```zenscript\n+\n+function hide(item as crafttweaker.api.item.IItemStack) as void {\n+ craftingTable.remove(item);\n+\n+ //This will only work in a Forge Environment\n+ mods.jei.JEI.hideIngredient(item);\n+}\n+\n+public function printStartScript(scriptName as string) as void {\n+ println(\"=====================================================\");\n+ println(\" \"STARTING SCRIPT: \"+scriptName+\" \");\n+ println(\"=====================================================\");\n+}\n+\n+function addition(a as int, b as int) as int {\n+ //We are using this to return a value and use it!\n+ return a + b;\n+}\n+\n+\n+printStartScript(\"Functions\");\n+\n+var sum = addition(5, 3);\n+println(\"The sum of 5 and 3 is: \"+ sum);\n+\n+hide(<item:minecraft:pumpkin>);\n+\n+```\n+\n+## Why functions?\n+\n+Function definitions can be used to define functions which do not exist within the context of a surrounding class. They are mostly useful to define utility functions or helper functions inside scripts.\n+\n+Sometimes though, it's better to make a custom Object or Class through the use of a ZenClass.\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/zencode/ZenCode.md", "new_path": "docs/1.18/content/zencode/ZenCode.md", "diff": "This is the documentation section that talks about ZenCode, the programming language that CraftTweaker employs to read and interpret scripts.\nThis section aims to appeal to the more experienced coder that aims to dive into the more complex side of the language in order to approach parts of the mod such as Loot Modifiers, Events, ZenClasses or Functions.\n-This is not to say that the novice scripter has no place here, but keep in mind that the usages of features in this section go further than adding and removing recipes.\n+This is not to say that the novice scripter has no place here, but keep in mind that the usages of features in this section go further than adding and removing recipes. Due to this, some of the pages in this section have a letter that represents it's difficulty grade. The grade goes from easier (D) to harder (S) features to use. While nothing stops you from jumping at the harder things, some concepts might prove to be slightly harder if you aren't prepared. You shouldn't drive a car if you have no idea how to turn the engine on.\nCurrently documented features:\n- - [Arrays And Lists](/zencode/ArraysAndLists)\n+- [Arrays And Lists](/zencode/ArraysAndLists) - Graded C\n- - [Preprocessors](/zencode/Preprocessors/Preprocessors)\n+- [Preprocessors](/zencode/Preprocessors/Preprocessors) - Graded C\n-Other concepts:\n+General programming concepts:\n-- [Conditional Code](/zencode/ConditionalCode)\n+- [Conditional Code](/zencode/ConditionalCode) - Graded B\n+- [Objects](/zencode/Objects) - Graded C\n+- [Functions](/zencode/Functions)\n+\n+Scripting concepts :\n+\n+- [CraftingTable](/vanilla/how_to/crafting_table) - Graded D\n+- [ContentTweaker](/mods/contenttweaker/SimpleWalkthrough) - Graded A\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Associative Arrays\" : \"zencode/AssociativeArrays.md\",\n\"Conditional Code\": \"zencode/ConditionalCode.md\",\n\"Objects\": \"zencode/Objects.md\",\n+ \"Functions\" : \"zencode/Functions.md\",\n\"Preprocessors\": {\n\"Preprocessors\": \"zencode/Preprocessors/Preprocessors.md\",\n\"Loader Preprocessor\": \"zencode/Preprocessors/LoaderPreprocessor.md\",\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Upload functions, update ZenCode page to show grades
139,068
16.03.2022 21:45:14
-3,600
ff5188d49615d1137f082368e6342571c3c30c4c
Fix ZenGetter in 1.12
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Events/Events/PlayerRespawn.md", "new_path": "docs/1.12/content/Vanilla/Events/Events/PlayerRespawn.md", "diff": "@@ -17,6 +17,6 @@ PlayerRespawn Events implement the following interfaces and are able to call all\nThe following information can be retrieved from the event:\n| ZenGetter | Return Type |\n-|------------------|-----------------------------------------------------------|\n+|----------------|-----------------------------------------------------------|\n| `player` | [IPlayer](/Vanilla/Players/IPlayer/) |\n-| `isEndConquered` | bool (states if the respawn is because of the end portal) |\n\\ No newline at end of file\n+| `endConquered` | bool (states if the respawn is because of the end portal) |\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix ZenGetter in 1.12
139,068
17.03.2022 20:26:58
-3,600
b4312197c81a4fa822d9219b3ecc55e8adbf2da9
Commands and examples
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/commands.md", "diff": "+# Commands\n+\n+Here are the commands that matter:\n+\n+```plaintext\n+/ct hand\n+```\n+\n+Prints information about the item you're holding to your chat. This is crucial to get Items, Tags and Block bracket handlers.\n+\n+![Image](https://i.blamejared.com/JNpRk.png)\n+The result of using `/ct hand` on the Sand item.\n+\n+```plaintext\n+/reload\n+```\n+\n+Reloads the game, the same thing as relogging into a world. Reloads datapacks and after those, scripts. Useful to not restart the game to test your features. Errors in your scripts will be shown here and in your `crafttweaker.log` file.\n+\n+![Image3](https://blamejared.com/docsImages/commands/reloading.png)\n+\n+```plaintext\n+/ct log\n+```\n+\n+Gives you a clickable link to where your `crafttweaker.log` file is located, which is a crucial file in script writing and debugging. Will only work in singleplayer as it opens the folder the scripts are found in, and that cannot be done in the remote server.\n+\n+![Image2](https://blamejared.com/docsImages/commands/log.png)\n+\n+```plaintext\n+/ct scripts\n+```\n+\n+Gives you a clickable link to where your `scripts` directory is within your Instance. Just like `/ct log`, it will only work on a singleplayer world.\n+\n+![img.png](https://blamejared.com/docsImages/commands/scripts.png)\n+\n+```plaintext\n+/ct issues\n+```\n+\n+Gives you a clickable link that opens the Github Issue Tracker for the CraftTweaker mod through your Browser. Bug reports should be done through the github tracker, although extensive discussion of them should be done through the discord.\n+\n+\n+![img_1.png](https://blamejared.com/docsImages/commands/issues.png)\n+\n+```plaintext\n+/ct discord\n+```\n+\n+Gives you a clickable link that opens the CraftTweaker discord through your Browser. You can ask for help here!\n+\n+\n+![img_2.png](https://blamejared.com/docsImages/commands/discord.png)\n+\n+```plaintext\n+/ct dump\n+```\n+\n+The ``dump`` command is a command that can be used to dump all possible bracket types of the selected kind to the `crafttweaker.log`.\n+\n+![img_3.png](https://blamejared.com/docsImages/commands/dump.png)\n+\n+```plaintext\n+/ct dump recipeTypes\n+```\n+\n+The `dump recipeTypes` command is the execution of the `dump` command with the `recipeTypes` argument. It will print the list of registered recipetypes. These are crucial to add a recipe to a recipetype that doesn't have default support, through a JSON Recipe, just like a datapack. More information about this can be found [here](/mods/other_mods).\n+\n+```plaintext\n+/ct dump_brackets\n+```\n+\n+The `dump_brackets` command executes the `dump` command for every possible argument. This dump, however, will be placed in a folder called `ct_dumps` in your `.minecraft` folder.\n+\n+```plaintext\n+/ct help\n+```\n+\n+Displays the extended, full list of commands CraftTweaker registers. Consists of 6 pages.\n+\n+```plaintext\n+/ct recipes\n+```\n+\n+If no arguments are given, this command generates the full recipe list to the `crafttweaker.log` file. If the `hand` argument is provided, it will generate all recipes for the held item.\n+The recipes are given to you in their script form.\n+\n+![img_4.png](https://blamejared.com/docsImages/commands/dump_recipes.png)\n+\n+```plaintext\n+/ct examples\n+```\n+\n+Generates an `examples` folder under your `scripts` directory. These include example files for the version of CraftTweaker you are using, which run out of the box and showcase the various modifications you can apply through the use of CraftTweaker. It is recommended to move them out of the `scripts` folder to see them without having them execute.\n+\n+![img_5.png](https://blamejared.com/docsImages/commands/examples.png)\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/examples.md", "diff": "+# Examples\n+\n+You can use the `/ct examples` command to get some commented scripts in your scripts/examples directory\n+\n+More script examples can be found here:\n+\n+[Examples](https://github.com/CraftTweaker/CraftTweaker/tree/1.18/src/main/resources/data/crafttweaker/scripts)\n+\n+These are the scripts that have been used to test CraftTweaker in 1.14, they should all work and load just fine, you can use them to get familiarized with the new syntax\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "{\n\"nav\": {\n\"Home\": \"index.md\",\n+ \"Commands\" : \"commands.md\",\n+ \"Examples\": \"examples.md\",\n\"Getting Started With Scripts\": \"getting_started.md\",\n\"Tutorials\": {\n\"Introduction To Scripting\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Commands and examples
139,068
17.03.2022 23:46:15
-3,600
2d72208de80355e27d251e5490e0fcb17bd5a122
Add whitespaces with the aim of making the page look better to the eyes. Fix examples
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/commands.md", "new_path": "docs/1.18/content/commands.md", "diff": "@@ -9,6 +9,7 @@ Here are the commands that matter:\nPrints information about the item you're holding to your chat. This is crucial to get Items, Tags and Block bracket handlers.\n![Image](https://i.blamejared.com/JNpRk.png)\n+\nThe result of using `/ct hand` on the Sand item.\n```plaintext\n@@ -95,3 +96,5 @@ The recipes are given to you in their script form.\nGenerates an `examples` folder under your `scripts` directory. These include example files for the version of CraftTweaker you are using, which run out of the box and showcase the various modifications you can apply through the use of CraftTweaker. It is recommended to move them out of the `scripts` folder to see them without having them execute.\n![img_5.png](https://blamejared.com/docsImages/commands/examples.png)\n+\n+\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/examples.md", "new_path": "docs/1.18/content/examples.md", "diff": "@@ -6,4 +6,4 @@ More script examples can be found here:\n[Examples](https://github.com/CraftTweaker/CraftTweaker/tree/1.18/src/main/resources/data/crafttweaker/scripts)\n-These are the scripts that have been used to test CraftTweaker in 1.14, they should all work and load just fine, you can use them to get familiarized with the new syntax\n\\ No newline at end of file\n+Keep in mind that examples are, after all, scripts, and that the next time you reload the game, they will be loaded. Examples may include undesired changes or functionality, so be careful with that.\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add whitespaces with the aim of making the page look better to the eyes. Fix examples
139,068
23.03.2022 15:07:27
-3,600
c3287a1b09360eb03f84a86446bb3a8b6bb42596
Create Scavenging.md
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/zencode/Scavenging.md", "diff": "+### Scavenging from the Documentation\n+\n+## Introduction\n+\n+If you're reading this, it's probably not your first time around here. You're probably slightly familiar with the ZenCode category, and you might have started browsing classes.\n+\n+You've probably noticed something: Some files are *very* different. This is due to the fact that some docs are hand-written, and thus require some time to create, while the large bulk of the Documentation has been autogenerated by the original Java code and some programming magic.\n+\n+The aim of this hand-written page is to provide a more theoric explanation of how to search for a method, property from what you have access to.\n+\n+It will also dive into some [Programming](/zencode/Programming) concepts. Let's get started!\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Create Scavenging.md
139,033
27.03.2022 16:22:53
-7,200
f09e4fc40501f87efcc691638394e56b24393a65
CI doc export for JeiTweaker build 5 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/JEI.md", "new_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/JEI.md", "diff": "@@ -101,7 +101,7 @@ JEI.hideIngredient(ingredient as JeiIngredient) as void\n:::group{name=hideMod since=\"1.0.0\"}\n-Hides all [JeiIngredient](/mods/JEITweaker/API/Component/JeiIngredient)s of a given mod, making sure that they do not show up in JEI. <br /> <br /> Optionally, some ingredients can be excluded based on their registry name from the hiding by making use of the <br /> Predicate<String>.\n+Hides all [JeiIngredient](/mods/JEITweaker/API/Component/JeiIngredient)s of a given mod, making sure that they do not show up in JEI. <br /> <br /> Optionally, some ingredients can be excluded based on their registry name from the hiding by making use of the <br /> Predicate<String>. <br /> <br /> Note, the exclusion filter works on the full registry name, unlike recipe filters which work on the path without the modid.\nReturn Type: void\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for JeiTweaker build 5 Matches git commit 94c5a2d9223c353ad1c96bda2c0b9aca58269270 on branch 1.18
139,033
03.04.2022 21:09:40
-7,200
e4328b2fbd7d029592ce961587c9e43d9ed0ac52
CI doc export for JeiTweaker build 7 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/jeitweaker/docs.json", "new_path": "docs_exported/1.18/jeitweaker/docs.json", "diff": "-{\n- \"nav\": {\n- \"Mods\": {\n- \"JEITweaker\": {\n- \"API\": {\n- \"JEI\": \"mods/JEITweaker/API/JEI.md\",\n- \"Category\": {\n- \"CatalystRequiringRecipe\": \"mods/JEITweaker/API/Category/CatalystRequiringRecipe.md\",\n- \"Custom\": \"mods/JEITweaker/API/Category/Custom.md\",\n- \"InputConsuming\": \"mods/JEITweaker/API/Category/InputConsuming.md\",\n- \"JeiCategory\": \"mods/JEITweaker/API/Category/JeiCategory.md\",\n- \"OutputList\": \"mods/JEITweaker/API/Category/OutputList.md\",\n- \"SimpleInputOutput\": \"mods/JEITweaker/API/Category/SimpleInputOutput.md\",\n- \"SimpleJeiCategory\": \"mods/JEITweaker/API/Category/SimpleJeiCategory.md\"\n- },\n- \"Component\": {\n- \"IFluidStackExpansions\": \"mods/JEITweaker/API/Component/IFluidStackExpansions.md\",\n- \"IIngredientExpansions\": \"mods/JEITweaker/API/Component/IIngredientExpansions.md\",\n- \"IItemStackExpansions\": \"mods/JEITweaker/API/Component/IItemStackExpansions.md\",\n- \"ItemTagExpansions\": \"mods/JEITweaker/API/Component/ItemTagExpansions.md\",\n- \"JeiDrawable\": \"mods/JEITweaker/API/Component/JeiDrawable.md\",\n- \"JeiDrawableAnimation\": \"mods/JEITweaker/API/Component/JeiDrawableAnimation.md\",\n- \"JeiIngredient\": \"mods/JEITweaker/API/Component/JeiIngredient.md\",\n- \"JeiIngredientExpansions\": \"mods/JEITweaker/API/Component/JeiIngredientExpansions.md\"\n- },\n- \"Recipe\": {\n- \"JeiCategoryRecipeExpansion\": \"mods/JEITweaker/API/Recipe/JeiCategoryRecipeExpansion.md\",\n- \"JeiRecipe\": \"mods/JEITweaker/API/Recipe/JeiRecipe.md\",\n- \"JeiRecipeGraphics\": \"mods/JEITweaker/API/Recipe/JeiRecipeGraphics.md\"\n- }\n- }\n- }\n- }\n- }\n-}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"JEITweaker\":{\"API\":{\"JEI\":\"mods/JEITweaker/API/JEI.md\",\"Category\":{\"CatalystRequiringRecipe\":\"mods/JEITweaker/API/Category/CatalystRequiringRecipe.md\",\"Custom\":\"mods/JEITweaker/API/Category/Custom.md\",\"InputConsuming\":\"mods/JEITweaker/API/Category/InputConsuming.md\",\"JeiCategory\":\"mods/JEITweaker/API/Category/JeiCategory.md\",\"OutputList\":\"mods/JEITweaker/API/Category/OutputList.md\",\"SimpleInputOutput\":\"mods/JEITweaker/API/Category/SimpleInputOutput.md\",\"SimpleJeiCategory\":\"mods/JEITweaker/API/Category/SimpleJeiCategory.md\"},\"Component\":{\"IFluidStackExpansions\":\"mods/JEITweaker/API/Component/IFluidStackExpansions.md\",\"IIngredientExpansions\":\"mods/JEITweaker/API/Component/IIngredientExpansions.md\",\"IItemStackExpansions\":\"mods/JEITweaker/API/Component/IItemStackExpansions.md\",\"ItemTagExpansions\":\"mods/JEITweaker/API/Component/ItemTagExpansions.md\",\"JeiDrawable\":\"mods/JEITweaker/API/Component/JeiDrawable.md\",\"JeiDrawableAnimation\":\"mods/JEITweaker/API/Component/JeiDrawableAnimation.md\",\"JeiIngredient\":\"mods/JEITweaker/API/Component/JeiIngredient.md\",\"JeiIngredientExpansions\":\"mods/JEITweaker/API/Component/JeiIngredientExpansions.md\"},\"Recipe\":{\"JeiCategoryRecipeExpansion\":\"mods/JEITweaker/API/Recipe/JeiCategoryRecipeExpansion.md\",\"JeiRecipe\":\"mods/JEITweaker/API/Recipe/JeiRecipe.md\",\"JeiRecipeGraphics\":\"mods/JEITweaker/API/Recipe/JeiRecipeGraphics.md\"}}}}}}\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/ItemTagExpansions.md", "new_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/ItemTagExpansions.md", "diff": "::since{version=1.1.0}\n-# Expansion for MCTag&lt;ItemDefinition&gt;\n+# Expansion for KnownTag&lt;ItemDefinition&gt;\n-Expands [MCTag](/vanilla/api/tag/MCTag)&lt;T&gt; when typed with [ItemDefinition](/vanilla/api/item/ItemDefinition) with JEI-specific conversions.\n+Expands [MCTag](/vanilla/api/tag/MCTag) when typed with [ItemDefinition](/vanilla/api/item/ItemDefinition) with JEI-specific conversions.\n## Casters\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/JeiIngredient.json", "new_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/JeiIngredient.json", "diff": "-{\"path\":\"mods/JEITweaker/API/Component/JeiIngredient.md\",\"zenCodeName\":\"mods.jei.component.JeiIngredient\",\"since\":\"1.1.0\",\"searchTerms\":[\"crafttweaker.api.bracket.CommandStringDisplayable\",\"commandString\"]}\n+{\"path\":\"mods/JEITweaker/API/Component/JeiIngredient.md\",\"zenCodeName\":\"mods.jei.component.JeiIngredient\",\"since\":\"1.1.0\",\"searchTerms\":[\"crafttweaker.api.bracket.CommandStringDisplayable\",\"getCommandString\",\"commandString\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/JeiIngredient.md", "new_path": "docs_exported/1.18/jeitweaker/docs/mods/JEITweaker/API/Component/JeiIngredient.md", "diff": "@@ -13,7 +13,7 @@ Represents any ingredient used in JEI.\nMoreover, other types can automatically convert to an array of JEI ingredients, for even less boilerplate and ease\nof usage. Refer to **invalid**#asJeiIngredientArray(com.blamejared.crafttweaker.api.ingredient.IIngredient) and\n- **invalid**#asJeiIngredientArray(com.blamejared.crafttweaker.api.tag.MCTag) for more information.\n+ **invalid**#asJeiIngredientArray(KnownTag) for more information.\n<strong>For mod developers:</strong> do not use this class internally, use the generic version.\n@@ -30,6 +30,21 @@ JeiIngredient implements the following interfaces. That means all methods define\n- [CommandStringDisplayable](/vanilla/api/bracket/CommandStringDisplayable)\n+## Methods\n+\n+:::group{name=getCommandString since=\"1.1.0\"}\n+\n+Return Type: string\n+\n+```zenscript\n+// JeiIngredient.getCommandString() as string\n+\n+myJeiIngredient.getCommandString();\n+```\n+\n+:::\n+\n+\n## Properties\n| Name | Type | Has Getter | Has Setter | Description |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for JeiTweaker build 7 Matches git commit f747046f4d053fc5203426af4c9e52d0e1cb45ce on branch 1.18
139,048
05.04.2022 06:28:55
18,000
e287a8ab5d7b38a2a07acef29a888cf06b859248
Add IBlockDef getters * Add IBlockDef getters A long time coming... * Typo
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Blocks/IBlockDefinition.md", "new_path": "docs/1.12/content/Vanilla/Blocks/IBlockDefinition.md", "diff": "@@ -27,9 +27,9 @@ It might be required for you to import the package if you encounter any issues (\n| hardness | hardness | | int |\n| harvestLevel | | Returns the block's harvest level | int |\n| harvestTool | | Returns the block's harvest tool | string |\n-| | lightOpacity | | int |\n-| | lightLevel | | int |\n-| | resistance | | int |\n+| lightOpacity | lightOpacity | | int |\n+| lightLevel | lightLevel | | int |\n+| resistance | resistance | | int |\n| unlocalizedName | | Returns the block's unlocalized Name | string |\n| tickRandomly | tickRandomly | | bool |\n@@ -86,6 +86,26 @@ returns a string.\ndefObj.getHarvestTool(IBlockState state);\n```\n+### Get light opacity of block state\n+returns a float.\n+```zenscript\n+defObj.getLightOpacity(IBlockState state);\n+defObj.getLightOpacity(IBlockState state, IWorld world, IBlockPos pos);\n+```\n+\n+### Get light level of block state\n+returns a float.\n+```zenscript\n+defObj.getLightLevel(IBlockState state);\n+defObj.getLightLevel(IBlockState state, IWorld world, IBlockPos pos);\n+```\n+\n+### Get explosion resistance of block position and explosion\n+returns a float.\n+```zenscript\n+defObj.getResistance(IWorld world, IBlockPos pos, IEntity entity, IExplosion explosion);\n+```\n+\n### Get a block state by metadata\nUses an int.\nReturns an [IBlockState](/Vanilla/Blocks/IBlockState/).\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add IBlockDef getters (#507) * Add IBlockDef getters A long time coming... https://github.com/CraftTweaker/CraftTweaker/pull/1374 * Typo
139,033
09.04.2022 01:00:15
-7,200
c8cc5780d4393bec5b81c3ee233ecf30de22952a
CI Doc export for build 1.18-7 Matches git commit
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/initialinventory/docs/mods/initialinventory/InvHandler.md", "new_path": "docs_exported/1.18/initialinventory/docs/mods/initialinventory/InvHandler.md", "diff": "@@ -12,15 +12,7 @@ import mods.initialinventory.InvHandler;\n:::group{name=addRespawnItem}\n-Adds an item to the player's inventory when they respawn after dying.\n-\n- The slotIndex is where in the inventory the item will go.\n- By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds),\n- then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player.\n-\n- For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0.\n-\n- The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\n+Adds an item to the player's inventory when they respawn after dying. <br /> <br /> The slotIndex is where in the inventory the item will go. <br /> By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds), <br /> then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player. <br /> <br /> For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0. <br /> <br /> The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\nReturn Type: void\n@@ -43,24 +35,7 @@ InvHandler.addRespawnItem(<item:minecraft:diamond_sword>, 2, (stack as IItemStac\n:::group{name=addStartingItem}\n-Adds an item to the player's inventory when they join a world.\n-\n- The key is used as a flag that tracks if the player has previously received the item. This flag is used to prevent players from receiving duplicate items by joining the game multiple times.\n- Multiple items may share the same key however it is recommended to give each item a unique key or to group keys based on the pack version.\n-\n- Following these recommendations will ensure that existing players from a previous version of the pack will still receive new items when updating the pack.\n-\n- For example if version 1.0.0 of your pack gives the player a stick and an apple you could give both items the key \"1.0.0\".\n- Then if you later add a new item like a stone pickaxe in version 1.0.1 of your pack you would give it the key \"1.0.1\".\n- This will ensure that players who have already played 1.0.0 will receive the stone pickaxe when updating to 1.0.8.\n-\n- The slotIndex is where in the inventory the item will go.\n- By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds),\n- then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player.\n-\n- For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0.\n-\n- The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\n+Adds an item to the player's inventory when they join a world. <br /> <br /> The key is used as a flag that tracks if the player has previously received the item. This flag is used to prevent players from receiving duplicate items by joining the game multiple times. <br /> Multiple items may share the same key however it is recommended to give each item a unique key or to group keys based on the pack version. <br /> <br /> Following these recommendations will ensure that existing players from a previous version of the pack will still receive new items when updating the pack. <br /> <br /> For example if version 1.0.0 of your pack gives the player a stick and an apple you could give both items the key \"1.0.0\". <br /> Then if you later add a new item like a stone pickaxe in version 1.0.1 of your pack you would give it the key \"1.0.1\". <br /> This will ensure that players who have already played 1.0.0 will receive the stone pickaxe when updating to 1.0.8. <br /> <br /> The slotIndex is where in the inventory the item will go. <br /> By default, the slotIndex will be `-1`, which means that it will try and fill an existing slot with the item, but if the player doesn't have the item, or if there is an overflow of items (if the player has 63 Diamonds and then receives 4 diamonds), <br /> then the item is put into the first empty slot in the player's inventory, or spawned in the world around the player. <br /> <br /> For example, if slot 0 was empty, and slot 1 had a Diamond, and the player then received a Diamond with an index of `-1`, it will go into slot 1, filling the already existing stack, however, if slot 1 already had 64 diamonds, then it will go into slot 0. <br /> <br /> The onGiven function is used to alter an item before it is given to a player, it can be used to add a level of randomization to the given items, you can change any aspect of the item (like count or Data) and you will have access to a random source through the world you can get from the player.\nReturn Type: void\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI Doc export for build 1.18-7 Matches git commit c6a802e8adf6cb863d812d24b6079916ae4af57e
139,033
10.04.2022 02:37:59
-7,200
cfd436ac0186235b09b2b1a668fc53e7b20570ca
CI doc export for CreateTweaker build 8 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/HeatCondition.json", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/HeatCondition.json", "diff": "-{\"path\":\"mods/createtweaker/recipes/HeatCondition.md\",\"zenCodeName\":\"mods.create.HeatCondition\",\"searchTerms\":[\"color\",\"translationKey\",\"getCommandString\",\"getTranslationKey\",\"HEATED\",\"SUPERHEATED\",\"getColor\",\"NONE\",\"commandString\"]}\n+{\"path\":\"mods/createtweaker/recipes/HeatCondition.md\",\"zenCodeName\":\"mods.create.HeatCondition\",\"searchTerms\":[\"<constant:create:heat_condition:none>\",\"color\",\"translationKey\",\"getCommandString\",\"getTranslationKey\",\"getColor\",\"<constant:create:heat_condition:superheated>\",\"commandString\",\"<constant:create:heat_condition:heated>\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/HeatCondition.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipes/HeatCondition.md", "diff": "@@ -13,9 +13,9 @@ import mods.create.HeatCondition;\nHeatCondition is an enum. It has 3 enum constants. They are accessible using the code below.\n```zenscript\n-HeatCondition.NONE\n-HeatCondition.HEATED\n-HeatCondition.SUPERHEATED\n+<constant:create:heat_condition:none>\n+<constant:create:heat_condition:heated>\n+<constant:create:heat_condition:superheated>\n```\n## Methods\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 8 Matches git commit 5d0f69358535065ec5f4d2cf947646f14894bf4c on branch 1.18
139,068
23.04.2022 01:37:26
-7,200
e34a0cfaef6ee1e5252618ea7b5053dbe7527ea3
Base API and start work on chemicals Gas, Infusion, Pigment, Slurry and their respective Stacks are next
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketDumpers.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketDumpers.md", "diff": "@@ -12,4 +12,17 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.BracketDumpers;\n```\n+This class registers a couple of BracketDumpers to the `/ct dumps` command.\n+\n+The list of mekanism-added dumps is the following:\n+\n+```\n+gases\n+infuseTypes\n+pigments\n+slurries\n+robitSkins\n+moduleData\n+```\n+\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketHandlers.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketHandlers.md", "diff": "@@ -12,6 +12,9 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.BracketHandlers;\n```\n+This class allows you to get any of the Objects in the following methods by providing their registry name.\n+Some of these are collected through a dump command, while others can be found in game. Make sure to remove the prefix from the dump Bracket, as that is handled by the static method you are using here.\n+\n## Static Methods\n:::group{name=getGasStack}\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "diff": "@@ -12,6 +12,10 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.BracketValidators;\n```\n+This class allows you to check whether a certain Object exists or not before using the [BracketHandlers](/mods/Mekanism/api/BracketHandlers) class. All methods return a boolean that represents whether the passed in registry name or location has an Object associated to it.\n+\n+Just like with the [BracketHandlers](/mods/Mekanism/api/BracketHandlers), most of these are accessible through the `/ct dump` subcommands added by Mekanism or through their in-game names. Make sure to remove the prefix from the bracket you get, because that is handled by the static, specific method you use in this class.\n+\n## Static Methods\n:::group{name=validateGasStack}\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/FloatingLong.md", "new_path": "docs/1.16/content/mods/Mekanism/api/FloatingLong.md", "diff": "@@ -102,12 +102,15 @@ FloatingLong.createFromUnsigned(value as long) as FloatingLong\n:::group{name=add}\nAdds the given [FloatingLong](/mods/Mekanism/api/FloatingLong) to\n-this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n-gets clamped at the upper bound of {\n+this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object.\n+\n+This\n+gets clamped at the upper bound of `18,446,744,073,709,551,615.9999` instead of overflowing.\nReturns: The [FloatingLong](/mods/Mekanism/api/FloatingLong) representing the value of adding the\ngiven [FloatingLong](/mods/Mekanism/api/FloatingLong) to\nthis [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\nReturn Type: [FloatingLong](/mods/Mekanism/api/FloatingLong)\n```zenscript\n@@ -139,11 +142,11 @@ myFloatingLong.asString();\nCompares this [FloatingLong](/mods/Mekanism/api/FloatingLong) to the\ngiven [FloatingLong](/mods/Mekanism/api/FloatingLong).\n-Returns: zero if equal to toCompare\n-<br>\n-less than zero if smaller than toCompare\n-<br>\n-greater than zero if bigger than toCompare\n+Returns: `0` if equal to toCompare\n+\n+An integer`< 0` if smaller than toCompare\n+An integer `> 0` if bigger than toCompare\n+\nReturn Type: int\n```zenscript\n@@ -160,11 +163,12 @@ FloatingLong.compareTo(toCompare as FloatingLong) as int\nDivides this [FloatingLong](/mods/Mekanism/api/FloatingLong) by the\ngiven [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n-gets clamped at the upper bound of {\n+gets clamped at the upper bound of `18,446,744,073,709,551,615.9999` instead of overflowing.\nReturns: The [FloatingLong](/mods/Mekanism/api/FloatingLong) representing the value of dividing\nthis [FloatingLong](/mods/Mekanism/api/FloatingLong) by the\ngiven [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\nReturn Type: [FloatingLong](/mods/Mekanism/api/FloatingLong)\n```zenscript\n@@ -184,6 +188,7 @@ given [FloatingLong](/mods/Mekanism/api/FloatingLong).\nReturns: `true` if this [FloatingLong](/mods/Mekanism/api/FloatingLong) is equal to the\ngiven [FloatingLong](/mods/Mekanism/api/FloatingLong), `false` otherwise.\n+\nReturn Type: boolean\n```zenscript\n@@ -200,11 +205,12 @@ FloatingLong.isEqual(toCompare as FloatingLong) as boolean\nMultiplies the given [FloatingLong](/mods/Mekanism/api/FloatingLong) with\nthis [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n-gets clamped at the upper bound of {\n+gets clamped at the upper bound of `18,446,744,073,709,551,615.9999` instead of overflowing.\nReturns: The [FloatingLong](/mods/Mekanism/api/FloatingLong) representing the value of multiplying\nthe given [FloatingLong](/mods/Mekanism/api/FloatingLong) with\nthis [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\nReturn Type: [FloatingLong](/mods/Mekanism/api/FloatingLong)\n```zenscript\n@@ -220,12 +226,12 @@ FloatingLong.multiply(toMultiply as FloatingLong) as FloatingLong\n:::group{name=subtract}\nSubtracts the given [FloatingLong](/mods/Mekanism/api/FloatingLong) from\n-this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n-gets clamped at the lower bound of {\n+this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This gets clamped at the lower bound of 0 rather than becoming negative.\nReturns: The [FloatingLong](/mods/Mekanism/api/FloatingLong) representing the value of subtracting\nthe given [FloatingLong](/mods/Mekanism/api/FloatingLong) from\nthis [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\nReturn Type: [FloatingLong](/mods/Mekanism/api/FloatingLong)\n```zenscript\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/chemical/Chemical.md", "new_path": "docs/1.16/content/mods/Mekanism/api/chemical/Chemical.md", "diff": "@@ -12,6 +12,8 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.chemical.Chemical;\n```\n+A Chemical is the abstract representation of a mekanism chemical substance.\n+\n## Implemented Interfaces\nChemical implements the following interfaces. That means all methods defined in these interfaces are\n@@ -26,6 +28,7 @@ also available in Chemical\nGets whether this chemical is the empty instance.\nReturns: `true` if the chemical is the empty instance, `false` otherwise.\n+\nReturn Type: boolean\n```zenscript\n@@ -41,6 +44,7 @@ myChemical.isEmptyType();\nGets whether this chemical is hidden.\nReturns: `true` if the chemical is hidden, `false` otherwise.\n+\nReturn Type: boolean\n```zenscript\n@@ -56,6 +60,7 @@ myChemical.isHidden();\nGets the tags that this chemical is a part of.\nReturns: All the tags this chemical is a part of.\n+\nReturn Type: Set&lt;[MCResourceLocation](/vanilla/api/util/MCResourceLocation)&gt;\n```zenscript\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/chemical/ChemicalStack.md", "new_path": "docs/1.16/content/mods/Mekanism/api/chemical/ChemicalStack.md", "diff": "-# ChemicalStack&LT;CHEMICAL : Chemical<CHEMICAL>, STACK, CRT_STACK : ChemicalStack<CHEMICAL,STACK,CRT_STACK>&GT;\n+# ChemicalStack\nThis class was added by a mod with mod-id `mekanism`. So you need to have this mod installed if you\nwant to use this feature.\n@@ -12,6 +12,8 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.chemical.ChemicalStack;\n```\n+A ChemicalStack is the concrete representation of a [Chemical](/mods/mekanism/api/chemical/Chemical), with defined characteristics, such as the amount,\n+\n## Implemented Interfaces\nChemicalStack implements the following interfaces. That means all methods defined in these\n@@ -34,6 +36,7 @@ Makes this stack immutable\nReturns: An immutable Stack. This is either a new stack if the current stack is mutable, or the same\nstack if it is already immutable.\n+\nReturn Type: CRT_STACK\n```zenscript\n@@ -49,6 +52,7 @@ myChemicalStack.asImmutable();\nMakes this stack mutable\nReturns: A new Stack, that is mutable.\n+\nReturn Type: CRT_STACK\n```zenscript\n@@ -65,6 +69,7 @@ Checks if this chemical stack, contains the given chemical stack by checking if\nthe same, and if this stack's amount is bigger than the given stack's amount\nReturns: `true` if this stack contains the other stack\n+\nReturn Type: boolean\n```zenscript\n@@ -82,6 +87,7 @@ ChemicalStack.containsOther(stack as CRT_STACK) as boolean\nCopies the stack. Only needed when mutable stacks are involved.\nReturns: A new stack, that contains the same info as this one\n+\nReturn Type: CRT_STACK\n```zenscript\n@@ -97,6 +103,7 @@ myChemicalStack.copy();\nGets the size of this chemical stack.\nReturns: The size of this chemical stack or zero if it is empty\n+\nReturn Type: long\n```zenscript\n@@ -112,6 +119,7 @@ myChemicalStack.getAmount();\nGets the registry name for the chemical this stack is representing.\nReturns: A MCResourceLocation representing the registry name.\n+\nReturn Type: [MCResourceLocation](/vanilla/api/util/MCResourceLocation)\n```zenscript\n@@ -127,6 +135,7 @@ myChemicalStack.getRegistryName();\nRetrieves this fluid stack's fluid.\nReturns: The fluid.\n+\nReturn Type: CHEMICAL\n```zenscript\n@@ -159,6 +168,7 @@ ChemicalStack.grow(amount as long) as CRT_STACK\nWhether this chemical stack is empty.\nReturns: `true` if this stack is empty, `false` otherwise.\n+\nReturn Type: boolean\n```zenscript\n@@ -174,6 +184,7 @@ myChemicalStack.isEmpty();\nChecks if this chemical stack is equal another chemical stack.\nReturns: `true` if the chemicals stacks are equal, `false` otherwise.\n+\nReturn Type: boolean\n```zenscript\n@@ -191,6 +202,7 @@ ChemicalStack.isEqual(other as CRT_STACK) as boolean\nWhether this ChemicalStack's chemical type is equal to the other defined ChemicalStack.\nReturns: if the ChemicalStacks contain the same chemical type\n+\nReturn Type: boolean\n```zenscript\n@@ -208,6 +220,7 @@ ChemicalStack.isTypeEqual(stack as CRT_STACK) as boolean\nSets the chemical's amount in MilliBuckets (MB)\nReturns: A new stack, or this stack, depending on if this stack is mutable\n+\nReturn Type: CRT_STACK\n```zenscript\n@@ -225,6 +238,7 @@ ChemicalStack.setAmount(amount as long) as CRT_STACK\nShrinks the stack's amount by the given amount in MilliBuckets (MB)\nReturns: A new stack, or this stack, depending on if this stack is mutable\n+\nReturn Type: CRT_STACK\n```zenscript\n@@ -280,3 +294,16 @@ myChemicalStack * amount as long\n| registryName | [MCResourceLocation](/vanilla/api/util/MCResourceLocation) | true | false | Gets the registry name for the chemical this stack is representing. |\n| type | CHEMICAL | true | false | Retrieves this chemical stack's chemical. |\n+\n+## Small note\n+\n+It is worth nothing that for each Chemical type, there's a ChemicalStack:\n+\n+```\n+GasStack\n+InfusionStack\n+PigmentStack\n+SlurryStack\n+```\n+\n+exist and are something you can interact with.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/chemical/Gas.md", "new_path": "docs/1.16/content/mods/Mekanism/api/chemical/Gas.md", "diff": "@@ -26,6 +26,7 @@ are also available in Gas\nCreates a new [GasStack](/mods/Mekanism/api/chemical/GasStack) with the given amount of gas.\nReturns: a new (immutable) [GasStack](/mods/Mekanism/api/chemical/GasStack)\n+\nReturn Type: [GasStack](/mods/Mekanism/api/chemical/GasStack)\n```zenscript\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Base API and start work on chemicals Gas, Infusion, Pigment, Slurry and their respective Stacks are next
139,068
23.04.2022 20:39:18
-7,200
9e1ad93adaf60a5ae96abb16ab4c34cc89259d2e
ArmoreableDocs PR
[ { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/armoreablemobs/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"Armoreablemobs\":{\"ArmorGroup\":\"mods/armoreablemobs/ArmorGroup.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/armoreablemobs/docs/mods/armoreablemobs/ArmorGroup.json", "diff": "+{\"path\":\"mods/armoreablemobs/ArmorGroup.md\",\"zenCodeName\":\"mods.armoreablemobs.ArmorGroup\",\"searchTerms\":[\"inSlot\",\"getName\",\"getWeight\",\"setWeight\",\"overrideExistingArmor\",\"getStackinSlot\",\"getMap\",\"register\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/armoreablemobs/docs/mods/armoreablemobs/ArmorGroup.md", "diff": "+# ArmorGroup\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.armoreablemobs.ArmorGroup;\n+```\n+\n+Works on both Forge and Fabric!\n+\n+## Static Methods\n+\n+:::group{name=overrideExistingArmor}\n+\n+A powerful method to override the armor of a mob depending on which block they are standing on.\n+\n+Return Type: void\n+\n+```zenscript\n+ArmorGroup.overrideExistingArmor(type as EntityType, map as IItemStack[EquipmentSlot], state as BlockState) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; to Override | false | None |\n+| map | [IItemStack](/vanilla/api/item/IItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)] | The Associative Array, as `EquipmentSlot[IItemStack]` that will be used as the entities armor. If an [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) is empty, it won't override what's there. | false | None |\n+| state | [BlockState](/vanilla/api/block/BlockState) | The BlockState to override the armor if the aforementioned [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; spawns on top of. | true | Any |\n+\n+\n+:::\n+\n+## Constructors\n+\n+\n+```zenscript\n+new ArmorGroup(name as string) as ArmorGroup\n+```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | The display name of the group to create. |\n+\n+\n+\n+## Casters\n+\n+| Result type | Is Implicit |\n+|-------------|-------------|\n+| string | true |\n+\n+## Methods\n+\n+\n+:::group{name=getName}\n+\n+Gets the name of the ArmorGroup\n+\n+Returns: The name of the group as a string.\n+Return Type: string\n+\n+```zenscript\n+// ArmorGroup.getName() as string\n+\n+myArmorGroup.getName();\n+```\n+\n+:::\n+\n+:::group{name=inSlot}\n+\n+Links a slot to the ItemStack the entity will get when spawning. Accepts all [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) types.\n+\n+Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n+\n+```zenscript\n+ArmorGroup.inSlot(slot as EquipmentSlot, stack as IItemStack) as ArmorGroup\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | The slot at which the ItemStack will be placed |\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) | The [IItemStack](/vanilla/api/item/IItemStack) to give to the Entity. |\n+\n+\n+:::\n+\n+:::group{name=setWeight}\n+\n+Sets the weight at which the armor group can spawn. The chance a group has to spawn on an entity is determined using a pseudo random number and the total weight of ArmorGroups that entity can have.\n+\n+Returns: The ArmorGroup that has been modified.\n+Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n+\n+```zenscript\n+ArmorGroup.setWeight(weight as double) as ArmorGroup\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| weight | double | The weight at which the ArmorGroup will spawn on the entity type. |\n+\n+:::\n+\n+:::group{name=register}\n+\n+Registers the ArmorGroup.\n+\n+Return Type: void\n+\n+```zenscript\n+ArmorGroup.register(type as EntityType) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The entity at which the ArmorGroup will be applied on spawn. |\n+\n+\n+:::\n+\n+:::group{name=getMap}\n+\n+Returns the AssociativeArray that corresponds to the internal `EquipmentSlot[IItemStack]`\n+\n+Returns: The internal map as `EquipmentSlot[IItemStack]`\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)]\n+\n+```zenscript\n+// ArmorGroup.getMap() as ItemStack[EquipmentSlot]\n+\n+myArmorGroup.getMap();\n+```\n+\n+:::\n+\n+:::group{name=getStackinSlot}\n+\n+Gets the ItemStack the group will give in a selected slot. Can be null. Would be the same as using [ArmorGroup](/mods/armoreablemobs/ArmorGroup)#getMap() and passing the [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) as a key.\n+\n+Returns: The ItemStack at the selected location. Can be null.\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)\n+\n+```zenscript\n+ArmorGroup.getStackinSlot(slot as EquipmentSlot) as ItemStack\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getWeight}\n+\n+Gets the weight of the ArmorGroup\n+\n+Returns: The weight of the group as a double.\n+Return Type: double\n+\n+```zenscript\n+// ArmorGroup.getWeight() as double\n+\n+myArmorGroup.getWeight();\n+```\n+\n+:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
ArmoreableDocs PR
139,068
24.04.2022 12:38:15
-7,200
8d66e65496d51af0cb4a1354838cb19e81e8ea34
Add docsParams
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.md", "new_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.md", "diff": "@@ -19,6 +19,8 @@ Return Type: void\n```zenscript\nArmorGroup.overrideExistingArmor(type as EntityType, map as IItemStack[EquipmentSlot], state as BlockState) as void\n+\n+ArmorGroup.overrideExistingArmor(<entitytype:minecraft:zombie>, {<constant:minecraft:equipmentslot:chest> : <item:minecraft:netherite_chestplate>, <constant:minecraft:equipmentslot:mainhand> : <item:minecraft:netherite_sword>}, <blockstate:minecraft:sand>);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n@@ -75,6 +77,8 @@ Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n```zenscript\nArmorGroup.inSlot(slot as EquipmentSlot, stack as IItemStack) as ArmorGroup\n+\n+myArmorGroup.inSlot(<constant:minecraft:equipmentslot:feet>, <item:minecraft:iron_boots>);\n```\n| Parameter | Type | Description |\n@@ -95,6 +99,8 @@ Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n```zenscript\nArmorGroup.setWeight(weight as double) as ArmorGroup\n+\n+myArmorGroup.setWeight(3.0);\n```\n| Parameter | Type | Description |\n@@ -111,6 +117,8 @@ Return Type: void\n```zenscript\nArmorGroup.register(type as EntityType) as void\n+\n+myArmorGroup.register(<entitytype:minecraft:zombie>);\n```\n| Parameter | Type | Description |\n@@ -146,6 +154,8 @@ Return Type: [ItemStack](/vanilla/api/item/ItemStack)\n```zenscript\nArmorGroup.getStackinSlot(slot as EquipmentSlot) as ItemStack\n+\n+myArmorGroup.getStackinSlot(<constant:minecraft:equipmentslot:head>);\n```\n| Parameter | Type | Description |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add docsParams
139,068
26.04.2022 14:28:26
-7,200
76c8569eb55d3d93d652114ee4bdd8e3c8651573
Global Constants and Sushi Documentation
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/1.18/content/globals.md", "diff": "+# Global ZenCode Keywords\n+\n+This file contains a list of Global keywords you can use in CraftTweaker. These are used in order to do some menial tasks.\n+\n+## Global Functions\n+\n+- `print(argument as string)` Prints a string to the `crafttweaker.log` file\n+- `println(argument as string)` Prints a string, on a new line, to the `crafttweaker.log` file.\n+\n+## Global Getters\n+\n+Global Getters get a value for you. They are mostly used for adding recipes.\n+\n+- `blastFurnace` gets you the [BlastFurnaceRecipeManager Instance](/vanilla/api/recipe/manager/BlastFurnaceRecipeManager).\n+- `campfire` gets you the [CampFireRecipeManager Instance](/vanilla/api/recipe/manager/CampFireRecipeManager).\n+- `cauldron` gets you the [Cauldron Interaction Manager](/vanilla/api/misc/Cauldron).\n+- `composter` gets you the [Composter handler](/vanilla/api/recipe/manager/CraftingTableRecipeManager).\n+- `craftingTable` gets you the [CraftingTableRecipeManager Instance](/vanilla/api/misc/Composter).\n+- `furnace` gets you the [FurnaceRecipeManager Instance](/vanilla/api/recipe/manager/FurnaceRecipeManager).\n+- `game` gets you the [Game](/vanilla/api/game/Game) object for you to use.\n+- `loadedMods` gets you the list of [Mods](/vanilla/api/mod/Mods).\n+- `loot` gets you the [LootManager Instance](/vanilla/api/loot/LootManager).\n+- `recipes` gets you the [GenericRecipesManager Instance](/vanilla/api/recipe/manager/GenericRecipesManager).\n+- `smithing` gets you the [SmithingRecipeManager Instance](/vanilla/api/recipe/manager/SmithingRecipeManager).\n+- `smoker` gets you the [SmokerRecipeManager Instance](/vanilla/api/recipe/manager/SmokerRecipeManager).\n+- `stonecutter` gets you the [StoneCutterManager Instance](/vanilla/api/recipe/manager/StoneCutterManager).\n+- `tags` gets you the global CraftTweakerTagRegistry.\n+- `villagerTrades` gets you the [VillagerTrades handler](/vanilla/api/villager/VillagerTrades).\n+\n+### The CraftTweakerTagRegistry\n+\n+The CraftTweakerTagRegistry is a class with a single method, used to do dynamic string manipulations with tags.\n+\n+Since the following isn't doable with tags:\n+\n+```zenscript\n+var colour = \"white\" + \"_\";\n+<tag:items:minecraft:${colour}wool>...\n+```\n+\n+This exists to ammend that, so you can do:\n+\n+```zenscript\n+var colour = \"white\" + \"_\";\n+tags.tagManager(<resource:minecraft:items>).tag(<resource:minecraft:${colour}wool>)\n+```\n+\n+\n+### Forge Only\n+\n+- `brewing` gets you the Brewing manager from which you can use the methods inside of the [class](/forge/api/recipe/brewing/Brewing)\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Commands\" : \"commands.md\",\n\"Examples\": \"examples.md\",\n\"Getting Started With Scripts\": \"getting_started.md\",\n+ \"Global Keywords\" : \"globals.md\",\n\"Tutorials\": {\n\"Introduction To Scripting\": {\n\"What Are Scripts\": \"tutorial/IntroductionToScripting/WhatAreScripts.md\",\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"SushiGoCrafting\":{\"CuttingBoardManager\":\"mods/SushiGoCrafting/CuttingBoardManager.md\",\"CuttingBoardRecipe\":\"mods/SushiGoCrafting/CuttingBoardRecipe.md\",\"FermentingBarrelManager\":\"mods/SushiGoCrafting/FermentingBarrelManager.md\",\"FermentingBarrelRecipe\":\"mods/SushiGoCrafting/FermentingBarrelRecipe.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/CuttingBoardManager.json", "diff": "+{\"path\":\"mods/SushiGoCrafting/CuttingBoardManager.md\",\"zenCodeName\":\"mods.sushigocrafting.CuttingBoardManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/CuttingBoardManager.md", "diff": "+# CuttingBoardManager\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.sushigocrafting.CuttingBoardManager;\n+```\n+\n+\n+## Implemented Interfaces\n+CuttingBoardManager implements the following interfaces. That means all methods defined in these interfaces are also available in CuttingBoardManager\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[CuttingBoardRecipe](/mods/SushiGoCrafting/CuttingBoardRecipe)&gt;\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoardManager.addJsonRecipe(name as string, mapData as MapData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| mapData | [MapData](/vanilla/api/data/MapData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+// CuttingBoardManager.addRecipe(name as string, input as IIngredient, foodOutput as string) as void\n+\n+myCuttingBoardManager.addRecipe(\"cutting_board_test_recipe\", <item:minecraft:egg>, \"avocado\");\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | The unique name of the recipe. Standard naming rules apply. |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | The input of the recipe. |\n+| foodOutput | string | The foodOutput of the recipe. You can get it from /ct sushigocrafting_food_ingredients |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// CuttingBoardManager.getAllRecipes() as stdlib.List<T>\n+\n+myCuttingBoardManager.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+CuttingBoardManager.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// CuttingBoardManager.getRecipeMap() as T[ResourceLocation]\n+\n+myCuttingBoardManager.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+CuttingBoardManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// CuttingBoardManager.removeAll() as void\n+\n+myCuttingBoardManager.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoardManager.removeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoardManager.removeByModid(modid as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| modid | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoardManager.removeByName(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+CuttingBoardManager.removeByRegex(regex as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| regex | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false | No Description Provided |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/CuttingBoardRecipe.json", "diff": "+{\"path\":\"mods/SushiGoCrafting/CuttingBoardRecipe.md\",\"zenCodeName\":\"mods.sushigocrafting.CuttingBoardRecipe\",\"searchTerms\":[\"input\",\"ingredient\",\"getIngredient\",\"getInput\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/CuttingBoardRecipe.md", "diff": "+# CuttingBoardRecipe\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.sushigocrafting.CuttingBoardRecipe;\n+```\n+\n+\n+## Methods\n+\n+:::group{name=getIngredient}\n+\n+Return Type: string\n+\n+```zenscript\n+// CuttingBoardRecipe.getIngredient() as string\n+\n+myCuttingBoardRecipe.getIngredient();\n+```\n+\n+:::\n+\n+:::group{name=getInput}\n+\n+Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n+\n+```zenscript\n+// CuttingBoardRecipe.getInput() as IIngredient\n+\n+myCuttingBoardRecipe.getInput();\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| ingredient | string | true | false | No Description Provided |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/FermentingBarrelManager.json", "diff": "+{\"path\":\"mods/SushiGoCrafting/FermentingBarrelManager.md\",\"zenCodeName\":\"mods.sushigocrafting.FermentingBarrelManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/FermentingBarrelManager.md", "diff": "+# FermentingBarrelManager\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.sushigocrafting.FermentingBarrelManager;\n+```\n+\n+\n+## Implemented Interfaces\n+FermentingBarrelManager implements the following interfaces. That means all methods defined in these interfaces are also available in FermentingBarrelManager\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[FermentingBarrelRecipe](/mods/SushiGoCrafting/FermentingBarrelRecipe)&gt;\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+FermentingBarrelManager.addJsonRecipe(name as string, mapData as MapData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| mapData | [MapData](/vanilla/api/data/MapData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+// FermentingBarrelManager.addRecipe(name as string, input as IIngredient, stack as IFluidStack, output as IItemStack) as void\n+\n+myFermentingBarrelManager.addRecipe(\"barrel_test_recipe\", <item:minecraft:apple> * 2, <fluid:minecraft:water>, <item:sushigocrafting:soy_sauce>.withTag({Amount: 25 as int}));\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | The unique name of the recipe. Standard naming rules apply. |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | The input of the recipe. |\n+| stack | [IFluidStack](/forge/api/fluid/IFluidStack) | The fluid of the recipe |\n+| output | [IItemStack](/vanilla/api/item/IItemStack) | The output of the recipe |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// FermentingBarrelManager.getAllRecipes() as stdlib.List<T>\n+\n+myFermentingBarrelManager.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+FermentingBarrelManager.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// FermentingBarrelManager.getRecipeMap() as T[ResourceLocation]\n+\n+myFermentingBarrelManager.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+FermentingBarrelManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// FermentingBarrelManager.removeAll() as void\n+\n+myFermentingBarrelManager.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+FermentingBarrelManager.removeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+FermentingBarrelManager.removeByModid(modid as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| modid | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+FermentingBarrelManager.removeByName(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+FermentingBarrelManager.removeByRegex(regex as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| regex | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false | No Description Provided |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false | No Description Provided |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/FermentingBarrelRecipe.json", "diff": "+{\"path\":\"mods/SushiGoCrafting/FermentingBarrelRecipe.md\",\"zenCodeName\":\"mods.sushigocrafting.FermentingBarrelRecipe\",\"searchTerms\":[\"output\",\"input\",\"getFluid\",\"fluid\",\"getInput\",\"getOutput\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/sushigocrafting/docs/mods/SushiGoCrafting/FermentingBarrelRecipe.md", "diff": "+# FermentingBarrelRecipe\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.sushigocrafting.FermentingBarrelRecipe;\n+```\n+\n+\n+## Methods\n+\n+:::group{name=getFluid}\n+\n+Return Type: [IFluidStack](/forge/api/fluid/IFluidStack)\n+\n+```zenscript\n+// FermentingBarrelRecipe.getFluid() as IFluidStack\n+\n+myFermentingBarrelRecipe.getFluid();\n+```\n+\n+:::\n+\n+:::group{name=getInput}\n+\n+Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n+\n+```zenscript\n+// FermentingBarrelRecipe.getInput() as IIngredient\n+\n+myFermentingBarrelRecipe.getInput();\n+```\n+\n+:::\n+\n+:::group{name=getOutput}\n+\n+Return Type: [IItemStack](/vanilla/api/item/IItemStack)\n+\n+```zenscript\n+// FermentingBarrelRecipe.getOutput() as IItemStack\n+\n+myFermentingBarrelRecipe.getOutput();\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| fluid | [IFluidStack](/forge/api/fluid/IFluidStack) | true | false | No Description Provided |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | No Description Provided |\n+| output | [IItemStack](/vanilla/api/item/IItemStack) | true | false | No Description Provided |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Global Constants and Sushi Documentation
139,068
26.04.2022 14:34:55
-7,200
a32c2d37138e192434443ca1f36feec688618ce7
Fix writing and ordering
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/globals.md", "new_path": "docs/1.18/content/globals.md", "diff": "@@ -38,7 +38,7 @@ var colour = \"white\" + \"_\";\n<tag:items:minecraft:${colour}wool>...\n```\n-This exists to ammend that, so you can do:\n+This exists to amend that, so you can do:\n```zenscript\nvar colour = \"white\" + \"_\";\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Fabric\": {},\n\"Forge\": {},\n\"Mods\": {\n+ \"ArmoreableMobs\" : {},\n+ \"Createtweaker\" : {},\n+ \"Initialinventory\" : {},\n+ \"JEITweaker\" : {},\n+ \"SushiGoCrafting\" : {},\n\"Generic JSON Recipes\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix writing and ordering
139,057
28.04.2022 02:54:20
18,000
e292471627827f1e049f2c71d1a542be92f8e17d
addDrillLaserRecipe() is not used. addDrillLaserRecipe() does not do anything as pointed here: Added a short explanation on how a drill + laser recipe works Fixed a few missing semicolons
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/PneumaticCraft_Repressurized/Assembly.md", "new_path": "docs/1.12/content/Mods/PneumaticCraft_Repressurized/Assembly.md", "diff": "@@ -35,11 +35,13 @@ mods.pneumaticcraft.assembly.removeAllDrillLaserRecipes();\nThese functions are used to add new recipes for the assembly system:\n```zenscript\n-mods.pneumaticcraft.assembly.addLaserRecipe(IItemStack input, IItemStack output)\n-mods.pneumaticcraft.assembly.addDrillRecipe(IItemStack input, IItemStack output)\n-mods.pneumaticcraft.assembly.addDrillLaserRecipe(IItemStack input, IItemStack output)\n+mods.pneumaticcraft.assembly.addLaserRecipe(IItemStack input, IItemStack output);\n+mods.pneumaticcraft.assembly.addDrillRecipe(IItemStack input, IItemStack output);\n+\n// Examples\nmods.pneumaticcraft.assembly.addLaserRecipe(<pneumaticcraft:ingot_iron_compressed> * 2, <pneumaticcraft:compressed_iron_gear>);\n```\n+Combined drill/laser recipe are automatically added when a drill recipe goes from Item A -> Item B, and a laser recipe from Item B -> Item C.\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
addDrillLaserRecipe() is not used. (#509) addDrillLaserRecipe() does not do anything as pointed here: https://github.com/TeamPneumatic/pnc-repressurized/issues/418#issuecomment-586154522 - Added a short explanation on how a drill + laser recipe works - Fixed a few missing semicolons
139,068
30.04.2022 21:53:57
-7,200
9af87043dfa12abb8ccea19b9f0ec191398848aa
Third time is the charm, in a classic wit fashion
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs.json", "new_path": "docs_exported/1.18/solarcraft/docs.json", "diff": "-{\"nav\":{\"Mods\":{\"SolarForge\":{\"InfuserManager\":\"mods/SolarForge/InfuserManager.md\",\"InfusingTableManager\":\"mods/SolarForge/InfusingTableManager.md\",\"SolarSmeltingManager\":\"mods/SolarForge/SolarSmeltingManager.md\",\"Recipe\":{\"InfusingRecipe\":\"mods/SolarForge/Recipe/InfusingRecipe.md\",\"InfusingTableRecipe\":\"mods/SolarForge/Recipe/InfusingTableRecipe.md\",\"SolarSmeltingRecipe\":\"mods/SolarForge/Recipe/SolarSmeltingRecipe.md\"},\"Type\":{\"RunicEnergyCost\":\"mods/SolarForge/Type/RunicEnergyCost.md\",\"RunicEnergyType\":\"mods/SolarForge/Type/RunicEnergyType.md\"}}}}}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"SolarCraft\":{\"InfuserManager\":\"mods/SolarCraft/InfuserManager.md\",\"InfusingTableManager\":\"mods/SolarCraft/InfusingTableManager.md\",\"SolarSmeltingManager\":\"mods/SolarCraft/SolarSmeltingManager.md\",\"Recipe\":{\"InfusingRecipe\":\"mods/SolarCraft/Recipe/InfusingRecipe.md\",\"InfusingTableRecipe\":\"mods/SolarCraft/Recipe/InfusingTableRecipe.md\",\"SolarSmeltingRecipe\":\"mods/SolarCraft/Recipe/SolarSmeltingRecipe.md\"},\"Type\":{\"RunicEnergyCost\":\"mods/SolarCraft/Type/RunicEnergyCost.md\",\"RunicEnergyType\":\"mods/SolarCraft/Type/RunicEnergyType.md\"}}}}}\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfuserManager.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfuserManager.json", "diff": "-{\"path\":\"mods/SolarForge/InfuserManager.md\",\"zenCodeName\":\"mods.solarforge.InfuserManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n+{\"path\":\"mods/SolarCraft/InfuserManager.md\",\"zenCodeName\":\"mods.solarforge.InfuserManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfuserManager.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfuserManager.md", "diff": "@@ -13,7 +13,7 @@ import mods.solarforge.InfuserManager;\n## Implemented Interfaces\nInfuserManager implements the following interfaces. That means all methods defined in these interfaces are also available in InfuserManager\n-- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[InfusingRecipe](/mods/SolarForge/Recipe/InfusingRecipe)&gt;\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[InfusingRecipe](/mods/SolarCraft/Recipe/InfusingRecipe)&gt;\n## Methods\n@@ -119,7 +119,7 @@ Return Type: void\n| solarEnergy | int | Required solar energy for recipe. |\n| processingTime | int | The amount of time it should take the recipe to craft. |\n| fragment | string | The id of the fragment to use. |\n-| costs | [RunicEnergyCost](/mods/SolarForge/Type/RunicEnergyCost) | The RunicEnergyCost this recipe has. <br /> <br /> Recipe will automatically assign itself the structure tier it needs. (If Runic energy cost > 0 tier will be Runic Energy, if solar energy > 0 tier will be Solar Energy. <br /> Solar Energy tier overrides Runic Energy tier. If both of the costs are 0, the tier will be First.). |\n+| costs | [RunicEnergyCost](/mods/SolarCraft/Type/RunicEnergyCost) | The RunicEnergyCost this recipe has. <br /> <br /> Recipe will automatically assign itself the structure tier it needs. (If Runic energy cost > 0 tier will be Runic Energy, if solar energy > 0 tier will be Solar Energy. <br /> Solar Energy tier overrides Runic Energy tier. If both of the costs are 0, the tier will be First.). |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfusingTableManager.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfusingTableManager.json", "diff": "-{\"path\":\"mods/SolarForge/InfusingTableManager.md\",\"zenCodeName\":\"mods.solarforge.InfusingTableManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n+{\"path\":\"mods/SolarCraft/InfusingTableManager.md\",\"zenCodeName\":\"mods.solarforge.InfusingTableManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfusingTableManager.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/InfusingTableManager.md", "diff": "@@ -13,7 +13,7 @@ import mods.solarforge.InfusingTableManager;\n## Implemented Interfaces\nInfusingTableManager implements the following interfaces. That means all methods defined in these interfaces are also available in InfusingTableManager\n-- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[InfusingTableRecipe](/mods/SolarForge/Recipe/InfusingTableRecipe)&gt;\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[InfusingTableRecipe](/mods/SolarCraft/Recipe/InfusingTableRecipe)&gt;\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/InfusingRecipe.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/InfusingRecipe.json", "diff": "-{\"path\":\"mods/SolarForge/Recipe/InfusingRecipe.md\",\"zenCodeName\":\"mods.solarforge.recipe.InfusingRecipe\"}\n+{\"path\":\"mods/SolarCraft/Recipe/InfusingRecipe.md\",\"zenCodeName\":\"mods.solarforge.recipe.InfusingRecipe\"}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/InfusingTableRecipe.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/InfusingTableRecipe.json", "diff": "-{\"path\":\"mods/SolarForge/Recipe/InfusingTableRecipe.md\",\"zenCodeName\":\"mods.solarforge.recipe.InfusingTableRecipe\"}\n+{\"path\":\"mods/SolarCraft/Recipe/InfusingTableRecipe.md\",\"zenCodeName\":\"mods.solarforge.recipe.InfusingTableRecipe\"}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/SolarSmeltingRecipe.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Recipe/SolarSmeltingRecipe.json", "diff": "-{\"path\":\"mods/SolarForge/Recipe/SolarSmeltingRecipe.md\",\"zenCodeName\":\"mods.solarforge.SolarSmeltingRecipe\",\"searchTerms\":[\"crafttweaker.api.recipe.type.Recipe\"]}\n+{\"path\":\"mods/SolarCraft/Recipe/SolarSmeltingRecipe.md\",\"zenCodeName\":\"mods.solarforge.SolarSmeltingRecipe\",\"searchTerms\":[\"crafttweaker.api.recipe.type.Recipe\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/SolarSmeltingManager.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/SolarSmeltingManager.json", "diff": "-{\"path\":\"mods/SolarForge/SolarSmeltingManager.md\",\"zenCodeName\":\"mods.solarforge.SolarSmeltingManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n+{\"path\":\"mods/SolarCraft/SolarSmeltingManager.md\",\"zenCodeName\":\"mods.solarforge.SolarSmeltingManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/SolarSmeltingManager.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/SolarSmeltingManager.md", "diff": "@@ -13,7 +13,7 @@ import mods.solarforge.SolarSmeltingManager;\n## Implemented Interfaces\nSolarSmeltingManager implements the following interfaces. That means all methods defined in these interfaces are also available in SolarSmeltingManager\n-- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[SolarSmeltingRecipe](/mods/SolarForge/Recipe/SolarSmeltingRecipe)&gt;\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)&lt;[SolarSmeltingRecipe](/mods/SolarCraft/Recipe/SolarSmeltingRecipe)&gt;\n## Methods\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyCost.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyCost.json", "diff": "-{\"path\":\"mods/SolarForge/Type/RunicEnergyCost.md\",\"zenCodeName\":\"mods.solarforge.RunicEnergyCost\",\"searchTerms\":[\"types\",\"setTypeOfMap\",\"getType\",\"EMPTY\"]}\n+{\"path\":\"mods/SolarCraft/Type/RunicEnergyCost.md\",\"zenCodeName\":\"mods.solarforge.RunicEnergyCost\",\"searchTerms\":[\"types\",\"setTypeOfMap\",\"getType\",\"EMPTY\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyCost.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyCost.md", "diff": "@@ -15,7 +15,7 @@ import mods.solarforge.RunicEnergyCost;\nReturns: An empty RunicEnergyCost with no requirements.\n-Return Type: [RunicEnergyCost](/mods/SolarForge/Type/RunicEnergyCost)\n+Return Type: [RunicEnergyCost](/mods/SolarCraft/Type/RunicEnergyCost)\n```zenscript\n// RunicEnergyCost.EMPTY() as RunicEnergyCost\n@@ -32,7 +32,7 @@ RunicEnergyCost.EMPTY();\nReturns: A copy of the internal RunicEnergyTypes and the necessary amount needed for each one.\n-Return Type: float?[[RunicEnergyType](/mods/SolarForge/Type/RunicEnergyType)]\n+Return Type: float?[[RunicEnergyType](/mods/SolarCraft/Type/RunicEnergyType)]\n```zenscript\n// RunicEnergyCost.getType() as float?[RunicEnergyType]\n@@ -59,10 +59,10 @@ Sets a certain RunicEnergyType to the passed in amount.\n```\n- `customEnergyCost` is now usable as a variable in an [InfuserManager](/mods/SolarForge/InfuserManager)\n+ `customEnergyCost` is now usable as a variable in an [InfuserManager](/mods/SolarCraft/InfuserManager)\nReturns: The modified RunicEnergyCost.\n-Return Type: [RunicEnergyCost](/mods/SolarForge/Type/RunicEnergyCost)\n+Return Type: [RunicEnergyCost](/mods/SolarCraft/Type/RunicEnergyCost)\n```zenscript\n// RunicEnergyCost.setTypeOfMap(type as RunicEnergyType, amount as int) as RunicEnergyCost\n@@ -72,7 +72,7 @@ myRunicEnergyCost.setTypeOfMap(<constant:solarforge:energytype:ultima>, 10);\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| type | [RunicEnergyType](/mods/SolarForge/Type/RunicEnergyType) | The type to set |\n+| type | [RunicEnergyType](/mods/SolarCraft/Type/RunicEnergyType) | The type to set |\n| amount | int | The amount to set the type to |\n@@ -83,5 +83,5 @@ myRunicEnergyCost.setTypeOfMap(<constant:solarforge:energytype:ultima>, 10);\n| Name | Type | Has Getter | Has Setter | Description |\n|------|------|------------|------------|-------------|\n-| types | float?[[RunicEnergyType](/mods/SolarForge/Type/RunicEnergyType)] | true | false | |\n+| types | float?[[RunicEnergyType](/mods/SolarCraft/Type/RunicEnergyType)] | true | false | |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.json", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.json", "diff": "-{\"path\":\"mods/SolarForge/Type/RunicEnergyType.md\",\"zenCodeName\":\"mods.solarforge.RunicEnergyType\",\"searchTerms\":[\"<constant:solarforge:energytype:urba>\",\"<constant:solarforge:energytype:tera>\",\"<constant:solarforge:energytype:fira>\",\"<constant:solarforge:energytype:kelda>\",\"getCommandString\",\"<constant:solarforge:energytype:none>\",\"<constant:solarforge:energytype:giro>\",\"<constant:solarforge:energytype:zeta>\",\"commandString\",\"<constant:solarforge:energytype:ardo>\",\"<constant:solarforge:energytype:ultima>\"]}\n+{\"path\":\"mods/SolarCraft/Type/RunicEnergyType.md\",\"zenCodeName\":\"mods.solarforge.RunicEnergyType\",\"searchTerms\":[\"<constant:solarforge:energytype:urba>\",\"<constant:solarforge:energytype:tera>\",\"<constant:solarforge:energytype:fira>\",\"<constant:solarforge:energytype:kelda>\",\"getCommandString\",\"<constant:solarforge:energytype:none>\",\"<constant:solarforge:energytype:giro>\",\"<constant:solarforge:energytype:zeta>\",\"commandString\",\"<constant:solarforge:energytype:ardo>\",\"<constant:solarforge:energytype:ultima>\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.md", "diff": "@@ -21,6 +21,7 @@ RunicEnergyType is an enum. It has 9 enum constants. They are accessible using t\n<constant:solarforge:energytype:tera>\n<constant:solarforge:energytype:giro>\n<constant:solarforge:energytype:ultima>\n+<constant:solarforge:energytype:none>\n```\n## Methods\n@@ -28,7 +29,7 @@ RunicEnergyType is an enum. It has 9 enum constants. They are accessible using t\n-Returns: A Usable RunicEnergyType to use in [RunicEnergyCost](/mods/SolarForge/Type/RunicEnergyCost) to set up a requirement.\n+Returns: A Usable RunicEnergyType to use in [RunicEnergyCost](/mods/SolarCraft/Type/RunicEnergyCost) to set up a requirement.\nReturn Type: string\n```zenscript\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Third time is the charm, in a classic wit fashion
139,068
30.04.2022 22:18:27
-7,200
c103e66fc2fcee7b3a28e51dc30d59b1b6ad526f
Last forgotten fix I don't know how to tell the AP not to gen
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.md", "new_path": "docs_exported/1.18/solarcraft/docs/mods/SolarCraft/Type/RunicEnergyType.md", "diff": "@@ -21,7 +21,6 @@ RunicEnergyType is an enum. It has 9 enum constants. They are accessible using t\n<constant:solarforge:energytype:tera>\n<constant:solarforge:energytype:giro>\n<constant:solarforge:energytype:ultima>\n-<constant:solarforge:energytype:none>\n```\n## Methods\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Last forgotten fix I don't know how to tell the AP not to gen
139,033
04.05.2022 16:32:32
-7,200
8d07eb9ad8a1ee3e1afb9e29d5821e39c1b1f8d7
CI doc export for CreateTweaker build 10 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/EmptyingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/EmptyingManager.md", "diff": "@@ -40,7 +40,7 @@ Adds an emptying recipe.\nReturn Type: void\n```zenscript\n-// EmptyingManager.addRecipe(name as string, outputItem as IItemStack, outputFluid as IFluidStack, inputContainer as IIngredient, duration as int) as void\n+// EmptyingManager.addRecipe(name as string, outputItem as Percentaged<IItemStack>, outputFluid as IFluidStack, inputContainer as IIngredient, duration as int) as void\n<recipetype:create:emptying>.addRecipe(\"emptier\", <item:minecraft:diamond>, <fluid:minecraft:water>, <item:minecraft:dirt>, 200);\n```\n@@ -48,7 +48,7 @@ Return Type: void\n| Parameter | Type | Description | Optional | DefaultValue |\n|-----------|------|-------------|----------|--------------|\n| name | string | The name of the recipe. | false | |\n-| outputItem | [IItemStack](/vanilla/api/item/IItemStack) | The output item of the recipe. | false | |\n+| outputItem | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | The output item of the recipe. | false | |\n| outputFluid | [IFluidStack](/forge/api/fluid/IFluidStack) | The output fluid of the recipe. | false | |\n| inputContainer | [IIngredient](/vanilla/api/ingredient/IIngredient) | The input container of the recipe (what is being filled). | false | |\n| duration | int | The duration of the recipe in ticks (defaults to 100). | true | 100 |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FillingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FillingManager.md", "diff": "@@ -40,7 +40,7 @@ Adds a filling recipe.\nReturn Type: void\n```zenscript\n-// FillingManager.addRecipe(name as string, output as IItemStack, inputContainer as IIngredient, inputFluid as IFluidStack, duration as int) as void\n+// FillingManager.addRecipe(name as string, output as Percentaged<IItemStack>, inputContainer as IIngredient, inputFluid as IFluidStack, duration as int) as void\n<recipetype:create:filling>.addRecipe(\"emptier\", <item:minecraft:diamond>, <item:minecraft:dirt>, <fluid:minecraft:water>, 200);\n```\n@@ -48,7 +48,7 @@ Return Type: void\n| Parameter | Type | Description | Optional | DefaultValue |\n|-----------|------|-------------|----------|--------------|\n| name | string | The name of the recipe. | false | |\n-| output | [IItemStack](/vanilla/api/item/IItemStack) | The output item of the recipe. | false | |\n+| output | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | The output item of the recipe. | false | |\n| inputContainer | [IIngredient](/vanilla/api/ingredient/IIngredient) | The input container of the recipe (what is being filled). | false | |\n| inputFluid | [IFluidStack](/forge/api/fluid/IFluidStack) | The input fluid of the recipe. | false | |\n| duration | int | The duration of the recipe in ticks (defaults to 100). | true | 100 |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 10 Matches git commit 2f136ac3525b1a54437817e53a1c573ed6018143 on branch 1.18
139,033
06.05.2022 11:36:14
-7,200
03fb002a198c78f7f7d1a681253d11559622d181
CI doc export for CreateTweaker build 11 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CompactingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CompactingManager.md", "diff": "@@ -66,7 +66,7 @@ Return Type: void\n```zenscript\n// CompactingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n-<recipetype:create:compacting>.addRecipe(\"compacted\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n+<recipetype:create:compacting>.addRecipe(\"compacted\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// CrushingManager.addRecipe(name as string, output as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:crushing>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:glass>, 200);\n+<recipetype:create:crushing>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:glass>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CuttingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CuttingManager.md", "diff": "@@ -64,7 +64,7 @@ Return Type: void\n```zenscript\n// CuttingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:cutting>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:glass>, 200);\n+<recipetype:create:cutting>.addRecipe(\"crushed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:glass>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/HauntingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/HauntingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// HauntingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:haunting>.addRecipe(\"2spooky4me\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:dirt>, 200);\n+<recipetype:create:haunting>.addRecipe(\"2spooky4me\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:dirt>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MillingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MillingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// MillingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:milling>.addRecipe(\"milled\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:dirt>, 200);\n+<recipetype:create:milling>.addRecipe(\"milled\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:dirt>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MixingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MixingManager.md", "diff": "@@ -66,7 +66,7 @@ Return Type: void\n```zenscript\n// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n-<recipetype:create:mixing>.addRecipe(\"mixed\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n+<recipetype:create:mixing>.addRecipe(\"mixed\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/PressingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/PressingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// PressingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredientWithAmount, duration as int) as void\n-<recipetype:create:pressing>.addRecipe(\"pressed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:dirt>, 200);\n+<recipetype:create:pressing>.addRecipe(\"pressed\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:dirt>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SplashingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SplashingManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// SplashingManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredient, duration as int) as void\n-<recipetype:create:splashing>.addRecipe(\"2spooky4me\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> % 12) * 2], <item:minecraft:dirt>, 200);\n+<recipetype:create:splashing>.addRecipe(\"2spooky4me\", [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], <item:minecraft:dirt>, 200);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 11 Matches git commit 297164436b98c20b0e87c6aaca622a6e36cb88de on branch 1.18
139,068
06.05.2022 18:10:05
-7,200
a9200be473e8d6ea980acf637e0966ba923cbe98
Doc HasTranslation
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/text/HasTranslation.md", "new_path": "docs/1.16/content/mods/Mekanism/api/text/HasTranslation.md", "diff": "@@ -12,6 +12,9 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.text.HasTranslation;\n```\n+Any objects implementing this interface have a translation key you can get and use.\n+\n+\n## Methods\n:::group{name=getTranslationKey}\n@@ -28,4 +31,9 @@ myHasTranslation.getTranslationKey();\n:::\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| translationKey | string | true | false | Gets the translation key for this object |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Doc HasTranslation
139,068
09.05.2022 16:17:51
-7,200
07758e6b55ba37a46163700c77717611de8e7462
Fix this for Nerdy :P
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/crafttweaker/docs/vanilla/api/entity/LivingEntity.md", "new_path": "docs_exported/1.18/crafttweaker/docs/vanilla/api/entity/LivingEntity.md", "diff": "@@ -313,6 +313,8 @@ myLivingEntity.getArrowCount();\n:::group{name=getAttribute}\n+Nullable. Returns the AttributeInstance if present on the LivingEntity.\n+\nReturn Type: [AttributeInstance](/vanilla/api/entity/attribute/AttributeInstance)\n```zenscript\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix this for Nerdy :P
139,072
18.05.2022 13:44:54
-28,800
946ceba81c454b5e423ec504bde422b9d73884ba
Update Magneticraft documents.
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Magneticraft/Crushing_Table.md", "new_path": "docs/1.12/content/Mods/Magneticraft/Crushing_Table.md", "diff": "@@ -7,8 +7,8 @@ import mods.magneticraft.CrushingTable;\n## Adding Recipes\n```zenscript\n-//mods.magneticraft.CrushingTable.addRecipe(IItemStack input, IItemStack output, bool oredictFlag);\n-mods.magneticraft.CrushingTable.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot> * 9, true);\n+//mods.magneticraft.CrushingTable.addRecipe(IIngredient input, IItemStack output);\n+mods.magneticraft.CrushingTable.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot> * 9);\n```\n## Removing Recipes\n@@ -19,7 +19,7 @@ mods.magneticraft.CrushingTable.removeRecipe(<minecraft:iron_ore>);\n## Adding Hammers\n```zenscript\n-//mods.magneticraft.CrushingTable.addHammer(IItemStack hammer, int miningLevel, int speed, int durabilityPerRecipe);\n+//mods.magneticraft.CrushingTable.addHammer(IIngredient hammer, int miningLevel, int speed, int durabilityPerRecipe);\nmods.magneticraft.CrushingTable.addHammer(<minecraft:stone_pickaxe>, 1, 8, 1);\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Magneticraft/Grinder.md", "new_path": "docs/1.12/content/Mods/Magneticraft/Grinder.md", "diff": "@@ -7,9 +7,9 @@ import mods.magneticraft.Grinder;\n## Adding Recipes\n```zenscript\n-//mods.magneticraft.Grinder.addRecipe(IItemStack input, IItemStack output, IItemStack secondaryOutput, float probability, float ticks, bool oredictFlag);\n-mods.magneticraft.Grinder.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, <minecraft:gold_ingot>, 0.5, 80, true);\n-mods.magneticraft.Grinder.addRecipe(<minecraft:gold_ore>, <minecraft:gold_ingot>, <minecraft:stone>, 0.0, 50, true);\n+//mods.magneticraft.Grinder.addRecipe(IIngredient input, IItemStack output, IItemStack secondaryOutput, float probability, float ticks);\n+mods.magneticraft.Grinder.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, <minecraft:gold_ingot>, 0.5, 80);\n+mods.magneticraft.Grinder.addRecipe(<minecraft:gold_ore>, <minecraft:gold_ingot>, <minecraft:stone>, 0.0, 50);\n```\n## Removing Recipes\n" }, { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Magneticraft/Hydraulic_Press.md", "new_path": "docs/1.12/content/Mods/Magneticraft/Hydraulic_Press.md", "diff": "@@ -7,8 +7,8 @@ import mods.magneticraft.HydraulicPress;\n## Adding Recipes\n```zenscript\n-//mods.magneticraft.HydraulicPress.addRecipe(IItemStack input, IItemStack output, float ticks, int mode, bool oredictFlag);\n-mods.magneticraft.HydraulicPress.addRecipe(<minecraft:snow>, <minecraft:snowball> * 4, 10, 0, true);\n+//mods.magneticraft.HydraulicPress.addRecipe(IIngredient input, IItemStack output, float ticks, int mode);\n+mods.magneticraft.HydraulicPress.addRecipe(<minecraft:snow>, <minecraft:snowball> * 4, 10, 0);\n```\n## Removing Recipes\n" }, { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Magneticraft/Sieve.md", "new_path": "docs/1.12/content/Mods/Magneticraft/Sieve.md", "diff": "@@ -7,9 +7,9 @@ import mods.magneticraft.Sieve;\n## Adding Recipes\n```zenscript\n-//mods.magneticraft.Sieve.addRecipe(IItemStack input, IItemStack output1, float output1Probability, IItemStack output2, float output2Probability, IItemStack output3, float output3Probability, float ticks, bool oredictFlag);\n-mods.magneticraft.Sieve.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, 1.0, <minecraft:gold_ingot>, 0.25, <minecraft:gravel>, 0.15, 40, true);\n-mods.magneticraft.Sieve.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, 1.0, <minecraft:stone>, 0.0, <minecraft:stone>, 0.0, 100, true);\n+//mods.magneticraft.Sieve.addRecipe(IIngredient input, IItemStack output1, float output1Probability, IItemStack output2, float output2Probability, IItemStack output3, float output3Probability, float ticks);\n+mods.magneticraft.Sieve.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, 1.0, <minecraft:gold_ingot>, 0.25, <minecraft:gravel>, 0.15, 40);\n+mods.magneticraft.Sieve.addRecipe(<minecraft:iron_ore>, <minecraft:iron_ingot>, 1.0, <minecraft:stone>, 0.0, <minecraft:stone>, 0.0, 100);\n```\n## Removing Recipes\n" }, { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Magneticraft/Sluice_Box.md", "new_path": "docs/1.12/content/Mods/Magneticraft/Sluice_Box.md", "diff": "@@ -7,16 +7,16 @@ import mods.magneticraft.SluiceBox;\n## Adding Recipes\n```zenscript\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, bool oredictFlag);\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, bool oredictFlag);\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, bool oredictFlag);\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4, bool oredictFlag);\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4, float output5Probability, IItemStack output5, bool oredictFlag);\n-//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4, float output5Probability, IItemStack output5, float output6Probability, IItemStack output6, bool oredictFlag);\n+//mods.magneticraft.SluiceBox.addRecipe(IIngredient input, float output1Probability, IItemStack output1);\n+//mods.magneticraft.SluiceBox.addRecipe(IIngredient input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2);\n+//mods.magneticraft.SluiceBox.addRecipe(IItemStack input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3);\n+//mods.magneticraft.SluiceBox.addRecipe(IIngredient input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4);\n+//mods.magneticraft.SluiceBox.addRecipe(IIngredient input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4, float output5Probability, IItemStack output5);\n+//mods.magneticraft.SluiceBox.addRecipe(IIngredient input, float output1Probability, IItemStack output1, float output2Probability, IItemStack output2, float output3Probability, IItemStack output3, float output4Probability, IItemStack output4, float output5Probability, IItemStack output5, float output6Probability, IItemStack output6);\n-mods.magneticraft.SluiceBox.addRecipe(<minecraft:gold_ore>, 1.0, <minecraft:gold_nugget> * 9, true);\n-mods.magneticraft.SluiceBox.addRecipe(<minecraft:gravel>, 0.15, <minecraft:gold_nugget>, 0.5, <minecraft:flint>, true);\n-mods.magneticraft.SluiceBox.addRecipe(<minecraft:sand>, 0.05, <minecraft:gold_nugget>, 0.001, <minecraft:flint>, 0.1, <minecraft:quartz>, true);\n+mods.magneticraft.SluiceBox.addRecipe(<minecraft:gold_ore>, 1.0, <minecraft:gold_nugget> * 9);\n+mods.magneticraft.SluiceBox.addRecipe(<minecraft:gravel>, 0.15, <minecraft:gold_nugget>, 0.5, <minecraft:flint>);\n+mods.magneticraft.SluiceBox.addRecipe(<minecraft:sand>, 0.05, <minecraft:gold_nugget>, 0.001, <minecraft:flint>, 0.1, <minecraft:quartz>);\n```\n## Removing Recipes\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update Magneticraft documents. (#511)
139,068
24.05.2022 18:52:24
-7,200
67c02b9e1c704071486dab2d1706bb0545201f39
Fix botania position under mods
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Forge\": {},\n\"Mods\": {\n\"ArmoreableMobs\" : {},\n+ \"Botania\" : {},\n\"Createtweaker\" : {},\n\"Initialinventory\" : {},\n\"JEITweaker\" : {},\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix botania position under mods
139,033
05.06.2022 18:37:13
-7,200
a2ab8ac352790fa3601317c6effb7b4cf095b9f2
CI Doc export for Botania build release-1.18.2-433-1 Matches git commit
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/botania/docs/mods/Botania/BracketHandlers.md", "new_path": "docs_exported/1.18/botania/docs/mods/Botania/BracketHandlers.md", "diff": "@@ -15,7 +15,7 @@ import mods.botania.BracketHandlers;\nGets a brew from its registry name\nReturns: The Brew from the name if found.\n-Return Type: [Brew](/mods/botania/Brew)\n+Return Type: [Brew](/mods/Botania/Brew)\n```zenscript\n// BracketHandlers.getBrew(tokens as string) as Brew\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/botania/docs/mods/Botania/Brew.json", "new_path": "docs_exported/1.18/botania/docs/mods/Botania/Brew.json", "diff": "-{\"path\":\"mods/botania/Brew.md\",\"zenCodeName\":\"mods.botania.Brew\",\"searchTerms\":[\"canInfuseBloodPendant\",\"translationKey\",\"getCommandString\",\"getTranslationKey\",\"getManaCost\",\"getColor\",\"getPotionEffects\",\"manaCost\",\"canInfuseIncense\"]}\n+{\"path\":\"mods/Botania/Brew.md\",\"zenCodeName\":\"mods.botania.Brew\",\"searchTerms\":[\"canInfuseBloodPendant\",\"translationKey\",\"getCommandString\",\"getTranslationKey\",\"getManaCost\",\"getColor\",\"getPotionEffects\",\"manaCost\",\"canInfuseIncense\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/botania/docs/mods/Botania/recipe/manager/BrewRecipeManager.md", "new_path": "docs_exported/1.18/botania/docs/mods/Botania/recipe/manager/BrewRecipeManager.md", "diff": "@@ -48,7 +48,7 @@ Return Type: void\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| name | string | Name of the recipe to add |\n-| output | [Brew](/mods/botania/Brew) | Output brew |\n+| output | [Brew](/mods/Botania/Brew) | Output brew |\n| inputs | [IIngredient](/vanilla/api/ingredient/IIngredient)[] | Input items |\n@@ -110,7 +110,7 @@ BrewRecipeManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n:::group{name=remove}\n-Removes recipes that output the given [Brew](/mods/botania/Brew)\n+Removes recipes that output the given [Brew](/mods/Botania/Brew)\nReturn Type: void\n@@ -122,7 +122,7 @@ Return Type: void\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| output | [Brew](/mods/botania/Brew) | The output to remove. |\n+| output | [Brew](/mods/Botania/Brew) | The output to remove. |\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI Doc export for Botania build release-1.18.2-433-1 Matches git commit 7e10626d5ba1207701f310a3d0ff965129385a82
139,048
13.06.2022 01:16:25
18,000
5161f62ec8f6c93915324f91f236e0fce7fdeff3
Fix bwm kiln input
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/Modtweaker/BetterWithMods/Kiln.md", "new_path": "docs/1.12/content/Mods/Modtweaker/BetterWithMods/Kiln.md", "diff": "@@ -39,9 +39,9 @@ The Kiln has a recipe builder that allows more precise control over the recipes.\n`mods.betterwithmods.Kiln.builder()`\n* Kiln methods\n- * Sets up the inputs and outputs of the recipe\n+ * Sets up the input and outputs of the recipe\n```zenscript\n- buildRecipe(IIngredient[] inputs, IItemStack[] outputs)\n+ buildRecipe(IIngredient input, IItemStack[] outputs)\n```\n* Set the Heat requirements of the recipe. Heat is used to check if the recipe can be made in a stoked or unstoked cauldron.\nUnstoked heat = 1, Stoked heat = 2. You can add custom heat sources, and even custom heat levels using the [Heat Registry](/Mods/Modtweaker/BetterWithMods/HeatRegistry/).\n@@ -60,7 +60,7 @@ The Kiln has a recipe builder that allows more precise control over the recipes.\n### Example builder usage\n```zenscript\nmods.betterwithmods.Kiln.builder()\n-.buildRecipe([<ore:iron>], [<minecraft:iron_ingot>*2])\n+.buildRecipe(<ore:iron>, [<minecraft:iron_ingot>*2])\n.setHeat(2)\n.build();\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix bwm kiln input (#512)
139,068
24.06.2022 18:29:02
-7,200
94492b97e949a5ab736ebbfeccf44b8542c74fc7
Update ArmoreableMobs docs
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.json", "new_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.json", "diff": "-{\"path\":\"mods/ArmoreableMobs/ArmorGroup.md\",\"zenCodeName\":\"mods.armoreablemobs.ArmorGroup\",\"searchTerms\":[\"inSlot\",\"getName\",\"getWeight\",\"setWeight\",\"overrideExistingArmor\",\"getStackinSlot\",\"getMap\",\"register\"]}\n+{\"path\":\"mods/ArmoreableMobs/ArmorGroup.md\",\"zenCodeName\":\"mods.armoreablemobs.ArmorGroup\",\"searchTerms\":[\"inSlot\",\"addStages\",\"getName\",\"getWeight\",\"setWeight\",\"overrideExistingArmor\",\"getStackinSlot\",\"getMap\",\"getStages\",\"register\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.md", "new_path": "docs_exported/1.18/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.md", "diff": "@@ -7,7 +7,6 @@ It might be required for you to import the package if you encounter any issues (\nimport mods.armoreablemobs.ArmorGroup;\n```\n-Works on both Forge and Fabric!\n## Static Methods\n@@ -18,16 +17,16 @@ A powerful method to override the armor of a mob depending on which block they a\nReturn Type: void\n```zenscript\n-ArmorGroup.overrideExistingArmor(type as EntityType, map as IItemStack[EquipmentSlot], state as BlockState) as void\n+// ArmorGroup.overrideExistingArmor(type as EntityType, map as IItemStack[EquipmentSlot], state as BlockState) as void\nArmorGroup.overrideExistingArmor(<entitytype:minecraft:zombie>, {<constant:minecraft:equipmentslot:chest> : <item:minecraft:netherite_chestplate>, <constant:minecraft:equipmentslot:mainhand> : <item:minecraft:netherite_sword>}, <blockstate:minecraft:sand>);\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n|-----------|------|-------------|----------|--------------|\n-| type | [EntityType](/vanilla/api/entity/EntityType) | The [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; to Override | false | None |\n-| map | [IItemStack](/vanilla/api/item/IItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)] | The Associative Array, as `EquipmentSlot[IItemStack]` that will be used as the entities armor. If an [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) is empty, it won't override what's there. | false | None |\n-| state | [BlockState](/vanilla/api/block/BlockState) | The BlockState to override the armor if the aforementioned [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; spawns on top of. | true | Any |\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; to Override | false | |\n+| map | [IItemStack](/vanilla/api/item/IItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)] | The Associative Array, as `EquipmentSlot[IItemStack]` that will be used as the entities armor. If an [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) is empty, it won't override what's there. | false | |\n+| state | [BlockState](/vanilla/api/block/BlockState) | The BlockState to override the armor if the aforementioned [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; spawns on top of. | true | |\n:::\n@@ -52,13 +51,45 @@ new ArmorGroup(name as string) as ArmorGroup\n## Methods\n+:::group{name=addStages}\n+\n+Will only work on Forge.\n+ Gates the ArmorGroup from being given unless there's a player nearby with ALL of the stages in the Group.\n+\n+Returns: The [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup) itself.\n+Return Type: [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)\n+\n+```zenscript\n+ArmorGroup.addStages(stages as string[]) as ArmorGroup\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stages | string[] | The list of stages necessary for the [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup) to be given. |\n+\n+\n+:::\n+\n+:::group{name=getMap}\n+\n+Returns the AssociativeArray that corresponds to the internal `EquipmentSlot[IItemStack]`\n+\n+Returns: The internal map as `EquipmentSlot[IItemStack]`\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)]\n+\n+```zenscript\n+// ArmorGroup.getMap() as ItemStack[EquipmentSlot]\n+\n+myArmorGroup.getMap();\n+```\n+\n+:::\n:::group{name=getName}\nGets the name of the ArmorGroup\nReturns: The name of the group as a string.\n-\nReturn Type: string\n```zenscript\n@@ -69,114 +100,114 @@ myArmorGroup.getName();\n:::\n-:::group{name=inSlot}\n+:::group{name=getStackinSlot}\n-Links a slot to the ItemStack the entity will get when spawning. Accepts all [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) types.\n+Gets the ItemStack the group will give in a selected slot. Can be null. Would be the same as using [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)#getMap() and passing the [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) as a key.\n-Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n+Returns: The ItemStack at the selected location. Can be null.\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)\n```zenscript\n-ArmorGroup.inSlot(slot as EquipmentSlot, stack as IItemStack) as ArmorGroup\n+// ArmorGroup.getStackinSlot(slot as EquipmentSlot) as ItemStack\n-myArmorGroup.inSlot(<constant:minecraft:equipmentslot:feet>, <item:minecraft:iron_boots>);\n+myArmorGroup.getStackinSlot(<constant:minecraft:equipmentslot:head>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | The slot at which the ItemStack will be placed |\n-| stack | [IItemStack](/vanilla/api/item/IItemStack) | The [IItemStack](/vanilla/api/item/IItemStack) to give to the Entity. |\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | No Description Provided |\n:::\n-:::group{name=setWeight}\n+:::group{name=getStages}\n-Sets the weight at which the armor group can spawn. The chance a group has to spawn on an entity is determined using a pseudo random number and the total weight of ArmorGroups that entity can have.\n-\n-Returns: The ArmorGroup that has been modified.\n+Returns the names of the stages required to unlock this group. Will be empty on Fabric.\n-Return Type: [ArmorGroup](/mods/armoreablemobs/ArmorGroup)\n+Returns: The list of stages\n+Return Type: stdlib.List&lt;string&gt;\n```zenscript\n-ArmorGroup.setWeight(weight as double) as ArmorGroup\n+// ArmorGroup.getStages() as stdlib.List<string>\n-myArmorGroup.setWeight(3.0);\n+myArmorGroup.getStages();\n```\n-| Parameter | Type | Description |\n-|-----------|------|-------------|\n-| weight | double | The weight at which the ArmorGroup will spawn on the entity type. |\n-\n:::\n-:::group{name=register}\n+:::group{name=getWeight}\n-Registers the ArmorGroup.\n+Gets the weight of the ArmorGroup\n-Return Type: void\n+Returns: The weight of the group as a double.\n+Return Type: double\n```zenscript\n-ArmorGroup.register(type as EntityType) as void\n+// ArmorGroup.getWeight() as double\n-myArmorGroup.register(<entitytype:minecraft:zombie>);\n+myArmorGroup.getWeight();\n```\n-| Parameter | Type | Description |\n-|-----------|------|-------------|\n-| type | [EntityType](/vanilla/api/entity/EntityType) | The entity at which the ArmorGroup will be applied on spawn. |\n-\n-\n:::\n-:::group{name=getMap}\n-\n-Returns the AssociativeArray that corresponds to the internal `EquipmentSlot[IItemStack]`\n+:::group{name=inSlot}\n-Returns: The internal map as `EquipmentSlot[IItemStack]`\n+Links a slot to the ItemStack the entity will get when spawning. Accepts all [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) types.\n-Return Type: [ItemStack](/vanilla/api/item/ItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)]\n+Returns: The ArmorGroup that has been modified.\n+Return Type: [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)\n```zenscript\n-// ArmorGroup.getMap() as ItemStack[EquipmentSlot]\n+// ArmorGroup.inSlot(slot as EquipmentSlot, stack as IItemStack) as ArmorGroup\n-myArmorGroup.getMap();\n+myArmorGroup.inSlot(<constant:minecraft:equipmentslot:feet>, <item:minecraft:iron_boots>);\n```\n-:::\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | The slot at which the ItemStack will be placed |\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) | The [IItemStack](/vanilla/api/item/IItemStack) to give to the Entity. |\n-:::group{name=getStackinSlot}\n-Gets the ItemStack the group will give in a selected slot. Can be null. Would be the same as using [ArmorGroup](/mods/armoreablemobs/ArmorGroup)#getMap() and passing the [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) as a key.\n+:::\n-Returns: The ItemStack at the selected location. Can be null.\n+:::group{name=register}\n-Return Type: [ItemStack](/vanilla/api/item/ItemStack)\n+Registers the ArmorGroup.\n+\n+Return Type: void\n```zenscript\n-ArmorGroup.getStackinSlot(slot as EquipmentSlot) as ItemStack\n+// ArmorGroup.register(type as EntityType) as void\n-myArmorGroup.getStackinSlot(<constant:minecraft:equipmentslot:head>);\n+myArmorGroup.register(<entitytype:minecraft:zombie>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | No Description Provided |\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The entity at which the ArmorGroup will be applied on spawn. |\n:::\n-:::group{name=getWeight}\n-\n-Gets the weight of the ArmorGroup\n+:::group{name=setWeight}\n-Returns: The weight of the group as a double.\n+Sets the weight at which the armor group can spawn. The chance a group has to spawn on an entity is determined using a pseudo random number and the total weight of ArmorGroups that entity can have.\n-Return Type: double\n+Returns: The ArmorGroup that has been modified.\n+Return Type: [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)\n```zenscript\n-// ArmorGroup.getWeight() as double\n+// ArmorGroup.setWeight(weight as double) as ArmorGroup\n-myArmorGroup.getWeight();\n+myArmorGroup.setWeight(3.0);\n```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| weight | double | The weight at which the ArmorGroup will spawn on the entity type. |\n+\n+\n:::\n+\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update ArmoreableMobs docs
139,068
28.06.2022 22:44:00
-7,200
5a442847ba9746cf8c3e9e9e57fb1f225d176bfb
Fix typo in CoT/SimpleWalkthrough
[ { "change_type": "MODIFY", "old_path": "docs/1.14/content/mods/contenttweaker/SimpleWalkthrough.md", "new_path": "docs/1.14/content/mods/contenttweaker/SimpleWalkthrough.md", "diff": "@@ -42,7 +42,7 @@ import mods.contenttweaker.block.basic.BlockBuilderBasic;\nimport mods.contenttweaker.block.pillar.BlockBuilderPillarRotatable;\n-//The simplest way, uses blockamterial IRON\n+//The simplest way, uses blockmaterial IRON\nnew BlockBuilder()\n//Will delegate to the Basic Builder\n.build(\"generic_block\");\n" }, { "change_type": "MODIFY", "old_path": "docs/1.15/content/mods/contenttweaker/SimpleWalkthrough.md", "new_path": "docs/1.15/content/mods/contenttweaker/SimpleWalkthrough.md", "diff": "@@ -42,7 +42,7 @@ import mods.contenttweaker.block.basic.BlockBuilderBasic;\nimport mods.contenttweaker.block.pillar.BlockBuilderPillarRotatable;\n-//The simplest way, uses blockamterial IRON\n+//The simplest way, uses blockmaterial IRON\nnew BlockBuilder()\n//Will delegate to the Basic Builder\n.build(\"generic_block\");\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/contenttweaker/SimpleWalkthrough.md", "new_path": "docs/1.16/content/mods/contenttweaker/SimpleWalkthrough.md", "diff": "@@ -42,7 +42,7 @@ import mods.contenttweaker.block.basic.BlockBuilderBasic;\nimport mods.contenttweaker.block.pillar.BlockBuilderPillarRotatable;\n-//The simplest way, uses blockamterial IRON\n+//The simplest way, uses blockmaterial IRON\nnew BlockBuilder()\n//Will delegate to the Basic Builder\n.build(\"generic_block\");\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix typo in CoT/SimpleWalkthrough
139,068
29.06.2022 12:09:02
-7,200
ca0f24773c8a0cc31cc105c88143d514a2dd122e
PR EidolonTweaker docs and pray
[ { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"Melter\": \"mods/Cyclic/Melter.md\",\n\"Solidifier\": \"mods/Cyclic/Solidifier.md\"\n},\n+ \"EidolonTweaker\": {},\n\"Ex Nihilo Sequentia\": {\n\"Composting\": \"mods/ExNihiloSequentia/Composting.md\",\n\"Crooking\": \"mods/ExNihiloSequentia/Crooking.md\",\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/eidolontweaker/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"Eidolon\": {\n+ \"Crucible\": \"mods/eidolon/Crucible.md\",\n+ \"Worktable\": \"mods/eidolon/Worktable.md\",\n+ \"Api\": {\n+ \"CrucibleRecipeFunction\": \"mods/eidolon/api/CrucibleRecipeFunction.md\",\n+ \"WorktableRecipeFunction\": \"mods/eidolon/api/WorktableRecipeFunction.md\"\n+ }\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/Crucible.md", "diff": "+# Crucible\n+\n+This class was added by a mod with mod-id `eidolon_tweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.eidolon.Crucible;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=create}\n+\n+Return Type: [Crucible](/mods/eidolon/Crucible)\n+\n+```zenscript\n+Crucible.create(name as string, result as IItemStack) as Crucible\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| result | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+Return Type: void\n+\n+```zenscript\n+Crucible.remove(resourceName as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| resourceName | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// Crucible.removeAll() as void\n+\n+Crucible.removeAll();\n+```\n+\n+:::\n+\n+## Constructors\n+\n+No Description Provided\n+```zenscript\n+new Crucible(name as string, result as IItemStack) as Crucible\n+```\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| result | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+\n+## Methods\n+\n+:::group{name=addStep}\n+\n+Return Type: [Crucible](/mods/eidolon/Crucible)\n+\n+```zenscript\n+Crucible.addStep(stirs as int) as Crucible\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stirs | int | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addStep}\n+\n+Return Type: [Crucible](/mods/eidolon/Crucible)\n+\n+```zenscript\n+Crucible.addStep(input as IItemStack[], function as CrucibleRecipeFunction) as Crucible\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| function | [CrucibleRecipeFunction](/mods/eidolon/api/CrucibleRecipeFunction) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addStirringStep}\n+\n+Return Type: [Crucible](/mods/eidolon/Crucible)\n+\n+```zenscript\n+Crucible.addStirringStep(stirs as int, input as IItemStack[], function as CrucibleRecipeFunction) as Crucible\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| stirs | int | No Description Provided |\n+| input | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| function | [CrucibleRecipeFunction](/mods/eidolon/api/CrucibleRecipeFunction) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=register}\n+\n+Return Type: void\n+\n+```zenscript\n+// Crucible.register() as void\n+\n+myCrucible.register();\n+```\n+\n+:::\n+\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/Worktable.md", "diff": "+# Worktable\n+\n+This class was added by a mod with mod-id `eidolon_tweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.eidolon.Worktable;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=register}\n+\n+Return Type: void\n+\n+```zenscript\n+Worktable.register(name as string, core as IItemStack[], extra as IItemStack[], result as IItemStack, matrix as WorktableRecipeFunction) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| core | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| extra | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| result | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| matrix | [WorktableRecipeFunction](/mods/eidolon/api/WorktableRecipeFunction) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+Return Type: void\n+\n+```zenscript\n+Worktable.remove(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// Worktable.removeAll() as void\n+\n+Worktable.removeAll();\n+```\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/api/CrucibleRecipeFunction.md", "diff": "+# CrucibleRecipeFunction\n+\n+This class was added by a mod with mod-id `eidolon_tweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.eidolon.api.CrucibleRecipeFunction;\n+```\n+\n+\n+## Methods\n+\n+:::group{name=process}\n+\n+Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n+\n+```zenscript\n+CrucibleRecipeFunction.process(output as IItemStack, input as IItemStack[], stirs as int) as IItemStack\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| input | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| stirs | int | No Description Provided |\n+\n+\n+:::\n+\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/api/WorktableRecipeFunction.md", "diff": "+# WorktableRecipeFunction\n+\n+This class was added by a mod with mod-id `eidolon_tweaker`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.eidolon.api.WorktableRecipeFunction;\n+```\n+\n+\n+## Methods\n+\n+:::group{name=process}\n+\n+Return Type: [IItemStack](/vanilla/api/items/IItemStack)\n+\n+```zenscript\n+WorktableRecipeFunction.process(usualOut as IItemStack, core as IItemStack[], extra as IItemStack[]) as IItemStack\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| usualOut | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| core | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+| extra | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n+\n+\n+:::\n+\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
PR EidolonTweaker docs and pray
139,068
29.06.2022 13:20:34
-7,200
06af03302f6c07751ad1baa18a042eb01155c769
Fix paths I think
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.16/eidolontweaker/docs.json", "new_path": "docs_exported/1.16/eidolontweaker/docs.json", "diff": "{\n\"nav\": {\n\"Mods\": {\n- \"Eidolon\": {\n- \"Crucible\": \"mods/eidolon/Crucible.md\",\n- \"Worktable\": \"mods/eidolon/Worktable.md\",\n+ \"EidolonTweaker\": {\n+ \"Crucible\": \"mods/eidolontweaker/Crucible.md\",\n+ \"Worktable\": \"mods/eidolontweaker/Worktable.md\",\n\"Api\": {\n- \"CrucibleRecipeFunction\": \"mods/eidolon/api/CrucibleRecipeFunction.md\",\n- \"WorktableRecipeFunction\": \"mods/eidolon/api/WorktableRecipeFunction.md\"\n+ \"CrucibleRecipeFunction\": \"mods/eidolontweaker/api/CrucibleRecipeFunction.md\",\n+ \"WorktableRecipeFunction\": \"mods/eidolontweaker/api/WorktableRecipeFunction.md\"\n}\n}\n}\n" }, { "change_type": "RENAME", "old_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/Crucible.md", "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolontweaker/Crucible.md", "diff": "@@ -14,7 +14,7 @@ import mods.eidolon.Crucible;\n:::group{name=create}\n-Return Type: [Crucible](/mods/eidolon/Crucible)\n+Return Type: [Crucible](/mods/eidolontweaker/Crucible)\n```zenscript\nCrucible.create(name as string, result as IItemStack) as Crucible\n@@ -72,7 +72,7 @@ new Crucible(name as string, result as IItemStack) as Crucible\n:::group{name=addStep}\n-Return Type: [Crucible](/mods/eidolon/Crucible)\n+Return Type: [Crucible](/mods/eidolontweaker/Crucible)\n```zenscript\nCrucible.addStep(stirs as int) as Crucible\n@@ -87,7 +87,7 @@ Crucible.addStep(stirs as int) as Crucible\n:::group{name=addStep}\n-Return Type: [Crucible](/mods/eidolon/Crucible)\n+Return Type: [Crucible](/mods/eidolontweaker/Crucible)\n```zenscript\nCrucible.addStep(input as IItemStack[], function as CrucibleRecipeFunction) as Crucible\n@@ -96,14 +96,14 @@ Crucible.addStep(input as IItemStack[], function as CrucibleRecipeFunction) as C\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| input | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n-| function | [CrucibleRecipeFunction](/mods/eidolon/api/CrucibleRecipeFunction) | No Description Provided |\n+| function | [CrucibleRecipeFunction](/mods/eidolontweaker/api/CrucibleRecipeFunction) | No Description Provided |\n:::\n:::group{name=addStirringStep}\n-Return Type: [Crucible](/mods/eidolon/Crucible)\n+Return Type: [Crucible](/mods/eidolontweaker/Crucible)\n```zenscript\nCrucible.addStirringStep(stirs as int, input as IItemStack[], function as CrucibleRecipeFunction) as Crucible\n@@ -113,7 +113,7 @@ Crucible.addStirringStep(stirs as int, input as IItemStack[], function as Crucib\n|-----------|------|-------------|\n| stirs | int | No Description Provided |\n| input | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n-| function | [CrucibleRecipeFunction](/mods/eidolon/api/CrucibleRecipeFunction) | No Description Provided |\n+| function | [CrucibleRecipeFunction](/mods/eidolontweaker/api/CrucibleRecipeFunction) | No Description Provided |\n:::\n" }, { "change_type": "RENAME", "old_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/Worktable.md", "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolontweaker/Worktable.md", "diff": "@@ -26,7 +26,7 @@ Worktable.register(name as string, core as IItemStack[], extra as IItemStack[],\n| core | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n| extra | [IItemStack](/vanilla/api/items/IItemStack)[] | No Description Provided |\n| result | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n-| matrix | [WorktableRecipeFunction](/mods/eidolon/api/WorktableRecipeFunction) | No Description Provided |\n+| matrix | [WorktableRecipeFunction](/mods/eidolontweaker/api/WorktableRecipeFunction) | No Description Provided |\n:::\n" }, { "change_type": "RENAME", "old_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/api/CrucibleRecipeFunction.md", "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolontweaker/api/CrucibleRecipeFunction.md", "diff": "" }, { "change_type": "RENAME", "old_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolon/api/WorktableRecipeFunction.md", "new_path": "docs_exported/1.16/eidolontweaker/docs/mods/eidolontweaker/api/WorktableRecipeFunction.md", "diff": "" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix paths I think
139,033
10.07.2022 22:46:05
-7,200
489dd0c25325f244feacc96a18e1544e4625a565
CI doc export for CreateTweaker build 12 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs.json", "new_path": "docs_exported/1.18/createtweaker/docs.json", "diff": "-{\"nav\":{\"Mods\":{\"Createtweaker\":{\"CompactingManager\":\"mods/createtweaker/CompactingManager.md\",\"CrushingManager\":\"mods/createtweaker/CrushingManager.md\",\"CuttingManager\":\"mods/createtweaker/CuttingManager.md\",\"DeployerApplicationManager\":\"mods/createtweaker/DeployerApplicationManager.md\",\"EmptyingManager\":\"mods/createtweaker/EmptyingManager.md\",\"FillingManager\":\"mods/createtweaker/FillingManager.md\",\"FluidIngredient\":\"mods/createtweaker/FluidIngredient.md\",\"HauntingManager\":\"mods/createtweaker/HauntingManager.md\",\"IProcessingRecipeManager\":\"mods/createtweaker/IProcessingRecipeManager.md\",\"MechanicalCrafterManager\":\"mods/createtweaker/MechanicalCrafterManager.md\",\"MillingManager\":\"mods/createtweaker/MillingManager.md\",\"MixingManager\":\"mods/createtweaker/MixingManager.md\",\"PressingManager\":\"mods/createtweaker/PressingManager.md\",\"ProcessingOutput\":\"mods/createtweaker/ProcessingOutput.md\",\"SandPaperPolishingManager\":\"mods/createtweaker/SandPaperPolishingManager.md\",\"SequencedAssemblyManager\":\"mods/createtweaker/SequencedAssemblyManager.md\",\"SplashingManager\":\"mods/createtweaker/SplashingManager.md\",\"Recipe\":{\"HeatCondition\":\"mods/createtweaker/recipe/HeatCondition.md\",\"ProcessingRecipeBuilder\":\"mods/createtweaker/recipe/ProcessingRecipeBuilder.md\",\"ProcessingRecipeFactory\":\"mods/createtweaker/recipe/ProcessingRecipeFactory.md\",\"SequencedAssemblyRecipeBuilder\":\"mods/createtweaker/recipe/SequencedAssemblyRecipeBuilder.md\",\"Type\":{\"AbstractCrushingRecipe\":\"mods/createtweaker/recipe/type/AbstractCrushingRecipe.md\",\"BasinRecipe\":\"mods/createtweaker/recipe/type/BasinRecipe.md\",\"CompactingRecipe\":\"mods/createtweaker/recipe/type/CompactingRecipe.md\",\"CrushingRecipe\":\"mods/createtweaker/recipe/type/CrushingRecipe.md\",\"CuttingRecipe\":\"mods/createtweaker/recipe/type/CuttingRecipe.md\",\"DeployerApplicationRecipe\":\"mods/createtweaker/recipe/type/DeployerApplicationRecipe.md\",\"EmptyingRecipe\":\"mods/createtweaker/recipe/type/EmptyingRecipe.md\",\"FillingRecipe\":\"mods/createtweaker/recipe/type/FillingRecipe.md\",\"HauntingRecipe\":\"mods/createtweaker/recipe/type/HauntingRecipe.md\",\"IAssemblyRecipe\":\"mods/createtweaker/recipe/type/IAssemblyRecipe.md\",\"MillingRecipe\":\"mods/createtweaker/recipe/type/MillingRecipe.md\",\"MixingRecipe\":\"mods/createtweaker/recipe/type/MixingRecipe.md\",\"PressingRecipe\":\"mods/createtweaker/recipe/type/PressingRecipe.md\",\"ProcessingRecipe\":\"mods/createtweaker/recipe/type/ProcessingRecipe.md\",\"SandPaperPolishingRecipe\":\"mods/createtweaker/recipe/type/SandPaperPolishingRecipe.md\",\"SplashingRecipe\":\"mods/createtweaker/recipe/type/SplashingRecipe.md\"}}}}}}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"Createtweaker\":{\"CompactingManager\":\"mods/createtweaker/CompactingManager.md\",\"CrushingManager\":\"mods/createtweaker/CrushingManager.md\",\"CuttingManager\":\"mods/createtweaker/CuttingManager.md\",\"DeployerApplicationManager\":\"mods/createtweaker/DeployerApplicationManager.md\",\"EmptyingManager\":\"mods/createtweaker/EmptyingManager.md\",\"FillingManager\":\"mods/createtweaker/FillingManager.md\",\"FluidIngredient\":\"mods/createtweaker/FluidIngredient.md\",\"HauntingManager\":\"mods/createtweaker/HauntingManager.md\",\"IProcessingRecipeManager\":\"mods/createtweaker/IProcessingRecipeManager.md\",\"ItemApplicationManager\":\"mods/createtweaker/ItemApplicationManager.md\",\"MechanicalCrafterManager\":\"mods/createtweaker/MechanicalCrafterManager.md\",\"MillingManager\":\"mods/createtweaker/MillingManager.md\",\"MixingManager\":\"mods/createtweaker/MixingManager.md\",\"PressingManager\":\"mods/createtweaker/PressingManager.md\",\"ProcessingOutput\":\"mods/createtweaker/ProcessingOutput.md\",\"SandPaperPolishingManager\":\"mods/createtweaker/SandPaperPolishingManager.md\",\"SequencedAssemblyManager\":\"mods/createtweaker/SequencedAssemblyManager.md\",\"SplashingManager\":\"mods/createtweaker/SplashingManager.md\",\"Recipe\":{\"HeatCondition\":\"mods/createtweaker/recipe/HeatCondition.md\",\"ProcessingRecipeBuilder\":\"mods/createtweaker/recipe/ProcessingRecipeBuilder.md\",\"ProcessingRecipeFactory\":\"mods/createtweaker/recipe/ProcessingRecipeFactory.md\",\"SequencedAssemblyRecipeBuilder\":\"mods/createtweaker/recipe/SequencedAssemblyRecipeBuilder.md\",\"Type\":{\"AbstractCrushingRecipe\":\"mods/createtweaker/recipe/type/AbstractCrushingRecipe.md\",\"BasinRecipe\":\"mods/createtweaker/recipe/type/BasinRecipe.md\",\"CompactingRecipe\":\"mods/createtweaker/recipe/type/CompactingRecipe.md\",\"CrushingRecipe\":\"mods/createtweaker/recipe/type/CrushingRecipe.md\",\"CuttingRecipe\":\"mods/createtweaker/recipe/type/CuttingRecipe.md\",\"DeployerApplicationRecipe\":\"mods/createtweaker/recipe/type/DeployerApplicationRecipe.md\",\"EmptyingRecipe\":\"mods/createtweaker/recipe/type/EmptyingRecipe.md\",\"FillingRecipe\":\"mods/createtweaker/recipe/type/FillingRecipe.md\",\"HauntingRecipe\":\"mods/createtweaker/recipe/type/HauntingRecipe.md\",\"IAssemblyRecipe\":\"mods/createtweaker/recipe/type/IAssemblyRecipe.md\",\"ItemApplicationRecipe\":\"mods/createtweaker/recipe/type/ItemApplicationRecipe.md\",\"ManualApplicationRecipe\":\"mods/createtweaker/recipe/type/ManualApplicationRecipe.md\",\"MillingRecipe\":\"mods/createtweaker/recipe/type/MillingRecipe.md\",\"MixingRecipe\":\"mods/createtweaker/recipe/type/MixingRecipe.md\",\"PressingRecipe\":\"mods/createtweaker/recipe/type/PressingRecipe.md\",\"ProcessingRecipe\":\"mods/createtweaker/recipe/type/ProcessingRecipe.md\",\"SandPaperPolishingRecipe\":\"mods/createtweaker/recipe/type/SandPaperPolishingRecipe.md\",\"SplashingRecipe\":\"mods/createtweaker/recipe/type/SplashingRecipe.md\"}}}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.json", "diff": "+{\"path\":\"mods/createtweaker/ItemApplicationManager.md\",\"zenCodeName\":\"mods.create.ItemApplicationManager\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"registerRecipe\",\"removeByInput\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "diff": "+# ItemApplicationManager\n+\n+\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.create.ItemApplicationManager;\n+```\n+\n+\n+## Implemented Interfaces\n+ItemApplicationManager implements the following interfaces. That means all methods defined in these interfaces are also available in ItemApplicationManager\n+\n+- [IProcessingRecipeManager](/mods/createtweaker/IProcessingRecipeManager)&lt;[ItemApplicationRecipe](/mods/createtweaker/recipe/type/ItemApplicationRecipe)&gt;\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.addJsonRecipe(name as string, mapData as MapData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| mapData | [MapData](/vanilla/api/data/MapData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | No Description Provided |\n+| block | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// ItemApplicationManager.getAllRecipes() as stdlib.List<T>\n+\n+<recipetype:create:item_application>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+ItemApplicationManager.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// ItemApplicationManager.getRecipeMap() as T[ResourceLocation]\n+\n+<recipetype:create:item_application>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+ItemApplicationManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=registerRecipe}\n+\n+Registers a recipe using a builder approach.\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.registerRecipe(name as string, recipeBuilder as Consumer<ProcessingRecipeBuilder<T>>) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | The name of the recipe. |\n+| recipeBuilder | Consumer&lt;[ProcessingRecipeBuilder](/mods/createtweaker/recipe/ProcessingRecipeBuilder)&lt;T&gt;&gt; | The recipe builder. |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.remove(output as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// ItemApplicationManager.removeAll() as void\n+\n+<recipetype:create:item_application>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.removeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.removeByModid(modid as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| modid | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.removeByName(name as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+ItemApplicationManager.removeByRegex(regex as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| regex | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false | No Description Provided |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false | No Description Provided |\n+\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/DeployerApplicationRecipe.json", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/DeployerApplicationRecipe.json", "diff": "-{\"path\":\"mods/createtweaker/recipe/type/DeployerApplicationRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ProcessingRecipe\",\"searchTerms\":[\"mods.createtweaker.ProcessingRecipe\",\"getProcessedItem\",\"getRequiredHeldItem\",\"mods.createtweaker.IAssemblyRecipe\",\"requiredHeldItem\",\"shouldKeepHeldItem\",\"processedItem\"]}\n+{\"path\":\"mods/createtweaker/recipe/type/DeployerApplicationRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ItemApplicationRecipe\",\"searchTerms\":[\"mods.createtweaker.ItemApplicationRecipe\",\"mods.createtweaker.IAssemblyRecipe\"]}\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/DeployerApplicationRecipe.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/DeployerApplicationRecipe.md", "diff": "@@ -8,68 +8,12 @@ import mods.createtweaker.DeployerApplicationRecipe;\n```\n-## Extending ProcessingRecipe\n+## Extending ItemApplicationRecipe\n-DeployerApplicationRecipe extends [ProcessingRecipe](/mods/createtweaker/recipe/type/ProcessingRecipe). That means all methods available in [ProcessingRecipe](/mods/createtweaker/recipe/type/ProcessingRecipe) are also available in DeployerApplicationRecipe\n+DeployerApplicationRecipe extends [ItemApplicationRecipe](/mods/createtweaker/recipe/type/ItemApplicationRecipe). That means all methods available in [ItemApplicationRecipe](/mods/createtweaker/recipe/type/ItemApplicationRecipe) are also available in DeployerApplicationRecipe\n## Implemented Interfaces\nDeployerApplicationRecipe implements the following interfaces. That means all methods defined in these interfaces are also available in DeployerApplicationRecipe\n- [IAssemblyRecipe](/mods/createtweaker/recipe/type/IAssemblyRecipe)\n-## Methods\n-\n-:::group{name=getProcessedItem}\n-\n-Gets the processed Item.\n-\n-Returns: The processed Item.\n-Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n-\n-```zenscript\n-// DeployerApplicationRecipe.getProcessedItem() as IIngredient\n-\n-myDeployerApplicationRecipe.getProcessedItem();\n-```\n-\n-:::\n-\n-:::group{name=getRequiredHeldItem}\n-\n-Gets the required held item.\n-\n-Returns: The required held item.\n-Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n-\n-```zenscript\n-// DeployerApplicationRecipe.getRequiredHeldItem() as IIngredient\n-\n-myDeployerApplicationRecipe.getRequiredHeldItem();\n-```\n-\n-:::\n-\n-:::group{name=shouldKeepHeldItem}\n-\n-Should the recipe keep the held item?\n-\n-Returns: True if the recipe keeps the held item. False otherwise.\n-Return Type: boolean\n-\n-```zenscript\n-// DeployerApplicationRecipe.shouldKeepHeldItem() as boolean\n-\n-myDeployerApplicationRecipe.shouldKeepHeldItem();\n-```\n-\n-:::\n-\n-\n-## Properties\n-\n-| Name | Type | Has Getter | Has Setter | Description |\n-|------|------|------------|------------|-------------|\n-| processedItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | Gets the processed Item. |\n-| requiredHeldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | Gets the required held item. |\n-| shouldKeepHeldItem | boolean | true | false | Should the recipe keep the held item? |\n-\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/ItemApplicationRecipe.json", "diff": "+{\"path\":\"mods/createtweaker/recipe/type/ItemApplicationRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ProcessingRecipe\",\"searchTerms\":[\"mods.createtweaker.ProcessingRecipe\",\"getProcessedItem\",\"getRequiredHeldItem\",\"requiredHeldItem\",\"shouldKeepHeldItem\",\"processedItem\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/ItemApplicationRecipe.md", "diff": "+# ItemApplicationRecipe\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.createtweaker.ItemApplicationRecipe;\n+```\n+\n+\n+## Extending ProcessingRecipe\n+\n+ItemApplicationRecipe extends [ProcessingRecipe](/mods/createtweaker/recipe/type/ProcessingRecipe). That means all methods available in [ProcessingRecipe](/mods/createtweaker/recipe/type/ProcessingRecipe) are also available in ItemApplicationRecipe\n+\n+## Methods\n+\n+:::group{name=getProcessedItem}\n+\n+Gets the processed Item.\n+\n+Returns: The processed Item.\n+Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n+\n+```zenscript\n+// ItemApplicationRecipe.getProcessedItem() as IIngredient\n+\n+myItemApplicationRecipe.getProcessedItem();\n+```\n+\n+:::\n+\n+:::group{name=getRequiredHeldItem}\n+\n+Gets the required held item.\n+\n+Returns: The required held item.\n+Return Type: [IIngredient](/vanilla/api/ingredient/IIngredient)\n+\n+```zenscript\n+// ItemApplicationRecipe.getRequiredHeldItem() as IIngredient\n+\n+myItemApplicationRecipe.getRequiredHeldItem();\n+```\n+\n+:::\n+\n+:::group{name=shouldKeepHeldItem}\n+\n+Should the recipe keep the held item?\n+\n+Returns: True if the recipe keeps the held item. False otherwise.\n+Return Type: boolean\n+\n+```zenscript\n+// ItemApplicationRecipe.shouldKeepHeldItem() as boolean\n+\n+myItemApplicationRecipe.shouldKeepHeldItem();\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| processedItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | Gets the processed Item. |\n+| requiredHeldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | true | false | Gets the required held item. |\n+| shouldKeepHeldItem | boolean | true | false | Should the recipe keep the held item? |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/ManualApplicationRecipe.json", "diff": "+{\"path\":\"mods/createtweaker/recipe/type/ManualApplicationRecipe.md\",\"zenCodeName\":\"mods.createtweaker.ItemApplicationRecipe\",\"searchTerms\":[\"mods.createtweaker.ItemApplicationRecipe\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/recipe/type/ManualApplicationRecipe.md", "diff": "+# ManualApplicationRecipe\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.createtweaker.ManualApplicationRecipe;\n+```\n+\n+\n+## Extending ItemApplicationRecipe\n+\n+ManualApplicationRecipe extends [ItemApplicationRecipe](/mods/createtweaker/recipe/type/ItemApplicationRecipe). That means all methods available in [ItemApplicationRecipe](/mods/createtweaker/recipe/type/ItemApplicationRecipe) are also available in ManualApplicationRecipe\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 12 Matches git commit 6e4aed04b7e108602136e2f5b12b956eaf942f24 on branch 1.18
139,033
12.07.2022 17:33:40
-7,200
113d8596a1a2e31d9a5db3bbdfaf417a384f20d0
CI doc export for CreateTweaker build 13 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "diff": "@@ -35,18 +35,22 @@ ItemApplicationManager.addJsonRecipe(name as string, mapData as MapData) as void\n:::group{name=addRecipe}\n+Adds a new item application recipe.\n+\nReturn Type: void\n```zenscript\n-ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient) as void\n+// ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient) as void\n+\n+<recipetype:create:item_application>.addRecipe(\"name\", [<item:minecraft:dirt> % 50, <item:minecraft:diamond>], <item:minecraft:diamond_block>, <item:minecraft:emerald>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n-| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | No Description Provided |\n-| block | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n-| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+| name | string | The name of the recipe. |\n+| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The recipe outputs |\n+| block | [IIngredient](/vanilla/api/ingredient/IIngredient) | The block to be applied on |\n+| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | The item that needs to be held |\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 13 Matches git commit 1a13f5ba547281075c108dfd06a2326ed312ad4a on branch 1.18
139,033
13.07.2022 15:04:43
-7,200
686e47782441e60e3fc56e7775c124ae57b5b97e
CI doc export for CreateTweaker build 14 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/DeployerApplicationManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/DeployerApplicationManager.md", "diff": "@@ -35,18 +35,23 @@ DeployerApplicationManager.addJsonRecipe(name as string, mapData as MapData) as\n:::group{name=addRecipe}\n+Adds a new deployer application recipe.\n+\nReturn Type: void\n```zenscript\n-DeployerApplicationManager.addRecipe(name as string, processedItem as IIngredient, heldItem as IIngredient, outputs as Percentaged<IItemStack>[]) as void\n+// DeployerApplicationManager.addRecipe(name as string, processedItem as IIngredient, heldItem as IIngredient, outputs as Percentaged<IItemStack>[], keepHeldItem as boolean) as void\n+\n+<recipetype:create:deploying>.addRecipe(\"name\", <item:minecraft:air>, <item:minecraft:diamond>, [<item:minecraft:dirt> % 50], true);\n```\n-| Parameter | Type | Description |\n-|-----------|------|-------------|\n-| name | string | No Description Provided |\n-| processedItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n-| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n-| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | No Description Provided |\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| name | string | The name of the recipe | false | |\n+| processedItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | The item to be deployed onto | false | |\n+| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | The item to deploy with | false | |\n+| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The output of the recipe | false | |\n+| keepHeldItem | boolean | Should the held item be consumed | true | false |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "diff": "@@ -40,17 +40,18 @@ Adds a new item application recipe.\nReturn Type: void\n```zenscript\n-// ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient) as void\n+// ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient, keepHeldItem as boolean) as void\n-<recipetype:create:item_application>.addRecipe(\"name\", [<item:minecraft:dirt> % 50, <item:minecraft:diamond>], <item:minecraft:diamond_block>, <item:minecraft:emerald>);\n+<recipetype:create:item_application>.addRecipe(\"name\", [<item:minecraft:dirt> % 50, <item:minecraft:diamond>], <item:minecraft:diamond_block>, <item:minecraft:emerald>, true);\n```\n-| Parameter | Type | Description |\n-|-----------|------|-------------|\n-| name | string | The name of the recipe. |\n-| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The recipe outputs |\n-| block | [IIngredient](/vanilla/api/ingredient/IIngredient) | The block to be applied on |\n-| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | The item that needs to be held |\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| name | string | The name of the recipe. | false | |\n+| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The recipe outputs | false | |\n+| block | [IIngredient](/vanilla/api/ingredient/IIngredient) | The block to be applied on | false | |\n+| heldItem | [IIngredient](/vanilla/api/ingredient/IIngredient) | The item that needs to be held | false | |\n+| keepHeldItem | boolean | Should the item be consumed or not | true | false |\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 14 Matches git commit fe7ec3d7e9c3b9a7ad9ef6e6443bbf52ad5e4d36 on branch 1.18
139,068
23.07.2022 13:26:28
-7,200
96c5fd814f73c484553f32225f1793367f44660a
Ingredients and other examples. Add some things here and there
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "diff": "@@ -15,6 +15,7 @@ import mods.mekanism.api.BracketValidators;\nThis class allows you to check whether a certain Object exists or not before using the [BracketHandlers](/mods/Mekanism/api/BracketHandlers) class. All methods return a boolean that represents whether the passed in registry name or location has an Object associated to it.\nJust like with the [BracketHandlers](/mods/Mekanism/api/BracketHandlers), most of these are accessible through the `/ct dump` subcommands added by Mekanism or through their in-game names. Make sure to remove the prefix from the bracket you get, because that is handled by the static, specific method you use in this class.\n+This means, no `gas` or other chemical prefix, just modid and name.\n## Static Methods\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/mods/Mekanism/content/ExpandingMekanism.md", "diff": "+# Expanding Mekanism\n+\n+## \"MekaTweaker\"\n+\n+Mekanism adds it's fair share of chemicals, which you must have encoutered while playing with it:\n+Gases, pigments, slurries and infusion types.\n+\n+In the old age of 1.12.2, adding custom gases was only a thing MekaTweaker, an addon mod could do.\n+However, after some time, Mekanism now adds a proper system to add custom chemicals through CraftTweaker and it's own CraftTweaker [loader](/zencode/Preprocessors/LoaderPreprocessor).\n+\n+The name of this custom loader is: `mekanismcontent`, don't forget it at the top of the file!\n+\n+### Basic Usage\n+\n+The most basic functions you have access to can be found in the [ChemicalBuilder](/mods/Mekanism/content/builder/ChemicalBuilder) class.\n+\n+```zenscript\n+\n+#loader mekanismcontent\n+\n+import mods.mekanism.content.builder.GasBuilder;\n+import mods.mekanism.content.builder.InfuseTypeBuilder;\n+import mods.mekanism.content.builder.PigmentBuilder;\n+import mods.mekanism.content.builder.SlurryBuilder;\n+\n+/*\n+ * Adds five very simple chemicals to show a very basic usage of the content creation capabilities provided. Custom content needs to be created in the mekanismcontent loader and requires a full game restart to take effect as well as have names defined in a lang file. One thing to note is that these examples are extremely basic and there is quite a bit more that is possible with this system including using custom textures and adding various attributes.\n+ * 1) Creates an example Gas that is colored magenta.\n+ * 2) Creates an example Infuse Type that is colored green.\n+ * 3) Creates an example Pigment that is colored yellowish green.\n+ * 4) Creates an example Dirty Slurry that is for a yellow ore.\n+ * 5) Creates an example Clean Slurry that is for the same yellow ore.\n+*/\n+\n+GasBuilder.builder().color(0xDF03FC).build(\"example_gas\");\n+InfuseTypeBuilder.builder().color(0x3FC0B).build(\"example_infuse_type\");\n+PigmentBuilder.builder().color(0xCAFC03).build(\"example_pigment\");\n+SlurryBuilder.dirty().color(0xF0FC03).build(\"example_dirty_slurry\");\n+SlurryBuilder.clean().color(0xF0FC03).build(\"example_clean_slurry\");\n+\n+```\n+\n+### Builder Lists\n+\n+The list of builders you can use to create custom Mekanism content is the following:\n+\n+- [GasBuilder](/mods/Mekanism/content/builder/GasBuilder)\n+- [InfuseTypeBuilder](/mods/Mekanism/content/builder/InfuseTypeBuilder)\n+- [PigmentBuilder](/mods/Mekanism/content/builder/PigmentBuilder)\n+- [RobitSkinBuilder](/mods/Mekanism/content/builder/RobitSkinBuilder)\n+- [SlurryBuilder](/mods/Mekanism/content/builder/SlurryBuilder)\n+\n+It is worth knowing that all Builders that refer to a Chemical extend [ChemicalBuilder](/mods/Mekanism/content/builder/ChemicalBuilder).\n+\n+### Attribute Lists\n+\n+The list of Attributes you can use right now in your custom Mekanism is the following:\n+\n+- Gas Attributes:\n+ - [CoolantAttribute](/mods/Mekanism/content/attribute/gas/CoolantAttribute)\n+ - [FuelAttribute](/mods/Mekanism/content/attribute/gas/FuelAttribute)\n+ - [RadiationAttribute](/mods/Mekanism/content/attribute/gas/RadiationAttribute)\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/mods/Mekanism/examples/MekanismIngredients.md", "diff": "+# Mekanism Ingredients\n+\n+## About this page\n+\n+This page contains some example about how to include Mekanism's custom and expanded Ingredients.\n+Keep in mind that since Ingredients accept multiple and different elements, they cannot be used as the output of a recipe!\n+\n+While most of the time using this is unnecessary due to the magic of Implicit Casting, these are useful to have around.\n+\n+Make sure to check out each ingredient's page to see what can cast to this and what you can do with them!\n+\n+### FluidStackIngredient\n+\n+The [FluidStackIngredient](/mods/Mekanism/api/ingredient/FluidStackIngredient) is an Ingredient related to the use of fluids.\n+\n+```zenscript\n+<recipetype:mekanism:rotary>.addRecipe(\"decondensentrate_sulfur_dioxide\", FluidStackIngredient.from(<tag:fluids:forge:sulfur_dioxide>, 1), <gas:mekanism:sulfur_dioxide>);\n+//An alternate implementation of the above recipe is shown commented below. This implementation makes use of implicit casting to allow easier calling:\n+<recipetype:mekanism:rotary>.addRecipe(\"decondensentrate_sulfur_dioxide\", <tag:fluids:forge:sulfur_dioxide> * 1, <gas:mekanism:sulfur_dioxide>);\n+```\n+\n+### ItemStackIngredient\n+\n+The [ItemStackIngredient](/mods/Mekanism/api/ingredient/ItemStackIngredient) is a type of Ingredient that requires Items to be met.\n+\n+```zenscript\n+<recipetype:mekanism:energy_conversion>.addRecipe(\"redstone_ore_to_power\", ItemStackIngredient.from(<tag:items:forge:ores/redstone>), FloatingLong.create(45000));\n+\n+// <tag:items:forge:ores/redstone> is also applicable here.\n+```\n+\n+\n+### GasStackIngredient\n+\n+The [GasStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient/GasStackIngredient) is a type of [ChemicalStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient) that requires GasStack s\n+\n+```\n+import mods.mekanism.api.ingredient.ChemicalStackIngredient.GasStackIngredient;\n+\n+<recipetype:mekanism:activating>.addRecipe(\"activate_water_vapor\", GasStackIngredient.from(<gas:mekanism:water_vapor>), <gas:mekanism:brine>);\n+\n+//This also works, due to implicit casting!\n+\n+<recipetype:mekanism:activating>.addRecipe(\"activate_water_vapor\", <gas:mekanism:water_vapor>, <gas:mekanism:brine>);\n+```\n+\n+### PigmentStackIngredient\n+\n+The [PigmentStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient/PigmentStackIngredient) is a type of\n+[ChemicalStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient) that is related to the use of pigments in recipes.\n+\n+```zenscript\n+\n+<recipetype:mekanism:pigment_mixing>.addRecipe(\"pigment_mixing/white_dark_red_to_red\", PigmentStackIngredient.from(<pigment:mekanism:white>), PigmentStackIngredient.from(<pigment:mekanism:dark_red> * 4), <pigment:mekanism:red> * 5);\n+//Alternate implementations of the above recipe are shown commented below. These implementations make use of implicit casting to allow easier calling:\n+<recipetype:mekanism:pigment_mixing>.addRecipe(\"pigment_mixing/white_dark_red_to_red\", <pigment:mekanism:white>, PigmentStackIngredient.from(<pigment:mekanism:dark_red> * 4), <pigment:mekanism:red> * 5);\n+<recipetype:mekanism:pigment_mixing>.addRecipe(\"pigment_mixing/white_dark_red_to_red\", PigmentStackIngredient.from(<pigment:mekanism:white>), <pigment:mekanism:dark_red> * 4, <pigment:mekanism:red> * 5);\n+<recipetype:mekanism:pigment_mixing>.addRecipe(\"pigment_mixing/white_dark_red_to_red\", <pigment:mekanism:white>, <pigment:mekanism:dark_red> * 4, <pigment:mekanism:red> * 5);\n+```\n+\n+### InfusionStackIngredient\n+\n+The [InfusionStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient/InfusionStackIngredient) is a type of\n+[ChemicalStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient) that is related to the use of infusion types in recipes.\n+\n+```zenscript\n+<recipetype:mekanism:metallurgic_infusing>.addRecipe(\"infuse_planks\", ItemStackIngredient.from(<item:minecraft:oak_planks>), InfusionStackIngredient.from(<infuse_type:mekanism:fungi> * 10), <item:minecraft:crimson_planks>);\n+//Alternate implementations of the above recipe are shown commented below. These implementations make use of implicit casting to allow easier calling:\n+<recipetype:mekanism:metallurgic_infusing>.addRecipe(\"infuse_planks\", <item:minecraft:oak_planks>, InfusionStackIngredient.from(<infuse_type:mekanism:fungi> * 10), <item:minecraft:crimson_planks>);\n+<recipetype:mekanism:metallurgic_infusing>.addRecipe(\"infuse_planks\", ItemStackIngredient.from(<item:minecraft:oak_planks>), <infuse_type:mekanism:fungi> * 10, <item:minecraft:crimson_planks>);\n+<recipetype:mekanism:metallurgic_infusing>.addRecipe(\"infuse_planks\", <item:minecraft:oak_planks>, <infuse_type:mekanism:fungi> * 10, <item:minecraft:crimson_planks>);\n+```\n+\n+### SlurryStackIngredient\n+\n+The [SlurryStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient/SlurryStackIngredient) is a type of\n+[ChemicalStackIngredient](/mods/Mekanism/api/ingredient/ChemicalStackIngredient) that is related to the use of slurries in recipes.\n+\n+```zenscript\n+\n+<recipetype:mekanism:washing>.addRecipe(\"cleaning_uranium_slurry\", FluidStackIngredient.from(<tag:fluids:minecraft:water>, 10), SlurryStackIngredient.from(<slurry:mekanism:dirty_uranium>), <slurry:mekanism:clean_uranium>);\n+//Alternate implementations of the above recipe are shown commented below. These implementations make use of implicit casting to allow easier calling:\n+<recipetype:mekanism:washing>.addRecipe(\"cleaning_uranium_slurry\", <tag:fluids:minecraft:water> * 10, SlurryStackIngredient.from(<slurry:mekanism:dirty_uranium>), <slurry:mekanism:clean_uranium>);\n+<recipetype:mekanism:washing>.addRecipe(\"cleaning_uranium_slurry\", FluidStackIngredient.from(<tag:fluids:minecraft:water>, 10), <slurry:mekanism:dirty_uranium>, <slurry:mekanism:clean_uranium>);\n+<recipetype:mekanism:washing>.addRecipe(\"cleaning_uranium_slurry\", <tag:fluids:minecraft:water> * 10, <slurry:mekanism:dirty_uranium>, <slurry:mekanism:clean_uranium>);\n+\n+```\n+\n+All Mekanism Ingredients are Implicitly castable to IData, in case you need to.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/mods/Mekanism/examples/OtherExamples.md", "diff": "+# Other Examples\n+\n+## About this page\n+\n+This page includes examples from Mekanism's ZenClasses that aren't easily grouped.\n+\n+### FloatingLong\n+\n+A [FloatingLong](/mods/Mekanism/api/FloatingLong) is required as a parameter in this recipe, so we use one.\n+\n+```zenscript\n+import mods.mekanism.api.FloatingLong;\n+import mods.mekanism.api.ingredient.ItemStackIngredient;\n+\n+//<recipetype:mekanism:energy_conversion>.addRecipe(name as string, input as ItemStackIngredient, output as FloatingLong)\n+\n+<recipetype:mekanism:energy_conversion>.addRecipe(\"redstone_ore_to_power\", ItemStackIngredient.from(<tag:items:forge:ores/redstone>), FloatingLong.create(45000));\n+```\n+\n+### BracketHandlers and Bracket Validators\n+\n+Let's say we want to validate that some Mekanism-added Chemicals exist. This doesn't seem very helpful, but it might have a use in checking one of your custom Chemicals exist.\n+\n+This will use [BracketHandlers]() and [BracketValidators]() for safety.\n+[BracketHandlers]() can be used to get\n+\n+We'll keep our code in a [Function](https://docs.blamejared.com/1.18/en/zencode/Functions).\n+\n+```zenscript\n+\n+function validateChemicals() as void {\n+\n+val chemList = [\n+ \"mekanism:ethene\", \"mekanism:dirty_lead\", \"mekanism:uranium_hexafluoride\", \"mekanism:does_not_exist\", \"mekanism:tritium\"\n+] as string[];\n+\n+ //Even though chemical is currently a String, we can turn a string into a Chemical object using the BracketHandlers class! We do want to validate them first in case they don't exist :P\n+ //This also works with your chemicals as long as everything is fine.\n+ for chemical in chemList {\n+ if (BracketValidators.validateGasStack(chemical)){\n+ var gasStack = BracketHandlers.getGasStack(chemical);\n+ println(\"Validated GasStack exists, with name: \" + gasStack.commandString);\n+ }\n+ else if (BracketValidators.validateInfusionStack(chemical)){\n+ var infusionStack = BracketHandlers.getInfusionStack(chemical);\n+ println(\"Validated InfusionStack exists, with name: \" + infusionStack.commandString);\n+ }\n+ else if (BracketValidators.validatePigmentStack(chemical)){\n+ var pigmentStack = BracketHandlers.getPigmentStack(chemical);\n+ println(\"Validated PigmentStack exists, with name: \" + pigmentStack.commandString);\n+ }\n+ else if (BracketValidators.validateSlurryStack(chemical)){\n+ var slurryStack = BracketHandlers.getSlurryStack(chemical);\n+ println(\"Validated Slurrytack exists, with name: \" + slurryStack.commandString);\n+ }\n+ else {\n+ println(\"Couldn't validate supplied chemical name: {\" + chemical + \"}\");\n+ }\n+ }\n+}\n+\n+validateChemicals();\n+\n+```\n+\n+This is the result of our script, taken from the `crafttweaker.log` file.\n+\n+```\n+Validated GasStack exists, with name: <gas:mekanism:ethene>\n+Could not get gas for <gas:mekanism:dirty_leadmekanism:dirty_lead>, gas does not appear to exist!\n+Could not get infuse type for <infuse_type:mekanism:dirty_leadmekanism:dirty_lead>, infuse type does not appear to exist!\n+Could not get pigment for <pigment:mekanism:dirty_leadmekanism:dirty_lead>, pigment does not appear to exist!\n+Validated Slurrytack exists, with name: <slurry:mekanism:dirty_lead>\n+Validated GasStack exists, with name: <gas:mekanism:uranium_hexafluoride>\n+Could not get gas for <gas:mekanism:does_not_existmekanism:does_not_exist>, gas does not appear to exist!\n+Could not get infuse type for <infuse_type:mekanism:does_not_existmekanism:does_not_exist>, infuse type does not appear to exist!\n+Could not get pigment for <pigment:mekanism:does_not_existmekanism:does_not_exist>, pigment does not appear to exist!\n+Could not get slurry for <slurry:mekanism:does_not_existmekanism:does_not_exist>, slurry does not appear to exist!\n+Couldn't validate supplied chemical name: {mekanism:does_not_exist}\n+Could not get gas for <gas:mekanism:tritiummekanism:tritium>, gas does not appear to exist!\n+Could not get infuse type for <infuse_type:mekanism:tritiummekanism:tritium>, infuse type does not appear to exist!\n+Could not get pigment for <pigment:mekanism:tritiummekanism:tritium>, pigment does not appear to exist!\n+Could not get slurry for <slurry:mekanism:tritiummekanism:tritium>, slurry does not appear to exist!\n+Couldn't validate supplied chemical name: {mekanism:tritium}\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.16/content/mods/Mekanism/examples/RecipeExamples.md", "diff": "+# Recipe Examples\n+\n+## About this page\n+\n+This page contains a link to Mekanism's example scripts.\n+\n+These are the same that get generated when you run `/ct examples` in game.\n+\n+They can be found [here](https://github.com/mekanism/Mekanism/tree/1.16.x/src/datagen/generated/mekanism/data/mekanism/scripts).\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"ChemicalStackIngredient\": \"mods/Mekanism/api/ingredient/ChemicalStackIngredient.md\",\n\"FluidStackIngredient\": \"mods/Mekanism/api/ingredient/FluidStackIngredient.md\",\n\"ItemStackIngredient\": \"mods/Mekanism/api/ingredient/ItemStackIngredient.md\",\n- \"ChemicalStackIngredient\": {\n+ \"ChemicalStackIngredients\": {\n\"GasStackIngredient\": \"mods/Mekanism/api/ingredient/ChemicalStackIngredient/GasStackIngredient.md\",\n\"InfusionStackIngredient\": \"mods/Mekanism/api/ingredient/ChemicalStackIngredient/InfusionStackIngredient.md\",\n\"PigmentStackIngredient\": \"mods/Mekanism/api/ingredient/ChemicalStackIngredient/PigmentStackIngredient.md\",\n}\n},\n\"Content\": {\n+ \"ExpandingMekanism\" : \"mods/Mekanism/content/ExpandingMekanism.md\",\n\"Attribute\": {\n\"ChemicalAttribute\": \"mods/Mekanism/content/attribute/ChemicalAttribute.md\",\n\"GasAttribute\": \"mods/Mekanism/content/attribute/GasAttribute.md\",\n\"PigmentExtracting\": \"mods/Mekanism/recipe/ItemStackToPigment/PigmentExtracting.md\"\n}\n},\n+ \"Examples\" : {\n+ \"MekanismIngredients\" : \"mods/Mekanism/examples/MekanismIngredients.md\",\n+ \"OtherExamples\" : \"mods/Mekanism/examples/OtherExamples.md\",\n+ \"RecipeExamples\" : \"mods/Mekanism/examples/RecipeExamples.md\"\n+ },\n\"About Mekanism\" : \"mods/Mekanism/AboutMekanism.md\"\n},\n\"Mystical Agriculture\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Ingredients and other examples. Add some things here and there
139,068
23.07.2022 17:24:04
-7,200
ec4286a7cb5d7f4cea3b367a2ce3661b964bea90
Fix missing sentences in Builders
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/InfuseTypeBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/InfuseTypeBuilder.md", "diff": "@@ -32,8 +32,8 @@ InfuseTypeBuilder.builder(textureLocation as MCResourceLocation) as InfuseTypeBu\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n-|-----------|------|-------------|----------|--------------|\n-| textureLocation | [MCResourceLocation](/vanilla/api/util/MCResourceLocation) | If present the [MCResourceLocation](/vanilla/api/util/MCResourceLocation) representing the texture this [InfuseType](/mods/Mekanism/api/chemical/InfuseType) will use, otherwise defaults to our default { | true | |\n+|-----------|------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|--------------|\n+| textureLocation | [MCResourceLocation](/vanilla/api/util/MCResourceLocation) | If present the [MCResourceLocation](/vanilla/api/util/MCResourceLocation) representing the texture this [InfuseType](/mods/Mekanism/api/chemical/InfuseType) will use, otherwise defaults to our default InfuseType texture. | true | |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/PigmentBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/PigmentBuilder.md", "diff": "@@ -32,8 +32,8 @@ PigmentBuilder.builder(textureLocation as MCResourceLocation) as PigmentBuilder\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n-|-----------|------|-------------|----------|--------------|\n-| textureLocation | [MCResourceLocation](/vanilla/api/util/MCResourceLocation) | If present the [MCResourceLocation](/vanilla/api/util/MCResourceLocation) representing the texture this [Pigment](/mods/Mekanism/api/chemical/Pigment) will use, otherwise defaults to our default { | true | |\n+|-----------|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|--------------|\n+| textureLocation | [MCResourceLocation](/vanilla/api/util/MCResourceLocation) | If present the [MCResourceLocation](/vanilla/api/util/MCResourceLocation) representing the texture this [Pigment](/mods/Mekanism/api/chemical/Pigment) will use, otherwise defaults to our default Pigment texture | true | |\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix missing sentences in Builders
139,068
23.07.2022 18:08:53
-7,200
ce49d20ce7ed441524a4b19ea87b49da0220b5a1
Robit obtention and mekanism
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/AboutMekanism.md", "new_path": "docs/1.16/content/mods/Mekanism/AboutMekanism.md", "diff": "# About Mekanism\n-Mekanism is a neat mod, not by Vazkii, with explicit CraftTweaker support!\n+Mekanism is a complex, tech mod, with explicit CraftTweaker support!\nSome things you want to be aware when handling Mekanism's ZenClasses and RecipeTypes.\n- Mekanism uses inheritance and generics often in its system.\n- Most, if not all, Mekanism Objects can be acquired through the `/ct dump` subcommand. More information on this can be found [here](/mods/Mekanism/api/BracketDumpers)\n- Examples are added to the `/ct examples` command.\n+- Mekanism allows you to add custom content through it's loader.\n- Most recipes should be removed by recipe name rather than by output. You can get the recipe name using JEI and enabling Advanced Tooltips using `F3 + H` in game.\nHappy Scripting!\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/entity/robit/Robit.md", "new_path": "docs/1.16/content/mods/Mekanism/api/entity/robit/Robit.md", "diff": "@@ -12,6 +12,9 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.entity.robit.Robit;\n```\n+\n+You can obtain a Robit by using the `is` with a LivingEntity object and then casting it.\n+\n## Methods\n:::group{name=getSkin}\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Robit obtention and mekanism
139,048
25.07.2022 04:09:29
18,000
f8c62fdd37e311398d3ba81760aab9be1f7477d0
Fix incorrect `IOreDictEntry` mirroring descriptions
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/OreDict/IOreDictEntry.md", "new_path": "docs/1.12/content/Vanilla/OreDict/IOreDictEntry.md", "diff": "@@ -77,12 +77,11 @@ Mirroring an IOreDictEntry means that all items in the other oreDictEntry will b\nval iron = <ore:ingotIron>;\nval copper = <ore:ingotCopper>;\n-//adds all entries from iron to copper so that Copper contains both, the iron and copper oreDic entries\n+//adds all entries from copper into iron so that the iron oreDictEntry contains both the iron and copper ingots\niron.addAll(copper);\n-\n-//mirrors copper to iron, so all items in iron will be replaced by all the ones in copper.\n-//In this case that means by all iron and copper oreDictEntries\n+//mirrors iron to copper, so all items in copper will be replaced by all the ones in iron.\n+//In this case that means by all iron and copper ingots, so copper and iron will have the same entries\ncopper.mirror(iron);\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix incorrect `IOreDictEntry` mirroring descriptions (#513)
139,033
16.08.2022 04:45:34
-7,200
e26ac172adba3be5774ff178525befb92c94a7d7
CI Doc export for Botania build release-1.18.2-435-1 Matches git commit
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/botania/docs/mods/Botania/recipe/manager/ManaInfusionRecipeManager.md", "new_path": "docs_exported/1.18/botania/docs/mods/Botania/recipe/manager/ManaInfusionRecipeManager.md", "diff": "@@ -42,7 +42,7 @@ Return Type: void\n```zenscript\n// ManaInfusionRecipeManager.addRecipe(name as string, output as IItemStack, input as IIngredient, mana as int, catalyst as BlockIngredient, group as string, function as RecipeFunctionSingle) as void\n-<recipetype:botania:mana_infusion>.addRecipe(\"mana_infusion_test_catalyst\", <item:minecraft:diamond>, <item:minecraft:apple>, 200, <block:botania:alchemy_catalyst>, null, (usualOut as IItemStack, input as IItemStack) => { return usualOut.withTag(input.tag); });\n+<recipetype:botania:mana_infusion>.addRecipe(\"mana_infusion_test_catalyst\", <item:minecraft:diamond>, <item:minecraft:apple>, 200, <block:botania:alchemy_catalyst>, \"\", (usualOut as IItemStack, input as IItemStack) => { return usualOut.withTag(input.tag); });\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI Doc export for Botania build release-1.18.2-435-1 Matches git commit 0ccec1e46c6788b85d4e37d9df166049af321fee
139,033
21.08.2022 22:30:58
-7,200
928b5e647f352a407959cf54b9077a693ef5a963
CI doc export for CreateTweaker build 16 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "diff": "@@ -55,7 +55,7 @@ Return Type: void\n.addStep<mods.createtweaker.DeployerApplicationRecipe>((rb) => rb.require(<tag:items:minecraft:planks>))\n.addStep<mods.createtweaker.DeployerApplicationRecipe>((rb) => rb.require(<tag:items:minecraft:wooden_buttons>))\n.addStep<mods.createtweaker.CuttingRecipe>((rb) => rb.duration(50))\n- .addStep<mods.createtweaker.CuttingRecipe>());\n+ .addStep<mods.createtweaker.FillingRecipe>((rb) => rb.require(<fluid:minecraft:water> * 50)));\n```\n| Parameter | Type | Description |\n@@ -157,6 +157,7 @@ Return Type: void\nrb.addStep<mods.createtweaker.CuttingRecipe>((rb1) => rb1.duration(50));\nrb.addStep<mods.createtweaker.PressingRecipe>((rb1) => rb1.duration(500));\nrb.addStep<mods.createtweaker.DeployerApplicationRecipe>((rb1) => rb1.require(<item:minecraft:dirt>));\n+ rb.addStep<mods.createtweaker.FillingRecipe>((rb1) => rb.require(<fluid:minecraft:water> * 50))\n});\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 16 Matches git commit e476758faf963983590468af40f5510671322a19 on branch 1.18
139,086
18.09.2022 19:56:58
-7,200
41e64aa4e354e13197511e71c82da7a55ab0d11f
Fix Traits reference It took me a while to figure out why this wasn't working, but after some testing it turns traits are in fact needed to be referenced with an `unlockable` prefix.
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/CompatSkills/Requirements/Requirement_Types/Traits.md", "new_path": "docs/1.12/content/Mods/CompatSkills/Requirements/Requirement_Types/Traits.md", "diff": "@@ -4,10 +4,10 @@ Traits are similar to Skills in the way that we've moved them over to a Resource\nThe Trait Syntax is as follows:\n```\nExample:\n-trait|ResourceLocation\n+unlockable|ResourceLocation\nWorking Example:\n-trait|reskillable:battle_spirit\n+unlockable|reskillable:battle_spirit\n```\nYou can find the Traits's ResourceLocations under:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix Traits reference It took me a while to figure out why this wasn't working, but after some testing it turns traits are in fact needed to be referenced with an `unlockable` prefix.
139,070
25.09.2022 14:26:51
14,400
0bfb1a3e328e334b7392495754d055c65ec8ce66
Add zensummoning 1.18 docs
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "},\n\"SolarCraft\" : {},\n\"SushiGoCrafting\" : {},\n+ \"Zen Summoning\": {},\n\"Generic JSON Recipes\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"Zen Summoning\": {\n+ \"MobInfo\": \"mods/zensummoning/MobInfo.md\",\n+ \"SummoningAttempt\": \"mods/zensummoning/SummoningAttempt.md\",\n+ \"SummoningDirector\": \"mods/zensummoning/SummoningDirector.md\",\n+ \"SummoningInfo\": \"mods/zensummoning/SummoningInfo.md\"\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/MobInfo.json", "diff": "+{\"path\":\"mods/zensummoning/MobInfo.md\",\"zenCodeName\":\"mods.zensummoning.MobInfo\",\"searchTerms\":[\"mergeData\",\"setData\",\"setOffset\",\"create\",\"setMob\",\"setSpread\",\"setCount\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/MobInfo.md", "diff": "+# MobInfo\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.zensummoning.MobInfo;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=create}\n+\n+Creates a new MobInfo with default values. <br /> See other methods for adding more customization. <br /> <br /> Same as constructor.\n+\n+Returns: new MobInfo\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.create() as MobInfo\n+\n+MobInfo.create();\n+```\n+\n+:::\n+\n+## Constructors\n+\n+No Description Provided\n+```zenscript\n+new MobInfo() as MobInfo\n+new MobInfo();\n+```\n+\n+## Methods\n+\n+:::group{name=mergeData}\n+\n+Sets the data to be merged with default rather than overwriting the default.\n+ Does NOT need to be called after setData.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.mergeData() as MobInfo\n+\n+myMobInfo.mergeData();\n+```\n+\n+:::\n+\n+:::group{name=setCount}\n+\n+Sets the quantity of the mob to be spawned.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.setCount(count as int) as MobInfo\n+\n+myMobInfo.setCount(12);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| count | int | quantity |\n+\n+\n+:::\n+\n+:::group{name=setData}\n+\n+Sets the NBT data of the mobs to be spawned.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.setData(data as IData) as MobInfo\n+\n+myMobInfo.setData({\n+ \"Health\":200,\n+ \"Attributes\":[\n+ {\"Name\":\"generic.maxHealth\", \"Base\":200},\n+ {\"Name\":\"generic.movementSpeed\", \"Base\":0.3},\n+ {\"Name\":\"generic.attackDamage\", \"Base\":6}\n+ ],\n+ \"CustomName\":\"A Lost Soul\",\n+ \"PersistenceRequired\":1,\n+ \"CustomNameVisible\":1\n+ });\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| data | [IData](/vanilla/api/data/IData) | NBT |\n+\n+\n+:::\n+\n+:::group{name=setMob}\n+\n+Sets the mob to be spawned.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.setMob(mob as EntityType) as MobInfo\n+\n+myMobInfo.setMob(\"minecraft:zombie_villager\");\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| mob | [EntityType](/vanilla/api/entity/EntityType) | resource location |\n+\n+\n+:::\n+\n+:::group{name=setOffset}\n+\n+Sets the offset from the altar where the mobs will be spawned.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.setOffset(x as float, y as float, z as float) as MobInfo\n+\n+myMobInfo.setOffset(1, 3, 1);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| x | float | x |\n+| y | float | y |\n+| z | float | z |\n+\n+\n+:::\n+\n+:::group{name=setSpread}\n+\n+Sets the random spread for spawning the mob.\n+ Values shouldn't be negative.\n+\n+Returns: self\n+Return Type: [MobInfo](/mods/zensummoning/MobInfo)\n+\n+```zenscript\n+// MobInfo.setSpread(x as float, y as float, z as float) as MobInfo\n+\n+myMobInfo.setSpread(3, 3, 3);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| x | float | x spread |\n+| y | float | y spread |\n+| z | float | z spread |\n+\n+\n+:::\n+\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningAttempt.json", "diff": "+{\"path\":\"mods/zensummoning/SummoningAttempt.md\",\"zenCodeName\":\"mods.zensummoning.SummoningAttempt\",\"searchTerms\":[\"world\",\"pos\",\"success\",\"summoner\",\"message\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningAttempt.md", "diff": "+# SummoningAttempt\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.zensummoning.SummoningAttempt;\n+```\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| message | string | true | true | The [unlocalized] message to be displayed to the player. |\n+| pos | [BlockPos](/vanilla/api/util/math/BlockPos) | true | false | Position of the altar. |\n+| success | boolean | true | true | Whether or not the summoning will proceed. |\n+| summoner | [Player](/vanilla/api/entity/type/player/Player) | true | false | Gets the person who activated the summoning |\n+| world | [Level](/vanilla/api/world/Level) | true | false | Level that the summoning is occurring in. |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningDirector.json", "diff": "+{\"path\":\"mods/zensummoning/SummoningDirector.md\",\"zenCodeName\":\"mods.zensummoning.SummoningDirector\",\"searchTerms\":[\"addSummonInfo\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningDirector.md", "diff": "+# SummoningDirector\n+\n+\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.zensummoning.SummoningDirector;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=addSummonInfo}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+// SummoningDirector.addSummonInfo(info as SummoningInfo) as void\n+\n+SummoningDirector.addSummonInfo(SummoningInfo.create()\n+ .setCatalyst(<item:minecraft:stick>)\n+ .setConsumeCatalyst(false)\n+ .setReagents([<item:minecraft:stone>, <item:minecraft:egg>*12])\n+ .addMob(MobInfo.create().setMob(\"minecraft:zombie\")));\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| info | [SummoningInfo](/mods/zensummoning/SummoningInfo) | Summoning to add |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningInfo.json", "diff": "+{\"path\":\"mods/zensummoning/SummoningInfo.md\",\"zenCodeName\":\"mods.zensummoning.SummoningInfo\",\"searchTerms\":[\"setCatalyst\",\"setWeight\",\"setSound\",\"create\",\"addMob\",\"addCondition\",\"setConsumeCatalyst\",\"setReagents\",\"setMutator\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/zensummoning/docs/mods/zensummoning/SummoningInfo.md", "diff": "+# SummoningInfo\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.zensummoning.SummoningInfo;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=create}\n+\n+Creates a new SummoningInfo with default values. <br /> See other methods for adding more customization. <br /> <br /> Same as constructor.\n+\n+Returns: new info\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.create() as SummoningInfo\n+\n+SummoningInfo.create();\n+```\n+\n+:::\n+\n+## Constructors\n+\n+No Description Provided\n+```zenscript\n+new SummoningInfo() as SummoningInfo\n+new SummoningInfo();\n+```\n+\n+## Methods\n+\n+:::group{name=addCondition}\n+\n+Adds an additional condition for the summoning to work.\n+ This can be used to require a gamestage (or deny one I guess)\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.addCondition(condition as Predicate<SummoningAttempt>, failureMessage as string, jeiDescription as string) as SummoningInfo\n+\n+mySummoningInfo.addCondition(Predicate for summoning to succeed, Chat message to show on failure, Line to show in JEI preview);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| condition | Predicate&lt;[SummoningAttempt](/mods/zensummoning/SummoningAttempt)&gt; | condition |\n+| failureMessage | string | chat message on failure |\n+| jeiDescription | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addMob}\n+\n+Adds a new mob to the summoning.\n+ Returns itself for builder pattern.\n+\n+Returns: self SummoningInfo for builder pattern\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.addMob(info as MobInfo) as SummoningInfo\n+\n+mySummoningInfo.addMob(MobInfo.create().setMob(\"minecraft:zombie\"));\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| info | [MobInfo](/mods/zensummoning/MobInfo) | mob to add |\n+\n+\n+:::\n+\n+:::group{name=setCatalyst}\n+\n+Sets the catalyst that will be used to start the ritual.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setCatalyst(ingredient as IIngredientWithAmount) as SummoningInfo\n+\n+mySummoningInfo.setCatalyst(<item:minecraft:stick> * 2);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| ingredient | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount) | catalyst |\n+\n+\n+:::\n+\n+:::group{name=setConsumeCatalyst}\n+\n+Determines whether or not the catalyst will be consumed.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setConsumeCatalyst(value as boolean) as SummoningInfo\n+\n+mySummoningInfo.setConsumeCatalyst(false);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| value | boolean | consumed |\n+\n+\n+:::\n+\n+:::group{name=setMutator}\n+\n+Custom callback to determine if a summon should be allowed.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setMutator(mutator as Consumer<SummoningAttempt>) as SummoningInfo\n+\n+mySummoningInfo.setMutator((attempt as SummoningAttempt) => {\n+ if (attempt.world.raining) {\n+ attempt.success = false;\n+ attempt.message = \"Can't summon this in the rain!\";\n+ } else {\n+ attempt.message = \"Good Luck!\";\n+ }\n+ });\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| mutator | Consumer&lt;[SummoningAttempt](/mods/zensummoning/SummoningAttempt)&gt; | callback |\n+\n+\n+:::\n+\n+:::group{name=setReagents}\n+\n+Sets the ingredients to be required to start the summon.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setReagents(reagents as IIngredientWithAmount[]) as SummoningInfo\n+\n+mySummoningInfo.setReagents([<item:minecraft:stone>, <item:minecraft:egg>*12]);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| reagents | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)[] | ingredient list |\n+\n+\n+:::\n+\n+:::group{name=setSound}\n+\n+Sets the sound played when a summon completes.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setSound(sound as string) as SummoningInfo\n+\n+mySummoningInfo.setSound(\"entity.evoker.prepare_wololo\");\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| sound | string | sound resource location |\n+\n+\n+:::\n+\n+:::group{name=setWeight}\n+\n+Sets the weight that this summoning has.\n+ Summonings with the same catalyst and reagents are determined randomly using this.\n+\n+Returns: self\n+Return Type: [SummoningInfo](/mods/zensummoning/SummoningInfo)\n+\n+```zenscript\n+// SummoningInfo.setWeight(weight as double) as SummoningInfo\n+\n+mySummoningInfo.setWeight(3);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| weight | double | |\n+\n+\n+:::\n+\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add zensummoning 1.18 docs (#515)
139,068
30.09.2022 01:10:48
-7,200
11da6c3ec406340ae41f6681e9f1c30138082d3e
Update crafting_table.md
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/vanilla/how_to/crafting_table.md", "new_path": "docs/1.18/content/vanilla/how_to/crafting_table.md", "diff": "@@ -18,7 +18,7 @@ _When adding a recipe, ensure that your recipe names are unique!_\n- `recipeName` &lt;string>\n- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `ingredients` <[IIngredient](/vanilla/api/items/IIngredient)[]>\n+- `ingredients` <[IIngredient](/vanilla/api/ingredient/IIngredient)[]>\n- `recipeFunction` (Optional) <[RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)>\nAdds a [shapeless](#recipe-types) recipe to the crafting table. As [shapeless](#recipe-types) recipes ignore the position of the input items, the ordering of the items when creating the recipe does not matter either.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update crafting_table.md
139,033
02.10.2022 03:14:35
0
68d247efff82ec9821b0114e44e2a12f2a595ee4
CI doc export for CreateTweaker build 17 Matches git commit on branch 1.18
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CompactingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CompactingManager.md", "diff": "@@ -40,7 +40,7 @@ Adds a recipe to the Compactor that outputs FluidStacks.\nReturn Type: void\n```zenscript\n-// CompactingManager.addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n+// CompactingManager.addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[], duration as int) as void\n<recipetype:create:compacting>.addRecipe(\"fluid_compacted\", <constant:create:heat_condition:none>, [<fluid:minecraft:water> * 200], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n@@ -51,7 +51,7 @@ Return Type: void\n| heat | [HeatCondition](/mods/createtweaker/recipe/HeatCondition) | The required heat of the recipe. | false | |\n| outputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The output FluidStacks of the recipe. | false | |\n| itemInputs | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)[] | The item inputs of the recipe. | false | |\n-| fluidInputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.IFluidStack[] |\n+| fluidInputs | [FluidIngredient](/forge/api/fluid/FluidIngredient)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.FluidIngredient[] |\n| duration | int | The duration of the recipe in ticks. | true | 100 |\n@@ -64,7 +64,7 @@ Adds a recipe to the Compactor that outputs ItemStacks.\nReturn Type: void\n```zenscript\n-// CompactingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n+// CompactingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[], duration as int) as void\n<recipetype:create:compacting>.addRecipe(\"compacted\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n@@ -75,7 +75,7 @@ Return Type: void\n| heat | [HeatCondition](/mods/createtweaker/recipe/HeatCondition) | The required heat of the recipe. | false | |\n| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The output ItemStacks of the recipe. | false | |\n| itemInputs | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)[] | The item inputs of the recipe. | false | |\n-| fluidInputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.IFluidStack[] |\n+| fluidInputs | [FluidIngredient](/forge/api/fluid/FluidIngredient)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.FluidIngredient[] |\n| duration | int | The duration of the recipe in ticks. | true | 100 |\n@@ -160,14 +160,14 @@ Removes a recipe based on the output [IFluidStack](/forge/api/fluid/IFluidStack)\nReturn Type: void\n```zenscript\n-// CompactingManager.remove(output as IFluidStack) as void\n+// CompactingManager.remove(output as FluidIngredient) as void\n<recipetype:create:compacting>.remove(<fluid:minecraft:water>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| output | [IFluidStack](/forge/api/fluid/IFluidStack) | The output FluidStack |\n+| output | [FluidIngredient](/forge/api/fluid/FluidIngredient) | The output FluidStack |\n:::\n@@ -235,12 +235,12 @@ CompactingManager.removeByModid(modid as string, exclude as Predicate<string>) a\nReturn Type: void\n```zenscript\n-CompactingManager.removeByName(name as string) as void\n+CompactingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CrushingManager.md", "diff": "@@ -190,12 +190,12 @@ CrushingManager.removeByModid(modid as string, exclude as Predicate<string>) as\nReturn Type: void\n```zenscript\n-CrushingManager.removeByName(name as string) as void\n+CrushingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CuttingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/CuttingManager.md", "diff": "@@ -212,12 +212,12 @@ CuttingManager.removeByModid(modid as string, exclude as Predicate<string>) as v\nReturn Type: void\n```zenscript\n-CuttingManager.removeByName(name as string) as void\n+CuttingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/DeployerApplicationManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/DeployerApplicationManager.md", "diff": "@@ -191,12 +191,12 @@ DeployerApplicationManager.removeByModid(modid as string, exclude as Predicate<s\nReturn Type: void\n```zenscript\n-DeployerApplicationManager.removeByName(name as string) as void\n+DeployerApplicationManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/EmptyingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/EmptyingManager.md", "diff": "@@ -135,14 +135,14 @@ Removes emptying recipes based on the output FluidStack.\nReturn Type: void\n```zenscript\n-// EmptyingManager.remove(output as IFluidStack) as void\n+// EmptyingManager.remove(output as FluidIngredient) as void\n<recipetype:create:emptying>.remove(<fluid:minecraft:water>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| output | [IFluidStack](/forge/api/fluid/IFluidStack) | The output FluidStack of the recipe. |\n+| output | [FluidIngredient](/forge/api/fluid/FluidIngredient) | The output FluidStack of the recipe. |\n:::\n@@ -210,12 +210,12 @@ EmptyingManager.removeByModid(modid as string, exclude as Predicate<string>) as\nReturn Type: void\n```zenscript\n-EmptyingManager.removeByName(name as string) as void\n+EmptyingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FillingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/FillingManager.md", "diff": "@@ -40,7 +40,7 @@ Adds a filling recipe.\nReturn Type: void\n```zenscript\n-// FillingManager.addRecipe(name as string, output as Percentaged<IItemStack>, inputContainer as IIngredient, inputFluid as IFluidStack, duration as int) as void\n+// FillingManager.addRecipe(name as string, output as Percentaged<IItemStack>, inputContainer as IIngredient, inputFluid as FluidIngredient, duration as int) as void\n<recipetype:create:filling>.addRecipe(\"emptier\", <item:minecraft:diamond>, <item:minecraft:dirt>, <fluid:minecraft:water>, 200);\n```\n@@ -50,7 +50,7 @@ Return Type: void\n| name | string | The name of the recipe. | false | |\n| output | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | The output item of the recipe. | false | |\n| inputContainer | [IIngredient](/vanilla/api/ingredient/IIngredient) | The input container of the recipe (what is being filled). | false | |\n-| inputFluid | [IFluidStack](/forge/api/fluid/IFluidStack) | The input fluid of the recipe. | false | |\n+| inputFluid | [FluidIngredient](/forge/api/fluid/FluidIngredient) | The input fluid of the recipe. | false | |\n| duration | int | The duration of the recipe in ticks (defaults to 100). | true | 100 |\n@@ -191,12 +191,12 @@ FillingManager.removeByModid(modid as string, exclude as Predicate<string>) as v\nReturn Type: void\n```zenscript\n-FillingManager.removeByName(name as string) as void\n+FillingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/HauntingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/HauntingManager.md", "diff": "@@ -190,12 +190,12 @@ HauntingManager.removeByModid(modid as string, exclude as Predicate<string>) as\nReturn Type: void\n```zenscript\n-HauntingManager.removeByName(name as string) as void\n+HauntingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/IProcessingRecipeManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/IProcessingRecipeManager.md", "diff": "@@ -168,12 +168,12 @@ IProcessingRecipeManager.removeByModid(modid as string, exclude as Predicate<str\nReturn Type: void\n```zenscript\n-IProcessingRecipeManager.removeByName(name as string) as void\n+IProcessingRecipeManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/ItemApplicationManager.md", "diff": "@@ -191,12 +191,12 @@ ItemApplicationManager.removeByModid(modid as string, exclude as Predicate<strin\nReturn Type: void\n```zenscript\n-ItemApplicationManager.removeByName(name as string) as void\n+ItemApplicationManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MechanicalCrafterManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MechanicalCrafterManager.md", "diff": "@@ -192,12 +192,12 @@ MechanicalCrafterManager.removeByModid(modid as string, exclude as Predicate<str\nReturn Type: void\n```zenscript\n-MechanicalCrafterManager.removeByName(name as string) as void\n+MechanicalCrafterManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MillingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MillingManager.md", "diff": "@@ -190,12 +190,12 @@ MillingManager.removeByModid(modid as string, exclude as Predicate<string>) as v\nReturn Type: void\n```zenscript\n-MillingManager.removeByName(name as string) as void\n+MillingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MixingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/MixingManager.md", "diff": "@@ -40,7 +40,7 @@ Adds a mixing recipe that outputs FluidStacks.\nReturn Type: void\n```zenscript\n-// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n+// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[], duration as int) as void\n<recipetype:create:mixing>.addRecipe(\"fluid_mixed\", <constant:create:heat_condition:none>, [<fluid:minecraft:water> * 200], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n@@ -51,7 +51,7 @@ Return Type: void\n| heat | [HeatCondition](/mods/createtweaker/recipe/HeatCondition) | The required heat of the recipe. | false | |\n| outputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The output FluidStacks of the recipe. | false | |\n| itemInputs | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)[] | The item inputs of the recipe. | false | |\n-| fluidInputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.IFluidStack[] |\n+| fluidInputs | [FluidIngredient](/forge/api/fluid/FluidIngredient)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.FluidIngredient[] |\n| duration | int | The duration of the recipe in ticks. | true | 100 |\n@@ -64,7 +64,7 @@ Adds a mixing recipe that outputs ItemStacks.\nReturn Type: void\n```zenscript\n-// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as IFluidStack[], duration as int) as void\n+// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[], duration as int) as void\n<recipetype:create:mixing>.addRecipe(\"mixed\", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);\n```\n@@ -75,7 +75,7 @@ Return Type: void\n| heat | [HeatCondition](/mods/createtweaker/recipe/HeatCondition) | The required heat of the recipe. | false | |\n| outputs | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | The output ItemStacks of the recipe. | false | |\n| itemInputs | [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)[] | The item inputs of the recipe. | false | |\n-| fluidInputs | [IFluidStack](/forge/api/fluid/IFluidStack)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.IFluidStack[] |\n+| fluidInputs | [FluidIngredient](/forge/api/fluid/FluidIngredient)[] | The optional fluid inputs of the recipe. | true | [] as crafttweaker.api.fluid.FluidIngredient[] |\n| duration | int | The duration of the recipe in ticks. | true | 100 |\n@@ -160,14 +160,14 @@ Removes recipes based on the output fluid.\nReturn Type: void\n```zenscript\n-// MixingManager.remove(output as IFluidStack) as void\n+// MixingManager.remove(output as FluidIngredient) as void\n<recipetype:create:mixing>.remove(<fluid:minecraft:water>);\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| output | [IFluidStack](/forge/api/fluid/IFluidStack) | The output fluid of the recipes to remove. |\n+| output | [FluidIngredient](/forge/api/fluid/FluidIngredient) | The output fluid of the recipes to remove. |\n:::\n@@ -235,12 +235,12 @@ MixingManager.removeByModid(modid as string, exclude as Predicate<string>) as vo\nReturn Type: void\n```zenscript\n-MixingManager.removeByName(name as string) as void\n+MixingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/PressingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/PressingManager.md", "diff": "@@ -190,12 +190,12 @@ PressingManager.removeByModid(modid as string, exclude as Predicate<string>) as\nReturn Type: void\n```zenscript\n-PressingManager.removeByName(name as string) as void\n+PressingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SandPaperPolishingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SandPaperPolishingManager.md", "diff": "@@ -190,12 +190,12 @@ SandPaperPolishingManager.removeByModid(modid as string, exclude as Predicate<st\nReturn Type: void\n```zenscript\n-SandPaperPolishingManager.removeByName(name as string) as void\n+SandPaperPolishingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "diff": "@@ -232,12 +232,12 @@ SequencedAssemblyManager.removeByModid(modid as string, exclude as Predicate<str\nReturn Type: void\n```zenscript\n-SequencedAssemblyManager.removeByName(name as string) as void\n+SequencedAssemblyManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SplashingManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SplashingManager.md", "diff": "@@ -190,12 +190,12 @@ SplashingManager.removeByModid(modid as string, exclude as Predicate<string>) as\nReturn Type: void\n```zenscript\n-SplashingManager.removeByName(name as string) as void\n+SplashingManager.removeByName(names as string[]) as void\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| name | string | No Description Provided |\n+| names | string[] | No Description Provided |\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CI doc export for CreateTweaker build 17 Matches git commit 3613995a5c848479c8d539b075b5baea7bc49d8f on branch 1.18
139,081
04.10.2022 02:26:52
25,200
1cd6d27a3a9eb207a883792458098bd7c98c1110
IRecipeAction limitations IRecipeAction only fires if the result is identical to the recipe output and the player variable can be null
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Recipes/Crafting/Recipe_Functions.md", "new_path": "docs/1.12/content/Vanilla/Recipes/Crafting/Recipe_Functions.md", "diff": "@@ -48,7 +48,7 @@ Modifying the `ins` here is a bad idea, this function triggers for each change i\nBut CraftTweaker goes beyond simply calculating your outputs using functions.\nWith an IRecipeAction Function, you can also determine what should happen when a user crafts the item.\n-An IRecipeAction object comes after an IRecipeFunction!\n+An IRecipeAction object comes after an IRecipeFunction! This function only fires if the result is exactly the same as the recipe output\n```zenscript\nval stone = <minecraft:stone>;\n@@ -68,4 +68,4 @@ This gives the player who performs the recipe 1 level each time the crafting is\nAgain, we have a function with 3 Parameters:\n`out` is the recipe's output and an IItemStack object.\n`cInfo` is an ICraftingInfo Object\n-`player` is the player performing the recipe and an [IPlayer](/Vanilla/Players/IPlayer/) object.\n+`player` is the player performing the recipe and an [IPlayer](/Vanilla/Players/IPlayer/) object. **Can be** `null`\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
IRecipeAction limitations (#517) IRecipeAction only fires if the result is identical to the recipe output and the player variable can be null
139,068
12.10.2022 12:15:42
-7,200
27d3c3d63ad1d3b76538329fb2f47fb9aaa52a62
Fix first bunch of mistakes
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/AboutMekanism.md", "new_path": "docs/1.16/content/mods/Mekanism/AboutMekanism.md", "diff": "# About Mekanism\n-Mekanism is a complex, tech mod, with explicit CraftTweaker support!\n+Mekanism is a complex, tech mod, with built-in support for CraftTweaker as of version 10.1.0!\nSome things you want to be aware when handling Mekanism's ZenClasses and RecipeTypes.\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketDumpers.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketDumpers.md", "diff": "@@ -12,7 +12,7 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.mekanism.api.BracketDumpers;\n```\n-This class registers a couple of BracketDumpers to the `/ct dumps` command.\n+This class registers a couple of BracketDumpers to the `/ct dump` command.\nThe list of mekanism-added dumps is the following:\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketHandlers.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketHandlers.md", "diff": "@@ -54,75 +54,74 @@ BracketHandlers.getInfusionStack(tokens as string) as InfusionStack\n:::\n-:::group{name=getModuleData}\n+:::group{name=getPigmentStack}\n-Gets the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt; based on registry name.\n-Throws an error if it can't find the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;.\n+Gets the [PigmentStack](/mods/Mekanism/api/chemical/PigmentStack) based on registry name. Throws an\n+error if it can't find the [Pigment](/mods/Mekanism/api/chemical/Pigment).\n-Returns: A reference to the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;.\n-Return Type: [ModuleData](/mods/Mekanism/api/gear/ModuleData)\n+Returns: A stack of the [Pigment](/mods/Mekanism/api/chemical/Pigment) with an amount of one mB.\n+Return Type: [PigmentStack](/mods/Mekanism/api/chemical/PigmentStack)\n```zenscript\n-BracketHandlers.getModuleData(tokens as string) as ModuleData\n+BracketHandlers.getPigmentStack(tokens as string) as PigmentStack\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| tokens | string | The [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;'s resource location. |\n+| tokens | string | The [Pigment](/mods/Mekanism/api/chemical/Pigment)'s resource location. |\n:::\n-:::group{name=getPigmentStack}\n+:::group{name=getSlurryStack}\n-Gets the [PigmentStack](/mods/Mekanism/api/chemical/PigmentStack) based on registry name. Throws an\n-error if it can't find the [Pigment](/mods/Mekanism/api/chemical/Pigment).\n+Gets the [SlurryStack](/mods/Mekanism/api/chemical/SlurryStack) based on registry name. Throws an\n+error if it can't find the [Slurry](/mods/Mekanism/api/chemical/Slurry).\n-Returns: A stack of the [Pigment](/mods/Mekanism/api/chemical/Pigment) with an amount of one mB.\n-Return Type: [PigmentStack](/mods/Mekanism/api/chemical/PigmentStack)\n+Returns: A stack of the [Slurry](/mods/Mekanism/api/chemical/Slurry) with an amount of one mB.\n+Return Type: [SlurryStack](/mods/Mekanism/api/chemical/SlurryStack)\n```zenscript\n-BracketHandlers.getPigmentStack(tokens as string) as PigmentStack\n+BracketHandlers.getSlurryStack(tokens as string) as SlurryStack\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| tokens | string | The [Pigment](/mods/Mekanism/api/chemical/Pigment)'s resource location. |\n+| tokens | string | The [Slurry](/mods/Mekanism/api/chemical/Slurry)'s resource location. |\n:::\n-:::group{name=getRobitSkin}\n+:::group{name=getModuleData}\n-Gets the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin) based on registry name. Throws an\n-error if it can't find the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin).\n+Gets the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt; based on registry name.\n+Throws an error if it can't find the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;.\n-Returns: A reference to the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin).\n-Return Type: [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin)\n+Returns: A reference to the [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;.\n+Return Type: [ModuleData](/mods/Mekanism/api/gear/ModuleData)\n```zenscript\n-BracketHandlers.getRobitSkin(tokens as string) as RobitSkin\n+BracketHandlers.getModuleData(tokens as string) as ModuleData\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| tokens | string | The [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin)'s resource location. |\n+| tokens | string | The [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt;'s resource location. |\n:::\n-:::group{name=getSlurryStack}\n+:::group{name=getRobitSkin}\n-Gets the [SlurryStack](/mods/Mekanism/api/chemical/SlurryStack) based on registry name. Throws an\n-error if it can't find the [Slurry](/mods/Mekanism/api/chemical/Slurry).\n+Gets the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin) based on registry name. Throws an\n+error if it can't find the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin).\n-Returns: A stack of the [Slurry](/mods/Mekanism/api/chemical/Slurry) with an amount of one mB.\n-Return Type: [SlurryStack](/mods/Mekanism/api/chemical/SlurryStack)\n+Returns: A reference to the [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin).\n+Return Type: [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin)\n```zenscript\n-BracketHandlers.getSlurryStack(tokens as string) as SlurryStack\n+BracketHandlers.getRobitSkin(tokens as string) as RobitSkin\n```\n| Parameter | Type | Description |\n|-----------|------|-------------|\n-| tokens | string | The [Slurry](/mods/Mekanism/api/chemical/Slurry)'s resource location. |\n+| tokens | string | The [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin)'s resource location. |\n:::\n-\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "new_path": "docs/1.16/content/mods/Mekanism/api/BracketValidators.md", "diff": "@@ -54,16 +54,15 @@ BracketValidators.validateInfusionStack(tokens as string) as boolean\n:::\n-:::group{name=validateModuleData}\n+:::group{name=validatePigmentStack}\n-Validates if there is a [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt; with the\n-given registry name.\n+Validates if there is a [Pigment](/mods/Mekanism/api/chemical/Pigment) with the given registry name.\nReturns: `true` if valid, `false` otherwise.\nReturn Type: boolean\n```zenscript\n-BracketValidators.validateModuleData(tokens as string) as boolean\n+BracketValidators.validatePigmentStack(tokens as string) as boolean\n```\n| Parameter | Type | Description |\n@@ -72,15 +71,15 @@ BracketValidators.validateModuleData(tokens as string) as boolean\n:::\n-:::group{name=validatePigmentStack}\n+:::group{name=validateSlurryStack}\n-Validates if there is a [Pigment](/mods/Mekanism/api/chemical/Pigment) with the given registry name.\n+Validates if there is a [Slurry](/mods/Mekanism/api/chemical/Slurry) with the given registry name.\nReturns: `true` if valid, `false` otherwise.\nReturn Type: boolean\n```zenscript\n-BracketValidators.validatePigmentStack(tokens as string) as boolean\n+BracketValidators.validateSlurryStack(tokens as string) as boolean\n```\n| Parameter | Type | Description |\n@@ -89,16 +88,16 @@ BracketValidators.validatePigmentStack(tokens as string) as boolean\n:::\n-:::group{name=validateRobitSkin}\n+:::group{name=validateModuleData}\n-Validates if there is a [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin) with the given\n-registry name.\n+Validates if there is a [ModuleData](/mods/Mekanism/api/gear/ModuleData)&lt;MODULE&gt; with the\n+given registry name.\nReturns: `true` if valid, `false` otherwise.\nReturn Type: boolean\n```zenscript\n-BracketValidators.validateRobitSkin(tokens as string) as boolean\n+BracketValidators.validateModuleData(tokens as string) as boolean\n```\n| Parameter | Type | Description |\n@@ -107,15 +106,16 @@ BracketValidators.validateRobitSkin(tokens as string) as boolean\n:::\n-:::group{name=validateSlurryStack}\n+:::group{name=validateRobitSkin}\n-Validates if there is a [Slurry](/mods/Mekanism/api/chemical/Slurry) with the given registry name.\n+Validates if there is a [RobitSkin](/mods/Mekanism/api/entity/robit/RobitSkin) with the given\n+registry name.\nReturns: `true` if valid, `false` otherwise.\nReturn Type: boolean\n```zenscript\n-BracketValidators.validateSlurryStack(tokens as string) as boolean\n+BracketValidators.validateRobitSkin(tokens as string) as boolean\n```\n| Parameter | Type | Description |\n@@ -123,4 +123,3 @@ BracketValidators.validateSlurryStack(tokens as string) as boolean\n| tokens | string | The resource location to validate. |\n:::\n-\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix first bunch of mistakes
139,068
12.10.2022 12:30:10
-7,200
263d3f4630e0f9326ed2ae1e0f070f03e9e23d08
Add ProjectE docs
[ { "change_type": "ADD", "old_path": "docs/1.16/content/mods/Mekanism/customconversion.png", "new_path": "docs/1.16/content/mods/Mekanism/customconversion.png", "diff": "Binary files /dev/null and b/docs/1.16/content/mods/Mekanism/customconversion.png differ\n" }, { "change_type": "ADD", "old_path": "docs/1.16/content/mods/Mekanism/customemc.png", "new_path": "docs/1.16/content/mods/Mekanism/customemc.png", "diff": "Binary files /dev/null and b/docs/1.16/content/mods/Mekanism/customemc.png differ\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/ProjectE/CustomConversion.md", "new_path": "docs/1.16/content/mods/ProjectE/CustomConversion.md", "diff": "@@ -12,6 +12,9 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.projecte.CustomConversion;\n```\n+The CustomConversion class allows you to define a custom recipe for the TransmutationTablet.\n+This means that the EMC of the output item is directly dependent on the EMC of the inputs.\n+\n## Static Methods\n:::group{name=addConversion}\n@@ -21,7 +24,20 @@ Adds a conversion to be mapped from the given set of inputs into the given outpu\nReturn Type: void\n```zenscript\n+import mods.projecte.CustomConversion;\n+import mods.projecte.NSSResolver;\n+import mods.projecte.NormalizedSimpleStack;\n+import mods.projecte.CustomEMC;\n+\nCustomConversion.addConversion(stack as NormalizedSimpleStack, amount as int, ingredients as int?[NormalizedSimpleStack]) as void\n+\n+var myMap as int?[NormalizedSimpleStack] = {\n+ NSSResolver.fromItem(<item:mekanism:ingot_refined_obsidian>) : 8 as int?,\n+ <item:mekanism:ingot_refined_glowstone> : 1 as int?\n+\n+} as int?[NormalizedSimpleStack];\n+\n+CustomConversion.addConversion(<item:mekanism:teleporter_frame>, 9, myMap);\n```\n| Parameter | Type | Description |\n@@ -30,5 +46,9 @@ CustomConversion.addConversion(stack as NormalizedSimpleStack, amount as int, in\n| amount | int | Amount the conversion outputs. |\n| ingredients | int?[[NormalizedSimpleStack](/mods/ProjectE/NormalizedSimpleStack)] | Map representing all inputs to the conversion. |\n+\n+The above example yields the following EMC Value for the Mekanism teleporter frame, provided that Refined Obsidian has an EMC of 1500:\n+![](/mods/ProjectE/customconversion.png)\n+\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/ProjectE/CustomEMC.md", "new_path": "docs/1.16/content/mods/ProjectE/CustomEMC.md", "diff": "@@ -39,6 +39,8 @@ Return Type: void\n```zenscript\nCustomEMC.setEMCValue(stack as NormalizedSimpleStack, emc as long) as void\n+\n+CustomEMC.setEMCValue(<item:mekanism:ingot_refined_obsidian>, 1500);\n```\n| Parameter | Type | Description |\n@@ -48,3 +50,5 @@ CustomEMC.setEMCValue(stack as NormalizedSimpleStack, emc as long) as void\n:::\n+![](/mods/ProjectE/customemc.png)\n+\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/ProjectE/NormalizedSimpleStack.md", "new_path": "docs/1.16/content/mods/ProjectE/NormalizedSimpleStack.md", "diff": "@@ -14,6 +14,10 @@ Array), so better be safe than sorry and add the import at the very top of the f\nimport mods.projecte.NormalizedSimpleStack;\n```\n+## Obtaining a NormalizedSimpleStack\n+\n+You can implicitly cast an IItemStack, an MCFluid, an MCTag<MCItemDefinition>, an MCItemTagDefinition, an MCTag<MCFluid> or an IFluidStack to NormalizedSimpleStack.\n+\n## Casters\n| Result type | Is Implicit |\n" }, { "change_type": "ADD", "old_path": "docs/1.16/content/mods/ProjectE/customconversion.png", "new_path": "docs/1.16/content/mods/ProjectE/customconversion.png", "diff": "Binary files /dev/null and b/docs/1.16/content/mods/ProjectE/customconversion.png differ\n" }, { "change_type": "ADD", "old_path": "docs/1.16/content/mods/ProjectE/customemc.png", "new_path": "docs/1.16/content/mods/ProjectE/customemc.png", "diff": "Binary files /dev/null and b/docs/1.16/content/mods/ProjectE/customemc.png differ\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add ProjectE docs
139,068
12.10.2022 13:31:04
-7,200
bbe63d85b215d05ee03938aae5b38be7e371b1d6
Remove RecipeStages and references to 1.18 mods
[ { "change_type": "DELETE", "old_path": "docs/1.19/content/mods/RecipeStages/RecipeStages.md", "new_path": null, "diff": "-::requiredMod[Recipe Stages]{builtIn=true modLink=https://www.curseforge.com/minecraft/mc-mods/recipe-stages}\n-\n-# Recipe Stages\n-This mod is an addon for the [GameStages API](https://minecraft.curseforge.com/projects/game-stages). Recipe Stages allows for Crafting Table Recipes to be restricted by a custom progression system. For more info, check out the mod page [here](https://minecraft.curseforge.com/projects/recipe-stages)\n-\n-## Methods\n-\n-Adds a shaped recipe that is locked behind a stage.\n-```zenscript\n-// mods.recipestages.Recipes.addShaped(String stage, String recipeName, IItemStack output, IIngredient[][] ingredients, @Optional RecipeFunctionMatrix recipeFunction);\n-\n-mods.recipestages.Recipes.addShaped(\"one\", \"name_one\", <item:minecraft:iron_leggings>,[[<item:minecraft:gold_ingot>, <item:minecraft:gold_ingot>, <item:minecraft:iron_ingot>],[<item:minecraft:iron_ingot>, <item:minecraft:air>, <item:minecraft:iron_ingot>],[<item:minecraft:iron_ingot>, <item:minecraft:air>, <item:minecraft:iron_ingot>]]);\n-```\n-\n-Adds a mirrored shaped recipe that is locked behind a stage.\n-```zenscript\n-// mods.recipestages.Recipes.addShapedMirrored(String stage, String recipeName, mirrorAxis as MirrorAxis, IItemStack output, IIngredient[][] ingredients, @Optional RecipeFunctionMatrix recipeFunction);\n-\n-mods.recipestages.Recipes.addShapedMirrored(\"two\", \"name_two\", MirrorAxis.ALL, <item:minecraft:furnace>, [[<item:minecraft:diamond>, <item:minecraft:diamond>,<item:minecraft:diamond>], [<item:minecraft:diamond>, <item:minecraft:air>, <item:minecraft:diamond>], [<item:minecraft:diamond>,<item:minecraft:diamond>,<item:minecraft:diamond>]], null);\n-```\n-\n-Adds a shapeless recipe that is locked behind a stage.\n-```zenscript\n-// mods.recipestages.Recipes.addShapeless(String stage, String recipeName, IItemStack output, IIngredient[] ingredients, @Optional RecipeFunctionArray recipeFunction);\n-\n-mods.recipestages.Recipes.addShapeless(\"three\", \"name_three\", <item:minecraft:clay> * 8, [<item:minecraft:water_bucket>, <item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>,<item:minecraft:clay_ball>], null);\n-```\n-\n-Sets the stage of a non staged recipe.\n-```zenscript\n-//mods.recipestages.Recipes.setRecipeStage(String name, IItemStack output);\n-//mods.recipestages.Recipes.setRecipeStage(String name, ResourceLocation name);\n-\n-mods.recipestages.Recipes.setRecipeStage(\"hoe\", <item:minecraft:stone_hoe>);\n-mods.recipestages.Recipes.setRecipeStage(\"boat\", <resource:minecraft:boat>);\n-```\n-\n-Sets the stage of all recipes that make items from a certain mod.\n-More specifically, stages all recipes that have the given modid as resource domain.\n-```zenscript\n-//mods.recipestages.Recipes.setRecipeStageByMod(String name, String modid);\n-mods.recipestages.Recipes.setRecipeStageByMod(\"four\", \"minecraft\");\n-```\n-\n-Removes the stage of an already staged recipe.\n-This is useful if you combine it with `setRecipeStageByMod` and want to have some recipes of the mod be unstaged.\n-```zenscript\n-//mods.recipestages.Recipes.clearRecipeStage(IItemStack output);\n-//mods.recipestages.Recipes.clearRecipeStage(ResourceLocation name);\n-\n-mods.recipestages.Recipes.clearRecipeStage(<item:minecraft:stone_hoe>);\n-mods.recipestages.Recipes.clearRecipeStage(<resource:minecraft:boat>);\n-```\n-\n-Sets whether the \"Stage: <stage>\" text should be shown in JEI when looking at recipes.\n-By default, the label will be shown.\n-```zenscript\n-//mods.recipestages.Recipes.showJEILabel(boolean showLabel);\n-\n-mods.recipestages.Recipes.showJEILabel(false);\n-```\n-\n-\n-## Packages and Containers\n-\n-Sometimes you may find that you can't craft a recipe in a crafting table added by mods, and example being the Refined Storage Crafting Grid, or the Applied Energistics Crafting Terminal, the solution to this is to set the stages on these Containers or the Packages\n-\n-Containers are the actual Java package and class name of what is trying to do the craft, an example is:\n-```\n-com.refinedmods.refinedstorage.apiimpl.network.node.GridNetworkNode$1\n-```\n-That is the Refined Storage Crafting Grid.\n-\n-Packages are very similar to containers, except they can cover a range of Containers, for example, using the package:\n-```\n-appeng\n-```\n-would give a stage to *all* Applied Energistics Containers, so any machine in the mod would be able to craft recipes from a given stage.\n-\n-To figure out what the Container or Package name is, you can use:\n-```zenscript\n-//mods.recipestages.Recipes.setPrintContainers(boolean printContainers);\n-mods.recipestages.Recipes.setPrintContainers(true);\n-```\n-\n-When that is set to true, when you try and craft a recipe in a crafting table, it will print the Container name (and the Package name) to the `crafttweaker.log` file.\n-\n-With that enabled, when you try and craft a recipe in the Refined Storage Crafting Grid, the following would be printed to the log:\n-```\n-Tried to craft a recipe in container: \"com.refinedmods.refinedstorage.apiimpl.network.node.GridNetworkNode$1\"\n-```\n-\n-Now that you have that, you have the Container name of the Crafting Grid, and the Package name of Refined Storage.\n-\n-The way that Package names work is they see if a given Container name starts with the Package name that you specified, so setting the stage of `com.refinedmods` to \"one\", would allow Refined Storage Containers to craft recipes from stage \"one\".\n-However, that is a very loose Package name, as `com.refinedmods` is also used in Refined Storage Addons, which you may want to give a different stage to, so when using Package names, try and be specific, so instead of `com.refinedmods`, you should use `com.refinedmods.refinedstorage`.\n-\n-Gives a Container a stage\n-```zenscript\n-//mods.recipestages.Recipes.setContainerStages(String containerPath, String... stages);\n-mods.recipestages.Recipes.setContainerStages(\"primal_tech.inventory.ContainerWorkStump\", \"one\");\n-mods.recipestages.Recipes.setContainerStages(\"com.refinedmods.refinedstorage.apiimpl.network.node.GridNetworkNode$1\", [\"one\", \"two\"]);\n-```\n-\n-Gives a Package a stage\n-```zenscript\n-//mods.recipestages.Recipes.setPackageStages(String packageName, String... stages);\n-mods.recipestages.Recipes.setPackageStages(\"appeng\", \"one\");\n-mods.recipestages.Recipes.setPackageStages(\"com.refinedmods.refinedstorage\", [\"two\", \"three\"]);\n-```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/docs.json", "new_path": "docs/1.19/docs.json", "diff": "\"Fabric\": {},\n\"Forge\": {},\n\"Mods\": {\n- \"ArmoreableMobs\" : {},\n- \"Botania\" : {},\n- \"Createtweaker\" : {},\n- \"Immersiveengineering\" : {},\n- \"Initialinventory\" : {},\n- \"JEITweaker\" : {},\n- \"RecipeStages\": {\n- \"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n- },\n- \"SolarCraft\" : {},\n- \"SushiGoCrafting\" : {},\n- \"Zen Summoning\": {},\n\"Generic JSON Recipes\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Remove RecipeStages and references to 1.18 mods
139,068
12.10.2022 13:50:48
-7,200
2aa657d4e476aaa103d68a86eb252323064bb717
Almost final update
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/ExpandingMekanism.md", "new_path": "docs/1.16/content/mods/Mekanism/content/ExpandingMekanism.md", "diff": "## \"MekaTweaker\"\nMekanism adds it's fair share of chemicals, which you must have encoutered while playing with it:\n-Gases, pigments, slurries and infusion types.\n+Gases, Infuse Types, Pigments, and Slurries.\nIn the old age of 1.12.2, adding custom gases was only a thing MekaTweaker, an addon mod could do.\n-However, after some time, Mekanism now adds a proper system to add custom chemicals through CraftTweaker and it's own CraftTweaker [loader](/zencode/Preprocessors/LoaderPreprocessor).\n+However, as of Mekanism V10.1, Mekanism now has native support for adding custom chemicals through CraftTweaker and it's own [CraftTweaker loader](/zencode/Preprocessors/LoaderPreprocessor).\nThe name of this custom loader is: `mekanismcontent`, don't forget it at the top of the file!\n@@ -15,7 +15,6 @@ The name of this custom loader is: `mekanismcontent`, don't forget it at the top\nThe most basic functions you have access to can be found in the [ChemicalBuilder](/mods/Mekanism/content/builder/ChemicalBuilder) class.\n```zenscript\n-\n#loader mekanismcontent\nimport mods.mekanism.content.builder.GasBuilder;\n@@ -54,7 +53,7 @@ It is worth knowing that all Builders that refer to a Chemical extend [ChemicalB\n### Attribute Lists\n-The list of Attributes you can use right now in your custom Mekanism is the following:\n+The list of Attributes you can use right now in your custom Mekanism chemicals is the following:\n- Gas Attributes:\n- [CoolantAttribute](/mods/Mekanism/content/attribute/gas/CoolantAttribute)\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/attribute/gas/CoolantAttribute.md", "new_path": "docs/1.16/content/mods/Mekanism/content/attribute/gas/CoolantAttribute.md", "diff": "@@ -33,10 +33,10 @@ CoolantAttribute.cooled(heatedGas as Supplier<Gas>, thermalEnthalpy as double, c\n```\n| Parameter | Type | Description |\n-|-----------|------|-------------|\n+|-----------|------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| heatedGas | Supplier&lt;[Gas](/mods/Mekanism/api/chemical/Gas)&gt; | Supplier to the heated variant of this chemical. |\n-| thermalEnthalpy | double | Defines how much energy one mB of the chemical can store; lower values will cause reactors to require more of the chemical to stay cool. <br /> Must be greater than zero. |\n-| conductivity | double | Defines the proportion of a reactor's available heat that can be used at an instant to convert this coolant's cool variant to its heated <br /> variant. This value should be greater than zero, and at most one. |\n+| thermalEnthalpy | double | Defines how much energy one mB of the chemical can store; lower values will cause reactors to require more of the chemical to stay cool. Must be greater than zero. |\n+| conductivity | double | Defines the proportion of a reactor's available heat that can be used at an instant to convert this coolant's cool variant to its heated variant. This value should be greater than zero, and at most one. |\n:::\n@@ -54,8 +54,8 @@ CoolantAttribute.heated(cooledGas as Supplier<Gas>, thermalEnthalpy as double, c\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| cooledGas | Supplier&lt;[Gas](/mods/Mekanism/api/chemical/Gas)&gt; | Supplier to the cooled variant of this chemical. |\n-| thermalEnthalpy | double | Defines how much energy one mB of the chemical can store; lower values will cause reactors to require more of the chemical to stay cool. <br /> Must be greater than zero. |\n-| conductivity | double | Defines the proportion of a reactor's available heat that can be used at an instant to convert this coolant's cool variant to its heated <br /> variant. This value should be greater than zero, and at most one. |\n+| thermalEnthalpy | double | Defines how much energy one mB of the chemical can store; lower values will cause reactors to require more of the chemical to stay cool. Must be greater than zero. |\n+| conductivity | double | Defines the proportion of a reactor's available heat that can be used at an instant to convert this coolant's cool variant to its heated variant. This value should be greater than zero, and at most one. |\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/attribute/gas/RadiationAttribute.md", "new_path": "docs/1.16/content/mods/Mekanism/content/attribute/gas/RadiationAttribute.md", "diff": "@@ -24,7 +24,7 @@ interfaces are also available in RadiationAttribute\n:::group{name=create}\nCreates an attribute representing the radioactivity of a chemical. This attribute <i>requires\n-validation</i>, meaning chemical containers won't be able to accept <br /> chemicals with this\n+validation</i>, meaning chemical containers won't be able to accept chemicals with this\nattribute by default.\nReturns: Attribute representing the radioactivity of a substance.\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/ChemicalBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/ChemicalBuilder.md", "diff": "@@ -37,7 +37,7 @@ Sets the tint to apply to this chemical when rendering.\nReturn Type: CRT_BUILDER\n```zenscript\n-ChemicalBuilder.color(color as int) as CRT_BUILDER\n+ChemicalBuilder.color(color as int)\n```\n| Parameter | Type | Description |\n@@ -54,7 +54,7 @@ Mostly for use in combination with custom textures that are not tinted.\nReturn Type: CRT_BUILDER\n```zenscript\n-ChemicalBuilder.colorRepresentation(color as int) as CRT_BUILDER\n+ChemicalBuilder.colorRepresentation(color as int)\n```\n| Parameter | Type | Description |\n@@ -71,7 +71,7 @@ tanks.\nReturn Type: CRT_BUILDER\n```zenscript\n-// ChemicalBuilder.hidden() as CRT_BUILDER\n+// ChemicalBuilder.hidden()\nmyChemicalBuilder.hidden();\n```\n@@ -85,7 +85,7 @@ Adds an attribute to the set of attributes this chemical has.\nReturn Type: CRT_BUILDER\n```zenscript\n-ChemicalBuilder.with(attribute as ATTRIBUTE) as CRT_BUILDER\n+ChemicalBuilder.with(attribute as ATTRIBUTE)\n```\n| Parameter | Type | Description |\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/GasBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/GasBuilder.md", "diff": "@@ -62,7 +62,7 @@ Sets the tint to apply to this chemical when rendering.\nReturn Type: CRT_BUILDER\n```zenscript\n-GasBuilder.color(color as int) as CRT_BUILDER\n+GasBuilder.color(color as int)\n```\n| Parameter | Type | Description |\n@@ -79,7 +79,7 @@ Mostly for use in combination with custom textures that are not tinted.\nReturn Type: CRT_BUILDER\n```zenscript\n-GasBuilder.colorRepresentation(color as int) as CRT_BUILDER\n+GasBuilder.colorRepresentation(color as int)\n```\n| Parameter | Type | Description |\n@@ -96,7 +96,7 @@ tanks.\nReturn Type: CRT_BUILDER\n```zenscript\n-// GasBuilder.hidden() as CRT_BUILDER\n+// GasBuilder.hidden()\nmyGasBuilder.hidden();\n```\n@@ -110,7 +110,7 @@ Adds an attribute to the set of attributes this chemical has.\nReturn Type: CRT_BUILDER\n```zenscript\n-GasBuilder.with(attribute as ATTRIBUTE) as CRT_BUILDER\n+GasBuilder.with(attribute as ATTRIBUTE)\n```\n| Parameter | Type | Description |\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/InfuseTypeBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/InfuseTypeBuilder.md", "diff": "@@ -62,7 +62,7 @@ Sets the tint to apply to this chemical when rendering.\nReturn Type: CRT_BUILDER\n```zenscript\n-InfuseTypeBuilder.color(color as int) as CRT_BUILDER\n+InfuseTypeBuilder.color(color as int)\n```\n| Parameter | Type | Description |\n@@ -79,7 +79,7 @@ Mostly for use in combination with custom textures that are not tinted.\nReturn Type: CRT_BUILDER\n```zenscript\n-InfuseTypeBuilder.colorRepresentation(color as int) as CRT_BUILDER\n+InfuseTypeBuilder.colorRepresentation(color as int)\n```\n| Parameter | Type | Description |\n@@ -96,7 +96,7 @@ tanks.\nReturn Type: CRT_BUILDER\n```zenscript\n-// InfuseTypeBuilder.hidden() as CRT_BUILDER\n+// InfuseTypeBuilder.hidden()\nmyInfuseTypeBuilder.hidden();\n```\n@@ -110,7 +110,7 @@ Adds an attribute to the set of attributes this chemical has.\nReturn Type: CRT_BUILDER\n```zenscript\n-InfuseTypeBuilder.with(attribute as ATTRIBUTE) as CRT_BUILDER\n+InfuseTypeBuilder.with(attribute as ATTRIBUTE)\n```\n| Parameter | Type | Description |\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/PigmentBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/PigmentBuilder.md", "diff": "@@ -62,7 +62,7 @@ Sets the tint to apply to this chemical when rendering.\nReturn Type: CRT_BUILDER\n```zenscript\n-PigmentBuilder.color(color as int) as CRT_BUILDER\n+PigmentBuilder.color(color as int)\n```\n| Parameter | Type | Description |\n@@ -79,7 +79,7 @@ Mostly for use in combination with custom textures that are not tinted.\nReturn Type: CRT_BUILDER\n```zenscript\n-PigmentBuilder.colorRepresentation(color as int) as CRT_BUILDER\n+PigmentBuilder.colorRepresentation(color as int)\n```\n| Parameter | Type | Description |\n@@ -96,7 +96,7 @@ tanks.\nReturn Type: CRT_BUILDER\n```zenscript\n-// PigmentBuilder.hidden() as CRT_BUILDER\n+// PigmentBuilder.hidden()\nmyPigmentBuilder.hidden();\n```\n@@ -110,7 +110,7 @@ Adds an attribute to the set of attributes this chemical has.\nReturn Type: CRT_BUILDER\n```zenscript\n-PigmentBuilder.with(attribute as ATTRIBUTE) as CRT_BUILDER\n+PigmentBuilder.with(attribute as ATTRIBUTE)\n```\n| Parameter | Type | Description |\n" }, { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/content/builder/SlurryBuilder.md", "new_path": "docs/1.16/content/mods/Mekanism/content/builder/SlurryBuilder.md", "diff": "@@ -94,7 +94,7 @@ Sets the tint to apply to this chemical when rendering.\nReturn Type: CRT_BUILDER\n```zenscript\n-SlurryBuilder.color(color as int) as CRT_BUILDER\n+SlurryBuilder.color(color as int)\n```\n| Parameter | Type | Description |\n@@ -111,7 +111,7 @@ Mostly for use in combination with custom textures that are not tinted.\nReturn Type: CRT_BUILDER\n```zenscript\n-SlurryBuilder.colorRepresentation(color as int) as CRT_BUILDER\n+SlurryBuilder.colorRepresentation(color as int)\n```\n| Parameter | Type | Description |\n@@ -128,7 +128,7 @@ tanks.\nReturn Type: CRT_BUILDER\n```zenscript\n-// SlurryBuilder.hidden() as CRT_BUILDER\n+// SlurryBuilder.hidden()\nmySlurryBuilder.hidden();\n```\n@@ -176,7 +176,7 @@ Adds an attribute to the set of attributes this chemical has.\nReturn Type: CRT_BUILDER\n```zenscript\n-SlurryBuilder.with(attribute as ATTRIBUTE) as CRT_BUILDER\n+SlurryBuilder.with(attribute as ATTRIBUTE)\n```\n| Parameter | Type | Description |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Almost final update
139,068
12.10.2022 14:56:16
-7,200
bf00661fccab723feeff429b6b1619f8730b34dc
Add floating Long docs (COMPARE) is something i'm not sure of and will check later
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/mods/Mekanism/api/FloatingLong.md", "new_path": "docs/1.16/content/mods/Mekanism/api/FloatingLong.md", "diff": "@@ -232,8 +232,70 @@ FloatingLong.subtract(toSubtract as FloatingLong) as FloatingLong\n:::\n-# Operators\n+## Operators\n+:::group{name=SUB}\n+\n+Subtracts the given [FloatingLong](/mods/Mekanism/api/FloatingLong) from\n+this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This gets clamped at the lower bound of 0 rather than becoming negative.\n+\n+```zenscript\n+floatingLongOne - floatingLongTwo\n+```\n+\n+:::\n+\n+:::group{name=ADD}\n+\n+Adds the given [FloatingLong](/mods/Mekanism/api/FloatingLong) to\n+this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object.\n+\n+```zenscript\n+floatingLongOne + floatingLongTwo\n+```\n+:::\n+\n+:::group{name=MUL}\n+\n+Multiplies the given [FloatingLong](/mods/Mekanism/api/FloatingLong) with\n+this [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n+gets clamped at the upper bound of `18,446,744,073,709,551,615.9999` instead of overflowing.\n+\n+```zenscript\n+floatingLongOne * floatingLongTwo\n+```\n+\n+:::\n+\n+:::group{name=divide}\n+\n+Divides this [FloatingLong](/mods/Mekanism/api/FloatingLong) by the\n+given [FloatingLong](/mods/Mekanism/api/FloatingLong) and returns the result in a new object. This\n+gets clamped at the upper bound of `18,446,744,073,709,551,615.9999` instead of overflowing.\n+\n+```zenscript\n+floatingLongOne / floatingLongTwo\n+```\n+\n+:::\n+\n+:::group{name=isEqual}\n+\n+Checks if this [FloatingLong](/mods/Mekanism/api/FloatingLong) is equal to the\n+given [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\n+```zenscript\n+floatingLongOne == floatingLongTwo\n+```\n+\n+:::\n+\n+:::group{COMPARE}\n+\n+Compares this [FloatingLong](/mods/Mekanism/api/FloatingLong) to the\n+given [FloatingLong](/mods/Mekanism/api/FloatingLong).\n+\n+:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add floating Long docs (COMPARE) is something i'm not sure of and will check later
139,068
12.10.2022 17:19:19
-7,200
f7ccfec2896606deba58fe7d12df7ce1c58241f9
Add CinematicTransitions, LightestLamps, and MemeInABottle
[ { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"Caged Mobs\": {\n\"Caged Mobs\": \"mods/CagedMobs/CagedMobs.md\"\n},\n+ \"CinematicTransitions\": {\n+ },\n\"Contenttweaker\": {\n\"Simple Walkthrough\": \"mods/contenttweaker/SimpleWalkthrough.md\"\n},\n},\n\"JEITweaker\": {\n\"JEITweaker\": \"mods/JEITweaker/JEITweaker.md\"\n+ },\n+ \"Meme in a Bottle\" : {\n+\n},\n\"Mystical Agriculture\": {\n\"Infusion Crafting\": \"mods/MysticalAgriculture/InfusionCrafting.md\",\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Immersiveengineering\" : {},\n\"Initialinventory\" : {},\n\"JEITweaker\" : {},\n+ \"Lightest Lamp\": {},\n\"RecipeStages\": {\n\"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"CinematicTransitions\": {\n+ \"PlayManager\": \"mods/CinematicTransitions/PlayManager.md\",\n+ \"PopUpManager\": \"mods/CinematicTransitions/PopUpManager.md\",\n+ \"TransitionManager\": \"mods/CinematicTransitions/TransitionManager.md\"\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/PlayManager.json", "diff": "+{\"path\":\"mods/CinematicTransitions/PlayManager.md\",\"ownerModId\":\"cinematic_transitions\",\"zenCodeName\":\"mods.cinematic_transitions.PlayManager\",\"searchTerms\":[\"registerEntityPopUpListener\",\"setHideInventory\",\"playPopUp\",\"registerStructurePopUpListener\",\"playTransition\",\"registerBiomePopUpListener\",\"registerDimensionPopUpListener\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/PlayManager.md", "diff": "+# PlayManager\n+\n+This class was added by a mod with mod-id `cinematic_transitions`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.cinematic_transitions.PlayManager;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=playPopUp}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.playPopUp(registryName as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| registryName | string | take the registry name of a PopUp registered using Json, plays the popup provided. |\n+\n+\n+:::\n+\n+:::group{name=playTransition}\n+\n+Plays transition (black bars on the top and bottom of screen) with no children (popups)\n+\n+Return Type: void\n+\n+```zenscript\n+// PlayManager.playTransition() as void\n+\n+PlayManager.playTransition();\n+```\n+\n+:::\n+\n+:::group{name=playTransition}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.playTransition(childName as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| childName | string | Plays transition with child. Syncs up the child wait duration and transition length to parent's |\n+\n+\n+:::\n+\n+:::group{name=registerBiomePopUpListener}\n+\n+Registers a listener that triggers given popup when player enters given biome\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.registerBiomePopUpListener(biomeName as string, popUp as string, hasTransition as boolean) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| biomeName | string | registry name of biome |\n+| popUp | string | registry name of popup |\n+| hasTransition | boolean | whether if transition should be played |\n+\n+\n+:::\n+\n+:::group{name=registerDimensionPopUpListener}\n+\n+Registers a listener that triggers given popup when player enters given dimension\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.registerDimensionPopUpListener(dimensionName as string, popUp as string, hasTransition as boolean) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| dimensionName | string | registry name of dimension |\n+| popUp | string | registry name of popup |\n+| hasTransition | boolean | whether if transition should be played |\n+\n+\n+:::\n+\n+:::group{name=registerEntityPopUpListener}\n+\n+Registers a listener that triggers given popup when given entity spawns\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.registerEntityPopUpListener(entityName as string, popUp as string, hasTransition as boolean) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| entityName | string | entity type |\n+| popUp | string | registry name of popup |\n+| hasTransition | boolean | whether if transition should be played |\n+\n+\n+:::\n+\n+:::group{name=registerStructurePopUpListener}\n+\n+Registers a listener that triggers given popup when player enters given structure\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.registerStructurePopUpListener(structureName as string, popUp as string, hasTransition as boolean) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| structureName | string | registry name of structure |\n+| popUp | string | registry name of popup |\n+| hasTransition | boolean | whether if transition should be played |\n+\n+\n+:::\n+\n+:::group{name=setHideInventory}\n+\n+\n+\n+Return Type: void\n+\n+```zenscript\n+PlayManager.setHideInventory(hideInventory as boolean) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| hideInventory | boolean | whether if the hotbar, health, etc should be hidden during popup/transition |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/PopUpManager.json", "diff": "+{\"path\":\"mods/CinematicTransitions/PopUpManager.md\",\"ownerModId\":\"cinematic_transitions\",\"zenCodeName\":\"mods.cinematic_transitions.PopUpManager\",\"searchTerms\":[\"disableColorModifier\",\"setPostRenderModification\",\"setPopUpLength\",\"setPopUpWaitDuration\",\"setColorModifier\",\"disableScaleModifier\",\"disableTranslateModifier\",\"setScaleModifier\",\"setTranslateModifier\",\"setPreRenderModification\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/PopUpManager.md", "diff": "+# PopUpManager\n+\n+This class was added by a mod with mod-id `cinematic_transitions`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.cinematic_transitions.PopUpManager;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=disableColorModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+// PopUpManager.disableColorModifier() as void\n+\n+PopUpManager.disableColorModifier();\n+```\n+\n+:::\n+\n+:::group{name=disableScaleModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+// PopUpManager.disableScaleModifier() as void\n+\n+PopUpManager.disableScaleModifier();\n+```\n+\n+:::\n+\n+:::group{name=disableTranslateModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+// PopUpManager.disableTranslateModifier() as void\n+\n+PopUpManager.disableTranslateModifier();\n+```\n+\n+:::\n+\n+:::group{name=setColorModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setColorModifier(red as float, green as float, blue as float, alpha as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| red | float | No Description Provided |\n+| green | float | No Description Provided |\n+| blue | float | No Description Provided |\n+| alpha | float | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setPopUpLength}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setPopUpLength(length as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| length | float | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setPopUpWaitDuration}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setPopUpWaitDuration(maxWait as int) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| maxWait | int | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setPostRenderModification}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setPostRenderModification(modification as Runnable) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modification | Runnable | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setPreRenderModification}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setPreRenderModification(modification as Runnable) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| modification | Runnable | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setScaleModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setScaleModifier(x as float, y as float, z as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| x | float | No Description Provided |\n+| y | float | No Description Provided |\n+| z | float | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setTranslateModifier}\n+\n+Return Type: void\n+\n+```zenscript\n+PopUpManager.setTranslateModifier(x as float, y as float, z as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| x | float | No Description Provided |\n+| y | float | No Description Provided |\n+| z | float | No Description Provided |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/TransitionManager.json", "diff": "+{\"path\":\"mods/CinematicTransitions/TransitionManager.md\",\"ownerModId\":\"cinematic_transitions\",\"zenCodeName\":\"mods.cinematic_transitions.TransitionManager\",\"searchTerms\":[\"setTransitionLength\",\"setTransitionHeight\",\"setTransitionWaitDuration\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/cinematic_transitions/docs/mods/CinematicTransitions/TransitionManager.md", "diff": "+# TransitionManager\n+\n+This class was added by a mod with mod-id `cinematic_transitions`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.cinematic_transitions.TransitionManager;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=setTransitionHeight}\n+\n+Return Type: void\n+\n+```zenscript\n+TransitionManager.setTransitionHeight(height as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| height | float | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setTransitionLength}\n+\n+Return Type: void\n+\n+```zenscript\n+TransitionManager.setTransitionLength(length as float) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| length | float | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=setTransitionWaitDuration}\n+\n+Return Type: void\n+\n+```zenscript\n+TransitionManager.setTransitionWaitDuration(duration as int) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| duration | int | No Description Provided |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/memeinabottle/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"Memeinabottle\": {\n+ \"Memes\": \"mods/memeinabottle/Memes.md\"\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/memeinabottle/docs/mods/memeinabottle/Memes.json", "diff": "+{\"path\":\"mods/memeinabottle/Memes.md\",\"ownerModId\":\"memeinabottle\",\"zenCodeName\":\"mods.memeinabottle.Memes\",\"searchTerms\":[\"addItemSoundMeme\",\"enableMeme\",\"addItemSoundAndMessageMeme\",\"addItemMeme\",\"addItemMessageMeme\",\"disableMeme\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.16/memeinabottle/docs/mods/memeinabottle/Memes.md", "diff": "+# Memes\n+\n+This class was added by a mod with mod-id `memeinabottle`. So you need to have this mod installed if you want to use this feature.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.memeinabottle.Memes;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=addItemMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.addItemMeme(uniqueID as string, weight as int, stack as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| uniqueID | string | No Description Provided |\n+| weight | int | No Description Provided |\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addItemMessageMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.addItemMessageMeme(uniqueID as string, weight as int, stack as IItemStack, message as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| uniqueID | string | No Description Provided |\n+| weight | int | No Description Provided |\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| message | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addItemSoundAndMessageMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.addItemSoundAndMessageMeme(uniqueID as string, weight as int, stack as IItemStack, sound as string, message as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| uniqueID | string | No Description Provided |\n+| weight | int | No Description Provided |\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| sound | string | No Description Provided |\n+| message | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addItemSoundMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.addItemSoundMeme(uniqueID as string, weight as int, stack as IItemStack, sound as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| uniqueID | string | No Description Provided |\n+| weight | int | No Description Provided |\n+| stack | [IItemStack](/vanilla/api/items/IItemStack) | No Description Provided |\n+| sound | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=disableMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.disableMeme(meme as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| meme | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=disableMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.disableMeme(memes as string[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| memes | string[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=enableMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.enableMeme(meme as string) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| meme | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=enableMeme}\n+\n+Return Type: void\n+\n+```zenscript\n+Memes.enableMeme(memes as string[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| memes | string[] | No Description Provided |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/lightestlamp/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"Lightest Lamp\":{\"GlowstoneCentrifuge\":\"mods/lightestlamp/GlowstoneCentrifuge.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/lightestlamp/docs/mods/lightestlamp/GlowstoneCentrifuge.json", "diff": "+{\"path\":\"mods/lightestlamp/GlowstoneCentrifuge.md\",\"zenCodeName\":\"lightestlamp.GlowstoneCentrifuge\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"addCentrifugable\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/lightestlamp/docs/mods/lightestlamp/GlowstoneCentrifuge.md", "diff": "+# GlowstoneCentrifuge\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import lightestlamp.GlowstoneCentrifuge;\n+```\n+\n+\n+## Implemented Interfaces\n+GlowstoneCentrifuge implements the following interfaces. That means all methods defined in these interfaces are also available in GlowstoneCentrifuge\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addCentrifugable}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.addCentrifugable(processTime as int, input as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| processTime | int | No Description Provided |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=addJsonRecipe}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.addJsonRecipe(name as string, mapData as MapData) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+| mapData | [MapData](/vanilla/api/data/MapData) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// GlowstoneCentrifuge.getAllRecipes() as stdlib.List<T>\n+\n+myGlowstoneCentrifuge.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+GlowstoneCentrifuge.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| name | string | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// GlowstoneCentrifuge.getRecipeMap() as T[ResourceLocation]\n+\n+myGlowstoneCentrifuge.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+GlowstoneCentrifuge.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.remove(output as IIngredient) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+Return Type: void\n+\n+```zenscript\n+// GlowstoneCentrifuge.removeAll() as void\n+\n+myGlowstoneCentrifuge.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.removeByInput(input as IItemStack) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.removeByModid(modid as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| modid | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.removeByName(names as string[]) as void\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------|-------------|\n+| names | string[] | No Description Provided |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+Return Type: void\n+\n+```zenscript\n+GlowstoneCentrifuge.removeByRegex(regex as string, exclude as Predicate<string>) as void\n+```\n+\n+| Parameter | Type | Description | Optional | DefaultValue |\n+|-----------|------|-------------|----------|--------------|\n+| regex | string | No Description Provided | false | |\n+| exclude | Predicate&lt;string&gt; | No Description Provided | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter | Description |\n+|------|------|------------|------------|-------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false | No Description Provided |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false | No Description Provided |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add CinematicTransitions, LightestLamps, and MemeInABottle
139,068
13.10.2022 10:25:18
-7,200
ceb8ed60986df86e1d252b9d9363603d9acf09df
Resolve conflict between docs PR and Mek docs.json
[ { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"Caged Mobs\": {\n\"Caged Mobs\": \"mods/CagedMobs/CagedMobs.md\"\n},\n+ \"CinematicTransitions\": {\n+ },\n\"Contenttweaker\": {\n\"Simple Walkthrough\": \"mods/contenttweaker/SimpleWalkthrough.md\"\n},\n\"Melter\": \"mods/Cyclic/Melter.md\",\n\"Solidifier\": \"mods/Cyclic/Solidifier.md\"\n},\n+ \"EidolonTweaker\": {},\n\"Ex Nihilo Sequentia\": {\n\"Composting\": \"mods/ExNihiloSequentia/Composting.md\",\n\"Crooking\": \"mods/ExNihiloSequentia/Crooking.md\",\n\"RecipeExamples\" : \"mods/Mekanism/examples/RecipeExamples.md\"\n},\n\"About Mekanism\" : \"mods/Mekanism/AboutMekanism.md\"\n+ },\n+ \"Meme in a Bottle\" : {\n+\n},\n\"Mystical Agriculture\": {\n\"Infusion Crafting\": \"mods/MysticalAgriculture/InfusionCrafting.md\",\n\"Refinery\": \"mods/PneumaticCraft-Repressurized/Refinery.md\",\n\"Thermopneumatic Processing Plant\": \"mods/PneumaticCraft-Repressurized/ThermoPlant.md\"\n},\n- \"ProjectE\": {\n- \"CustomConversion\": \"mods/ProjectE/CustomConversion.md\",\n- \"CustomEMC\": \"mods/ProjectE/CustomEMC.md\",\n- \"NSSResolver\": \"mods/ProjectE/NSSResolver.md\",\n- \"NormalizedSimpleStack\": \"mods/ProjectE/NormalizedSimpleStack.md\",\n- \"WorldTransmutation\": \"mods/ProjectE/WorldTransmutation.md\"\n- },\n\"RecipeStages\": {\n\"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n},\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Resolve conflict between docs PR and Mek docs.json
139,068
16.10.2022 02:35:16
-7,200
716236cb224cb49b2b874f0bad094266405b7058
Attempt to fix MIAB & And ArmoreableMobs aka first mod to have CrT support in 1.19
[ { "change_type": "MODIFY", "old_path": "docs/1.16/docs.json", "new_path": "docs/1.16/docs.json", "diff": "\"JEITweaker\": {\n\"JEITweaker\": \"mods/JEITweaker/JEITweaker.md\"\n},\n- \"Meme in a Bottle\" : {\n+ \"MemeInABottle\" : {\n},\n\"Mystical Agriculture\": {\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/docs.json", "new_path": "docs/1.19/docs.json", "diff": "\"Fabric\": {},\n\"Forge\": {},\n\"Mods\": {\n+ \"ArmoreableMobs\" : {},\n\"Generic JSON Recipes\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.16/memeinabottle/docs.json", "new_path": "docs_exported/1.16/memeinabottle/docs.json", "diff": "{\n\"nav\": {\n\"Mods\": {\n- \"Memeinabottle\": {\n+ \"MemeInABottle\": {\n\"Memes\": \"mods/memeinabottle/Memes.md\"\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.19/armoreablemobs/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"ArmoreableMobs\":{\"ArmorGroup\":\"mods/ArmoreableMobs/ArmorGroup.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.19/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.json", "diff": "+{\"path\":\"mods/ArmoreableMobs/ArmorGroup.md\",\"zenCodeName\":\"mods.armoreablemobs.ArmorGroup\",\"searchTerms\":[\"inSlot\",\"getName\",\"getWeight\",\"setWeight\",\"overrideExistingArmor\",\"getStackinSlot\",\"getMap\",\"register\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.19/armoreablemobs/docs/mods/ArmoreableMobs/ArmorGroup.md", "diff": "+# ArmorGroup\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.armoreablemobs.ArmorGroup;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=overrideExistingArmor}\n+\n+A powerful method to override the armor of a mob depending on which block they are standing on.\n+\n+```zenscript\n+// ArmorGroup.overrideExistingArmor(type as EntityType, map as IItemStack[EquipmentSlot], state as BlockState)\n+\n+ArmorGroup.overrideExistingArmor(<entitytype:minecraft:zombie>, {<constant:minecraft:equipmentslot:chest> : <item:minecraft:netherite_chestplate>, <constant:minecraft:equipmentslot:mainhand> : <item:minecraft:netherite_sword>}, <blockstate:minecraft:sand>);\n+```\n+\n+| Parameter | Type | Description | Optional |\n+|-----------|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; to Override | false |\n+| map | [IItemStack](/vanilla/api/item/IItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)] | The Associative Array, as `EquipmentSlot[IItemStack]` that will be used as the entities armor. If an [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) is empty, it won't override what's there. | false |\n+| state | [BlockState](/vanilla/api/block/BlockState) | The BlockState to override the armor if the aforementioned [EntityType](/vanilla/api/entity/EntityType)&lt;T&gt; spawns on top of. | true |\n+\n+\n+:::\n+\n+## Constructors\n+\n+\n+```zenscript\n+new ArmorGroup(name as string) as ArmorGroup\n+```\n+| Parameter | Type | Description |\n+|-----------|--------|------------------------------------------|\n+| name | string | The display name of the group to create. |\n+\n+\n+\n+## Casters\n+\n+| Result Type | Is Implicit |\n+|-------------|-------------|\n+| string | true |\n+\n+## Methods\n+\n+:::group{name=getMap}\n+\n+Returns the AssociativeArray that corresponds to the internal `EquipmentSlot[IItemStack]`\n+\n+Returns: The internal map as `EquipmentSlot[IItemStack]`\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)[[EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)]\n+\n+```zenscript\n+// ArmorGroup.getMap() as ItemStack[EquipmentSlot]\n+\n+myArmorGroup.getMap();\n+```\n+\n+:::\n+\n+:::group{name=getName}\n+\n+Gets the name of the ArmorGroup\n+\n+Returns: The name of the group as a string.\n+Return Type: string\n+\n+```zenscript\n+// ArmorGroup.getName() as string\n+\n+myArmorGroup.getName();\n+```\n+\n+:::\n+\n+:::group{name=getStackinSlot}\n+\n+Gets the ItemStack the group will give in a selected slot. Can be null. Would be the same as using [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)#getMap() and passing the [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) as a key.\n+\n+Returns: The ItemStack at the selected location. Can be null.\n+Return Type: [ItemStack](/vanilla/api/item/ItemStack)\n+\n+```zenscript\n+// ArmorGroup.getStackinSlot(slot as EquipmentSlot) as ItemStack\n+\n+myArmorGroup.getStackinSlot(<constant:minecraft:equipmentslot:head>);\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------------------------|\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) |\n+\n+\n+:::\n+\n+:::group{name=getWeight}\n+\n+Gets the weight of the ArmorGroup\n+\n+Returns: The weight of the group as a double.\n+Return Type: double\n+\n+```zenscript\n+// ArmorGroup.getWeight() as double\n+\n+myArmorGroup.getWeight();\n+```\n+\n+:::\n+\n+:::group{name=inSlot}\n+\n+Links a slot to the ItemStack the entity will get when spawning. Accepts all [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) types.\n+\n+Returns: The ArmorGroup that has been modified.\n+Return Type: [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)\n+\n+```zenscript\n+// ArmorGroup.inSlot(slot as EquipmentSlot, stack as IItemStack) as ArmorGroup\n+\n+myArmorGroup.inSlot(<constant:minecraft:equipmentslot:feet>, <item:minecraft:iron_boots>);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|--------------------------------------------------------------|-----------------------------------------------------------------------|\n+| slot | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot) | The slot at which the ItemStack will be placed |\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) | The [IItemStack](/vanilla/api/item/IItemStack) to give to the Entity. |\n+\n+\n+:::\n+\n+:::group{name=register}\n+\n+Registers the ArmorGroup.\n+\n+```zenscript\n+// ArmorGroup.register(type as EntityType)\n+\n+myArmorGroup.register(<entitytype:minecraft:zombie>);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|----------------------------------------------|--------------------------------------------------------------|\n+| type | [EntityType](/vanilla/api/entity/EntityType) | The entity at which the ArmorGroup will be applied on spawn. |\n+\n+\n+:::\n+\n+:::group{name=setWeight}\n+\n+Sets the weight at which the armor group can spawn. The chance a group has to spawn on an entity is determined using a pseudo random number and the total weight of ArmorGroups that entity can have.\n+\n+Returns: The ArmorGroup that has been modified.\n+Return Type: [ArmorGroup](/mods/ArmoreableMobs/ArmorGroup)\n+\n+```zenscript\n+// ArmorGroup.setWeight(weight as double) as ArmorGroup\n+\n+myArmorGroup.setWeight(3.0);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|--------|-------------------------------------------------------------------|\n+| weight | double | The weight at which the ArmorGroup will spawn on the entity type. |\n+\n+\n+:::\n+\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Attempt to fix MIAB & And ArmoreableMobs aka first mod to have CrT support in 1.19
139,092
26.10.2022 15:44:47
18,000
8089b9e160477d91449cf8289ee16b6d0b82db3e
Fixed issue 523 * Fixed turns out it's super simple to do.. * Fixed on the 1.17 docs * Fixed in 1.18 docs * fixed in 1.19 docs
[ { "change_type": "MODIFY", "old_path": "docs/1.16/content/zencode/ArraysAndLists.md", "new_path": "docs/1.16/content/zencode/ArraysAndLists.md", "diff": "@@ -58,7 +58,7 @@ var oldArray = [\"A\", \"B\", \"C\"] as string[];\nvar list = oldArray as stdlib.List<string>;\nlist.add(\"D\");\n-var newArray = oldArray as string[];\n+var newArray = list as string[];\nprintln(oldArray.length); //oldArray still has 3 elements so it prints \"3\"\nprintln(newArray.length); //newArray now also has \"D\", so it prints \"4\"\n" }, { "change_type": "MODIFY", "old_path": "docs/1.17/content/zencode/ArraysAndLists.md", "new_path": "docs/1.17/content/zencode/ArraysAndLists.md", "diff": "@@ -58,7 +58,7 @@ var oldArray = [\"A\", \"B\", \"C\"] as string[];\nvar list = oldArray as stdlib.List<string>;\nlist.add(\"D\");\n-var newArray = oldArray as string[];\n+var newArray = list as string[];\nprintln(oldArray.length); //oldArray still has 3 elements so it prints \"3\"\nprintln(newArray.length); //newArray now also has \"D\", so it prints \"4\"\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/content/zencode/ArraysAndLists.md", "new_path": "docs/1.18/content/zencode/ArraysAndLists.md", "diff": "@@ -58,7 +58,7 @@ var oldArray = [\"A\", \"B\", \"C\"] as string[];\nvar list = oldArray as stdlib.List<string>;\nlist.add(\"D\");\n-var newArray = oldArray as string[];\n+var newArray = list as string[];\nprintln(oldArray.length); //oldArray still has 3 elements so it prints \"3\"\nprintln(newArray.length); //newArray now also has \"D\", so it prints \"4\"\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/content/zencode/ArraysAndLists.md", "new_path": "docs/1.19/content/zencode/ArraysAndLists.md", "diff": "@@ -58,7 +58,7 @@ var oldArray = [\"A\", \"B\", \"C\"] as string[];\nvar list = oldArray as stdlib.List<string>;\nlist.add(\"D\");\n-var newArray = oldArray as string[];\n+var newArray = list as string[];\nprintln(oldArray.length); //oldArray still has 3 elements so it prints \"3\"\nprintln(newArray.length); //newArray now also has \"D\", so it prints \"4\"\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fixed issue 523 (#524) * Fixed #523 turns out it's super simple to do.. * Fixed on the 1.17 docs * Fixed in 1.18 docs * fixed in 1.19 docs
139,068
30.10.2022 17:58:25
-3,600
eb389ece25a2a8efd0f1109d60b473e6b3e56b40
Make docs nav names match
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Initialinventory\" : {},\n\"JEITweaker\" : {},\n\"Lightest Lamp\": {},\n- \"ProjectMMO\" : {},\n+ \"PMMO\" : {},\n\"RecipeStages\": {\n\"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n},\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/docs.json", "new_path": "docs/1.19/docs.json", "diff": "\"Forge\": {},\n\"Mods\": {\n\"ArmoreableMobs\" : {},\n- \"ProjectMMO\" : {},\n+ \"PMMO\" : {},\n\"Generic JSON Recipes\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Make docs nav names match
139,068
30.10.2022 18:23:20
-3,600
945615fd7ecd63aec1067f1a357f75c3a92b01b0
Attempt making it respect caps
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/projectmmo/docs.json", "new_path": "docs_exported/1.18/projectmmo/docs.json", "diff": "-{\"nav\":{\"Mods\":{\"Pmmo\":{\"Natives\":{\"ModifierDataType\":\"mods/pmmo/natives/DataType.md\",\"EventType\":\"mods/pmmo/natives/EventType.md\",\"ObjectType\":\"mods/pmmo/natives/ObjectType.md\",\"ReqType\":\"mods/pmmo/natives/ReqType.md\"},\"CTUtils\":\"mods/pmmo/CTUtils.md\",\"SalvageBuilder\":\"mods/pmmo/SalvageBuilder.md\"}}}}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"PMMO\":{\"Natives\":{\"ModifierDataType\":\"mods/pmmo/natives/DataType.md\",\"EventType\":\"mods/pmmo/natives/EventType.md\",\"ObjectType\":\"mods/pmmo/natives/ObjectType.md\",\"ReqType\":\"mods/pmmo/natives/ReqType.md\"},\"CTUtils\":\"mods/pmmo/CTUtils.md\",\"SalvageBuilder\":\"mods/pmmo/SalvageBuilder.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.19/projectmmo/docs.json", "new_path": "docs_exported/1.19/projectmmo/docs.json", "diff": "-{\"nav\":{\"Mods\":{\"Pmmo\":{\"Natives\":{\"ModifierDataType\":\"mods/pmmo/natives/DataType.md\",\"EventType\":\"mods/pmmo/natives/EventType.md\",\"ObjectType\":\"mods/pmmo/natives/ObjectType.md\",\"ReqType\":\"mods/pmmo/natives/ReqType.md\"},\"CTUtils\":\"mods/pmmo/CTUtils.md\",\"SalvageBuilder\":\"mods/pmmo/SalvageBuilder.md\"}}}}\n\\ No newline at end of file\n+{\"nav\":{\"Mods\":{\"PMMO\":{\"Natives\":{\"ModifierDataType\":\"mods/pmmo/natives/DataType.md\",\"EventType\":\"mods/pmmo/natives/EventType.md\",\"ObjectType\":\"mods/pmmo/natives/ObjectType.md\",\"ReqType\":\"mods/pmmo/natives/ReqType.md\"},\"CTUtils\":\"mods/pmmo/CTUtils.md\",\"SalvageBuilder\":\"mods/pmmo/SalvageBuilder.md\"}}}}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Attempt making it respect caps
139,068
30.10.2022 20:31:33
-3,600
13bb282a4575756e158a61ed09bf128078aea7d3
Update the invalid BEP in SequencedAssemblyManager
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "new_path": "docs_exported/1.18/createtweaker/docs/mods/createtweaker/SequencedAssemblyManager.md", "diff": "@@ -43,7 +43,7 @@ Return Type: void\n// SequencedAssemblyManager.addRecipe(builder as SequencedAssemblyRecipeBuilder) as void\n<recipetype:create:sequenced_assembly>.addRecipe(<recipetype:create:sequenced_assembly>.builder(\"seq_blast_brick\")\n- .transitionTo(<item:create:incomplete_large_cogwheel>)\n+ .transitionTo(<item:create:incomplete_precision_mechanism>)\n.require(<item:create:andesite_alloy>)\n.loops(3)\n.addOutput(<item:create:large_cogwheel> * 6, 32)\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update the invalid BEP in SequencedAssemblyManager
139,048
30.10.2022 18:27:17
18,000
63c178f709cd0562d2e97707ed9b88bd57c44873
Fix do some refactoring on ItemConditions
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "new_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "diff": "# Item Conditions\n-Sometimes normal items won't cut it:\n+Sometimes normal items won't cut it and we want to:\n-Sometimes we want to be able to specify recipes that only work when the input item fulfills some conditions.\n-\n-Sometimes we want to be able to specify recipes that will produce a special item, be it with NBT-Tag or Damage value or otherwise.\n+* specify recipes that only work when the input item fulfills some conditions.\n+* specify recipes that will produce a special item, be it with NBT-Tag or Damage value or otherwise.\n## Importing the package\nIt might be required for you to import the package if you encounter any issues (like casting an [Array](/AdvancedFunctions/Arrays_and_Loops/)), so better be safe than sorry and add the import.\n@@ -15,71 +14,61 @@ It might be required for you to import the package if you encounter any issues (\nThese will affect the items that you can use to craft the resulting item.\nRemember, you can mix modifiers, to mix Damage and NBT-Tag, for example\n```zenscript\n-<minecraft:iron_pickaxe>.onlyDamaged().withTag({display: {Lore: \"Aren't we all butterflies?\"}});\n+<minecraft:iron_pickaxe>.anyDamage().onlyDamaged().withTag({display: {Lore: \"Aren't we all butterflies?\"}});\n```\n### Damage\n#### anyDamage\nThe input item's damage value does not matter for the recipe\n```zenscript\n-item.anyDamage()\n+item.anyDamage();\n```\n#### onlyDamaged\n-The input item needs to be damaged\n+The input item needs to be damaged. Only works in combination with `anyDamage()`!\n```zenscript\n-item.onlyDamaged();\n+item.anyDamage().onlyDamaged();\n```\n#### Damaged at least\n-Input item's damage value needs to be at least the specified `value`\n-`Value` is an int\n+Input item's damage value needs to be at least the specified `value`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.onlyDamageAtLeast(value);\n+item.anyDamage().onlyDamageAtLeast(int value);\n```\n-#### Damage at most\n-Input item's damage value needs to be at max the specified `value`\n-`Value` is an int\n+#### Damaged at most\n+Input item's damage value needs to be at most the specified `value`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.onlyDamageAtMost(value);\n+item.anyDamage().onlyDamageAtMost(int value);\n```\n-#### Damage between\n-Input item's damage value needs to be between the speciefied `value1` and `value2`\n-`Value1` is an int\n-`Value2` is an int\n+#### Damaged between\n+Input item's damage value needs to be between the specified `min` and `max`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.onlyDamageBetween(value1, value2);\n+item.anyDamage().onlyDamageBetween(int min, int max);\n```\n-### Get Items back or explicitly forbid an item's reusability\n-Sometimes you need a recipe where you get some of your input items back.\n-By applying `transformDamage(int)` you can create such recipes.\n-\n-\n#### transformDamage\nThe input item will receive `value` damage points and you will get it back, unless it breaks during the crafting process.\n-`Value` is an int\n+You can also use this to repair items by having a negative `value`.\n```zenscript\n-item.transformDamage(value);\n+item.transformDamage(int value);\n```\n### NBT-Tags\n-Sometimes you want your ingredients to need a specific NBT-Tag.\n+Sometimes you want your ingredients to require a specific NBT-Tag.\nThe recipe doesn't care if your item has NBT-Tags other than the ones specified,\nSo a pickaxe with a specific lore may also be enchanted!\n-If you use `withTag` jei will display it properly, if you use `onlyWithTag`, jei will only display a tagless item!\n+If you use `withTag` JEI will display it properly, if you use `onlyWithTag`, JEI will only display a tagless item!\nHere's how you do it:\n-`NBTTag` is your NBT Data\n```zenscript\n-item.withTag(NBTData);\n-item.onlyWithTag(NBTTag);\n+item.withTag(tag);\n+item.onlyWithTag(tag);\n-<minecraft.iron_pickaxe>.onlyWithTag({display: {Name: \"Pickle the Pickleberry\"}});\n<minecraft.iron_pickaxe>.withTag({display: {Name: \"Pickle the Pickleberry\"}});\n+<minecraft.iron_pickaxe>.onlyWithTag({display: {Name: \"Pickle the Pickleberry\"}});\n```\n## Output modifiers\n@@ -88,14 +77,12 @@ If you can specify input conditions, it's not so hard to also define output cond\n### Damage\nYour output item will have `value` damage points.\n-`Value` is an int.\n```zenscript\n-item.withDamage(value);\n+item.withDamage(int value);\n```\n### NBT-Tags\nYour output item will have `NBTTag` as NBT-Tag.\n-`NBTTag` is your NBT Data\n```zenscript\nitem.withTag(NBTTag);\n@@ -103,10 +90,9 @@ item.withTag(NBTTag);\n```\n-## Registering own item Conditions\n+## Registering custom Item Conditions\nYou can also add your own itemConditions. These are special functions that accept the [item](/Vanilla/Items/IItemStack/) itself as single parameter.\n-\n```zenscript\nconditionedItem = item.only(function(item) {return true;});\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix #151, do some refactoring on ItemConditions (#527)
139,048
30.10.2022 19:03:15
18,000
9c6ce5bf7d9d13b3a0ff144340e9f0e5bf86b42c
Some typos that flew under the radar fixes)
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "new_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "diff": "@@ -33,26 +33,26 @@ item.anyDamage().onlyDamaged();\n#### Damaged at least\nInput item's damage value needs to be at least the specified `value`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.anyDamage().onlyDamageAtLeast(int value);\n+item.anyDamage().onlyDamageAtLeast(value as int);\n```\n#### Damaged at most\nInput item's damage value needs to be at most the specified `value`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.anyDamage().onlyDamageAtMost(int value);\n+item.anyDamage().onlyDamageAtMost(value as int);\n```\n#### Damaged between\nInput item's damage value needs to be between the specified `min` and `max`. Only works in combination with `anyDamage()`!\n```zenscript\n-item.anyDamage().onlyDamageBetween(int min, int max);\n+item.anyDamage().onlyDamageBetween(min as int, max as int);\n```\n#### transformDamage\nThe input item will receive `value` damage points and you will get it back, unless it breaks during the crafting process.\nYou can also use this to repair items by having a negative `value`.\n```zenscript\n-item.transformDamage(int value);\n+item.transformDamage(value as int);\n```\n### NBT-Tags\n@@ -64,27 +64,26 @@ If you use `withTag` JEI will display it properly, if you use `onlyWithTag`, JEI\nHere's how you do it:\n```zenscript\n-item.withTag(tag);\n-item.onlyWithTag(tag);\n+item.withTag(tag as IData);\n+item.onlyWithTag(tag as IData);\n-<minecraft.iron_pickaxe>.withTag({display: {Name: \"Pickle the Pickleberry\"}});\n-<minecraft.iron_pickaxe>.onlyWithTag({display: {Name: \"Pickle the Pickleberry\"}});\n+<minecraft:iron_pickaxe>.withTag({display: {Name: \"Pickle the Pickleberry\"}});\n+<minecraft:iron_pickaxe>.onlyWithTag({display: {Name: \"Pickle the Pickleberry\"}});\n```\n## Output modifiers\n-\nIf you can specify input conditions, it's not so hard to also define output conditions, or rather, output modifiers.\n### Damage\nYour output item will have `value` damage points.\n```zenscript\n-item.withDamage(int value);\n+item.withDamage(value as int);\n```\n### NBT-Tags\n-Your output item will have `NBTTag` as NBT-Tag.\n+Your output item will have `tag` as the NBT-Tag.\n```zenscript\n-item.withTag(NBTTag);\n+item.withTag(tag as IData);\n<minecraft:iron_pickaxe>.withTag({display: {Name: \"Pickle the Pickleberry\"}})\n```\n@@ -94,7 +93,11 @@ item.withTag(NBTTag);\nYou can also add your own itemConditions. These are special functions that accept the [item](/Vanilla/Items/IItemStack/) itself as single parameter.\n```zenscript\n-conditionedItem = item.only(function(item) {return true;});\n+conditionedItem = item.only(function(itm as IItemStack) as bool {\n+ var b as bool = true;\n+ // do something with itm\n+ return b;\n+});\n```\nThe function needs to return a bool that is true if the item matches the condition.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Some typos that flew under the radar (#527 fixes)
139,048
30.10.2022 19:11:04
18,000
c4eda60d854dfeefe3472632ead6570cd56c53c9
Use itemStack
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "new_path": "docs/1.12/content/Vanilla/Items/Item_Conditions.md", "diff": "@@ -93,9 +93,9 @@ item.withTag(tag as IData);\nYou can also add your own itemConditions. These are special functions that accept the [item](/Vanilla/Items/IItemStack/) itself as single parameter.\n```zenscript\n-conditionedItem = item.only(function(itm as IItemStack) as bool {\n+conditionedItem = item.only(function(itemStack as IItemStack) as bool {\nvar b as bool = true;\n- // do something with itm\n+ // do something with itemStack\nreturn b;\n});\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Use itemStack
139,068
06.11.2022 17:11:21
-3,600
197703759194a10ae238cf8a86cf72e68862376e
Fix botania docs
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.16/botania/docs/mods/Botania/ManaInfusion.md", "new_path": "docs_exported/1.16/botania/docs/mods/Botania/ManaInfusion.md", "diff": "@@ -44,7 +44,7 @@ Return Type: void\n```zenscript\n// ManaInfusion.addRecipe(name as string, output as IItemStack, input as IIngredient, mana as int, catalyst as StateIngredient, group as string, function as RecipeFunctionSingle) as void\n-<recipetype:botania:mana_infusion>.addRecipe(\"mana_infusion_test_catalyst\", <item:minecraft:diamond>, <item:minecraft:apple>, 200, <block:botania:alchemy_catalyst>, null, (usualOut as IItemStack, input as IItemStack) => { return usualOut.withTag(input.tag); });\n+<recipetype:botania:mana_infusion>.addRecipe(\"mana_infusion_test_catalyst\", <item:minecraft:diamond>, <item:minecraft:apple>, 200, <block:botania:alchemy_catalyst>, \"\", (usualOut as IItemStack, input as IItemStack) => { return usualOut.withTag(input.tag); });\n```\n| Parameter | Type | Description | Optional | DefaultValue |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix botania docs
139,068
07.11.2022 22:49:58
-3,600
10f1175795ec1618780c58a7a8543e99ef33b5e3
Refactor vanilla how to cTable tutorials
[ { "change_type": "RENAME", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/AddRecipes/MirroredShapedRecipes.md", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/MirroredShapedRecipes.md", "diff": "@@ -15,7 +15,7 @@ There is one difference between CraftTweaker mirrored recipes and Vanilla mirror\n## Adding Mirrored Shaped Recipes\n-Adding Mirrored Shaped Recipes is exactly the same as adding normal Shaped Recipes except it uses a different method, and it asks for the axis it should be mirrored on.\n+Adding Mirrored Shaped Recipes is exactly the same as adding normal Shaped Recipes except it uses a different method, and it asks for the [axis](/vanilla/api/recipe/MirrorAxis) it should be mirrored on.\nThe basic syntax for a mirrored shaped recipe is:\n" }, { "change_type": "RENAME", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/AddRecipes/ShapedRecipes.md", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/ShapedRecipes.md", "diff": "" }, { "change_type": "RENAME", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/AddRecipes/ShapelessRecipes.md", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/ShapelessRecipes.md", "diff": "" }, { "change_type": "ADD", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image1.PNG", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image1.PNG", "diff": "Binary files /dev/null and b/docs/1.18/content/tutorial/Recipes/Crafting/assets/image1.PNG differ\n" }, { "change_type": "ADD", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image2.png", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image2.png", "diff": "Binary files /dev/null and b/docs/1.18/content/tutorial/Recipes/Crafting/assets/image2.png differ\n" }, { "change_type": "ADD", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image3.png", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/assets/image3.png", "diff": "Binary files /dev/null and b/docs/1.18/content/tutorial/Recipes/Crafting/assets/image3.png differ\n" }, { "change_type": "RENAME", "old_path": "docs/1.19/content/vanilla/how_to/crafting_table.md", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/crafting_table.md", "diff": "There are three recipe types for crafting tables:\n-- **Shapeless:** A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n-- **Shaped:** A shaped recipe is a recipe where the position of the items must be exact.\n-- **Shaped Mirrored:** A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n+- [**Shapeless:**](/tutorials/Recipes/Crafting/ShapelessRecipes.md) A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n+- [**Shaped:**](/tutorials/Recipes/Crafting/ShapedRecipes.md) A shaped recipe is a recipe where the position of the items must be exact.\n+- [**Shaped Mirrored:**](/tutorials/Recipes/Crafting/ShapedMirrored.md) A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n## Adding a Recipe\n@@ -16,10 +16,10 @@ _When adding a recipe, ensure that your recipe names are unique!_\n`craftingTable.addShapeless(recipeName, output, ingredients, recipeFunction);`\n-- `recipeName` &lt;string>\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `ingredients` <[IIngredient](/vanilla/api/ingredient/IIngredient)[]>\n-- `recipeFunction` (Optional) <[RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)>\n+- `recipeName`as string\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `ingredients` as [IIngredient](/vanilla/api/ingredient/IIngredient)[]\n+- `recipeFunction` (Optional) as [RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)\nAdds a [shapeless](#recipe-types) recipe to the crafting table. As [shapeless](#recipe-types) recipes ignore the position of the input items, the ordering of the items when creating the recipe does not matter either.\n@@ -43,10 +43,10 @@ _See [Using Recipe Functions](#using-recipe-functions) for examples on how to us\n`craftingTable.addShapedMirrored(recipeName, output, ingredients, recipeFunction);`\n-- `recipeName` &lt;string>\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `ingredients` <[IIngredient](/vanilla/api/items/IIngredient)[][]>\n-- `recipeFunction` (Optional) <[RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)>\n+- `recipeName` as string\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `ingredients` as [IIngredient](/vanilla/api/items/IIngredient)[][]\n+- `recipeFunction` (Optional) as [RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)\nAdds a [shaped](#recipe-types) (or [mirrored](#recipe-types), depending on the function) recipe to the crafting table. The ordering of the items when creating the recipe dictates the position of each item in the crafting grid.\n@@ -71,13 +71,25 @@ craftingTable.addShaped(\"shaped_example_2\", <item:minecraft:diamond_axe>, [\n]);\n// Adding a shaped mirrored recipe\n-craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", <item:minecraft:arrow> * 2, [\n+\n+import crafttweaker.api.recipe.MirrorAxis;\n+\n+craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", MirrorAxis.DIAGONAL, <item:minecraft:arrow> * 2, [\n[<item:minecraft:diamond>, <item:minecraft:diamond>],\n[<item:minecraft:air>, <item:minecraft:flint>],\n[<item:minecraft:air>, <item:minecraft:flint>]\n]);\n```\n+:::question[What is a valid mirroring recipe of the above example?]\n+\n+:::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n+:::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n+:::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n+\n+\n+:::\n+\n_See [Using Recipe Functions](#using-recipe-functions) for examples on how to use recipe functions._\n## Using Recipe Functions\n@@ -92,8 +104,8 @@ _As Shaped and Shaped Mirrored Recipes are similar, examples will only include S\n`(usualOut as IItemStack, inputs as IItemStack[]) => {};`\n-- `usualOut` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `inputs` <[IItemStack](/vanilla/api/items/IItemStack)[]> Array of inputs ordered the same as defined in the original recipe\n+- `usualOut` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `inputs` as [IItemStack](/vanilla/api/items/IItemStack)[] Array of inputs ordered the same as defined in the original recipe\n```zenscript\nimport crafttweaker.api.item.IItemStack;\n@@ -116,8 +128,10 @@ craftingTable.addShapeless(\"shapeless_func_example_1\", <item:minecraft:diamond>\n`(usualOut as IItemStack, inputs as IItemStack[][]) => {};`\n-- `usualOut` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `inputs` <[IItemStack](/vanilla/api/items/IItemStack)[][]> Array of inputs ordered the same as defined in the original recipe. An input can be found by defining the row, then the column (`inputs[0][1]` to get the item in the first row, second column).\n+- `usualOut` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `inputs` as [IItemStack](/vanilla/api/items/IItemStack)[][]\n+\n+`inputs` is an array of inputs ordered the same as defined in the original recipe. An input can be found by defining the row, then the column (`inputs[0][1]` to get the item in the first row, second column).\n```zenscript\nimport crafttweaker.api.item.IItemStack;\n@@ -233,7 +247,7 @@ craftingTable.addShaped(\"shapeed_func_example_4\", <item:minecraft:diamond_block>\n`craftingTable.removeByName(recipeName);`\n-- `recipeName` &lt;string>\n+- `recipeName` as string\nRemoves the recipe that matches the name provided.\n@@ -245,7 +259,7 @@ craftingTable.removeByName(\"minecraft:sugar_from_sugar_cane\");\n`craftingTable.remove(output);`\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\nRemoves all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n@@ -257,7 +271,7 @@ craftingTable.remove(<item:minecraft:stick>);\n`craftingTable.removeByModid(modId);`\n-- `modId` &lt;string>\n+- `modId` as string\nRemoves all recipes added by the provided mod.\n@@ -269,9 +283,9 @@ craftingTable.removeByModid(\"minecraft\");\n`craftingTable.removeByModid(modId, exclusionFilter);`\n-- `modId` &lt;string>\n-- `exclusionFilter` <[RecipeFilter](/vanilla/api/recipe/RecipeFilter)>\n- - `name` &lt;string> The name of the current recipe being checked. _The mod id will not be included_\n+- `modId` as string\n+- `exclusionFilter` as [RecipeFilter](/vanilla/api/recipe/RecipeFilter)\n+- `name` as string. The name of the current recipe being checked. _The mod id will not be included_\nRemoves all recipes added by the provided mod. Recipes are excluded if the result of the exclusionFilter returns true for the recipe name.\n@@ -301,7 +315,7 @@ craftingTable.removeByModid(\"minecraft\", (name) => {\n`craftingTable.removeByRegex(regex);`\n-- `regex` &lt;string>\n+- `regex` as string\nRemoves all recipes that's name matches the regex string.\n" }, { "change_type": "DELETE", "old_path": "docs/1.18/content/vanilla/how_to/crafting_table.md", "new_path": null, "diff": "-# Crafting Table\n-\n-## Recipe Types\n-\n-There are three recipe types for crafting tables:\n-\n-- **Shapeless:** A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n-- **Shaped:** A shaped recipe is a recipe where the position of the items must be exact.\n-- **Shaped Mirrored:** A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n-\n-## Adding a Recipe\n-\n-_When adding a recipe, ensure that your recipe names are unique!_\n-\n-### Adding Shapeless Recipes\n-\n-`craftingTable.addShapeless(recipeName, output, ingredients, recipeFunction);`\n-\n-- `recipeName` &lt;string>\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `ingredients` <[IIngredient](/vanilla/api/ingredient/IIngredient)[]>\n-- `recipeFunction` (Optional) <[RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)>\n-\n-Adds a [shapeless](#recipe-types) recipe to the crafting table. As [shapeless](#recipe-types) recipes ignore the position of the input items, the ordering of the items when creating the recipe does not matter either.\n-\n-[Shapeless](#recipe-types) recipes can have up to 9 inputs, but those with 4 or less inputs can also be crafted in the 2x2 inventory grid.\n-\n-Crafting Table Recipes can also output more than 1 amount of the output item. This can be achieved by using the [IItemStack multiplication operator](/vanilla/api/items/IItemStack/#mul) on the output item.\n-\n-```zenscript\n-craftingTable.addShapeless(\"shapeless_example_1\", <item:minecraft:grass>, [<item:minecraft:wheat_seeds>, <item:minecraft:dirt>]);\n-\n-// A shapeless recipe can have up to 9 inputs\n-// This also demonstrates that more than one output can be used. In this example, 8 grass will be outputted.\n-craftingTable.addShapeless(\"shapeless_example_2\", <item:minecraft:grass> * 8, [<item:minecraft:wheat_seeds>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>]);\n-```\n-\n-_See [Using Recipe Functions](#using-recipe-functions) for examples on how to use recipe functions._\n-\n-### Adding Shaped and Shaped Mirrored Recipes\n-\n-`craftingTable.addShaped(recipeName, output, ingredients, recipeFunction);`\n-\n-`craftingTable.addShapedMirrored(recipeName, output, ingredients, recipeFunction);`\n-\n-- `recipeName` &lt;string>\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `ingredients` <[IIngredient](/vanilla/api/items/IIngredient)[][]>\n-- `recipeFunction` (Optional) <[RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)>\n-\n-Adds a [shaped](#recipe-types) (or [mirrored](#recipe-types), depending on the function) recipe to the crafting table. The ordering of the items when creating the recipe dictates the position of each item in the crafting grid.\n-\n-Making the recipe a [shaped mirrored](#recipe-types) recipe instead allows for more flexibility to the player when adding the items to the crafting grid.\n-\n-Both [shaped](#recipe-types) and [shaped mirrored](#recipe-types) recipes can be made to work in a 2x2 (inventory) or 3x3 crafting grid.\n-\n-Crafting Table Recipes can also output more than 1 amount of the output item. This can be achieved by using the [IItemStack multiplication operator](/vanilla/api/items/IItemStack/#mul) on the output item.\n-\n-```zenscript\n-// Adding a shaped recipe\n-craftingTable.addShaped(\"shaped_example_1\", <item:minecraft:arrow>, [\n- [<item:minecraft:diamond>, <item:minecraft:diamond>],\n- [<item:minecraft:air>, <item:minecraft:flint>],\n- [<item:minecraft:air>, <item:minecraft:flint>]\n-]);\n-\n-// Adding a shaped 2x2 recipe (this can also be done as mirrored)\n-craftingTable.addShaped(\"shaped_example_2\", <item:minecraft:diamond_axe>, [\n- [<item:minecraft:diamond>, <item:minecraft:diamond>],\n- [<item:minecraft:diamond>, <item:minecraft:stick>]\n-]);\n-\n-// Adding a shaped mirrored recipe\n-craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", <item:minecraft:arrow> * 2, [\n- [<item:minecraft:diamond>, <item:minecraft:diamond>],\n- [<item:minecraft:air>, <item:minecraft:flint>],\n- [<item:minecraft:air>, <item:minecraft:flint>]\n-]);\n-```\n-\n-_See [Using Recipe Functions](#using-recipe-functions) for examples on how to use recipe functions._\n-\n-## Using Recipe Functions\n-\n-A recipe function allows for a programatically determined output. This can be especially useful when you need some of the input item's information, like the item's damage or other NBT data.\n-\n-_As Shaped and Shaped Mirrored Recipes are similar, examples will only include Shaped Recipes. You may treat any example using `addShaped` as the same as using `addShapedMirrored`._\n-\n-### Using RecipeFunctionArray in a Shapeless Recipe\n-\n-`recipeFunction` <[RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)>\n-\n-`(usualOut as IItemStack, inputs as IItemStack[]) => {};`\n-\n-- `usualOut` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `inputs` <[IItemStack](/vanilla/api/items/IItemStack)[]> Array of inputs ordered the same as defined in the original recipe\n-\n-```zenscript\n-import crafttweaker.api.item.IItemStack;\n-\n-craftingTable.addShapeless(\"shapeless_func_example_1\", <item:minecraft:diamond> * 9, [<item:minecraft:dirt>, <item:minecraft:stick>], (usualOut as IItemStack, inputs as IItemStack[]) => {\n- // Checks if <item:minecraft:dirt> has a display name of \"totally real diamond block\"\n- if (inputs[0].displayName == \"totally real diamond block\") {\n- // Returns <item:minecraft:diamond> * 9\n- return usualOut;\n- }\n-\n- // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond\"\n- return <item:minecraft:clay>.setDisplayName(\"Diamond\");\n-});\n-```\n-\n-### Using RecipeFunctionMatrix in a Shaped/Mirrored Recipe\n-\n-`recipeFunction` <[RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)>\n-\n-`(usualOut as IItemStack, inputs as IItemStack[][]) => {};`\n-\n-- `usualOut` <[IItemStack](/vanilla/api/items/IItemStack)>\n-- `inputs` <[IItemStack](/vanilla/api/items/IItemStack)[][]> Array of inputs ordered the same as defined in the original recipe. An input can be found by defining the row, then the column (`inputs[0][1]` to get the item in the first row, second column).\n-\n-```zenscript\n-import crafttweaker.api.item.IItemStack;\n-\n-craftingTable.addShaped(\"shapeed_func_example_1\", <item:minecraft:diamond_block>, [\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n- ], (usualOut as IItemStack, inputs as IItemStack[][]) => {\n- var counter = 0;\n- // Checks if all <item:minecraft:clay_ball> has a display name of \"Diamond\"\n- for row in inputs {\n- for recipeItem in row {\n- if (<item:minecraft:clay_ball>.matches(recipeItem) && recipeItem.displayName == \"Diamond\") {\n- // If the recipe item is <item:minecraft:clay_ball> and has a name of \"Diamond\" increment the counter\n- counter++;\n- }\n- }\n- }\n-\n- // If we have 8 <item:minecraft:clay_ball> with a name of \"Diamond\"\n- if (counter == 8) {\n- if (inputs[1][1].displayName == \"Special Diamond\") {\n- // If <item:minecraft:diamond> has a display name of \"Special Diamond\"\n- // Return 2 <item:minecraft:diamond_block>\n- return usualOut * 2;\n- } else {\n- // Returns <item:minecraft:diamond_block>\n- return usualOut;\n- }\n- }\n-\n- // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond Block\"\n- return <item:minecraft:clay>.setDisplayName(\"Diamond Block\");\n- });\n-```\n-\n-### Advanced Usage\n-\n-#### Functions as a Variable\n-\n-Recipe functions can be assigned to a variable allowing you to ulitize the same function for multiple recipes easily.\n-\n-Shapeless:\n-\n-```zenscript\n-import crafttweaker.api.item.IItemStack;\n-\n-var exampleShapelessRecipeVarFunction as function(usualOut as IItemStack, inputs as IItemStack[]) as IItemStack = (usualOut, inputs) => {\n- if(inputs[0].displayName == \"totally real diamond block\" ){\n- return usualOut;\n- }\n-\n- return <item:minecraft:clay>.setDisplayName(\"Diamond\");\n-};\n-\n-// inputs[0] in exampleShapelessRecipeVarFunction will be <item:minecraft:dirt>\n-craftingTable.addShapeless(\"shapeless_varfunc_example_1\", <item:minecraft:diamond> * 9, [<item:minecraft:dirt>, <item:minecraft:stick>], exampleShapelessRecipeVarFunction);\n-\n-// inputs[0] in exampleShapelessRecipeVarFunction will be <item:minecraft:cobblestone>\n-craftingTable.addShapeless(\"shapeless_varfunc_example_2\", <item:minecraft:diamond> * 9, [<item:minecraft:cobblestone>, <item:minecraft:dirt>], exampleShapelessRecipeVarFunction);\n-```\n-\n-Shaped/Mirrored:\n-\n-```zenscript\n-import crafttweaker.api.item.IItemStack;\n-\n-var exampleShapedRecipeVarFunction as function(usualOut as IItemStack, inputs as IItemStack[][]) as IItemStack = (usualOut as IItemStack, inputs as IItemStack[][]) => {\n- var counter = 0;\n- // Checks if all <item:minecraft:clay_ball> has a display name of \"Diamond\"\n- for row in inputs {\n- for recipeItem in row {\n- if (<item:minecraft:clay_ball>.matches(recipeItem) && recipeItem.displayName == \"Diamond\") {\n- // If the recipe item is <item:minecraft:clay_ball> and has a name of \"Diamond\" increment the counter\n- counter++;\n- }\n- }\n- }\n-\n- // If we have 8 <item:minecraft:clay_ball> with a name of \"Diamond\"\n- if (counter == 8) {\n- if (inputs[1][1].displayName == \"Special Diamond\") {\n- // If <item:minecraft:diamond> has a display name of \"Special Diamond\"\n- // Return 2 <item:minecraft:diamond_block>\n- return usualOut * 2;\n- } else {\n- // Returns <item:minecraft:diamond_block>\n- return usualOut;\n- }\n- }\n-\n- // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond Block\"\n- return <item:minecraft:clay>.setDisplayName(\"Diamond Block\");\n-};\n-\n-craftingTable.addShaped(\"shapeed_func_example_3\", <item:minecraft:diamond_block>, [\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n-], exampleShapedRecipeVarFunction);\n-\n-craftingTable.addShaped(\"shapeed_func_example_4\", <item:minecraft:diamond_block>, [\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n- [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n-], exampleShapedRecipeVarFunction);\n-```\n-\n-## Removing a Recipe\n-\n-### Remove a Recipe by Name\n-\n-`craftingTable.removeByName(recipeName);`\n-\n-- `recipeName` &lt;string>\n-\n-Removes the recipe that matches the name provided.\n-\n-```zenscript\n-craftingTable.removeByName(\"minecraft:sugar_from_sugar_cane\");\n-```\n-\n-### Remove Recipes by Output\n-\n-`craftingTable.remove(output);`\n-\n-- `output` <[IItemStack](/vanilla/api/items/IItemStack)>\n-\n-Removes all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n-\n-```zenscript\n-craftingTable.remove(<item:minecraft:stick>);\n-```\n-\n-### Remove Recipes by Mod ID\n-\n-`craftingTable.removeByModid(modId);`\n-\n-- `modId` &lt;string>\n-\n-Removes all recipes added by the provided mod.\n-\n-```zenscript\n-craftingTable.removeByModid(\"minecraft\");\n-```\n-\n-#### Exclude Recipes From Mod ID Removal\n-\n-`craftingTable.removeByModid(modId, exclusionFilter);`\n-\n-- `modId` &lt;string>\n-- `exclusionFilter` <[RecipeFilter](/vanilla/api/recipe/RecipeFilter)>\n- - `name` &lt;string> The name of the current recipe being checked. _The mod id will not be included_\n-\n-Removes all recipes added by the provided mod. Recipes are excluded if the result of the exclusionFilter returns true for the recipe name.\n-\n-```zenscript\n-craftingTable.removeByModid(\"minecraft\", (name) => {\n- // Checks if the name of the recipe matches \"minecraft:red_bed_from_white_bed\"\n- return name == \"red_bed_from_white_bed\";\n-});\n-```\n-\n-Multiple recipes can also be excluded. One way this can be done is as follows:\n-\n-```zenscript\n-// An array of recipe names as strings\n-var minecraftExclusions as string[] = [\n- \"acacia_slab\",\n- \"red_bed_from_white_bed\",\n- \"sugar_from_sugar_cane\"\n-];\n-\n-craftingTable.removeByModid(\"minecraft\", (name) => {\n- return name in minecraftExclusions;\n-});\n-```\n-\n-### Remove Recipes by Regex\n-\n-`craftingTable.removeByRegex(regex);`\n-\n-- `regex` &lt;string>\n-\n-Removes all recipes that's name matches the regex string.\n-\n-```zenscript\n-// Removes recipes such as \"minecraft:green_carpet\", \"minecraft:lime_carpet_from_white_carpet\", and \"minecraft:white_carpet\"\n-craftingTable.removeByRegex(\"minecraft:.*_carpet\");\n-```\n-\n-### Remove All Recipes\n-\n-`craftingTable.removeAll();`\n-\n-Removes all crafting table recipes.\n-\n-```zenscript\n-craftingTable.removeAll();\n-```\n" }, { "change_type": "DELETE", "old_path": "docs/1.18/content/zencode/Scavenging.md", "new_path": null, "diff": "-### Scavenging from the Documentation\n-\n-## Introduction\n-\n-If you're reading this, it's probably not your first time around here. You're probably slightly familiar with the ZenCode category, and you might have started browsing classes.\n-\n-You've probably noticed something: Some files are *very* different. This is due to the fact that some docs are hand-written, and thus require some time to create, while the large bulk of the Documentation has been autogenerated by the original Java code and some programming magic.\n-\n-The aim of this hand-written page is to provide a more theoric explanation of how to search for a method, property from what you have access to.\n-\n-It will also dive into some [Programming](/zencode/Programming) concepts. Let's get started!\n" }, { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Recipes\": {\n\"Recipe Managers\": \"tutorial/Recipes/RecipeManagers.md\",\n\"Crafting\": {\n- \"Add Recipes\": {\n- \"Mirrored Shaped Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/MirroredShapedRecipes.md\",\n- \"Shaped Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/ShapedRecipes.md\",\n- \"Shapeless Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/ShapelessRecipes.md\"\n- }\n+ \"CraftingTable\" : \"tutorial/Recipes/Crafting/crafting_table.md\",\n+ \"Mirrored Shaped Recipes\": \"tutorial/Recipes/Crafting/MirroredShapedRecipes.md\",\n+ \"Shaped Recipes\": \"tutorial/Recipes/Crafting/ShapedRecipes.md\",\n+ \"Shapeless Recipes\": \"tutorial/Recipes/Crafting/ShapelessRecipes.md\"\n}\n},\n\"Software\": \"tutorial/Software.md\"\n},\n- \"Vanilla\": {\n- \"How to\": {\n- \"Crafting Table Recipes\": \"vanilla/how_to/crafting_table.md\"\n- }\n- },\n+ \"Vanilla\": {},\n\"Fabric\": {},\n\"Forge\": {},\n\"Mods\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Refactor vanilla how to cTable tutorials
139,068
07.11.2022 22:51:22
-3,600
4d9b64155507717ab0ae2ceb75845538853a68fe
Tranpose changes to 1.19
[ { "change_type": "RENAME", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/AddRecipes/MirroredShapedRecipes.md", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/MirroredShapedRecipes.md", "diff": "@@ -15,7 +15,7 @@ There is one difference between CraftTweaker mirrored recipes and Vanilla mirror\n## Adding Mirrored Shaped Recipes\n-Adding Mirrored Shaped Recipes is exactly the same as adding normal Shaped Recipes except it uses a different method, and it asks for the axis it should be mirrored on.\n+Adding Mirrored Shaped Recipes is exactly the same as adding normal Shaped Recipes except it uses a different method, and it asks for the [axis](/vanilla/api/recipe/MirrorAxis) it should be mirrored on.\nThe basic syntax for a mirrored shaped recipe is:\n" }, { "change_type": "RENAME", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/AddRecipes/ShapedRecipes.md", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/ShapedRecipes.md", "diff": "" }, { "change_type": "RENAME", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/AddRecipes/ShapelessRecipes.md", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/ShapelessRecipes.md", "diff": "" }, { "change_type": "ADD", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image1.PNG", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image1.PNG", "diff": "Binary files /dev/null and b/docs/1.19/content/tutorial/Recipes/Crafting/assets/image1.PNG differ\n" }, { "change_type": "ADD", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image2.png", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image2.png", "diff": "Binary files /dev/null and b/docs/1.19/content/tutorial/Recipes/Crafting/assets/image2.png differ\n" }, { "change_type": "ADD", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image3.png", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/assets/image3.png", "diff": "Binary files /dev/null and b/docs/1.19/content/tutorial/Recipes/Crafting/assets/image3.png differ\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/crafting_table.md", "diff": "+# Crafting Table\n+\n+## Recipe Types\n+\n+There are three recipe types for crafting tables:\n+\n+- [**Shapeless:**](/tutorials/Recipes/Crafting/ShapelessRecipes.md) A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n+- [**Shaped:**](/tutorials/Recipes/Crafting/ShapedRecipes.md) A shaped recipe is a recipe where the position of the items must be exact.\n+- [**Shaped Mirrored:**](/tutorials/Recipes/Crafting/ShapedMirrored.md) A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n+\n+## Adding a Recipe\n+\n+_When adding a recipe, ensure that your recipe names are unique!_\n+\n+### Adding Shapeless Recipes\n+\n+`craftingTable.addShapeless(recipeName, output, ingredients, recipeFunction);`\n+\n+- `recipeName`as string\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `ingredients` as [IIngredient](/vanilla/api/ingredient/IIngredient)[]\n+- `recipeFunction` (Optional) as [RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)\n+\n+Adds a [shapeless](#recipe-types) recipe to the crafting table. As [shapeless](#recipe-types) recipes ignore the position of the input items, the ordering of the items when creating the recipe does not matter either.\n+\n+[Shapeless](#recipe-types) recipes can have up to 9 inputs, but those with 4 or less inputs can also be crafted in the 2x2 inventory grid.\n+\n+Crafting Table Recipes can also output more than 1 amount of the output item. This can be achieved by using the [IItemStack multiplication operator](/vanilla/api/items/IItemStack/#mul) on the output item.\n+\n+```zenscript\n+craftingTable.addShapeless(\"shapeless_example_1\", <item:minecraft:grass>, [<item:minecraft:wheat_seeds>, <item:minecraft:dirt>]);\n+\n+// A shapeless recipe can have up to 9 inputs\n+// This also demonstrates that more than one output can be used. In this example, 8 grass will be outputted.\n+craftingTable.addShapeless(\"shapeless_example_2\", <item:minecraft:grass> * 8, [<item:minecraft:wheat_seeds>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>, <item:minecraft:dirt>]);\n+```\n+\n+_See [Using Recipe Functions](#using-recipe-functions) for examples on how to use recipe functions._\n+\n+### Adding Shaped and Shaped Mirrored Recipes\n+\n+`craftingTable.addShaped(recipeName, output, ingredients, recipeFunction);`\n+\n+`craftingTable.addShapedMirrored(recipeName, output, ingredients, recipeFunction);`\n+\n+- `recipeName` as string\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `ingredients` as [IIngredient](/vanilla/api/items/IIngredient)[][]\n+- `recipeFunction` (Optional) as [RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)\n+\n+Adds a [shaped](#recipe-types) (or [mirrored](#recipe-types), depending on the function) recipe to the crafting table. The ordering of the items when creating the recipe dictates the position of each item in the crafting grid.\n+\n+Making the recipe a [shaped mirrored](#recipe-types) recipe instead allows for more flexibility to the player when adding the items to the crafting grid.\n+\n+Both [shaped](#recipe-types) and [shaped mirrored](#recipe-types) recipes can be made to work in a 2x2 (inventory) or 3x3 crafting grid.\n+\n+Crafting Table Recipes can also output more than 1 amount of the output item. This can be achieved by using the [IItemStack multiplication operator](/vanilla/api/items/IItemStack/#mul) on the output item.\n+\n+```zenscript\n+// Adding a shaped recipe\n+craftingTable.addShaped(\"shaped_example_1\", <item:minecraft:arrow>, [\n+ [<item:minecraft:diamond>, <item:minecraft:diamond>],\n+ [<item:minecraft:air>, <item:minecraft:flint>],\n+ [<item:minecraft:air>, <item:minecraft:flint>]\n+]);\n+\n+// Adding a shaped 2x2 recipe (this can also be done as mirrored)\n+craftingTable.addShaped(\"shaped_example_2\", <item:minecraft:diamond_axe>, [\n+ [<item:minecraft:diamond>, <item:minecraft:diamond>],\n+ [<item:minecraft:diamond>, <item:minecraft:stick>]\n+]);\n+\n+// Adding a shaped mirrored recipe\n+\n+import crafttweaker.api.recipe.MirrorAxis;\n+\n+craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", MirrorAxis.DIAGONAL, <item:minecraft:arrow> * 2, [\n+ [<item:minecraft:diamond>, <item:minecraft:diamond>],\n+ [<item:minecraft:air>, <item:minecraft:flint>],\n+ [<item:minecraft:air>, <item:minecraft:flint>]\n+]);\n+```\n+\n+:::question[What is a valid mirroring recipe of the above example?]\n+\n+:::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n+:::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n+:::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n+\n+\n+:::\n+\n+_See [Using Recipe Functions](#using-recipe-functions) for examples on how to use recipe functions._\n+\n+## Using Recipe Functions\n+\n+A recipe function allows for a programatically determined output. This can be especially useful when you need some of the input item's information, like the item's damage or other NBT data.\n+\n+_As Shaped and Shaped Mirrored Recipes are similar, examples will only include Shaped Recipes. You may treat any example using `addShaped` as the same as using `addShapedMirrored`._\n+\n+### Using RecipeFunctionArray in a Shapeless Recipe\n+\n+`recipeFunction` <[RecipeFunctionArray](/vanilla/api/recipe/RecipeFunctionArray)>\n+\n+`(usualOut as IItemStack, inputs as IItemStack[]) => {};`\n+\n+- `usualOut` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `inputs` as [IItemStack](/vanilla/api/items/IItemStack)[] Array of inputs ordered the same as defined in the original recipe\n+\n+```zenscript\n+import crafttweaker.api.item.IItemStack;\n+\n+craftingTable.addShapeless(\"shapeless_func_example_1\", <item:minecraft:diamond> * 9, [<item:minecraft:dirt>, <item:minecraft:stick>], (usualOut as IItemStack, inputs as IItemStack[]) => {\n+ // Checks if <item:minecraft:dirt> has a display name of \"totally real diamond block\"\n+ if (inputs[0].displayName == \"totally real diamond block\") {\n+ // Returns <item:minecraft:diamond> * 9\n+ return usualOut;\n+ }\n+\n+ // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond\"\n+ return <item:minecraft:clay>.setDisplayName(\"Diamond\");\n+});\n+```\n+\n+### Using RecipeFunctionMatrix in a Shaped/Mirrored Recipe\n+\n+`recipeFunction` <[RecipeFunctionMatrix](/vanilla/api/recipe/RecipeFunctionMatrix)>\n+\n+`(usualOut as IItemStack, inputs as IItemStack[][]) => {};`\n+\n+- `usualOut` as [IItemStack](/vanilla/api/items/IItemStack)\n+- `inputs` as [IItemStack](/vanilla/api/items/IItemStack)[][]\n+\n+`inputs` is an array of inputs ordered the same as defined in the original recipe. An input can be found by defining the row, then the column (`inputs[0][1]` to get the item in the first row, second column).\n+\n+```zenscript\n+import crafttweaker.api.item.IItemStack;\n+\n+craftingTable.addShaped(\"shapeed_func_example_1\", <item:minecraft:diamond_block>, [\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n+ ], (usualOut as IItemStack, inputs as IItemStack[][]) => {\n+ var counter = 0;\n+ // Checks if all <item:minecraft:clay_ball> has a display name of \"Diamond\"\n+ for row in inputs {\n+ for recipeItem in row {\n+ if (<item:minecraft:clay_ball>.matches(recipeItem) && recipeItem.displayName == \"Diamond\") {\n+ // If the recipe item is <item:minecraft:clay_ball> and has a name of \"Diamond\" increment the counter\n+ counter++;\n+ }\n+ }\n+ }\n+\n+ // If we have 8 <item:minecraft:clay_ball> with a name of \"Diamond\"\n+ if (counter == 8) {\n+ if (inputs[1][1].displayName == \"Special Diamond\") {\n+ // If <item:minecraft:diamond> has a display name of \"Special Diamond\"\n+ // Return 2 <item:minecraft:diamond_block>\n+ return usualOut * 2;\n+ } else {\n+ // Returns <item:minecraft:diamond_block>\n+ return usualOut;\n+ }\n+ }\n+\n+ // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond Block\"\n+ return <item:minecraft:clay>.setDisplayName(\"Diamond Block\");\n+ });\n+```\n+\n+### Advanced Usage\n+\n+#### Functions as a Variable\n+\n+Recipe functions can be assigned to a variable allowing you to ulitize the same function for multiple recipes easily.\n+\n+Shapeless:\n+\n+```zenscript\n+import crafttweaker.api.item.IItemStack;\n+\n+var exampleShapelessRecipeVarFunction as function(usualOut as IItemStack, inputs as IItemStack[]) as IItemStack = (usualOut, inputs) => {\n+ if(inputs[0].displayName == \"totally real diamond block\" ){\n+ return usualOut;\n+ }\n+\n+ return <item:minecraft:clay>.setDisplayName(\"Diamond\");\n+};\n+\n+// inputs[0] in exampleShapelessRecipeVarFunction will be <item:minecraft:dirt>\n+craftingTable.addShapeless(\"shapeless_varfunc_example_1\", <item:minecraft:diamond> * 9, [<item:minecraft:dirt>, <item:minecraft:stick>], exampleShapelessRecipeVarFunction);\n+\n+// inputs[0] in exampleShapelessRecipeVarFunction will be <item:minecraft:cobblestone>\n+craftingTable.addShapeless(\"shapeless_varfunc_example_2\", <item:minecraft:diamond> * 9, [<item:minecraft:cobblestone>, <item:minecraft:dirt>], exampleShapelessRecipeVarFunction);\n+```\n+\n+Shaped/Mirrored:\n+\n+```zenscript\n+import crafttweaker.api.item.IItemStack;\n+\n+var exampleShapedRecipeVarFunction as function(usualOut as IItemStack, inputs as IItemStack[][]) as IItemStack = (usualOut as IItemStack, inputs as IItemStack[][]) => {\n+ var counter = 0;\n+ // Checks if all <item:minecraft:clay_ball> has a display name of \"Diamond\"\n+ for row in inputs {\n+ for recipeItem in row {\n+ if (<item:minecraft:clay_ball>.matches(recipeItem) && recipeItem.displayName == \"Diamond\") {\n+ // If the recipe item is <item:minecraft:clay_ball> and has a name of \"Diamond\" increment the counter\n+ counter++;\n+ }\n+ }\n+ }\n+\n+ // If we have 8 <item:minecraft:clay_ball> with a name of \"Diamond\"\n+ if (counter == 8) {\n+ if (inputs[1][1].displayName == \"Special Diamond\") {\n+ // If <item:minecraft:diamond> has a display name of \"Special Diamond\"\n+ // Return 2 <item:minecraft:diamond_block>\n+ return usualOut * 2;\n+ } else {\n+ // Returns <item:minecraft:diamond_block>\n+ return usualOut;\n+ }\n+ }\n+\n+ // Otherwise, return <item:minecraft:clay> with a display name of \"Diamond Block\"\n+ return <item:minecraft:clay>.setDisplayName(\"Diamond Block\");\n+};\n+\n+craftingTable.addShaped(\"shapeed_func_example_3\", <item:minecraft:diamond_block>, [\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n+], exampleShapedRecipeVarFunction);\n+\n+craftingTable.addShaped(\"shapeed_func_example_4\", <item:minecraft:diamond_block>, [\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:diamond>, <item:minecraft:clay_ball>],\n+ [<item:minecraft:clay_ball>, <item:minecraft:clay_ball>, <item:minecraft:clay_ball>]\n+], exampleShapedRecipeVarFunction);\n+```\n+\n+## Removing a Recipe\n+\n+### Remove a Recipe by Name\n+\n+`craftingTable.removeByName(recipeName);`\n+\n+- `recipeName` as string\n+\n+Removes the recipe that matches the name provided.\n+\n+```zenscript\n+craftingTable.removeByName(\"minecraft:sugar_from_sugar_cane\");\n+```\n+\n+### Remove Recipes by Output\n+\n+`craftingTable.remove(output);`\n+\n+- `output` as [IItemStack](/vanilla/api/items/IItemStack)\n+\n+Removes all recipes where the output result is the provided [IItemStack](/vanilla/api/items/IItemStack).\n+\n+```zenscript\n+craftingTable.remove(<item:minecraft:stick>);\n+```\n+\n+### Remove Recipes by Mod ID\n+\n+`craftingTable.removeByModid(modId);`\n+\n+- `modId` as string\n+\n+Removes all recipes added by the provided mod.\n+\n+```zenscript\n+craftingTable.removeByModid(\"minecraft\");\n+```\n+\n+#### Exclude Recipes From Mod ID Removal\n+\n+`craftingTable.removeByModid(modId, exclusionFilter);`\n+\n+- `modId` as string\n+- `exclusionFilter` as [RecipeFilter](/vanilla/api/recipe/RecipeFilter)\n+- `name` as string. The name of the current recipe being checked. _The mod id will not be included_\n+\n+Removes all recipes added by the provided mod. Recipes are excluded if the result of the exclusionFilter returns true for the recipe name.\n+\n+```zenscript\n+craftingTable.removeByModid(\"minecraft\", (name) => {\n+ // Checks if the name of the recipe matches \"minecraft:red_bed_from_white_bed\"\n+ return name == \"red_bed_from_white_bed\";\n+});\n+```\n+\n+Multiple recipes can also be excluded. One way this can be done is as follows:\n+\n+```zenscript\n+// An array of recipe names as strings\n+var minecraftExclusions as string[] = [\n+ \"acacia_slab\",\n+ \"red_bed_from_white_bed\",\n+ \"sugar_from_sugar_cane\"\n+];\n+\n+craftingTable.removeByModid(\"minecraft\", (name) => {\n+ return name in minecraftExclusions;\n+});\n+```\n+\n+### Remove Recipes by Regex\n+\n+`craftingTable.removeByRegex(regex);`\n+\n+- `regex` as string\n+\n+Removes all recipes that's name matches the regex string.\n+\n+```zenscript\n+// Removes recipes such as \"minecraft:green_carpet\", \"minecraft:lime_carpet_from_white_carpet\", and \"minecraft:white_carpet\"\n+craftingTable.removeByRegex(\"minecraft:.*_carpet\");\n+```\n+\n+### Remove All Recipes\n+\n+`craftingTable.removeAll();`\n+\n+Removes all crafting table recipes.\n+\n+```zenscript\n+craftingTable.removeAll();\n+```\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/docs.json", "new_path": "docs/1.19/docs.json", "diff": "\"Recipes\": {\n\"Recipe Managers\": \"tutorial/Recipes/RecipeManagers.md\",\n\"Crafting\": {\n- \"Add Recipes\": {\n- \"Mirrored Shaped Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/MirroredShapedRecipes.md\",\n- \"Shaped Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/ShapedRecipes.md\",\n- \"Shapeless Recipes\": \"tutorial/Recipes/Crafting/AddRecipes/ShapelessRecipes.md\"\n- }\n+ \"CraftingTable\" : \"tutorial/Recipes/Crafting/crafting_table.md\",\n+ \"Mirrored Shaped Recipes\": \"tutorial/Recipes/Crafting/MirroredShapedRecipes.md\",\n+ \"Shaped Recipes\": \"tutorial/Recipes/Crafting/ShapedRecipes.md\",\n+ \"Shapeless Recipes\": \"tutorial/Recipes/Crafting/ShapelessRecipes.md\"\n}\n},\n\"Software\": \"tutorial/Software.md\"\n},\n- \"Vanilla\": {\n- \"How to\": {\n- \"Crafting Table Recipes\": \"vanilla/how_to/crafting_table.md\"\n- }\n- },\n+ \"Vanilla\": {},\n\"Fabric\": {},\n\"Forge\": {},\n\"Mods\": {\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Tranpose changes to 1.19
139,068
07.11.2022 23:26:51
-3,600
0ed1131f5363cbe809580951cf4bb1e513bb9912
Fix questions?
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/tutorial/Recipes/Crafting/crafting_table.md", "new_path": "docs/1.18/content/tutorial/Recipes/Crafting/crafting_table.md", "diff": "@@ -83,9 +83,9 @@ craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", MirrorAxis.DIAGONAL,\n:::question[What is a valid mirroring recipe of the above example?]\n-:::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n-:::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n-:::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n+::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n+::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n+::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n:::\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/crafting_table.md", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/crafting_table.md", "diff": "@@ -83,9 +83,9 @@ craftingTable.addShapedMirrored(\"shaped_mirror_example_1\", MirrorAxis.DIAGONAL,\n:::question[What is a valid mirroring recipe of the above example?]\n-:::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n-:::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n-:::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n+::answer[[!image](/tutorial/Recipes/Crafting/assets/image1.png)]{correct=false id=1}\n+::answer[[!image2](/tutorial/Recipes/Crafting/assets/image2.png)]{correct=true id=2}\n+::answer[[!image3](/tutorial/Recipes/Crafting/assets/image3.png)]{correct=false id=3}\n:::\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix questions?
139,068
09.11.2022 20:58:51
-3,600
44e30035d7a39a690ed95dc13fe7cc2155a7ca6d
Apparently I forgot how to do this
[ { "change_type": "MODIFY", "old_path": "docs/1.19/content/tutorial/Recipes/Crafting/crafting_table.md", "new_path": "docs/1.19/content/tutorial/Recipes/Crafting/crafting_table.md", "diff": "There are three recipe types for crafting tables:\n-- [**Shapeless:**](/tutorial/Recipes/Crafting/ShapelessRecipes.md) A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n-- [**Shaped:**](/tutorial/Recipes/Crafting/ShapedRecipes.md) A shaped recipe is a recipe where the position of the items must be exact.\n-- [**Shaped Mirrored:**](/tutorial/Recipes/Crafting/ShapedMirrored.md) A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n+- [**Shapeless:**](/tutorial/Recipes/Crafting/ShapelessRecipes) A shapeless recipe is a recipe where the position of the input items in the crafting grid does not matter.\n+- [**Shaped:**](/tutorial/Recipes/Crafting/ShapedRecipes) A shaped recipe is a recipe where the position of the items must be exact.\n+- [**Shaped Mirrored:**](/tutorial/Recipes/Crafting/ShapedMirrored) A mirrored recipe is like shaped recipes but mirrors the recipe along the horizontal or vertical axes.\n## Adding a Recipe\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Apparently I forgot how to do this
139,068
11.11.2022 22:13:31
-3,600
d1998941d841695518122d3e86641d6e87df4f72
Update zencode page Gotta remind silk to do the docs
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/zencode/ZenCode.md", "new_path": "docs/1.18/content/zencode/ZenCode.md", "diff": "@@ -18,6 +18,4 @@ General programming concepts:\nScripting concepts :\n-- [CraftingTable](/vanilla/how_to/crafting_table) - Graded D\n-- [ContentTweaker](/mods/contenttweaker/SimpleWalkthrough) - Graded A\n-\n+- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table.md) - Graded D\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/content/zencode/ZenCode.md", "new_path": "docs/1.19/content/zencode/ZenCode.md", "diff": "@@ -16,8 +16,6 @@ General programming concepts:\n- [Objects](/zencode/Objects) - Graded C\n- [Functions](/zencode/Functions)\n-Scripting concepts :\n-\n-- [CraftingTable](/vanilla/how_to/crafting_table) - Graded D\n-- [ContentTweaker](/mods/contenttweaker/SimpleWalkthrough) - Graded A\n+Scripting Applications:\n+- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table.md) - Graded D\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update zencode page Gotta remind silk to do the docs
139,068
12.11.2022 15:22:27
-3,600
90f662e0528d876bd237c21ea6b99f7dcec79c91
Patch up TraitBuilder docs
[ { "change_type": "MODIFY", "old_path": "docs/1.12/content/Mods/ContentTweaker/Tinkers_Construct/TraitBuilder.md", "new_path": "docs/1.12/content/Mods/ContentTweaker/Tinkers_Construct/TraitBuilder.md", "diff": "@@ -178,6 +178,7 @@ Parameters:\n- A [Trait Representation](/Mods/ContentTweaker/Tinkers_Construct/Trait/) representing the currently used `trait`.\n- An [IItemStack](/Vanilla/Items/IItemStack/) representing the used `tool`\n- An [IWorld](/Vanilla/World/IWorld/) representing the `world`\n+- An [IBlockPos](/Vanilla/World/IBlockPos/) representing the `blockPos`\n- An [IBlockState](/Vanilla/Blocks/IBlockState/) representing the broken `block`\n- An [IEntityLivingBase](/Vanilla/Entities/IEntityLivingBase/) representing the `miner`\n- A bool representing if the mining `wasEffective`\n@@ -186,7 +187,7 @@ __Returns nothing.__\nCreated using:\n```zenscript\n-myTrait.afterBlockBreak = function(trait, tool, world, blockstate, miner, wasEffective) {\n+myTrait.afterBlockBreak = function(trait, tool, world, blockstate, blockPos, miner, wasEffective) {\n//CODE\n};\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Patch up TraitBuilder docs
139,068
12.11.2022 15:23:18
-3,600
e6f5519776f6a62227967c01f2b141a348681d22
Actually fix the ZenCode pages this time
[ { "change_type": "MODIFY", "old_path": "docs/1.18/content/zencode/ZenCode.md", "new_path": "docs/1.18/content/zencode/ZenCode.md", "diff": "@@ -18,4 +18,4 @@ General programming concepts:\nScripting concepts :\n-- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table.md) - Graded D\n+- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table) - Graded D\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/content/zencode/ZenCode.md", "new_path": "docs/1.19/content/zencode/ZenCode.md", "diff": "@@ -18,4 +18,4 @@ General programming concepts:\nScripting Applications:\n-- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table.md) - Graded D\n+- [CraftingTable](/tutorial/Recipes/Crafting/crafting_table) - Graded D\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Actually fix the ZenCode pages this time
139,068
12.11.2022 19:16:59
-3,600
4f684fc9f213185704b760ea226df4cea1fed1af
Add Farmers Delight documentation
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"ArmoreableMobs\" : {},\n\"Botania\" : {},\n\"Createtweaker\" : {},\n+ \"FarmersDelight\" : {},\n\"Immersiveengineering\" : {},\n\"Initialinventory\" : {},\n\"JEITweaker\" : {},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"FarmersDelight\":{\"CookingPot\":\"mods/farmersdelight/CookingPot.md\",\"CookingPotRecipeBookTab\":\"mods/farmersdelight/CookingPotRecipeBookTab.md\",\"CuttingBoard\":\"mods/farmersdelight/CuttingBoard.md\",\"ToolActionIngredient\":\"mods/farmersdelight/ToolActionIngredient.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.json", "diff": "+{\"path\":\"mods/farmersdelight/CookingPot.md\",\"zenCodeName\":\"mods.farmersdelight.CookingPot\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.md", "diff": "+# CookingPot\n+\n+Farmer's Delight Cooking Pot recipes.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.CookingPot;\n+```\n+\n+\n+## Implemented Interfaces\n+CookingPot implements the following interfaces. That means all methods defined in these interfaces are also available in CookingPot\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+```zenscript\n+CookingPot.addJsonRecipe(name as string, mapData as MapData)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------|\n+| name | string |\n+| mapData | [MapData](/vanilla/api/data/MapData) |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+Add a cooking pot recipe.\n+\n+```zenscript\n+// CookingPot.addRecipe(name as string, output as IItemStack, inputs as IIngredient[], cookingPotRecipeBookTab as CookingPotRecipeBookTab, container as IItemStack, experience as float, cookTime as int)\n+\n+<recipetype:farmersdelight:cooking>.addRecipe(\"cooking_pot_test\", <item:minecraft:enchanted_golden_apple>, [<item:minecraft:gold_block>], <constant:farmersdelight:cooking_pot_recipe_book_tab:misc>, <item:minecraft:apple>, 100, 400);\n+```\n+\n+| Parameter | Type | Description | Optional | Default Value |\n+|-------------------------|-------------------------------------------------------------------------|---------------------------|----------|---------------|\n+| name | string | Name of the recipe to add | false | |\n+| output | [IItemStack](/vanilla/api/item/IItemStack) | Output item | false | |\n+| inputs | [IIngredient](/vanilla/api/ingredient/IIngredient)[] | Input ingredients | false | |\n+| cookingPotRecipeBookTab | [CookingPotRecipeBookTab](/mods/farmersdelight/CookingPotRecipeBookTab) | | true | |\n+| container | [IItemStack](/vanilla/api/item/IItemStack) | Container item | true | |\n+| experience | float | Experience granted | true | 0.0 |\n+| cookTime | int | Cooking time | true | 200 |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// CookingPot.getAllRecipes() as stdlib.List<T>\n+\n+<recipetype:farmersdelight:cooking>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+CookingPot.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| name | string |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// CookingPot.getRecipeMap() as T[ResourceLocation]\n+\n+<recipetype:farmersdelight:cooking>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+CookingPot.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+```zenscript\n+CookingPot.remove(output as IIngredient)\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+```zenscript\n+// CookingPot.removeAll()\n+\n+<recipetype:farmersdelight:cooking>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+```zenscript\n+CookingPot.removeByInput(input as IItemStack)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+```zenscript\n+CookingPot.removeByModid(modid as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| modid | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+```zenscript\n+CookingPot.removeByName(names as string[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------|\n+| names | string[] |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+```zenscript\n+CookingPot.removeByRegex(regex as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| regex | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter |\n+|------------|---------------------------------------------------------------|------------|------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPotRecipeBookTab.json", "diff": "+{\"path\":\"mods/farmersdelight/CookingPotRecipeBookTab.md\",\"zenCodeName\":\"mods.farmersdelight.CookingPotRecipeBookTab\",\"searchTerms\":[\"<constant:farmersdelight:cooking_pot_recipe_book_tab:meals>\",\"<constant:farmersdelight:cooking_pot_recipe_book_tab:drinks>\",\"<constant:farmersdelight:cooking_pot_recipe_book_tab:misc>\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPotRecipeBookTab.md", "diff": "+# CookingPotRecipeBookTab\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.CookingPotRecipeBookTab;\n+```\n+\n+\n+## Enum Constants\n+\n+CookingPotRecipeBookTab is an enum. It has 3 enum constants. They are accessible using the code below.\n+\n+```zenscript\n+<constant:farmersdelight:cooking_pot_recipe_book_tab:meals>\n+<constant:farmersdelight:cooking_pot_recipe_book_tab:drinks>\n+<constant:farmersdelight:cooking_pot_recipe_book_tab:misc>\n+```\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.json", "diff": "+{\"path\":\"mods/farmersdelight/CuttingBoard.md\",\"zenCodeName\":\"mods.farmersdelight.CuttingBoard\",\"searchTerms\":[\"removeRecipe\",\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.md", "diff": "+# CuttingBoard\n+\n+Farmer's Delight Cutting Board recipes.\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.CuttingBoard;\n+```\n+\n+\n+## Implemented Interfaces\n+CuttingBoard implements the following interfaces. That means all methods defined in these interfaces are also available in CuttingBoard\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+```zenscript\n+CuttingBoard.addJsonRecipe(name as string, mapData as MapData)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------|\n+| name | string |\n+| mapData | [MapData](/vanilla/api/data/MapData) |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+Add a cutting board recipe.\n+\n+```zenscript\n+// CuttingBoard.addRecipe(name as string, input as IIngredient, results as Percentaged<IItemStack>[], tool as IIngredient, sound as string)\n+\n+<recipetype:farmersdelight:cutting>.addRecipe(\"cutting_board_test\", <item:minecraft:gravel>, [<item:minecraft:flint>], <item:minecraft:string>, \"minecraft:block.gravel.break\");\n+```\n+\n+| Parameter | Type | Description | Optional |\n+|-----------|---------------------------------------------------------------------------------------------------------|---------------------------|----------|\n+| name | string | Name of the recipe to add | false |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | Input ingredient | false |\n+| results | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | Output items | false |\n+| tool | [IIngredient](/vanilla/api/ingredient/IIngredient) | Tool ingredient | false |\n+| sound | string | Sound event name | true |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// CuttingBoard.getAllRecipes() as stdlib.List<T>\n+\n+<recipetype:farmersdelight:cutting>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+CuttingBoard.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| name | string |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// CuttingBoard.getRecipeMap() as T[ResourceLocation]\n+\n+<recipetype:farmersdelight:cutting>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+CuttingBoard.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+```zenscript\n+CuttingBoard.remove(output as IIngredient)\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+```zenscript\n+// CuttingBoard.removeAll()\n+\n+<recipetype:farmersdelight:cutting>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+```zenscript\n+CuttingBoard.removeByInput(input as IItemStack)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+```zenscript\n+CuttingBoard.removeByModid(modid as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| modid | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+```zenscript\n+CuttingBoard.removeByName(names as string[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------|\n+| names | string[] |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+```zenscript\n+CuttingBoard.removeByRegex(regex as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| regex | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeRecipe}\n+\n+Remove a cutting board recipe with multiple outputs.\n+\n+```zenscript\n+// CuttingBoard.removeRecipe(outputs as IItemStack[])\n+\n+<recipetype:farmersdelight:cutting>.removeRecipe([<item:farmersdelight:cooked_salmon_slice> * 2, <item:minecraft:bone_meal>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|----------------------------------------------|--------------|\n+| outputs | [IItemStack](/vanilla/api/item/IItemStack)[] | Output items |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter |\n+|------------|---------------------------------------------------------------|------------|------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/ToolActionIngredient.json", "diff": "+{\"path\":\"mods/farmersdelight/ToolActionIngredient.md\",\"zenCodeName\":\"mods.farmersdelight.ToolActionIngredient\",\"searchTerms\":[\"modifyShiftTooltip\",\"reuse\",\"onlyIf\",\"setBurnTime\",\"addShiftTooltip\",\"mul\",\"transformDamage\",\"empty\",\"removeTooltip\",\"transform\",\"removeGlobalAttributeModifier\",\"modifyTooltip\",\"burnTime\",\"clearTooltip\",\"only\",\"transformReplace\",\"asIIngredientWithAmount\",\"removeGlobalAttribute\",\"transformCustom\",\"crafttweaker.api.ingredient.IIngredient\",\"isEmpty\",\"onlyDamaged\",\"addTooltip\",\"matches\",\"anyDamage\",\"addGlobalAttributeModifier\",\"contains\",\"onlyDamagedAtLeast\",\"getRemainingItem\",\"onlyDamagedAtMost\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/ToolActionIngredient.md", "diff": "+# ToolActionIngredient\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.farmersdelight.ToolActionIngredient;\n+```\n+\n+\n+## Implemented Interfaces\n+ToolActionIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in ToolActionIngredient\n+\n+- [IIngredient](/vanilla/api/ingredient/IIngredient)\n+\n+## Casters\n+\n+| Result Type | Is Implicit |\n+|------------------------------------------------------------------------|-------------|\n+| [IData](/vanilla/api/data/IData) | true |\n+| [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount) | true |\n+| [MapData](/vanilla/api/data/MapData) | true |\n+\n+## Methods\n+\n+:::group{name=addGlobalAttributeModifier}\n+\n+```zenscript\n+ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|------------------------------------------------------------------------|\n+| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n+| name | string |\n+| value | double |\n+| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=addGlobalAttributeModifier}\n+\n+```zenscript\n+ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, uuid as invalid, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|------------------------------------------------------------------------|\n+| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n+| uuid | **invalid** |\n+| name | string |\n+| value | double |\n+| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=addGlobalAttributeModifier}\n+\n+```zenscript\n+ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, uuid as string, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|------------------------------------------------------------------------|\n+| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n+| uuid | string |\n+| name | string |\n+| value | double |\n+| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=addShiftTooltip}\n+\n+```zenscript\n+ToolActionIngredient.addShiftTooltip(content as Component, showMessage as Component)\n+```\n+\n+| Parameter | Type | Optional |\n+|-------------|------------------------------------------|----------|\n+| content | [Component](/vanilla/api/text/Component) | false |\n+| showMessage | [Component](/vanilla/api/text/Component) | true |\n+\n+\n+:::\n+\n+:::group{name=addTooltip}\n+\n+```zenscript\n+ToolActionIngredient.addTooltip(content as Component)\n+```\n+\n+| Parameter | Type |\n+|-----------|------------------------------------------|\n+| content | [Component](/vanilla/api/text/Component) |\n+\n+\n+:::\n+\n+:::group{name=anyDamage}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+// ToolActionIngredient.anyDamage() as IngredientConditioned<IIngredient>\n+\n+myToolActionIngredient.anyDamage();\n+```\n+\n+:::\n+\n+:::group{name=asIIngredientWithAmount}\n+\n+Return Type: [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)\n+\n+```zenscript\n+// ToolActionIngredient.asIIngredientWithAmount() as IIngredientWithAmount\n+\n+myToolActionIngredient.asIIngredientWithAmount();\n+```\n+\n+:::\n+\n+:::group{name=clearTooltip}\n+\n+```zenscript\n+ToolActionIngredient.clearTooltip(leaveName as boolean)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|---------|----------|---------------|\n+| leaveName | boolean | true | false |\n+\n+\n+:::\n+\n+:::group{name=contains}\n+\n+Return Type: boolean\n+\n+```zenscript\n+ToolActionIngredient.contains(ingredient as IIngredient) as boolean\n+```\n+\n+| Parameter | Type |\n+|------------|----------------------------------------------------|\n+| ingredient | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=getRemainingItem}\n+\n+Return Type: [IItemStack](/vanilla/api/item/IItemStack)\n+\n+```zenscript\n+ToolActionIngredient.getRemainingItem(stack as IItemStack) as IItemStack\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=isEmpty}\n+\n+Return Type: boolean\n+\n+```zenscript\n+// ToolActionIngredient.isEmpty() as boolean\n+\n+myToolActionIngredient.isEmpty();\n+```\n+\n+:::\n+\n+:::group{name=matches}\n+\n+Return Type: boolean\n+\n+```zenscript\n+ToolActionIngredient.matches(stack as IItemStack) as boolean\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| stack | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=modifyShiftTooltip}\n+\n+```zenscript\n+ToolActionIngredient.modifyShiftTooltip(shiftedFunction as ITooltipFunction, unshiftedFunction as ITooltipFunction)\n+```\n+\n+| Parameter | Type | Optional |\n+|-------------------|----------------------------------------------------------------|----------|\n+| shiftedFunction | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) | false |\n+| unshiftedFunction | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) | true |\n+\n+\n+:::\n+\n+:::group{name=modifyTooltip}\n+\n+```zenscript\n+ToolActionIngredient.modifyTooltip(function as ITooltipFunction)\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------------------|\n+| function | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) |\n+\n+\n+:::\n+\n+:::group{name=mul}\n+\n+Return Type: [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)\n+\n+```zenscript\n+ToolActionIngredient.mul(amount as int) as IIngredientWithAmount\n+```\n+\n+| Parameter | Type |\n+|-----------|------|\n+| amount | int |\n+\n+\n+:::\n+\n+:::group{name=only}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.only(condition as IIngredientCondition<IIngredient>) as IngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type |\n+|-----------|------------------------------------------------------------------------------------------------------------------------------------------|\n+| condition | [IIngredientCondition](/vanilla/api/ingredient/condition/IIngredientCondition)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt; |\n+\n+\n+:::\n+\n+:::group{name=onlyDamaged}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+// ToolActionIngredient.onlyDamaged() as IngredientConditioned<IIngredient>\n+\n+myToolActionIngredient.onlyDamaged();\n+```\n+\n+:::\n+\n+:::group{name=onlyDamagedAtLeast}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.onlyDamagedAtLeast(minDamage as int) as IngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type |\n+|-----------|------|\n+| minDamage | int |\n+\n+\n+:::\n+\n+:::group{name=onlyDamagedAtMost}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.onlyDamagedAtMost(maxDamage as int) as IngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type |\n+|-----------|------|\n+| maxDamage | int |\n+\n+\n+:::\n+\n+:::group{name=onlyIf}\n+\n+Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.onlyIf(uid as string, function as Predicate<IItemStack>) as IngredientConditioned<IIngredient>\n+```\n+\n+| Parameter | Type | Optional |\n+|-----------|-------------------------------------------------------------|----------|\n+| uid | string | false |\n+| function | Predicate&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | true |\n+\n+\n+:::\n+\n+:::group{name=removeGlobalAttribute}\n+\n+```zenscript\n+ToolActionIngredient.removeGlobalAttribute(attribute as Attribute, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------------------|\n+| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=removeGlobalAttributeModifier}\n+\n+```zenscript\n+ToolActionIngredient.removeGlobalAttributeModifier(uuid as invalid, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------------------|\n+| uuid | **invalid** |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=removeGlobalAttributeModifier}\n+\n+```zenscript\n+ToolActionIngredient.removeGlobalAttributeModifier(uuid as string, slotTypes as EquipmentSlot[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------------------|\n+| uuid | string |\n+| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n+\n+\n+:::\n+\n+:::group{name=removeTooltip}\n+\n+```zenscript\n+ToolActionIngredient.removeTooltip(regex as string)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| regex | string |\n+\n+\n+:::\n+\n+:::group{name=reuse}\n+\n+Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+// ToolActionIngredient.reuse() as IIngredientTransformed<IIngredient>\n+\n+myToolActionIngredient.reuse();\n+```\n+\n+:::\n+\n+:::group{name=setBurnTime}\n+\n+```zenscript\n+ToolActionIngredient.setBurnTime(time as int)\n+```\n+\n+| Parameter | Type |\n+|-----------|------|\n+| time | int |\n+\n+\n+:::\n+\n+:::group{name=transform}\n+\n+Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as IIngredientTransformed<IIngredient>\n+```\n+\n+| Parameter | Type |\n+|-------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n+| transformer | [IIngredientTransformer](/vanilla/api/ingredient/transform/IIngredientTransformer)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt; |\n+\n+\n+:::\n+\n+:::group{name=transformCustom}\n+\n+Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as IIngredientTransformed<IIngredient>\n+```\n+\n+| Parameter | Type | Optional |\n+|-----------|-------------------------------------------------------------------------------------------------------|----------|\n+| uid | string | false |\n+| function | Function&lt;[IItemStack](/vanilla/api/item/IItemStack),[IItemStack](/vanilla/api/item/IItemStack)&gt; | true |\n+\n+\n+:::\n+\n+:::group{name=transformDamage}\n+\n+Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.transformDamage(amount as int) as IIngredientTransformed<IIngredient>\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|------|----------|---------------|\n+| amount | int | true | 1 |\n+\n+\n+:::\n+\n+:::group{name=transformReplace}\n+\n+Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n+\n+```zenscript\n+ToolActionIngredient.transformReplace(replaceWith as IItemStack) as IIngredientTransformed<IIngredient>\n+```\n+\n+| Parameter | Type |\n+|-------------|--------------------------------------------|\n+| replaceWith | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+\n+## Operators\n+\n+:::group{name=CONTAINS}\n+\n+```zenscript\n+ingredient as IIngredient in myToolActionIngredient\n+```\n+\n+:::\n+\n+:::group{name=MUL}\n+\n+```zenscript\n+myToolActionIngredient * amount as int\n+```\n+\n+:::\n+\n+:::group{name=OR}\n+\n+```zenscript\n+myToolActionIngredient | other as IIngredient\n+```\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter |\n+|----------|---------|------------|------------|\n+| burnTime | void | false | true |\n+| empty | boolean | true | false |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add Farmers Delight documentation
139,068
12.11.2022 19:23:51
-3,600
30133c0cbc1ef8c2f1654828b8ccbe1077a56ec0
Update the FD docs a tiny bit
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.md", "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.md", "diff": "@@ -42,11 +42,11 @@ Add a cooking pot recipe.\n```\n| Parameter | Type | Description | Optional | Default Value |\n-|-------------------------|-------------------------------------------------------------------------|---------------------------|----------|---------------|\n+|-------------------------|-------------------------------------------------------------------------|-------------------------------------------|----------|---------------|\n| name | string | Name of the recipe to add | false | |\n| output | [IItemStack](/vanilla/api/item/IItemStack) | Output item | false | |\n| inputs | [IIngredient](/vanilla/api/ingredient/IIngredient)[] | Input ingredients | false | |\n-| cookingPotRecipeBookTab | [CookingPotRecipeBookTab](/mods/farmersdelight/CookingPotRecipeBookTab) | | true | |\n+| cookingPotRecipeBookTab | [CookingPotRecipeBookTab](/mods/farmersdelight/CookingPotRecipeBookTab) | The Cooking Pot tab to add this recipe to | true | |\n| container | [IItemStack](/vanilla/api/item/IItemStack) | Container item | true | |\n| experience | float | Experience granted | true | 0.0 |\n| cookTime | int | Cooking time | true | 200 |\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.md", "new_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.md", "diff": "@@ -42,11 +42,11 @@ Add a cutting board recipe.\n```\n| Parameter | Type | Description | Optional |\n-|-----------|---------------------------------------------------------------------------------------------------------|---------------------------|----------|\n+|-----------|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|----------|\n| name | string | Name of the recipe to add | false |\n| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | Input ingredient | false |\n| results | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | Output items | false |\n-| tool | [IIngredient](/vanilla/api/ingredient/IIngredient) | Tool ingredient | false |\n+| tool | [IIngredient](/vanilla/api/ingredient/IIngredient) | Tool ingredient, can also be a [ToolAction](/forge/api/tool/ToolAction) | false |\n| sound | string | Sound event name | true |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update the FD docs a tiny bit
139,068
22.11.2022 13:15:22
-3,600
5c2c953bc7f1dd711e88e5ada60b8f271506cc9e
Add RootsClassic documentation
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"RecipeStages\": {\n\"RecipeStages\": \"mods/RecipeStages/RecipeStages.md\"\n},\n+ \"RootsClassic\":{},\n\"SolarCraft\" : {},\n\"SushiGoCrafting\" : {},\n\"Zen Summoning\": {},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs.json", "diff": "+{\n+ \"nav\": {\n+ \"Mods\": {\n+ \"Rootsclassic\": {\n+ \"Ritual\": \"mods/rootsclassic/Ritual.md\",\n+ \"Spell\": \"mods/rootsclassic/Spell.md\",\n+ \"Examples\" :\"mods/rootsclassic/Examples.md\"\n+ }\n+ }\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Examples.md", "diff": "+# Roots Classic Examples\n+\n+This file contains most of the Roots Examples available to you, the user, for 1.18!\n+\n+## Spell Examples\n+\n+As you might have noticed, Spells are a proper recipetype, which means you can use all methods found in [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager).\n+\n+No imports are necessary to use the following code:\n+\n+```zenscript\n+\n+//Overwrite existing recipes.\n+<recipetype:rootsclassic:component>.setSpellIngredients(<resource:rootsclassic:rose_bush>,[<item:minecraft:dirt>,<item:minecraft:grass>]);\n+\n+<recipetype:rootsclassic:component>.setSpellIngredients(<resource:rootsclassic:rose_bush>, [<item:minecraft:tnt>, <item:minecraft:apple>]);\n+\n+//Add a new mortar recipe\n+<recipetype:rootsclassic:component>.addMortarCrafting(\"dirt_to_diamond\",[<item:minecraft:dirt>,<item:minecraft:coarse_dirt>], <item:minecraft:diamond>);\n+\n+<recipetype:rootsclassic:component>.addMortarCrafting(\"gunpowder_to_gold\", [<item:minecraft:gunpowder>, <item:minecraft:coal>], <item:minecraft:gold_ingot>);\n+\n+//Remove an existing recipe\n+<recipetype:rootsclassic:component>.removeByName(\"rootsclassic:component/peony\");\n+\n+```\n+\n+## Ritual Examples\n+\n+Rituals are a tiny bit more complicated. They are crafted using a multiblock, and the CraftTweaker support for it allows you to modify everything in a ritual:\n+\n+```zenscript\n+\n+//Add a new ritual\n+//level zero means no standing stones, only Altar+Brazier\n+Ritual.addCraftingRitual(\"simple\", <item:minecraft:prismarine_shard>, 0,\n+ 51,51,255,\n+ [<item:minecraft:dirt>,<item:minecraft:dirt>], [<item:minecraft:string>,<item:minecraft:emerald>] );\n+\n+//level 1 means the only the 3x3 grid of standing stones is needed\n+Ritual.addCraftingRitual(\"test1\", <item:minecraft:netherrack>, 1,\n+ 255,255,0,\n+ [<item:minecraft:grass>,<item:minecraft:grass>], [<item:minecraft:lapis_lazuli>,<item:minecraft:string>,<item:minecraft:emerald> ] );\n+\n+//level 2 is the biggest ritual with the Attuned stones\n+Ritual.addCraftingRitual(\"test2\", <item:minecraft:ghast_tear>, 2,\n+ 255,0,0,\n+ [<item:minecraft:feather>,<item:minecraft:egg>], [<item:minecraft:diamond>,<item:minecraft:string>,<item:minecraft:emerald> ] );\n+\n+\n+//Modify existing rituals\n+\n+Ritual.setRitualIngredients(<resource:rootsclassic:living_sword_crafting>, [<item:minecraft:dirt>,<item:minecraft:stone>]);\n+Ritual.setRitualIncense(<resource:rootsclassic:living_sword_crafting>, [<item:minecraft:grass>,<item:minecraft:sand>]);\n+\n+// other examples\n+Ritual.setPrimaryColor(<resource:crafttweaker:test2>, 255,0,0);\n+Ritual.setSecondaryColor(<resource:rootsclassic:igniter_stone_crafting>, 255,0,100);\n+\n+//change level for the standing stone requirements\n+Ritual.setLevel(<resource:rootsclassic:igniter_stone_crafting>, 0);\n+\n+```\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Ritual.json", "diff": "+{\"path\":\"mods/rootsclassic/Ritual.md\",\"zenCodeName\":\"mods.rootsclassic.Ritual\",\"searchTerms\":[\"setRitualIngredients\",\"setPrimaryColor\",\"setRitualIncense\",\"addCraftingRitual\",\"setLevel\",\"setSecondaryColor\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Ritual.md", "diff": "+# Ritual\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.rootsclassic.Ritual;\n+```\n+\n+\n+## Static Methods\n+\n+:::group{name=addCraftingRitual}\n+\n+\n+\n+```zenscript\n+// Ritual.addCraftingRitual(uniqueName as string, output as IItemStack, level as int, r as double, g as double, b as double, incenses as IItemStack[], ingredients as IItemStack[])\n+\n+Ritual.addCraftingRitual(\"devil_summoning\", <item:minecraft:blaze_spawn_egg>, 1, 255, 59, 100, [<item:minecraft:fire_coral>, <item:minecraft:fire_coral>, <item:minecraft:fire_coral>, <item:minecraft:fire_coral>], [<item:minecraft:netherrack>, <item:minecraft:netherrack>, <item:minecraft:blaze_powder>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-------------|----------------------------------------------|----------------------------------------------|\n+| uniqueName | string | The unique name of the recipe |\n+| output | [IItemStack](/vanilla/api/item/IItemStack) | The IItemStack to output |\n+| level | int | The level of the recipe |\n+| r | double | The red amount of colour (0-255 value) |\n+| g | double | The green amount of colour (0-255 value) |\n+| b | double | The blue amount of colour (0-255 value) |\n+| incenses | [IItemStack](/vanilla/api/item/IItemStack)[] | The incenses that can be used in this recipe |\n+| ingredients | [IItemStack](/vanilla/api/item/IItemStack)[] | The ingredients to use in this recipe |\n+\n+\n+:::\n+\n+:::group{name=setLevel}\n+\n+Change the level of a recipe, thus affecting the standing stone requirements. <br /> <br /> 0 requires none, only Braziers <br /> 1 requires a 3x3 grid of Mundane Standing Stones <br /> 2 requires the 3x3 grid of Mundane Standing Stones plus a rhombus of Attuned Standing Stones.\n+\n+```zenscript\n+// Ritual.setLevel(name as ResourceLocation, level as int)\n+\n+Ritual.setLevel(<resource:rootsclassic:igniter_stone_crafting>, 0);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------------------------------------------------------------|---------------------------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The name of the existing recipe to manipulate. |\n+| level | int | The new requirement level. Values within 0-2 inclusive. |\n+\n+\n+:::\n+\n+:::group{name=setPrimaryColor}\n+\n+Modifies the primary Colour of an existing recipe\n+\n+```zenscript\n+// Ritual.setPrimaryColor(name as ResourceLocation, r as double, g as double, b as double)\n+\n+Ritual.setPrimaryColor(<resource:crafttweaker:devil_summoning>, 230, 30, 70);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------------------------------------------------------------|--------------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The name of the existing recipe |\n+| r | double | The new red colour of the recipe (0-255) |\n+| g | double | The new green colour of the recipe (0-255) |\n+| b | double | The new blue colour of the recipe (0-255) |\n+\n+\n+:::\n+\n+:::group{name=setRitualIncense}\n+\n+Modifies the required incenses for the provided recipe.\n+\n+```zenscript\n+// Ritual.setRitualIncense(name as ResourceLocation, items as IItemStack[])\n+\n+Ritual.setRitualIncense(<resource:rootsclassic:living_sword_crafting>, [<item:minecraft:grass>,<item:minecraft:sand>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------------------------------------------------------------|-----------------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The name of the existing recipe to manipulate |\n+| items | [IItemStack](/vanilla/api/item/IItemStack)[] | The new incenses to use. |\n+\n+\n+:::\n+\n+:::group{name=setRitualIngredients}\n+\n+Manipulates and changes the provided recipe with the new inputs. <br /> <br /> Names must be the name of a valid recipe. Roots adds the following: <br /> <br /> staff_crafting, sylvan_hood_crafting, sylvan_chest_crafting, sylvan_legs_crafting, sylvan_boots_crafting, wildwood_head_crafting, wildwood_chest_crafting, <br /> wildwood_legs_crafting, wildwood_boots_crafting, accelerator_stone_crafting, standing_stone, entangler_stone_crafting,grower_stone_crafting, healer_stone_crafting, igniter_stone_crafting, <br /> repulsor_stone_crafting, vacuum_stone_crafting, runic_focus_crafting, runic_focus_charging, living_pickaxe_crafting, living_axe_crafting, living_sword_crafting, living_hoe_crafting, <br /> living_shovel_crafting, cause_rain, banish_rain, mass_breeding, life_drain, imbuer, cow_summoning, pig_summoning, sheep_summoning, chicken_summoning, rabbit_summoning, zombie_summoning, <br /> skeleton_summoning, spider_summoning, cavespider_summoning, slime_summoning, creeper_summoning, enderman_summoning, sacrifice,flare, grow, engraved_crafting, time_shift <br /> <br /> Starting with `<resource:rootsclassic` (Example: `<resource:rootsclassic:staff_crafting>`)\n+\n+```zenscript\n+// Ritual.setRitualIngredients(name as ResourceLocation, items as IItemStack[])\n+\n+Ritual.setRitualIngredients(<resource:rootsclassic:accelerator_stone_crafting>, [<item:minecraft:diamond>, <item:minecraft:diamond_block>, <item:minecraft:redstone>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------------------------------------------------------------|-----------------------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The unique resourcelocation of the recipe to target |\n+| items | [IItemStack](/vanilla/api/item/IItemStack)[] | The new inputs to make the recipe use. |\n+\n+\n+:::\n+\n+:::group{name=setSecondaryColor}\n+\n+Modifies the secondary Colour of a recipe\n+\n+```zenscript\n+// Ritual.setSecondaryColor(name as ResourceLocation, r as double, g as double, b as double)\n+\n+Ritual.setSecondaryColor(<resource:rootsclassic:igniter_stone_crafting>, 255, 0, 0);\n+```\n+\n+| Parameter | Type | Description |\n+|-----------|------------------------------------------------------------|--------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The name of the recipe to manipulate |\n+| r | double | The new red colour value (0-255) |\n+| g | double | The new green colour value (0-255) |\n+| b | double | The new blue colour value (0-255) |\n+\n+\n+:::\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Spell.json", "diff": "+{\"path\":\"mods/rootsclassic/Spell.md\",\"zenCodeName\":\"mods.rootsclassic.Spell\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"setSpellIngredients\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"removeAll\",\"addMortarCrafting\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Spell.md", "diff": "+# Spell\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.rootsclassic.Spell;\n+```\n+\n+\n+## Implemented Interfaces\n+Spell implements the following interfaces. That means all methods defined in these interfaces are also available in Spell\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+```zenscript\n+Spell.addJsonRecipe(name as string, mapData as MapData)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------|\n+| name | string |\n+| mapData | [MapData](/vanilla/api/data/MapData) |\n+\n+\n+:::\n+\n+:::group{name=addMortarCrafting}\n+\n+Adds a new Mortar recipe.\n+\n+```zenscript\n+// Spell.addMortarCrafting(uniqueName as string, items as IItemStack[], output as IItemStack)\n+\n+<recipetype:rootsclassic:component>.addMortarCrafting(\"gunpowder_to_gold\", [<item:minecraft:gunpowder>, <item:minecraft:coal>], <item:minecraft:gold_ingot>);\n+```\n+\n+| Parameter | Type | Description |\n+|------------|----------------------------------------------|-------------------------------|\n+| uniqueName | string | The unique name of the recipe |\n+| items | [IItemStack](/vanilla/api/item/IItemStack)[] | The inputs of the recipe |\n+| output | [IItemStack](/vanilla/api/item/IItemStack) | The output of the recipe |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// Spell.getAllRecipes() as stdlib.List<T>\n+\n+<recipetype:rootsclassic:component>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+Spell.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| name | string |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// Spell.getRecipeMap() as T[ResourceLocation]\n+\n+<recipetype:rootsclassic:component>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+Spell.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+```zenscript\n+Spell.remove(output as IIngredient)\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+```zenscript\n+// Spell.removeAll()\n+\n+<recipetype:rootsclassic:component>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+```zenscript\n+Spell.removeByInput(input as IItemStack)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+```zenscript\n+Spell.removeByModid(modid as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| modid | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+```zenscript\n+Spell.removeByName(names as string[])\n+```\n+\n+| Parameter | Type |\n+|-----------|----------|\n+| names | string[] |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+```zenscript\n+Spell.removeByRegex(regex as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| regex | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=setSpellIngredients}\n+\n+Modify the ingredients of an existing Spell Recipe, in order to keep the Spell Powder with the right type.\n+\n+ Names must be one of: rose_bush, dandelion, chorus, nether_wart, peony, sunflower, azure_bluet, allium, lilac, white_tulip, red_tulip, blue_orchid, poppy, poisonous_potato,\n+ orange_tulip, pink_tulip, oxeye_daisy, lily_pad, apple, midnight_bloom, flare_orchid, radiant_daisy\n+\n+ Starting with rootsclassic in order to target the regular roots recipes (Example: \"rootsclassic:rose_bush\")\n+\n+```zenscript\n+// Spell.setSpellIngredients(name as ResourceLocation, ingredients as IItemStack[])\n+\n+<recipetype:rootsclassic:component>.setSpellIngredients(<resource:rootsclassic:rose_bush>, [<item:minecraft:tnt>, <item:minecraft:apple>]);\n+```\n+\n+| Parameter | Type | Description |\n+|-------------|------------------------------------------------------------|------------------------------------|\n+| name | [ResourceLocation](/vanilla/api/resource/ResourceLocation) | The resourcelocation to target |\n+| ingredients | [IItemStack](/vanilla/api/item/IItemStack)[] | The new ingredients of the recipe. |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter |\n+|------------|---------------------------------------------------------------|------------|------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add RootsClassic documentation
139,068
22.11.2022 15:11:32
-3,600
49bc9909d581fcdab714d2b2e1f6bd8fdc76fea6
Adjust nav name
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/rootsclassic/docs.json", "new_path": "docs_exported/1.18/rootsclassic/docs.json", "diff": "{\n\"nav\": {\n\"Mods\": {\n- \"Rootsclassic\": {\n+ \"RootsClassic\": {\n\"Ritual\": \"mods/rootsclassic/Ritual.md\",\n\"Spell\": \"mods/rootsclassic/Spell.md\",\n\"Examples\" :\"mods/rootsclassic/Examples.md\"\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Adjust nav name
139,068
22.11.2022 22:35:41
-3,600
afccfc9315306376552898c212423faea886caef
Adjust the roots lists to be more friendly to the eye
[ { "change_type": "MODIFY", "old_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Ritual.md", "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Ritual.md", "diff": "@@ -92,7 +92,7 @@ Ritual.setRitualIncense(<resource:rootsclassic:living_sword_crafting>, [<item:mi\n:::group{name=setRitualIngredients}\n-Manipulates and changes the provided recipe with the new inputs. <br /> <br /> Names must be the name of a valid recipe. Roots adds the following: <br /> <br /> staff_crafting, sylvan_hood_crafting, sylvan_chest_crafting, sylvan_legs_crafting, sylvan_boots_crafting, wildwood_head_crafting, wildwood_chest_crafting, <br /> wildwood_legs_crafting, wildwood_boots_crafting, accelerator_stone_crafting, standing_stone, entangler_stone_crafting,grower_stone_crafting, healer_stone_crafting, igniter_stone_crafting, <br /> repulsor_stone_crafting, vacuum_stone_crafting, runic_focus_crafting, runic_focus_charging, living_pickaxe_crafting, living_axe_crafting, living_sword_crafting, living_hoe_crafting, <br /> living_shovel_crafting, cause_rain, banish_rain, mass_breeding, life_drain, imbuer, cow_summoning, pig_summoning, sheep_summoning, chicken_summoning, rabbit_summoning, zombie_summoning, <br /> skeleton_summoning, spider_summoning, cavespider_summoning, slime_summoning, creeper_summoning, enderman_summoning, sacrifice,flare, grow, engraved_crafting, time_shift <br /> <br /> Starting with `<resource:rootsclassic` (Example: `<resource:rootsclassic:staff_crafting>`)\n+Manipulates and changes the provided recipe with the new inputs. <br /> <br /> Names must be the name of a valid recipe. Roots adds the following: <ul> <li> staff_crafting, </li> <li> sylvan_hood_crafting, </li> <li> sylvan_chest_crafting, </li> <li> sylvan_legs_crafting, </li> <li> sylvan_boots_crafting, </li> <li> wildwood_head_crafting, </li> <li> wildwood_chest_crafting, </li> <li>wildwood_legs_crafting, </li> <li> wildwood_boots_crafting, </li> <li> accelerator_stone_crafting, </li> <li> standing_stone, </li> <li> entangler_stone_crafting, </li> <li>grower_stone_crafting, </li> <li> healer_stone_crafting, </li> <li> igniter_stone_crafting, </li> <li> repulsor_stone_crafting, </li> <li> vacuum_stone_crafting, </li> <li> runic_focus_crafting, </li> <li> runic_focus_charging, </li> <li> living_pickaxe_crafting, </li> <li> living_axe_crafting, </li> <li> living_sword_crafting, </li> <li> living_hoe_crafting, </li> <li> living_shovel_crafting, </li> <li> cause_rain, </li> <li> banish_rain, </li> <li> mass_breeding, </li> <li> life_drain, </li> <li> imbuer, </li> <li> cow_summoning, </li> <li> pig_summoning, </li> <li> sheep_summoning, </li> <li> chicken_summoning, </li> <li> rabbit_summoning, </li> <li> zombie_summoning, </li> <li> skeleton_summoning, </li> <li> spider_summoning, </li> <li> cavespider_summoning, </li> <li> slime_summoning, </li> <li> creeper_summoning, </li> <li> enderman_summoning, </li> <li> sacrifice, </li> <li>flare, </li> <li> grow, </li> <li> engraved_crafting, </li> <li> time_shift </li> </ul> Starting with `<resource:rootsclassic` (Example: `<resource:rootsclassic:staff_crafting>`)\n```zenscript\n// Ritual.setRitualIngredients(name as ResourceLocation, items as IItemStack[])\n" }, { "change_type": "MODIFY", "old_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Spell.md", "new_path": "docs_exported/1.18/rootsclassic/docs/mods/rootsclassic/Spell.md", "diff": "@@ -182,10 +182,10 @@ Spell.removeByRegex(regex as string, exclude as Predicate<string>)\n:::group{name=setSpellIngredients}\nModify the ingredients of an existing Spell Recipe, in order to keep the Spell Powder with the right type.\n-\n- Names must be one of: rose_bush, dandelion, chorus, nether_wart, peony, sunflower, azure_bluet, allium, lilac, white_tulip, red_tulip, blue_orchid, poppy, poisonous_potato,\n- orange_tulip, pink_tulip, oxeye_daisy, lily_pad, apple, midnight_bloom, flare_orchid, radiant_daisy\n-\n+ Names must be one of:\n+ <ul>\n+ <li>rose_bush, </li> <li>dandelion, </li> <li> chorus, </li> <li> nether_wart, </li> <li> peony, </li> <li> sunflower, </li> <li> azure_bluet, </li> <li> allium, </li> <li> lilac, </li> <li> white_tulip, </li> <li> red_tulip, </li> <li> blue_orchid, </li> <li> poppy, </li> <li> poisonous_potato, </li> <li> orange_tulip, </li> <li> pink_tulip, </li> <li> oxeye_daisy, </li> <li> lily_pad, </li> <li> apple, </li> <li> midnight_bloom, </li> <li> flare_orchid, </li> <li> radiant_daisy </li>\n+ </ul>\nStarting with rootsclassic in order to target the regular roots recipes (Example: \"rootsclassic:rose_bush\")\n```zenscript\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Adjust the roots lists to be more friendly to the eye
139,068
26.11.2022 22:46:35
-3,600
dbdc14b44aa5f243b792a25f2f62ec223382850e
Fix stoneCutter alias and rewrite JsonRecipes
[ { "change_type": "MODIFY", "old_path": "docs/1.19/content/globals.md", "new_path": "docs/1.19/content/globals.md", "diff": "@@ -23,7 +23,7 @@ Global Getters get a value for you. They are mostly used for adding recipes.\n- `recipes` gets you the [GenericRecipesManager Instance](/vanilla/api/recipe/manager/GenericRecipesManager).\n- `smithing` gets you the [SmithingRecipeManager Instance](/vanilla/api/recipe/manager/SmithingRecipeManager).\n- `smoker` gets you the [SmokerRecipeManager Instance](/vanilla/api/recipe/manager/SmokerRecipeManager).\n-- `stonecutter` gets you the [StoneCutterManager Instance](/vanilla/api/recipe/manager/StoneCutterManager).\n+- `stoneCutter` gets you the [StoneCutterManager Instance](/vanilla/api/recipe/manager/StoneCutterManager).\n- `tags` gets you the global CraftTweakerTagRegistry.\n- `villagerTrades` gets you the [VillagerTrades handler](/vanilla/api/villager/VillagerTrades).\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/content/mods/other_mods.md", "new_path": "docs/1.19/content/mods/other_mods.md", "diff": "-# Adding Support to other Mods\n+# Adding Recipes from Mods\n-As long as a mod's recipes use the vanilla IRecipe Datapack system, and therefore work with [IRecipeManagers](/vanilla/API/managers/IRecipeManager), then you are able to add new recipes regardless of if the mod has native support or not.\n-This is still a bit tricky, but doable nonetheless. There are a couple steps to doing this:\n+## RecipeTypes: The basis of it all.\n-The first one is finding the recipetype we want to add a recipe to. This should be done using `/ct dump recipetypes`. Once you've got it, you should find a `.json` recipe that belongs to that recipetype in the mods source. Only can generally be found under the datagen path of the mod, which generally is: `src/main/resources/data/recipetype/recipes` in the mods source and `data/modid/recipes` in the mod's jar. The path might change depending on the mod though.\n+If it's not your first time with CraftTweaker, you'll have noticed that the mod makes it easier for you to add\n+recipes for the vanilla recipetypes: There's a [global alias](/globals#global-getters) for the vanilla types.\n+As that page clearly explains, all vanilla recipetypes have an associated [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager).\n-In any case, once you have your example recipe, you can start adding things following the JSON structure. An example from [CharcoalPit2](https://github.com/EnderiumSmith/CharcoalPit2/blob/master/src/main/resources/data/charcoal_pit/recipes/barrel_recipes/beer.json) looks like this:\n+What does this mean though? In simple terms, all `<recipetype>` brackets that are available to you through the `/ct dump recipetype` command implement\n+[IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager), which in essence means that all methods you see in the [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager) page are usable on a\n+`<recipetype>` object, regardless of who registers it.\n+\n+This is the reason why you can use `removeByName(recipeName as string)`, `remove(output as IItemStack)`, and `removeByInput(input as IItemStack)`,\n+ordered from most precise to least precise in their application, on ANY recipetype, whether vanilla adds it or a mod like FarmersDelight does.\n+\n+```zenscript\n+//Will work consistently.\n+//Only removes the targetted recipe.\n+\n+stoneCutter.removeByName(\"minecraft:cut_copper_stairs_from_cut_copper_stonecutting\");\n+stoneCutter.removeByName(\"minecraft:cut_copper_stairs_from_copper_block_stonecutting\");\n+\n+//Attempts to remove all crafting table recipes that output said item.\n+//Is guaranteed to work with vanilla recipes, might not work with modded.\n+\n+craftingTable.remove(<item:minecraft:tnt>);\n+\n+//Is really unreliable with anything that's not the vanilla types.\n+furnace.removeByInput(<item:minecraft:raw_iron>);\n+```\n+\n+The note about precision and reliability above is dependant on the structure of the recipe we're targetting.\n+All recipes have a unique name they're registered under, but not all recipes have an output item, or an input item.\n+Some items might output multiple things, fluids, or energy.\n+\n+## The addJsonRecipe method\n+\n+Anyway, since all `<recipetype>`s implement [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager), if they support datapacks,\n+you can use the `addJsonRecipe` method present in that class to add a json recipe using both a unique name\n+and a json recipe in the form of [IData](/vanilla/api/data/IData).\n+\n+This will only work if the mod supports datapacks though, which is almost certainly yes if the mod isn't made with MCreator or very poorly made.\n+\n+## How do we write a JSON Recipe in CraftTweaker?\n+\n+To begin with, you need to find out an example of a json recipe.\n+A mod supports datapacks if it has a registered recipetype that can parse json datapacks and\n+also ships a json file for each recipe inside of it. As mods contain code, a datapack and a resourcepack,\n+you will be able to find json recipes in the mods source by Googling : `modid github source`, and browsing the repository.\n+\n+Using Find File should make it fairly easy to find a json recipe file, but files are generally found under:\n+`src/main/resources/data/modid/recipes` OR `src/generated/resources/data/modid/recipes`.\n+\n+Do keep in mind that each mod has **THEIR OWN UNIQUE** way of adding json recipes! You won't be able to always apply the same syntax to everything!\n+The same applies for different inputs: If you want to add a fluid or a tag, one mod might expect a `\"tag\"` json key, while another might parse it within their inputs...\n+\n+## Making an example out of it\n+\n+For the rest of this page, we will be looking at adding a Create Cutting recipe through `addJsonRecipe`.\n+\n+You can find this recipe [here](https://github.com/Creators-of-Create/Create/blob/mc1.19/dev/src/generated/resources/data/create/recipes/cutting/warped_hyphae.json):\n```JSON\n{\n- \"type\": \"charcoal_pit:barrel\",\n- \"item_in\":{\n- \"item\":\"minecraft:wheat\"\n- },\n- \"fluid_in\":{\n- \"fluid\":\"minecraft:water\",\n- \"amount\": 250\n- },\n- \"fluid_out\":{\n- \"fluid\":\"charcoal_pit:alcohol_still\",\n- \"amount\": 250,\n- \"nbt\":\"{CustomPotionColor:16624200,Potion:\\\"charcoal_pit:beer\\\"}\"\n- },\n- \"flags\": 1,\n- \"time\": 48000\n+ \"type\": \"create:cutting\",\n+ \"ingredients\": [\n+ {\n+ \"item\": \"minecraft:warped_hyphae\"\n+ }\n+ ],\n+ \"results\": [\n+ {\n+ \"item\": \"minecraft:stripped_warped_hyphae\"\n+ }\n+ ],\n+ \"processingTime\": 50\n}\n```\n-That is pure JSON, and you need to translate that recipe into something that crafttweaker can work with. Depending on the mod each key might be named differently, and support for tags and amounts is something that changes depending on the mod.\n+The above recipe is a purely JSON file, and your job is to translate that into something CraftTweaker can work with.\n+The second parameter of the `addJsonRecipe` method is an IData, something JSON translates very similarly too.\n+That said, you should be able to sneak in BEPs and CraftTweaker should be able to convert them to IData if they have an implicit caster to IData.\n+\n+Translating the above into a script gets us the following:\n```zenscript\n-<recipetype:charcoal_pit:barrel>.addJsonRecipe(\"crafttweaker_barrelcustom_1\", {\n- \"item_in\":{\n- \"item\":\"minecraft:wheat\"\n- },\n- \"fluid_in\":{\n- \"fluid\":\"minecraft:water\",\n- \"amount\": 250\n- },\n- \"fluid_out\":{\n- \"fluid\":\"charcoal_pit:alcohol_still\",\n- \"amount\": 250,\n- \"nbt\":\"{CustomPotionColor:16624200,Potion:\\\"charcoal_pit:beer\\\"}\"\n- },\n- \"flags\": 1,\n- \"time\": 48000\n-});\n+<recipetype:create:cutting>.addJsonRecipe(\"._/-\", {\n+ \"type\": \"create:cutting\",\n+ \"ingredients\": [\n+ {\n+ \"tag\": \"minecraft:planks\",\n+ }\n+ ],\n+ \"results\": [\n+ {\n+ \"item\": \"minecraft:stick\",\n+ \"count\" : 3\n+ }\n+ ],\n+ \"processingTime\": 200\n+}\n+);\n```\nThis works, but it takes up a lot of space, so we are going to write a custom function that will handle most of our use cases. Remember that recipe names need to be unique!\n+For this reason, we autogenerate them dynamically based on the output and the duration. It's very much possible you\n+will need to manipulate the way recipe names are generated somewhere, don't feel scared to do so.\n+\n+It's just string manipulation!\n```zenscript\nimport crafttweaker.api.item.IItemStack;\n-import crafttweaker.api.fluid.IFluidStack;\n-\n-function addBarrelRecipe(itemIn as IItemStack, inputFluid as IFluidStack, outputFluid as IFluidStack, flags as int, time as int) as void {\n-<recipetype:charcoal_pit:barrel>.addJsonRecipe(\"crafttweaker_barrelcustom_\" + itemIn.registryName.path + time + inputFluid.registryName.path, {\n- \"item_in\":{\n- \"item\": itemIn\n- },\n- \"fluid_in\":{\n- \"fluid\": inputFluid.registryName,\n- \"amount\": inputFluid.amount\n- },\n- \"fluid_out\":{\n- \"fluid\":outputFluid.registryName,\n- \"amount\": outputFluid.amount,\n- },\n- \"flags\": flags,\n- \"time\": time\n-});\n-}\n+import crafttweaker.api.ingredient.IIngredient;\n+import crafttweaker.api.data.IData;\n+import crafttweaker.api.util.random.Percentaged;\n-//Which would be called like this:\n-addBarrelRecipe(<item:minecraft:glass>, <fluid:minecraft:lava>, <fluid:contenttweaker:molten_glass>, 1, 120000);\n+//The name of the recipe must be unique, and it must abide by typical a-z0-9.-_/ restrictions.\n+function addCreateCutting(itemIn as IIngredient, itemOut as Percentaged<IItemStack>, duration as int) as void {\n+val internalItem = itemOut.getData();\n+<recipetype:create:cutting>.addJsonRecipe(\"custom_cutting_recipe_\" + duration + \"_\" + internalItem.descriptionId, {\n+ \"type\": \"create:cutting\",\n+ \"ingredients\": [\n+ itemIn as IData,\n+ ],\n+ \"results\": [\n+ (internalItem as IData).merge({\"count\" : internalItem.amount}).merge({\"chance\" : itemOut.getPercentage()})\n+ ],\n+ \"processingTime\": duration\n+}\n+);\n+}\n+//Just call this every time you require a new recipe, thus shortening the size of your scripts tremendously, as you don't need to paste massive jsons everywhere.\n+addCreateCutting(<tag:items:minecraft:planks>, <item:minecraft:stick> * 2 % 50, 200);\n```\n-Some functionality (like output nbt) might require a more complex function that checks if there is nbt in the item, or adding support for tags. But this covers the most simple use case which largely reduces script size and doesn't fill it with JSON recipes, which are sometimes tedious to write too. Pretty neat huh?\n+Crucial note: Some extra things, like NBT, or other non standard json things, might require you to figure out a way to code support for that...\n+This page just shows you the basics of setting it up.\n+\n+Enjoy your JSON Recipes!\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix stoneCutter alias and rewrite JsonRecipes
139,068
27.11.2022 14:17:15
-3,600
d7bd0349e5c6d9199a6f5a2e94b3d050febb7127
Improve the GRM page
[ { "change_type": "MODIFY", "old_path": "docs/1.19/content/mods/other_mods.md", "new_path": "docs/1.19/content/mods/other_mods.md", "diff": "-# Adding Recipes from Mods\n+# Generic Recipe Manipulation\n## RecipeTypes: The basis of it all.\n@@ -81,7 +81,61 @@ The above recipe is a purely JSON file, and your job is to translate that into s\nThe second parameter of the `addJsonRecipe` method is an IData, something JSON translates very similarly too.\nThat said, you should be able to sneak in BEPs and CraftTweaker should be able to convert them to IData if they have an implicit caster to IData.\n-Translating the above into a script gets us the following:\n+Let's say we want to add a cutting recipe that takes in a diamond hoe and outputs a diamond. We also want it to be quick.\n+To do that, we want to first create the basic structure of the addJsonRecipe method, which is the following:\n+\n+`<recipetype>.addJsonRecipe(recipeName as string, json as MapData) as void`\n+\n+Using the recipe the example json recipe from above, we get:\n+```zenscript\n+//The recipetype we want to add to, the recipe name, and the json contents.\n+\n+<recipetype:create:cutting>.addJsonRecipe(\"duplicate_cutting_recipe\", {\n+ \"type\": \"create:cutting\",\n+ \"ingredients\": [\n+ {\n+ \"item\": \"minecraft:warped_hyphae\"\n+ }\n+ ],\n+ \"results\": [\n+ {\n+ \"item\": \"minecraft:stripped_warped_hyphae\"\n+ }\n+ ],\n+ \"processingTime\": 50\n+}\n+```\n+\n+We can now manipulate the above to get our intended recipe:\n+\n+```zenscript\n+<recipetype:create:cutting>.addJsonRecipe(\"diamond_hoe_reusing\", {\n+ \"type\": \"create:cutting\",\n+ \"ingredients\": [\n+ {\n+ \"item\" : \"minecraft:diamond_hoe\"\n+ }\n+ ],\n+ \"results\": [\n+ {\n+ \"item\" : \"minecraft:diamond\"\n+ }\n+ ],\n+ \"processingTime\": 10\n+}\n+);\n+\n+```\n+This is simple and nice, but it only allows us to go from one item to one item! What if we want multiple items?\n+What if we want chanced outputs? What if we want input tags? What about NBT on the output?\n+\n+That part is a bit more complicated to handle, as it depends **solely** on whether the mod we're modifying has support for those.\n+To find out whether it is possible or not you have to answer the following question:\n+\n+Does the base mod do this somehow in any of it's default recipes?\n+If the answer is yes, then you'll be able to do so.\n+\n+After some digging on the Create Repository, I was able to find out it does support tags, chanced outputs and multiple outputs.\n```zenscript\n<recipetype:create:cutting>.addJsonRecipe(\"._/-\", {\n@@ -102,12 +156,21 @@ Translating the above into a script gets us the following:\n);\n```\n+## Reducing script size through a function\n+\nThis works, but it takes up a lot of space, so we are going to write a custom function that will handle most of our use cases. Remember that recipe names need to be unique!\nFor this reason, we autogenerate them dynamically based on the output and the duration. It's very much possible you\nwill need to manipulate the way recipe names are generated somewhere, don't feel scared to do so.\nIt's just string manipulation!\n+Furthermore, as noted earlier, we know that some of the most common BEPs have casters to IData, which allows to not\n+worry about the jsons as all, as long as we write proper zencode.\n+\n+In order to see how a BEP serializes to IData, you might want to do:\n+\n+`println((bep as IData).getAsString())`\n+\n```zenscript\nimport crafttweaker.api.item.IItemStack;\nimport crafttweaker.api.ingredient.IIngredient;\n@@ -138,4 +201,7 @@ addCreateCutting(<tag:items:minecraft:planks>, <item:minecraft:stick> * 2 % 50,\nCrucial note: Some extra things, like NBT, or other non standard json things, might require you to figure out a way to code support for that...\nThis page just shows you the basics of setting it up.\n-Enjoy your JSON Recipes!\n\\ No newline at end of file\n+For example, supporting multiple inputs might require you to have an input parameter that is an array and convert that to a ListData through casting.\n+\n+\n+This sums up the basics of messing with other mods, enjoy your JSON Recipes!\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/1.19/docs.json", "new_path": "docs/1.19/docs.json", "diff": "\"Mods\": {\n\"ArmoreableMobs\" : {},\n\"PMMO\" : {},\n- \"Generic JSON Recipes\": \"mods/other_mods.md\"\n+ \"Generic Recipe Manipulation\": \"mods/other_mods.md\"\n},\n\"ZenCode\": {\n\"About ZenCode\": \"zencode/ZenCode.md\",\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Improve the GRM page
139,068
29.11.2022 14:35:45
-3,600
7b408fdaab8fde83f6587be6551bb6a5de9a81fb
Add BetterGrinder docs
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Mods\": {\n\"ArmoreableMobs\" : {},\n\"Botania\" : {},\n+ \"BetterGrinder\" : {},\n\"Createtweaker\" : {},\n\"FarmersDelight\" : {},\n\"Immersiveengineering\" : {},\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/bettergrinder/docs.json", "diff": "+{\"nav\":{\"Mods\":{\"BetterGrinder\":{\"Grinder\":\"mods/plaingrinder/Grinder.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/bettergrinder/docs/mods/plaingrinder/Grinder.json", "diff": "+{\"path\":\"mods/plaingrinder/Grinder.md\",\"zenCodeName\":\"mods.plaingrinder.Grinder\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs_exported/1.18/bettergrinder/docs/mods/plaingrinder/Grinder.md", "diff": "+# Grinder\n+\n+Contrary to what this file indicates, the mod adding support to the Grinder is **Better Grinder**, not PlainGrinder.\n+\n+The mod can be found [here](https://www.curseforge.com/minecraft/mc-mods/better-grinder)\n+\n+## Importing the class\n+\n+It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n+```zenscript\n+import mods.plaingrinder.Grinder;\n+```\n+\n+\n+## Implemented Interfaces\n+Grinder implements the following interfaces. That means all methods defined in these interfaces are also available in Grinder\n+\n+- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n+\n+## Methods\n+\n+:::group{name=addJsonRecipe}\n+\n+```zenscript\n+Grinder.addJsonRecipe(name as string, mapData as MapData)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------|\n+| name | string |\n+| mapData | [MapData](/vanilla/api/data/MapData) |\n+\n+\n+:::\n+\n+:::group{name=addRecipe}\n+\n+\n+\n+```zenscript\n+// Grinder.addRecipe(name as string, input as IIngredient[], result as IItemStack, firstChance as float, optional as IItemStack, optionalChance as float)\n+\n+<recipetype:plaingrinder:grinder>.addRecipe(\"recipe_name_as_string\",, [<item:minecraft:wooden_axe>], <item:minecraft:clock> * 2, 1.0, <item:minecraft:powered_rail>, 0.5);\n+```\n+\n+| Parameter | Type | Description | Optional | Default Value |\n+|----------------|------------------------------------------------------|--------------------------------------|----------|---------------|\n+| name | string | The unique name of the recipe to add | false | |\n+| input | [IIngredient](/vanilla/api/ingredient/IIngredient)[] | The inputs to consume | false | |\n+| result | [IItemStack](/vanilla/api/item/IItemStack) | The primary result to output | false | |\n+| firstChance | float | The chance of the result to appear | true | 1.0 |\n+| optional | [IItemStack](/vanilla/api/item/IItemStack) | An optional secondary item to output | true | |\n+| optionalChance | float | The chance of the secondary result | true | 0.0 |\n+\n+\n+:::\n+\n+:::group{name=getAllRecipes}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+// Grinder.getAllRecipes() as stdlib.List<T>\n+\n+<recipetype:plaingrinder:grinder>.getAllRecipes();\n+```\n+\n+:::\n+\n+:::group{name=getRecipeByName}\n+\n+Return Type: T\n+\n+```zenscript\n+Grinder.getRecipeByName(name as string) as T\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| name | string |\n+\n+\n+:::\n+\n+:::group{name=getRecipeMap}\n+\n+Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n+\n+```zenscript\n+// Grinder.getRecipeMap() as T[ResourceLocation]\n+\n+<recipetype:plaingrinder:grinder>.getRecipeMap();\n+```\n+\n+:::\n+\n+:::group{name=getRecipesByOutput}\n+\n+Return Type: stdlib.List&lt;T&gt;\n+\n+```zenscript\n+Grinder.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=remove}\n+\n+```zenscript\n+Grinder.remove(output as IIngredient)\n+```\n+\n+| Parameter | Type |\n+|-----------|----------------------------------------------------|\n+| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n+\n+\n+:::\n+\n+:::group{name=removeAll}\n+\n+```zenscript\n+// Grinder.removeAll()\n+\n+<recipetype:plaingrinder:grinder>.removeAll();\n+```\n+\n+:::\n+\n+:::group{name=removeByInput}\n+\n+```zenscript\n+Grinder.removeByInput(input as IItemStack)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------------------------------------------|\n+| input | [IItemStack](/vanilla/api/item/IItemStack) |\n+\n+\n+:::\n+\n+:::group{name=removeByModid}\n+\n+```zenscript\n+Grinder.removeByModid(modid as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| modid | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+:::group{name=removeByName}\n+\n+```zenscript\n+Grinder.removeByName(name as string)\n+```\n+\n+| Parameter | Type |\n+|-----------|--------|\n+| name | string |\n+\n+\n+:::\n+\n+:::group{name=removeByRegex}\n+\n+```zenscript\n+Grinder.removeByRegex(regex as string, exclude as Predicate<string>)\n+```\n+\n+| Parameter | Type | Optional | Default Value |\n+|-----------|-------------------------|----------|-----------------------------------|\n+| regex | string | false | |\n+| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n+\n+\n+:::\n+\n+\n+## Properties\n+\n+| Name | Type | Has Getter | Has Setter |\n+|------------|---------------------------------------------------------------|------------|------------|\n+| allRecipes | stdlib.List&lt;T&gt; | true | false |\n+| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n+\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Add BetterGrinder docs
139,068
01.12.2022 15:22:06
-3,600
57b159411504b9644d5a109febc83ad9bed9d4b2
Remove FarmersDelight from the docs temporarily
[ { "change_type": "MODIFY", "old_path": "docs/1.18/docs.json", "new_path": "docs/1.18/docs.json", "diff": "\"Botania\" : {},\n\"BetterGrinder\" : {},\n\"Createtweaker\" : {},\n- \"FarmersDelight\" : {},\n\"Immersiveengineering\" : {},\n\"Initialinventory\" : {},\n\"JEITweaker\" : {},\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs.json", "new_path": null, "diff": "-{\"nav\":{\"Mods\":{\"FarmersDelight\":{\"CookingPot\":\"mods/farmersdelight/CookingPot.md\",\"CookingPotRecipeBookTab\":\"mods/farmersdelight/CookingPotRecipeBookTab.md\",\"CuttingBoard\":\"mods/farmersdelight/CuttingBoard.md\",\"ToolActionIngredient\":\"mods/farmersdelight/ToolActionIngredient.md\"}}}}\n\\ No newline at end of file\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.json", "new_path": null, "diff": "-{\"path\":\"mods/farmersdelight/CookingPot.md\",\"zenCodeName\":\"mods.farmersdelight.CookingPot\",\"searchTerms\":[\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPot.md", "new_path": null, "diff": "-# CookingPot\n-\n-Farmer's Delight Cooking Pot recipes.\n-\n-## Importing the class\n-\n-It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n-```zenscript\n-import mods.farmersdelight.CookingPot;\n-```\n-\n-\n-## Implemented Interfaces\n-CookingPot implements the following interfaces. That means all methods defined in these interfaces are also available in CookingPot\n-\n-- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n-\n-## Methods\n-\n-:::group{name=addJsonRecipe}\n-\n-```zenscript\n-CookingPot.addJsonRecipe(name as string, mapData as MapData)\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------|\n-| name | string |\n-| mapData | [MapData](/vanilla/api/data/MapData) |\n-\n-\n-:::\n-\n-:::group{name=addRecipe}\n-\n-Add a cooking pot recipe.\n-\n-```zenscript\n-// CookingPot.addRecipe(name as string, output as IItemStack, inputs as IIngredient[], cookingPotRecipeBookTab as CookingPotRecipeBookTab, container as IItemStack, experience as float, cookTime as int)\n-\n-<recipetype:farmersdelight:cooking>.addRecipe(\"cooking_pot_test\", <item:minecraft:enchanted_golden_apple>, [<item:minecraft:gold_block>], <constant:farmersdelight:cooking_pot_recipe_book_tab:misc>, <item:minecraft:apple>, 100, 400);\n-```\n-\n-| Parameter | Type | Description | Optional | Default Value |\n-|-------------------------|-------------------------------------------------------------------------|-------------------------------------------|----------|---------------|\n-| name | string | Name of the recipe to add | false | |\n-| output | [IItemStack](/vanilla/api/item/IItemStack) | Output item | false | |\n-| inputs | [IIngredient](/vanilla/api/ingredient/IIngredient)[] | Input ingredients | false | |\n-| cookingPotRecipeBookTab | [CookingPotRecipeBookTab](/mods/farmersdelight/CookingPotRecipeBookTab) | The Cooking Pot tab to add this recipe to | true | |\n-| container | [IItemStack](/vanilla/api/item/IItemStack) | Container item | true | |\n-| experience | float | Experience granted | true | 0.0 |\n-| cookTime | int | Cooking time | true | 200 |\n-\n-\n-:::\n-\n-:::group{name=getAllRecipes}\n-\n-Return Type: stdlib.List&lt;T&gt;\n-\n-```zenscript\n-// CookingPot.getAllRecipes() as stdlib.List<T>\n-\n-<recipetype:farmersdelight:cooking>.getAllRecipes();\n-```\n-\n-:::\n-\n-:::group{name=getRecipeByName}\n-\n-Return Type: T\n-\n-```zenscript\n-CookingPot.getRecipeByName(name as string) as T\n-```\n-\n-| Parameter | Type |\n-|-----------|--------|\n-| name | string |\n-\n-\n-:::\n-\n-:::group{name=getRecipeMap}\n-\n-Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n-\n-```zenscript\n-// CookingPot.getRecipeMap() as T[ResourceLocation]\n-\n-<recipetype:farmersdelight:cooking>.getRecipeMap();\n-```\n-\n-:::\n-\n-:::group{name=getRecipesByOutput}\n-\n-Return Type: stdlib.List&lt;T&gt;\n-\n-```zenscript\n-CookingPot.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------|\n-| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n-\n-\n-:::\n-\n-:::group{name=remove}\n-\n-```zenscript\n-CookingPot.remove(output as IIngredient)\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------|\n-| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n-\n-\n-:::\n-\n-:::group{name=removeAll}\n-\n-```zenscript\n-// CookingPot.removeAll()\n-\n-<recipetype:farmersdelight:cooking>.removeAll();\n-```\n-\n-:::\n-\n-:::group{name=removeByInput}\n-\n-```zenscript\n-CookingPot.removeByInput(input as IItemStack)\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------------|\n-| input | [IItemStack](/vanilla/api/item/IItemStack) |\n-\n-\n-:::\n-\n-:::group{name=removeByModid}\n-\n-```zenscript\n-CookingPot.removeByModid(modid as string, exclude as Predicate<string>)\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|-------------------------|----------|-----------------------------------|\n-| modid | string | false | |\n-| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n-\n-\n-:::\n-\n-:::group{name=removeByName}\n-\n-```zenscript\n-CookingPot.removeByName(names as string[])\n-```\n-\n-| Parameter | Type |\n-|-----------|----------|\n-| names | string[] |\n-\n-\n-:::\n-\n-:::group{name=removeByRegex}\n-\n-```zenscript\n-CookingPot.removeByRegex(regex as string, exclude as Predicate<string>)\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|-------------------------|----------|-----------------------------------|\n-| regex | string | false | |\n-| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n-\n-\n-:::\n-\n-\n-## Properties\n-\n-| Name | Type | Has Getter | Has Setter |\n-|------------|---------------------------------------------------------------|------------|------------|\n-| allRecipes | stdlib.List&lt;T&gt; | true | false |\n-| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n-\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPotRecipeBookTab.json", "new_path": null, "diff": "-{\"path\":\"mods/farmersdelight/CookingPotRecipeBookTab.md\",\"zenCodeName\":\"mods.farmersdelight.CookingPotRecipeBookTab\",\"searchTerms\":[\"<constant:farmersdelight:cooking_pot_recipe_book_tab:meals>\",\"<constant:farmersdelight:cooking_pot_recipe_book_tab:drinks>\",\"<constant:farmersdelight:cooking_pot_recipe_book_tab:misc>\"]}\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CookingPotRecipeBookTab.md", "new_path": null, "diff": "-# CookingPotRecipeBookTab\n-\n-## Importing the class\n-\n-It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n-```zenscript\n-import mods.farmersdelight.CookingPotRecipeBookTab;\n-```\n-\n-\n-## Enum Constants\n-\n-CookingPotRecipeBookTab is an enum. It has 3 enum constants. They are accessible using the code below.\n-\n-```zenscript\n-<constant:farmersdelight:cooking_pot_recipe_book_tab:meals>\n-<constant:farmersdelight:cooking_pot_recipe_book_tab:drinks>\n-<constant:farmersdelight:cooking_pot_recipe_book_tab:misc>\n-```\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.json", "new_path": null, "diff": "-{\"path\":\"mods/farmersdelight/CuttingBoard.md\",\"zenCodeName\":\"mods.farmersdelight.CuttingBoard\",\"searchTerms\":[\"removeRecipe\",\"getRecipeByName\",\"addJsonRecipe\",\"allRecipes\",\"removeByModid\",\"remove\",\"recipeMap\",\"addRecipe\",\"removeAll\",\"removeByName\",\"getRecipeMap\",\"getAllRecipes\",\"removeByInput\",\"crafttweaker.api.recipe.IRecipeManager\",\"getRecipesByOutput\",\"removeByRegex\"]}\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/CuttingBoard.md", "new_path": null, "diff": "-# CuttingBoard\n-\n-Farmer's Delight Cutting Board recipes.\n-\n-## Importing the class\n-\n-It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n-```zenscript\n-import mods.farmersdelight.CuttingBoard;\n-```\n-\n-\n-## Implemented Interfaces\n-CuttingBoard implements the following interfaces. That means all methods defined in these interfaces are also available in CuttingBoard\n-\n-- [IRecipeManager](/vanilla/api/recipe/manager/IRecipeManager)\n-\n-## Methods\n-\n-:::group{name=addJsonRecipe}\n-\n-```zenscript\n-CuttingBoard.addJsonRecipe(name as string, mapData as MapData)\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------|\n-| name | string |\n-| mapData | [MapData](/vanilla/api/data/MapData) |\n-\n-\n-:::\n-\n-:::group{name=addRecipe}\n-\n-Add a cutting board recipe.\n-\n-```zenscript\n-// CuttingBoard.addRecipe(name as string, input as IIngredient, results as Percentaged<IItemStack>[], tool as IIngredient, sound as string)\n-\n-<recipetype:farmersdelight:cutting>.addRecipe(\"cutting_board_test\", <item:minecraft:gravel>, [<item:minecraft:flint>], <item:minecraft:string>, \"minecraft:block.gravel.break\");\n-```\n-\n-| Parameter | Type | Description | Optional |\n-|-----------|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|----------|\n-| name | string | Name of the recipe to add | false |\n-| input | [IIngredient](/vanilla/api/ingredient/IIngredient) | Input ingredient | false |\n-| results | [Percentaged](/vanilla/api/util/random/Percentaged)&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt;[] | Output items | false |\n-| tool | [IIngredient](/vanilla/api/ingredient/IIngredient) | Tool ingredient, can also be a [ToolAction](/forge/api/tool/ToolAction) | false |\n-| sound | string | Sound event name | true |\n-\n-\n-:::\n-\n-:::group{name=getAllRecipes}\n-\n-Return Type: stdlib.List&lt;T&gt;\n-\n-```zenscript\n-// CuttingBoard.getAllRecipes() as stdlib.List<T>\n-\n-<recipetype:farmersdelight:cutting>.getAllRecipes();\n-```\n-\n-:::\n-\n-:::group{name=getRecipeByName}\n-\n-Return Type: T\n-\n-```zenscript\n-CuttingBoard.getRecipeByName(name as string) as T\n-```\n-\n-| Parameter | Type |\n-|-----------|--------|\n-| name | string |\n-\n-\n-:::\n-\n-:::group{name=getRecipeMap}\n-\n-Return Type: T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)]\n-\n-```zenscript\n-// CuttingBoard.getRecipeMap() as T[ResourceLocation]\n-\n-<recipetype:farmersdelight:cutting>.getRecipeMap();\n-```\n-\n-:::\n-\n-:::group{name=getRecipesByOutput}\n-\n-Return Type: stdlib.List&lt;T&gt;\n-\n-```zenscript\n-CuttingBoard.getRecipesByOutput(output as IIngredient) as stdlib.List<T>\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------|\n-| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n-\n-\n-:::\n-\n-:::group{name=remove}\n-\n-```zenscript\n-CuttingBoard.remove(output as IIngredient)\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------|\n-| output | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n-\n-\n-:::\n-\n-:::group{name=removeAll}\n-\n-```zenscript\n-// CuttingBoard.removeAll()\n-\n-<recipetype:farmersdelight:cutting>.removeAll();\n-```\n-\n-:::\n-\n-:::group{name=removeByInput}\n-\n-```zenscript\n-CuttingBoard.removeByInput(input as IItemStack)\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------------|\n-| input | [IItemStack](/vanilla/api/item/IItemStack) |\n-\n-\n-:::\n-\n-:::group{name=removeByModid}\n-\n-```zenscript\n-CuttingBoard.removeByModid(modid as string, exclude as Predicate<string>)\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|-------------------------|----------|-----------------------------------|\n-| modid | string | false | |\n-| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n-\n-\n-:::\n-\n-:::group{name=removeByName}\n-\n-```zenscript\n-CuttingBoard.removeByName(names as string[])\n-```\n-\n-| Parameter | Type |\n-|-----------|----------|\n-| names | string[] |\n-\n-\n-:::\n-\n-:::group{name=removeByRegex}\n-\n-```zenscript\n-CuttingBoard.removeByRegex(regex as string, exclude as Predicate<string>)\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|-------------------------|----------|-----------------------------------|\n-| regex | string | false | |\n-| exclude | Predicate&lt;string&gt; | true | (name as string) as bool => false |\n-\n-\n-:::\n-\n-:::group{name=removeRecipe}\n-\n-Remove a cutting board recipe with multiple outputs.\n-\n-```zenscript\n-// CuttingBoard.removeRecipe(outputs as IItemStack[])\n-\n-<recipetype:farmersdelight:cutting>.removeRecipe([<item:farmersdelight:cooked_salmon_slice> * 2, <item:minecraft:bone_meal>]);\n-```\n-\n-| Parameter | Type | Description |\n-|-----------|----------------------------------------------|--------------|\n-| outputs | [IItemStack](/vanilla/api/item/IItemStack)[] | Output items |\n-\n-\n-:::\n-\n-\n-## Properties\n-\n-| Name | Type | Has Getter | Has Setter |\n-|------------|---------------------------------------------------------------|------------|------------|\n-| allRecipes | stdlib.List&lt;T&gt; | true | false |\n-| recipeMap | T[[ResourceLocation](/vanilla/api/resource/ResourceLocation)] | true | false |\n-\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/ToolActionIngredient.json", "new_path": null, "diff": "-{\"path\":\"mods/farmersdelight/ToolActionIngredient.md\",\"zenCodeName\":\"mods.farmersdelight.ToolActionIngredient\",\"searchTerms\":[\"modifyShiftTooltip\",\"reuse\",\"onlyIf\",\"setBurnTime\",\"addShiftTooltip\",\"mul\",\"transformDamage\",\"empty\",\"removeTooltip\",\"transform\",\"removeGlobalAttributeModifier\",\"modifyTooltip\",\"burnTime\",\"clearTooltip\",\"only\",\"transformReplace\",\"asIIngredientWithAmount\",\"removeGlobalAttribute\",\"transformCustom\",\"crafttweaker.api.ingredient.IIngredient\",\"isEmpty\",\"onlyDamaged\",\"addTooltip\",\"matches\",\"anyDamage\",\"addGlobalAttributeModifier\",\"contains\",\"onlyDamagedAtLeast\",\"getRemainingItem\",\"onlyDamagedAtMost\"]}\n" }, { "change_type": "DELETE", "old_path": "docs_exported/1.18/farmersdelight/docs/mods/farmersdelight/ToolActionIngredient.md", "new_path": null, "diff": "-# ToolActionIngredient\n-\n-## Importing the class\n-\n-It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.\n-```zenscript\n-import mods.farmersdelight.ToolActionIngredient;\n-```\n-\n-\n-## Implemented Interfaces\n-ToolActionIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in ToolActionIngredient\n-\n-- [IIngredient](/vanilla/api/ingredient/IIngredient)\n-\n-## Casters\n-\n-| Result Type | Is Implicit |\n-|------------------------------------------------------------------------|-------------|\n-| [IData](/vanilla/api/data/IData) | true |\n-| [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount) | true |\n-| [MapData](/vanilla/api/data/MapData) | true |\n-\n-## Methods\n-\n-:::group{name=addGlobalAttributeModifier}\n-\n-```zenscript\n-ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|------------------------------------------------------------------------|\n-| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n-| name | string |\n-| value | double |\n-| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=addGlobalAttributeModifier}\n-\n-```zenscript\n-ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, uuid as invalid, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|------------------------------------------------------------------------|\n-| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n-| uuid | **invalid** |\n-| name | string |\n-| value | double |\n-| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=addGlobalAttributeModifier}\n-\n-```zenscript\n-ToolActionIngredient.addGlobalAttributeModifier(attribute as Attribute, uuid as string, name as string, value as double, operation as AttributeOperation, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|------------------------------------------------------------------------|\n-| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n-| uuid | string |\n-| name | string |\n-| value | double |\n-| operation | [AttributeOperation](/vanilla/api/entity/attribute/AttributeOperation) |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=addShiftTooltip}\n-\n-```zenscript\n-ToolActionIngredient.addShiftTooltip(content as Component, showMessage as Component)\n-```\n-\n-| Parameter | Type | Optional |\n-|-------------|------------------------------------------|----------|\n-| content | [Component](/vanilla/api/text/Component) | false |\n-| showMessage | [Component](/vanilla/api/text/Component) | true |\n-\n-\n-:::\n-\n-:::group{name=addTooltip}\n-\n-```zenscript\n-ToolActionIngredient.addTooltip(content as Component)\n-```\n-\n-| Parameter | Type |\n-|-----------|------------------------------------------|\n-| content | [Component](/vanilla/api/text/Component) |\n-\n-\n-:::\n-\n-:::group{name=anyDamage}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-// ToolActionIngredient.anyDamage() as IngredientConditioned<IIngredient>\n-\n-myToolActionIngredient.anyDamage();\n-```\n-\n-:::\n-\n-:::group{name=asIIngredientWithAmount}\n-\n-Return Type: [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)\n-\n-```zenscript\n-// ToolActionIngredient.asIIngredientWithAmount() as IIngredientWithAmount\n-\n-myToolActionIngredient.asIIngredientWithAmount();\n-```\n-\n-:::\n-\n-:::group{name=clearTooltip}\n-\n-```zenscript\n-ToolActionIngredient.clearTooltip(leaveName as boolean)\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|---------|----------|---------------|\n-| leaveName | boolean | true | false |\n-\n-\n-:::\n-\n-:::group{name=contains}\n-\n-Return Type: boolean\n-\n-```zenscript\n-ToolActionIngredient.contains(ingredient as IIngredient) as boolean\n-```\n-\n-| Parameter | Type |\n-|------------|----------------------------------------------------|\n-| ingredient | [IIngredient](/vanilla/api/ingredient/IIngredient) |\n-\n-\n-:::\n-\n-:::group{name=getRemainingItem}\n-\n-Return Type: [IItemStack](/vanilla/api/item/IItemStack)\n-\n-```zenscript\n-ToolActionIngredient.getRemainingItem(stack as IItemStack) as IItemStack\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------------|\n-| stack | [IItemStack](/vanilla/api/item/IItemStack) |\n-\n-\n-:::\n-\n-:::group{name=isEmpty}\n-\n-Return Type: boolean\n-\n-```zenscript\n-// ToolActionIngredient.isEmpty() as boolean\n-\n-myToolActionIngredient.isEmpty();\n-```\n-\n-:::\n-\n-:::group{name=matches}\n-\n-Return Type: boolean\n-\n-```zenscript\n-ToolActionIngredient.matches(stack as IItemStack) as boolean\n-```\n-\n-| Parameter | Type |\n-|-----------|--------------------------------------------|\n-| stack | [IItemStack](/vanilla/api/item/IItemStack) |\n-\n-\n-:::\n-\n-:::group{name=modifyShiftTooltip}\n-\n-```zenscript\n-ToolActionIngredient.modifyShiftTooltip(shiftedFunction as ITooltipFunction, unshiftedFunction as ITooltipFunction)\n-```\n-\n-| Parameter | Type | Optional |\n-|-------------------|----------------------------------------------------------------|----------|\n-| shiftedFunction | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) | false |\n-| unshiftedFunction | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) | true |\n-\n-\n-:::\n-\n-:::group{name=modifyTooltip}\n-\n-```zenscript\n-ToolActionIngredient.modifyTooltip(function as ITooltipFunction)\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------------------|\n-| function | [ITooltipFunction](/vanilla/api/item/tooltip/ITooltipFunction) |\n-\n-\n-:::\n-\n-:::group{name=mul}\n-\n-Return Type: [IIngredientWithAmount](/vanilla/api/ingredient/IIngredientWithAmount)\n-\n-```zenscript\n-ToolActionIngredient.mul(amount as int) as IIngredientWithAmount\n-```\n-\n-| Parameter | Type |\n-|-----------|------|\n-| amount | int |\n-\n-\n-:::\n-\n-:::group{name=only}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.only(condition as IIngredientCondition<IIngredient>) as IngredientConditioned<IIngredient>\n-```\n-\n-| Parameter | Type |\n-|-----------|------------------------------------------------------------------------------------------------------------------------------------------|\n-| condition | [IIngredientCondition](/vanilla/api/ingredient/condition/IIngredientCondition)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt; |\n-\n-\n-:::\n-\n-:::group{name=onlyDamaged}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-// ToolActionIngredient.onlyDamaged() as IngredientConditioned<IIngredient>\n-\n-myToolActionIngredient.onlyDamaged();\n-```\n-\n-:::\n-\n-:::group{name=onlyDamagedAtLeast}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.onlyDamagedAtLeast(minDamage as int) as IngredientConditioned<IIngredient>\n-```\n-\n-| Parameter | Type |\n-|-----------|------|\n-| minDamage | int |\n-\n-\n-:::\n-\n-:::group{name=onlyDamagedAtMost}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.onlyDamagedAtMost(maxDamage as int) as IngredientConditioned<IIngredient>\n-```\n-\n-| Parameter | Type |\n-|-----------|------|\n-| maxDamage | int |\n-\n-\n-:::\n-\n-:::group{name=onlyIf}\n-\n-Return Type: [IngredientConditioned](/vanilla/api/ingredient/type/IngredientConditioned)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.onlyIf(uid as string, function as Predicate<IItemStack>) as IngredientConditioned<IIngredient>\n-```\n-\n-| Parameter | Type | Optional |\n-|-----------|-------------------------------------------------------------|----------|\n-| uid | string | false |\n-| function | Predicate&lt;[IItemStack](/vanilla/api/item/IItemStack)&gt; | true |\n-\n-\n-:::\n-\n-:::group{name=removeGlobalAttribute}\n-\n-```zenscript\n-ToolActionIngredient.removeGlobalAttribute(attribute as Attribute, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------------------|\n-| attribute | [Attribute](/vanilla/api/entity/attribute/Attribute) |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=removeGlobalAttributeModifier}\n-\n-```zenscript\n-ToolActionIngredient.removeGlobalAttributeModifier(uuid as invalid, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------------------|\n-| uuid | **invalid** |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=removeGlobalAttributeModifier}\n-\n-```zenscript\n-ToolActionIngredient.removeGlobalAttributeModifier(uuid as string, slotTypes as EquipmentSlot[])\n-```\n-\n-| Parameter | Type |\n-|-----------|----------------------------------------------------------------|\n-| uuid | string |\n-| slotTypes | [EquipmentSlot](/vanilla/api/entity/equipment/EquipmentSlot)[] |\n-\n-\n-:::\n-\n-:::group{name=removeTooltip}\n-\n-```zenscript\n-ToolActionIngredient.removeTooltip(regex as string)\n-```\n-\n-| Parameter | Type |\n-|-----------|--------|\n-| regex | string |\n-\n-\n-:::\n-\n-:::group{name=reuse}\n-\n-Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-// ToolActionIngredient.reuse() as IIngredientTransformed<IIngredient>\n-\n-myToolActionIngredient.reuse();\n-```\n-\n-:::\n-\n-:::group{name=setBurnTime}\n-\n-```zenscript\n-ToolActionIngredient.setBurnTime(time as int)\n-```\n-\n-| Parameter | Type |\n-|-----------|------|\n-| time | int |\n-\n-\n-:::\n-\n-:::group{name=transform}\n-\n-Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.transform(transformer as IIngredientTransformer<IIngredient>) as IIngredientTransformed<IIngredient>\n-```\n-\n-| Parameter | Type |\n-|-------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n-| transformer | [IIngredientTransformer](/vanilla/api/ingredient/transform/IIngredientTransformer)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt; |\n-\n-\n-:::\n-\n-:::group{name=transformCustom}\n-\n-Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.transformCustom(uid as string, function as Function<IItemStack,IItemStack>) as IIngredientTransformed<IIngredient>\n-```\n-\n-| Parameter | Type | Optional |\n-|-----------|-------------------------------------------------------------------------------------------------------|----------|\n-| uid | string | false |\n-| function | Function&lt;[IItemStack](/vanilla/api/item/IItemStack),[IItemStack](/vanilla/api/item/IItemStack)&gt; | true |\n-\n-\n-:::\n-\n-:::group{name=transformDamage}\n-\n-Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.transformDamage(amount as int) as IIngredientTransformed<IIngredient>\n-```\n-\n-| Parameter | Type | Optional | Default Value |\n-|-----------|------|----------|---------------|\n-| amount | int | true | 1 |\n-\n-\n-:::\n-\n-:::group{name=transformReplace}\n-\n-Return Type: [IIngredientTransformed](/vanilla/api/ingredient/type/IIngredientTransformed)&lt;[IIngredient](/vanilla/api/ingredient/IIngredient)&gt;\n-\n-```zenscript\n-ToolActionIngredient.transformReplace(replaceWith as IItemStack) as IIngredientTransformed<IIngredient>\n-```\n-\n-| Parameter | Type |\n-|-------------|--------------------------------------------|\n-| replaceWith | [IItemStack](/vanilla/api/item/IItemStack) |\n-\n-\n-:::\n-\n-\n-## Operators\n-\n-:::group{name=CONTAINS}\n-\n-```zenscript\n-ingredient as IIngredient in myToolActionIngredient\n-```\n-\n-:::\n-\n-:::group{name=MUL}\n-\n-```zenscript\n-myToolActionIngredient * amount as int\n-```\n-\n-:::\n-\n-:::group{name=OR}\n-\n-```zenscript\n-myToolActionIngredient | other as IIngredient\n-```\n-\n-:::\n-\n-\n-## Properties\n-\n-| Name | Type | Has Getter | Has Setter |\n-|----------|---------|------------|------------|\n-| burnTime | void | false | true |\n-| empty | boolean | true | false |\n-\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Remove FarmersDelight from the docs temporarily