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
28.07.2017 22:32:31
-7,200
8fad60d16bae5d2f907987ecfc21b79bcf6ad237
Updated ILiquidStack_ILiquidDefinition.md Added Note on Zensetters
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md", "new_path": "docs/Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md", "diff": "@@ -18,7 +18,7 @@ val lavaWithAmount = <liquid:lava> * 1000;\n```\n## Get fluid properties\n-As an ILiquidStack represents a liquid, here surely must also be a way of retrieving the fluid's properties.\n+As an ILiquidStack represents a liquid, there surely must also be a way of retrieving the fluid's properties.\nCheck the table to see what you can retrieve from the ILiquidStack Object using ZenGetters.\n| Zengetter | What is this? | Return Type | Example |\n@@ -60,6 +60,9 @@ Check the table below for further information.\nLike in the table above, you set the Zengetter/Setter at the end of the ILiquidDefinition.\nSome ZenGetters have no according ZenSetter, you will need to rely on other means to alter these properties.\n+Be careful with Zensetters though, they only alter the fluid registry and have no effect on fluids in the world.\n+In most cases you will not need them.\n+\n```\nval definition = <liquid:lava>.definition;\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated ILiquidStack_ILiquidDefinition.md Added Note on Zensetters
139,040
29.07.2017 14:13:13
-7,200
09e1bf13ca47653be9ec83490f9b53599770a112
Added Recipe_Functions.md
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Recipe_Functions.md", "diff": "+# Recipe Functions\n+\n+\n+# IRecipeFunction\n+Some recipes support custom functions to programmatically determine their output.\n+This can be especially useful if you need some of the input item's information, like the damage value.\n+This is a so-called IRecipeFunction.\n+\n+## Example for repairing a pickaxe\n+\n+```\n+val diaPick = <minecraft:diamond_pickaxe>;\n+\n+//we start normal, by writing the output\n+recipes.addShapeless(diaPick,\n+\n+//followed by the input array. One change though - we mark the diamond pickaxe, so we can use it in the function later\n+[diaPick.anyDamage().marked(\"mark\"),<minecraft:diamond>],\n+\n+//now we start declaring the function.\n+//It needs 3 parameters, one for the output, one for the inputs and one for crafting info.\n+//We'll only need the input parameter, though.\n+function(out, ins, cInfo){\n+\n+ //now we return the pickaxe with either 0 DMG or Current damage -10, whatever is higher. This is to prevent negative damage values.\n+ return ins.mark.withDamage(max(0,ins.mark.damage - 10));\n+});\n+```\n+\n+## How to set up an IRecipeFunction\n+\n+As you might have seen in the example above, there is a function with 3 Parameters:\n+You don't have to call them this way, they can have any name.\n+\n+`out` is the recipe's output and an IItemStack object.\n+`ins` is a map with the marks as keys and the marked inputs as values.\n+`cInfo` is an ICraftingInfo Object\n+\n+# IRecipeAction\n+\n+But CraftTweaker goes beyond simply calculating your outputs using functions.\n+With 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+\n+```\n+val stone = <minecraft:stone>;\n+\n+recipes.addShapeless(stone,[stone,stone,stone,stone],\n+//IrecipeFunction, just return the output, it doesn't interest us this time.\n+function(out,ins,cInfo){\n+ return out;\n+},\n+//IRecipeAction\n+function(out,cInfo,player){\n+ player.xp += 1;\n+});\n+```\n+\n+This gives the player who performs the recipe 1 level each time the crafting is completed.\n+Again, 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 object.\n+\n+\n+# ICraftingInfo\n+\n+The IcraftingInfo object contains all kinds of information on the crafting process itself:\n+`cInfo.inventory` returns the inventory the crafting is performed in as an ICraftingInventory Object\n+`cInfo.player` returns the player conducting the crafting as an IPlayer object\n+`cInfo.dimension` returns the dimension the crafting process is performed in as an IDimension object\n+\n+# IPlayer\n+\n+The IPlayer object contains all kinds of information on a player, in this case on the player conducting the crafting.\n+\n+`player.id` returns the player's id as string.\n+`player.name` returns the player's name as string.\n+`player.data` returns the player's data as IData.\n+`player.xp` returns the player's experience level as int. Can also be used to set a player's experience level.\n+`player.hotbarSize` returns the player's hotbar size as int.\n+`player.inventorySize` returns the player's inventory size as int.\n+`player.currentItem` returns the item the player is currently holding as IItemStack.\n+`player.creative` returns if the player is currently in creative mode (a.k.a gamemode 1) as bool.\n+`player.adventure` returns if the player is currently in adventure mode (a.k.a gamemode 2) as bool.\n+\n+`player.removeXP(XPtoRemove)` removes the given experience levels from the player. XPtoRemove is an int.\n+`player.update(IData)` updates the playerdata to the provided IData.\n+`player.sendChat(Message)` sends the player a Chat Message. Message can be either a string or a IChatMessage object.\n+`player.getHotbarStack(index)` returns the item at the given index within the player's inventory. Index is an int.\n+`player.give(item)` give the player the provided item. Item is an IItemStack.\n+\n+# IDimension\n+\n+The IDimension object contains information on a Dimension within the game, in this case the dimension the crafting is performed in.\n+\n+`dimension.isDay` returns if it is currently day or not in the dimension as bool.\n+`dimension.getBrightness(x,y,z)` returns the brightness at the given location as int. X,y and z are ints.\n+\n+\n+# ICraftingInventory\n+\n+The ICraftingInventory contains all kinds of information on the inventory a crafting process is performed in.\n+\n+`inventory.player` returns the player owning this inventory as IPlayer.\n+`inventory.size` returns the inventory's size as int.\n+`inventory.width` returns the inventory's width as int.\n+`inventory.height` returns the inventory's height as int.\n+`inventory.stackCount` returns the the number of stacks that are actually filled in as int.\n+\n+`inventory.getStack(index)` returns the stack at the given index as IItemStack or null if no item present. Index is an int.\n+`inventory.setStack(index, item)` sets the Stack at the given index to the provided item. Index is an int, item is an IItemStack. Use null if you want to clear the stack at that index.\n+\n+The top left stack is position (0, 0), x and y are ints.\n+`inventory.getStack(x, y)` returns the stack at the given position as IItemStack or null if no item present.\n+`inventory.setStack(x, y, item)` sets the stack at the given position to the provided item. Item is an IItemStack. Use null if you want to clear the stack at that position.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -18,6 +18,7 @@ pages:\n- Contional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- Import: 'AdvancedFunctions/Import.md'\n+ - Recipe Functions: 'AdvancedFunctions/Recipe_Functions.md'\n- Vanilla:\n- Brackets:\n- Items: 'Vanilla/Brackets/Bracket_Item.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Recipe_Functions.md
139,040
30.07.2017 10:19:25
-7,200
8308ebf9ece076cd4862849d94b324125f13ca27
Added IClient and IServer to the Game section
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Game/IClient.md", "diff": "+# ICliet\n+\n+The Client Interface is for providing general information on a Client.\n+This is only available for clients, these won't work on a sever!\n+\n+## Where to find the client class?\n+The Client class is a globally registered Symbol, so you won't need to import anything, you can just use the keyword `client`\n+\n+## What to do with it?\n+`client.player` returns the player running the client as an IPlayer Object.\n+`client.language` returns the language the client runs on as string.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Game/IServer.md", "diff": "+# IServer\n+The Server interface is for interaction with a server.\n+\n+## Where to find the Server class?\n+The Server class is a globally registered Symbol, so you won't need to import anything, you can just use the keyword `server`\n+\n+## What to do with it?\n+\n+### Commands\n+\n+#### Add Commands\n+Check the Commands entry in the AdvancedFunctions section for further information on how to add commands.\n+\n+```\n+//normal command (/name or /alias)\n+addCommand(String name, String usage, String[] aliases, ICommandFunction function, @Optional ICommandValidator validator, @Optional ICommandTabCompletion completion);\n+\n+//minetweaker command (/mt name)\n+addMineTweakerCommand(String name, String[] usage, ICommandFunction function);\n+```\n+\n+#### Check if a Command is added\n+`server.isCommandAdded(name)` returns if the given commans is added or not as bool. Name is a string.\n+\n+### Check if a player is OP\n+`server.isOP(player)` returns if the given player has OP permissions or not as bool.\n+\n+### Handle Login/Logout Events\n+Check the events entry in the AdvancedFunctions section for further information on how to use Event handlers.\n+```\n+//player logs in\n+server.onPlayerLoggedIn(function(player){\n+ doSomething();\n+});\n+\n+\n+//player logs out\n+server.onPlayerLoggedOut(function(player){\n+ doSomething();\n+});\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -25,7 +25,9 @@ pages:\n- Entities: 'Vanilla/Brackets/Bracket_Entity.md'\n- Liquids: 'Vanilla/Brackets/Bracket_Liquid'\n- Game:\n+ - IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n+ - IServer: 'Vanilla/Game/IServer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added IClient and IServer to the Game section
139,040
30.07.2017 11:50:05
-7,200
b19c179c26a03071a8829ded6b360e619a742c4a
Added Commands to Advanced_Fucntions
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Commands.md", "diff": "+# Custom Commands\n+\n+CraftTweaker allows you to add custom commands.\n+This only works prior to 1.12, though.\n+\n+## MineTweaker Commands\n+Generally, a MineTweaker command is called like this:\n+`/mt name argument(s)`\n+\n+And added like this:\n+```\n+server.addMineTweakerCommand(name,usage,commandFunction);\n+\n+server.addMineTweakerCommand(\n+ //makes the command available as '/mt test'\n+ \"test\",\n+\n+ //on 'mt help' this will be added:\n+\n+ //'/mt test'\n+ //' This prints whoever executes this to the log'\n+ [\"/mt test\", \" This prints whoever executes this to the log\"],\n+\n+ //creates the ICommand function\n+ //this requires 2 Parameters: The Arguments given to the command as String[] and the player executing the command.\n+ function(arguments, player){\n+ print(\"Player \"~player.name~\" executed the MT Command 'Test'\");\n+ });\n+```\n+\n+## Normal Commands\n+\n+A Normal command is called like this:\n+`/name argument(s)` or `/alias argument(s)`\n+\n+And added like this:\n+`server.addCommand(name, usage, aliases,validator, completion);`\n+`validator` and `completion` are optional.\n+`name` and `usage` are both strings.\n+`aliases` is a string[].\n+\n+Basic example:\n+```\n+server.addCommand(\n+ //makes the command available as '/customCommand1' and as '/cC1'\n+ //also adds a help message for the two commands.\n+ \"customCommand1\", \"This might actually do something\", [\"cC1\"],\n+\n+ //this is what the command will do\n+ //it is a function that requires 2 parameters: the arguments provided by the command and the player trying to execute teh command\n+ function(arguments, player){\n+ print(player.name~\" was naughty\");\n+ });\n+````\n+\n+Now we can add a commandValidator to that that checks if the player can execute this command.\n+If we don't set this, everyone can execute this command.\n+```\n+//same as before, only now with a 2 instead of the 1\n+server.addCommand(\"customCommand2\", \"This might actually do something\", [\"cC2\"], function(arguments, player){print(player.name~\" was naughty because he could\");},\n+\n+\n+ //the command validator is a function that requires 1 argument, that is the player trying to execute the command.\n+ function(player){\n+\n+ //only allows players in creative mode to execute the command\n+ return player.creative;\n+ }\n+);\n+```\n+\n+Now we can also add a ICommandTabCompletion object.\n+This is what helps us with some basic arguments and can be accessed by pressing tab while typing the command.\n+```\n+\n+//this time we're gonna so something with the given arguments\n+server.addCommand(\"customCommand3\", \"This might actually do something\", [\"cC3\"],\n+ function(arguments, player){\n+ print(\"Player \"~player.name~\" chose \"~arguments[0]~\" as first argument\");\n+ player.sendChat(\"You chose \"~arguments[0]~\" as your first argument\");\n+ },\n+\n+ function(player){return player.creative;},\n+\n+ //the ICommandValidator is a function that requires 2 parameters:\n+ //The arguments already provided as well as the player executing the command\n+ function(command, player){\n+ return [\"Arg1\", \"2\", \"Three\", player.name] as string[];\n+ }\n+);\n+\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -16,6 +16,7 @@ pages:\n- Arrays and Loops: 'AdvancedFunctions/Arrays_and_Loops.md'\n- Calculations: 'AdvancedFunctions/Calculations.md'\n- Contional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n+ - Custom Commands: 'AdvancedFunctions/Commands.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- Import: 'AdvancedFunctions/Import.md'\n- Recipe Functions: 'AdvancedFunctions/Recipe_Functions.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Commands to Advanced_Fucntions
139,040
30.07.2017 18:51:15
-7,200
07a47d24e976ca662dbe87f5e39cc674e02ccd75
Added Events page WIP
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Events.md", "diff": "+# Events\n+## Pre 1.12\n+Before 1.12, a lot of code was different, so was the way of implementing some Events\n+In before 1.12 there were essentially two events you could subscribe to and that was when players logged in and out.\n+\n+```\n+server.onPlayerLoggedIn(function(player){\n+ doSomething();\n+})\n+\n+\n+server.onPlayerLoggedOut(function(player){\n+ doSomething();\n+})\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -18,6 +18,7 @@ pages:\n- Contional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n- Custom Commands: 'AdvancedFunctions/Commands.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n+ - Event Listeners: 'AdvancedFunctions/Evnets.md'\n- Import: 'AdvancedFunctions/Import.md'\n- Recipe Functions: 'AdvancedFunctions/Recipe_Functions.md'\n- Vanilla:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Events page WIP
139,040
30.07.2017 18:53:47
-7,200
db812f3be7507dead34e34126d17f6385d30e683
Added pre-1.12 Warnings to IServer.md
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/IServer.md", "new_path": "docs/Vanilla/Game/IServer.md", "diff": "@@ -10,6 +10,7 @@ The Server class is a globally registered Symbol, so you won't need to import an\n#### Add Commands\nCheck the Commands entry in the AdvancedFunctions section for further information on how to add commands.\n+These also only work on CraftTweaker versions prior to Minecraft 1.12 due to a change of code.\n```\n//normal command (/name or /alias)\n@@ -27,6 +28,8 @@ addMineTweakerCommand(String name, String[] usage, ICommandFunction function);\n### Handle Login/Logout Events\nCheck the events entry in the AdvancedFunctions section for further information on how to use Event handlers.\n+These also only work on CraftTweaker versions prior to Minecraft 1.12 due to a change of code.\n+\n```\n//player logs in\nserver.onPlayerLoggedIn(function(player){\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added pre-1.12 Warnings to IServer.md
139,040
02.08.2017 15:16:17
-7,200
fec1a52f5c5de35bffae99c8635e6db4dfce6acc
Added Ore Bracket Handler
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Brackets/Bracket_Ore.md", "diff": "+# Ore Dictionary Bracket Handler\n+\n+The Ore Dictionary Bracket Handler gives you access to the Ore Dictionaries in the game.\n+\n+Ore Dictionarys are referenced in the Ore Dictionary Bracket Handler by like so:\n+\n+```\n+<ore:orename>\n+<ore:ingotIron>\n+```\n+\n+Returns an IOreDictEntry.\n+If the oreDictionary is not yet in the game, will create a new and empty oreDictionary with the given name and return that.\n+Please reger to the Ore Dictionary Entry for further information on what to do with them.\n+\n+\n+# Getting all Registered ore Dictionaries\n+\n+You can use the following command to output all registered ore Dictionaries to the CraftTweaker log\n+```\n+/ct oredict\n+/crafttweaker oredict\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -26,6 +26,7 @@ pages:\n- Items: 'Vanilla/Brackets/Bracket_Item.md'\n- Entities: 'Vanilla/Brackets/Bracket_Entity.md'\n- Liquids: 'Vanilla/Brackets/Bracket_Liquid'\n+ - Ores: 'Vanilla/Brackets/Bracket_Ore.md'\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Ore Bracket Handler
139,039
02.08.2017 12:32:43
14,400
53c1a94810a107fd8c7fd055fb6a79a6f26e3aaf
Fix menu typo for Conditional Statements page
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -15,7 +15,7 @@ pages:\n- Advanced Functions:\n- Arrays and Loops: 'AdvancedFunctions/Arrays_and_Loops.md'\n- Calculations: 'AdvancedFunctions/Calculations.md'\n- - Contional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n+ - Conditional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- Import: 'AdvancedFunctions/Import.md'\n- Vanilla:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix menu typo for Conditional Statements page
139,040
02.08.2017 19:30:22
-7,200
b02a8388edc04d14dd7de3926b76bfd6af8485e1
Closed Code Segment in IItemStack
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Variable_Types/IItemStack.md", "new_path": "docs/Vanilla/Variable_Types/IItemStack.md", "diff": "@@ -194,6 +194,7 @@ Returns an IItemStack with the given Damage.\nReturns a List of IOreDictEntries referring to this item.\n```\n<minecraft:apple>.ores;\n+```\n### As IBlock\nYou can cast an IItemStack to an IBlock, as long as you are referring to a block, otherwise the cast results in null.\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Closed Code Segment in IItemStack
139,040
02.08.2017 19:38:05
-7,200
a66480b311ad2411739d780722a0eb237e267581
Closed Code Segment in OreDict.md Also fixed typo
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/OreDict.md", "new_path": "docs/Vanilla/OreDict.md", "diff": "@@ -142,11 +142,12 @@ val OD = <ore:ingotIron>;\n//prints \"ingotIron\"\nprint(OD.name);\n+```\n## Get the first item of an oreDic\n-I have no idea why you would ever need this, but here you go\n-the firstItem function returns an IItemStack\n+I have no idea why you would ever need this, but here you go.\n+The firstItem function returns an IItemStack\n```\nval fI = <ore:ingotIton>.firstItem;\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Closed Code Segment in OreDict.md Also fixed typo
139,040
02.08.2017 19:50:30
-7,200
2d2feaa7a0d183f535b4ae0042c6accbe6dbe84f
Updated ConditionalStatements Added Java Keyword to Code Segments to ensure correct Syntax highlighting
[ { "change_type": "MODIFY", "old_path": "docs/AdvancedFunctions/Conditional_Statements.md", "new_path": "docs/AdvancedFunctions/Conditional_Statements.md", "diff": "@@ -8,7 +8,7 @@ That's what you need conditional Statements for.\nAn If-Statement is the first part of a conditional statement. It declares the condition that must be true for the following code to be executed.\nBe careful, you need TWO EQUALS when comparing values (that's because one equal is for declaring values!)\n-```\n+```Java\nval test = 0;\nif(test == 0){ //true\n@@ -20,7 +20,7 @@ if(test == 0){ //true\nAn Else-Statement can be added to the end of a conditional Statement to declare what will be executed when the if-condition equals to false.\n-```\n+```Java\nvar test = 0;\nif(test == 0){//true\n@@ -47,7 +47,7 @@ Supported Calculations are `+`,`-`,`*`,`/`,`mod`,`concatenation(~)`\nSupported Operands are `OR(|)`, `AND(&)`, `XOR(^)`\n-```\n+```Java\n//You can check for:\n@@ -87,7 +87,7 @@ That's why the `?` operator was implemented.\nIt follows the same logic as an if/else statement, it only is by far less code required.\nSyntax: `boolean ? if : else`\n-```\n+```Java\nval switchy = false;\n//prints switchy state\n@@ -134,7 +134,7 @@ First you need the list you want to check in, then the `in` then the value you w\nYou can check, if a mod is loaded by checking if it's in the loadedMods list\n-```\n+```Java\nif(loadedMods in \"mcp\"){\nprint(\"Minecraft Coder Pack loaded\");\n}\n@@ -144,7 +144,7 @@ if(loadedMods in \"mcp\"){\nYou can also check if an item matches a definition by comparing two IIngredients.\n-```\n+```Java\nif(<ore:ingotIron> in <minecraft:iron_ingot>){\nprint(\"Iron ingots are in the right oreDic\");\n}\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated ConditionalStatements Added Java Keyword to Code Segments to ensure correct Syntax highlighting
139,040
02.08.2017 19:56:15
-7,200
477acce0ea6bd1f19a310bbec7ecc159ca434324
Updated Custom_Functions.md Added Java Keyword to Ensure that the Syntax highlighting works correctly
[ { "change_type": "MODIFY", "old_path": "docs/AdvancedFunctions/Custom_Functions.md", "new_path": "docs/AdvancedFunctions/Custom_Functions.md", "diff": "@@ -7,7 +7,7 @@ You can even nest functions in functions\n## Basic Syntax\nGenerally, you declare a function using:\n-```\n+```Java\nfunction NAME ([arguments[as type]]) [as returnType]{\n[Statements]\n[return VALUE;]\n@@ -22,7 +22,7 @@ Let's take a closer look at specific functions.\nVoid functions are functions that will not return any value.\n-```\n+```Java\n//calls the function tens() without arguments\ntens();\n@@ -49,9 +49,9 @@ function realTens(a as string){\n## Return functions\nYou can also specify a value that should be returned by a function.\n-It is recommended using the ```as``` keyword to define the return type.\n+It is recommended using the `as` keyword to define the return type.\n-```\n+```Java\n//calls add function with 1 and 99 as parameters\nval result = add(1,99);\nprint(result);\n@@ -73,7 +73,7 @@ After declaring a recipe's output and inputs, you can add a function as third pa\nTo show this, we're gonna create a recipe that repairs your precious diamond Pickaxe using diamonds:\n-```\n+```Java\nval diaPick = <minecraft:diamond_pickaxe>;\n//we start normal, by writing the output\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Custom_Functions.md Added Java Keyword to Ensure that the Syntax highlighting works correctly
139,040
02.08.2017 19:57:12
-7,200
402a2be0fb9e963f56754f83f4663f8eb3d12303
Updated Recipes_Crafting_TAble.md Added 'Java' Identifier to ensure that syntax highlighting works correctly
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "new_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "diff": "@@ -20,7 +20,7 @@ There are several ways of removing recipes.\n### remove\n-```\n+```Java\nrecipes.remove(output, NBTMatch);\n```\n@@ -32,7 +32,7 @@ If `NBTMatch` is true, it will only remove recipes that result in items with th\n### removeShaped\n-```\n+```Java\nrecipes.removeShaped(output, inputs);\n```\n@@ -46,7 +46,7 @@ Furthermore, `inputs` is optional. If omitted, the function will do the same as\n### removeShapeless\n-```\n+```Java\nrecipes.removeShapeless(output, inputs, wildcard);\n```\n@@ -70,7 +70,7 @@ All other functionality stay the same. Remember that `name` needs to be unique!\n`name` is a string.\n### addShaped\n-```\n+```Java\n//pre-1.12\nrecipes.addShaped(output,inputs,function,action);\n@@ -91,7 +91,7 @@ If an `action` function is added as forth parameter, you can also determine, wha\n`inputs` is a 2 Dimensional IIngredient Array.\nSo the recipe for Iron Leggings would be written as `[[iron,iron,iron],[iron,null,iron],[iron,null,iron]]`\nIf that looks to confusing, try splitting the arrays up into one array per line\n-```\n+```Java\nval iron = <minecraft:iron_ingot>;\nval leggings = <minecraft:iron_leggings>;\n@@ -102,7 +102,7 @@ recipes.addShaped(leggings,\n```\n### addShapedMirrored\n-```\n+```Java\n//Normal pre 1.12 syntax\nrecipes.addShapedMirrored(output,inputs,function,action);\n@@ -114,7 +114,7 @@ Same as `addShaped`, only that the recipe created this way is a mirrored recipe.\n### addShapeless\n-```\n+```Java\n//Normal pre 1.12 syntax\nrecipes.addShapeless(output,inputs,function,action)\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Recipes_Crafting_TAble.md Added 'Java' Identifier to ensure that syntax highlighting works correctly
139,040
02.08.2017 20:37:06
-7,200
d195989428fa1e9646c1ba100d36a599da5cc6c9
Removed Commands as not in 1.12
[ { "change_type": "DELETE", "old_path": "docs/AdvancedFunctions/Commands.md", "new_path": null, "diff": "-# Custom Commands\n-\n-CraftTweaker allows you to add custom commands.\n-This only works prior to 1.12, though.\n-\n-## MineTweaker Commands\n-Generally, a MineTweaker command is called like this:\n-`/mt name argument(s)`\n-\n-And added like this:\n-```\n-server.addMineTweakerCommand(name,usage,commandFunction);\n-\n-server.addMineTweakerCommand(\n- //makes the command available as '/mt test'\n- \"test\",\n-\n- //on 'mt help' this will be added:\n-\n- //'/mt test'\n- //' This prints whoever executes this to the log'\n- [\"/mt test\", \" This prints whoever executes this to the log\"],\n-\n- //creates the ICommand function\n- //this requires 2 Parameters: The Arguments given to the command as String[] and the player executing the command.\n- function(arguments, player){\n- print(\"Player \"~player.name~\" executed the MT Command 'Test'\");\n- });\n-```\n-\n-## Normal Commands\n-\n-A Normal command is called like this:\n-`/name argument(s)` or `/alias argument(s)`\n-\n-And added like this:\n-`server.addCommand(name, usage, aliases,validator, completion);`\n-`validator` and `completion` are optional.\n-`name` and `usage` are both strings.\n-`aliases` is a string[].\n-\n-Basic example:\n-```\n-server.addCommand(\n- //makes the command available as '/customCommand1' and as '/cC1'\n- //also adds a help message for the two commands.\n- \"customCommand1\", \"This might actually do something\", [\"cC1\"],\n-\n- //this is what the command will do\n- //it is a function that requires 2 parameters: the arguments provided by the command and the player trying to execute teh command\n- function(arguments, player){\n- print(player.name~\" was naughty\");\n- });\n-````\n-\n-Now we can add a commandValidator to that that checks if the player can execute this command.\n-If we don't set this, everyone can execute this command.\n-```\n-//same as before, only now with a 2 instead of the 1\n-server.addCommand(\"customCommand2\", \"This might actually do something\", [\"cC2\"], function(arguments, player){print(player.name~\" was naughty because he could\");},\n-\n-\n- //the command validator is a function that requires 1 argument, that is the player trying to execute the command.\n- function(player){\n-\n- //only allows players in creative mode to execute the command\n- return player.creative;\n- }\n-);\n-```\n-\n-Now we can also add a ICommandTabCompletion object.\n-This is what helps us with some basic arguments and can be accessed by pressing tab while typing the command.\n-```\n-\n-//this time we're gonna so something with the given arguments\n-server.addCommand(\"customCommand3\", \"This might actually do something\", [\"cC3\"],\n- function(arguments, player){\n- print(\"Player \"~player.name~\" chose \"~arguments[0]~\" as first argument\");\n- player.sendChat(\"You chose \"~arguments[0]~\" as your first argument\");\n- },\n-\n- function(player){return player.creative;},\n-\n- //the ICommandValidator is a function that requires 2 parameters:\n- //The arguments already provided as well as the player executing the command\n- function(command, player){\n- return [\"Arg1\", \"2\", \"Three\", player.name] as string[];\n- }\n-);\n-\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -16,7 +16,6 @@ pages:\n- Arrays and Loops: 'AdvancedFunctions/Arrays_and_Loops.md'\n- Calculations: 'AdvancedFunctions/Calculations.md'\n- Conditional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n- - Custom Commands: 'AdvancedFunctions/Commands.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- Event Listeners: 'AdvancedFunctions/Evnets.md'\n- Import: 'AdvancedFunctions/Import.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Removed Commands as not in 1.12
139,040
02.08.2017 20:37:29
-7,200
5d6b447cd181f22a9895526d88dd928dd756fa8c
Removed Events as not (yet) in 1.12
[ { "change_type": "DELETE", "old_path": "docs/AdvancedFunctions/Events.md", "new_path": null, "diff": "-# Events\n-## Pre 1.12\n-Before 1.12, a lot of code was different, so was the way of implementing some Events\n-In before 1.12 there were essentially two events you could subscribe to and that was when players logged in and out.\n-\n-```\n-server.onPlayerLoggedIn(function(player){\n- doSomething();\n-})\n-\n-\n-server.onPlayerLoggedOut(function(player){\n- doSomething();\n-})\n-```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -17,7 +17,6 @@ pages:\n- Calculations: 'AdvancedFunctions/Calculations.md'\n- Conditional Statements: 'AdvancedFunctions/Conditional_Statements.md'\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- - Event Listeners: 'AdvancedFunctions/Evnets.md'\n- Import: 'AdvancedFunctions/Import.md'\n- Recipe Functions: 'AdvancedFunctions/Recipe_Functions.md'\n- Vanilla:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Removed Events as not (yet) in 1.12
139,040
02.08.2017 20:39:40
-7,200
ae56476f9925231f07297bc4aa943caf06f5a319
Added Liquid Bracket Handler Alias
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "new_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "diff": "@@ -5,8 +5,9 @@ The liquid Bracket Handler gives you access to the liquids in the game. It is on\nLiquids are referenced in the Liquid Bracket Handler by like so:\n```\n-<liquid:liquidname>\n-<liquid:lava>\n+<liquid:liquidname> OR <fluid:liquidname>\n+\n+<liquid:lava> OR <fluid:lava>\n```\nIf the liquid is found, this will return an ILiquidStack Object.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Liquid Bracket Handler Alias
139,040
02.08.2017 20:43:54
-7,200
7b891700819fbdfce04eb73c108d2f0361d19642
Removed IServer.md as not int 1.12
[ { "change_type": "DELETE", "old_path": "docs/Vanilla/Game/IServer.md", "new_path": null, "diff": "-# IServer\n-The Server interface is for interaction with a server.\n-\n-## Where to find the Server class?\n-The Server class is a globally registered Symbol, so you won't need to import anything, you can just use the keyword `server`\n-\n-## What to do with it?\n-\n-### Commands\n-\n-#### Add Commands\n-Check the Commands entry in the AdvancedFunctions section for further information on how to add commands.\n-These also only work on CraftTweaker versions prior to Minecraft 1.12 due to a change of code.\n-\n-```\n-//normal command (/name or /alias)\n-addCommand(String name, String usage, String[] aliases, ICommandFunction function, @Optional ICommandValidator validator, @Optional ICommandTabCompletion completion);\n-\n-//minetweaker command (/mt name)\n-addMineTweakerCommand(String name, String[] usage, ICommandFunction function);\n-```\n-\n-#### Check if a Command is added\n-`server.isCommandAdded(name)` returns if the given commans is added or not as bool. Name is a string.\n-\n-### Check if a player is OP\n-`server.isOP(player)` returns if the given player has OP permissions or not as bool.\n-\n-### Handle Login/Logout Events\n-Check the events entry in the AdvancedFunctions section for further information on how to use Event handlers.\n-These also only work on CraftTweaker versions prior to Minecraft 1.12 due to a change of code.\n-\n-```\n-//player logs in\n-server.onPlayerLoggedIn(function(player){\n- doSomething();\n-});\n-\n-\n-//player logs out\n-server.onPlayerLoggedOut(function(player){\n- doSomething();\n-});\n-```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -28,7 +28,6 @@ pages:\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n- - IServer: 'Vanilla/Game/IServer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Removed IServer.md as not int 1.12
139,040
02.08.2017 21:26:02
-7,200
1287b64c13fb8911094578955a81c093de7f0d9f
Added Potion Bracket Handler
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "diff": "+# Potion Bracket Handler\n+\n+The Potion Bracket Handler gives you access to the Potions in the game. It is only possible to get Potions registered in the game, so adding or removing mods may cause issues if you reference the mod's Potions in a Potion Bracket Handler.\n+\n+Potions are referenced in the Potion Bracket Handler like so:\n+\n+```\n+<potion:potionname>\n+\n+<potion:strength>\n+```\n+\n+If the Potion is found, this will return an IPotion Object.\n+Please refer to the respective Wiki entry for further information on what you can do with these.\n+\n+# Getting all Registered Potions\n+\n+You can use the following command to output all registered Potions to the CraftTweaker log\n+```\n+/ct potions\n+/crafttweaker potions\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -25,6 +25,7 @@ pages:\n- Entities: 'Vanilla/Brackets/Bracket_Entity.md'\n- Liquids: 'Vanilla/Brackets/Bracket_Liquid'\n- Ores: 'Vanilla/Brackets/Bracket_Ore.md'\n+ - Potions: 'Vanilla/Brackets/Bracket_Potion.md'\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Potion Bracket Handler
139,040
02.08.2017 21:26:51
-7,200
76d867c561fe95851c0f3e350917ecb46b419394
Added IPotion entry
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Variable_Types/IPotion.md", "diff": "+# IPotion\n+\n+An IPotion object refers a potion in the game.\n+\n+## Getting an IPotion object\n+You can get such an object through the use of the Potion Bracket handler\n+\n+```Java\n+<potion:strength>;\n+```\n+\n+## Zengetters\n+\n+Currently, all you can do with potions is retrieving some information on them.\n+\n+| Zengetter | What does it do | Return Type | Example |\n+|-------------|-------------------------------------|-------------|---------------------------------|\n+| name | Returns the potion's internal name | string | `<potion:strength>.name` |\n+| badEffect | Returns if the potion effect is bad | bool | `<potion:strength>.badEffect` |\n+| liquidColor | Returns the potion's color | int | `<potion:strength>.liquidColor` |\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -40,6 +40,7 @@ pages:\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- IItemStack: 'Vanilla/Variable_Types/IItemStack.md'\n- ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n+ - IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added IPotion entry
139,040
02.08.2017 21:37:39
-7,200
0f1a95fdf8a6dad985ce94ae331cbff9adcb7351
Updated Mods.md Added the items getter Replaced the example code with a structured table
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/Mods.md", "new_path": "docs/Vanilla/Game/Mods.md", "diff": "@@ -23,11 +23,10 @@ val mod = loadedMods[\"mcp\"];\n# IMod\nThe IMod Interface provides you with some general information on a specific mod\n-```\n-val mod = loadedMods[\"mcp\"];\n-\n-print(mod.id);\n-print(mod.name);\n-print(mod.version);\n-print(mod.description);\n-```\n\\ No newline at end of file\n+| Zengetter | What does it do | Return Type | Usage |\n+|-------------|------------------------------------|--------------|-------------------|\n+| id | Returns the mod's id | string | `mod.id` |\n+| name | Returns the mod's internal name | string | `mod.name` |\n+| version | Returns the mod's version | string | `mod.version` |\n+| description | Returns the mod description | string | `mod.description` |\n+| items | Returns all items added by the mod | IItemStack[] | `mod.items` |\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Mods.md Added the items getter Replaced the example code with a structured table
139,040
02.08.2017 22:15:38
-7,200
82be4101a1c77e3c20ceb9993374adc6bb779be8
Moved IPlayer explanation from Recipe_Functions to Game/Iplayer.md
[ { "change_type": "MODIFY", "old_path": "docs/AdvancedFunctions/Recipe_Functions.md", "new_path": "docs/AdvancedFunctions/Recipe_Functions.md", "diff": "@@ -70,26 +70,6 @@ The IcraftingInfo object contains all kinds of information on the crafting proce\n`cInfo.player` returns the player conducting the crafting as an IPlayer object\n`cInfo.dimension` returns the dimension the crafting process is performed in as an IDimension object\n-# IPlayer\n-\n-The IPlayer object contains all kinds of information on a player, in this case on the player conducting the crafting.\n-\n-`player.id` returns the player's id as string.\n-`player.name` returns the player's name as string.\n-`player.data` returns the player's data as IData.\n-`player.xp` returns the player's experience level as int. Can also be used to set a player's experience level.\n-`player.hotbarSize` returns the player's hotbar size as int.\n-`player.inventorySize` returns the player's inventory size as int.\n-`player.currentItem` returns the item the player is currently holding as IItemStack.\n-`player.creative` returns if the player is currently in creative mode (a.k.a gamemode 1) as bool.\n-`player.adventure` returns if the player is currently in adventure mode (a.k.a gamemode 2) as bool.\n-\n-`player.removeXP(XPtoRemove)` removes the given experience levels from the player. XPtoRemove is an int.\n-`player.update(IData)` updates the playerdata to the provided IData.\n-`player.sendChat(Message)` sends the player a Chat Message. Message can be either a string or a IChatMessage object.\n-`player.getHotbarStack(index)` returns the item at the given index within the player's inventory. Index is an int.\n-`player.give(item)` give the player the provided item. Item is an IItemStack.\n-\n# IDimension\nThe IDimension object contains information on a Dimension within the game, in this case the dimension the crafting is performed in.\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Game/IPlayer.md", "diff": "+# IPlayer\n+\n+The IPlayer interface allows you to view certain information on a specific player and interact with said one.\n+Mostly used in Event Handlers and Recipe Functions.\n+\n+##Zengetters\n+\n+Zengetters are for retrieving information. Usually either assigned to a variable or used in a method/function.\n+\n+| Zengetter | What does it do | Return Type | Usage |\n+|---------------|--------------------------------------------------------------------------------------------|-------------|------------------------|\n+| id | returns the player's id | string | `player.id` |\n+| name | returns the player's name | string | `player.name` |\n+| data | returns the player's data | IData | `player.data` |\n+| xp | returns the player's experience level. Can also be used to set a player's experience level | int | `player.xp` |\n+| hotbarSize | returns the player's hotbar size | int | `player.hotbarSize` |\n+| inventorySize | returns the player's inventory size | int | `player.inventorySize` |\n+| currentItem | returns the item the player is currently holding | IItemStack | `player.currentItem` |\n+| creative | returns if the player is currently in creative mode (a.k.a gamemode 1) | bool | `player.creative` |\n+| adventure | returns if the player is currently in adventure mode (a.k.a gamemode 2) | bool | `player.adventure` |\n+\n+\n+##Zenmethods\n+\n+Zenmethods are for doing things with other things, in this case with a player.\n+\n+| ZenMethod | Parameter Type(s) | What does it do | Example |\n+|-----------------------|------------------------|--------------------------------------------------------------------|------------------------------------------|\n+| removeXP(XPtoRemove) | int | Removes the given experience levels from the player. | `player.removeXP(1)` |\n+| update(IData) | Idata | Updates the playerdata to the provided IData. | |\n+| sendChat(Message) | string OR IChatMessage | Sends the player a Chat Message. | `player.sendChat(\"Hello my old friend\")` |\n+| getHotbarStack(index) | int | Returns the item at the given index within the player's inventory. | `player.getHotbarStack(3)` |\n+| give(item) | IItemStack | Give the player the provided item. Item is an IItemStack. | `player.give(<minecraft:gold_ingot>)` |\n+\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -40,6 +40,7 @@ pages:\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- IItemStack: 'Vanilla/Variable_Types/IItemStack.md'\n- ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n+ - IPlayer: 'Vanilla/Variable_Types/IPlayer.md'\n- IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Moved IPlayer explanation from Recipe_Functions to Game/Iplayer.md
139,040
02.08.2017 22:23:34
-7,200
7a6bb3f0580b5c6e1615963856e4d6434c1cf7e9
Update IPlayer.md Added forgotten Zengetters/Setters
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/IPlayer.md", "new_path": "docs/Vanilla/Game/IPlayer.md", "diff": "@@ -18,6 +18,10 @@ Zengetters are for retrieving information. Usually either assigned to a variable\n| currentItem | returns the item the player is currently holding | IItemStack | `player.currentItem` |\n| creative | returns if the player is currently in creative mode (a.k.a gamemode 1) | bool | `player.creative` |\n| adventure | returns if the player is currently in adventure mode (a.k.a gamemode 2) | bool | `player.adventure` |\n+| x | returns the player's current X position in the world | double | `player.x` |\n+| y | returns the player's current y position in the world | double | `player.y` |\n+| z | returns the player's current z position in the world | double | `player.z` |\n+\n##Zenmethods\n@@ -29,6 +33,7 @@ Zenmethods are for doing things with other things, in this case with a player.\n| removeXP(XPtoRemove) | int | Removes the given experience levels from the player. | `player.removeXP(1)` |\n| update(IData) | Idata | Updates the playerdata to the provided IData. | |\n| sendChat(Message) | string OR IChatMessage | Sends the player a Chat Message. | `player.sendChat(\"Hello my old friend\")` |\n-| getHotbarStack(index) | int | Returns the item at the given index within the player's inventory. | `player.getHotbarStack(3)` |\n+| getHotbarStack(index) | int | Returns the item at the given index within the player's hotbar. | `player.getHotbarStack(3)` |\n+| getInventoryStack(index) | int | Returns the item at the given index within the player's inventory. | `player.getInventoryStack(3)` |\n| give(item) | IItemStack | Give the player the provided item. Item is an IItemStack. | `player.give(<minecraft:gold_ingot>)` |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update IPlayer.md Added forgotten Zengetters/Setters
139,040
02.08.2017 22:34:57
-7,200
2405a2b06d410c2869bc9a0efbb09702bb761090
Updated Recipes_Crafting_Table.md Added the remove functions that use recipe names. Changed the example so that it uses a name. We want to do everything the correct way, don't we :smile:
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "new_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "diff": "@@ -59,6 +59,23 @@ If `wildcard` is true, it will remove shapeless recipes that craft `output` with\nFurthermore, `inputs` is optional. If omitted, the function will do the same as `recipe.remove`, though it will only remove shapeless Recipes.\n+### removeAll\n+Rempves all crafting recipes in the game.\n+A bit overkill, don't you think?\n+```java\n+recipes.removeAll`\n+```\n+\n+### Remove by name\n+As 1.12 introduces naming recipes, you can also remove recipes once you know their name.\n+You can also use regex to remove multiple recipes at once. And no, if you don't know what regular expressions are, I won't explain it here!\n+\n+```java\n+recipes.removeByRegex(\"name[1-9]\");\n+recipes.removeByRecipeName(\"name123\");\n+```\n+\n+\n## Add Recipes\n### Notes On 1.12\n@@ -95,7 +112,7 @@ If that looks to confusing, try splitting the arrays up into one array per line\nval iron = <minecraft:iron_ingot>;\nval leggings = <minecraft:iron_leggings>;\n-recipes.addShaped(leggings,\n+recipes.addShaped(\"CTLeggings\", leggings,\n[[iron,iron,iron],\n[iron,null,iron],\n[iron,null,iron]]);\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Recipes_Crafting_Table.md Added the remove functions that use recipe names. Changed the example so that it uses a name. We want to do everything the correct way, don't we :smile:
139,040
02.08.2017 22:39:22
-7,200
a64726440c52e8677955a78d36d9e9cd29b60d9f
Updated Recipes_Furnace.md Added the removeAll function Added `java` to code fragments to ensure syntax highlighting
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Recipes/Recipes_Furnace.md", "new_path": "docs/Vanilla/Recipes/Recipes_Furnace.md", "diff": "@@ -9,31 +9,36 @@ Crafttweaker allows you to `Add` and `Remove` Furnace recipes and change the fue\nThere are 2 ways to remove Furnace recipes, being:\n-```\n+```java\nfurnace.remove(output)\n```\nAnd\n-```\n+```java\nfurnace.remove(output, input);\n```\nThe first syntax is more flexible with the recipes that are removed and will remove all Furnace recipes that output the `output` given.\n-\nThe second syntax is more strict with the recipes that are removed and will remove all Furnace recipes that output the `output` given and has an input of `input`.\n+There also is a third way of removing furnace recipes, though this one will remove ALL furnace recipes registered in the game.\n+\n+```java\n+furnace.removeAll();\n+```\n+\n### Addition\nThere are 2 commands for adding furnace recipes:\n-```\n+```java\nfurnace.addRecipe(output, input);\n```\nAnd\n-```\n+```java\nfurnace.addRecipe(output, input, xp);\n```\n@@ -48,7 +53,7 @@ The second syntax will add a Furnace recipe that will give `xp` xp on smelt.\nThe command for setting fuel values is:\n-```\n+```java\nfurnace.setFuel(input, burnTime);\n```\n@@ -60,7 +65,7 @@ Setting the `burnTime` to `0` will stop the `input` from being a fuel item.\nThe command for retrieving an item's fuel value is:\n-```\n+```java\nfurnace.getFuel(item);\n```\n@@ -72,13 +77,13 @@ This will return the burn value as an integer\nThis will remove all Furnace recipes that outputs `<minecraft:glass>`.\n-```\n+```java\nfurnace.remove(<minecraft:glass>);\n```\nThis will remove all Furnace recipes `<minecraft:quartz>` that use `<minecraft:quartz_ore>` as an input.\n-```\n+```java\nfurnace.remove(<minecraft:quartz>, <minecraft:quartz_ore>);\n```\n@@ -86,13 +91,13 @@ furnace.remove(<minecraft:quartz>, <minecraft:quartz_ore>);\nThis will add a Furnace recipe that will output a `<minecraft:golden_apple>` when a `<minecraft:apple>` is smelted.\n-```\n+```java\nfurnace.addRecipe(<minecraft:golden_apple>, <minecraft:apple>);\n```\nThis will add a Furnace recipe that will output a `<minecraft:speckled_melon>` when a `<minecraft:melon>` is smelted and will give the player 1500 xp points.\n-```\n+```java\nfurnace.addRecipe(<minecraft:speckled_melon>, <minecraft:melon>, 1500);\n```\n@@ -100,6 +105,6 @@ furnace.addRecipe(<minecraft:speckled_melon>, <minecraft:melon>, 1500);\nThis will set the Fuel value of `<minecraft:rotten_flesh>` to `100`.\n-```\n+```java\nfurnace.setFuel(<minecraft:rotten_flesh>, 100);\n```\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Recipes_Furnace.md Added the removeAll function Added `java` to code fragments to ensure syntax highlighting
139,040
03.08.2017 08:56:17
-7,200
c3604b1bee051e1550a37a0d552bf11e900b2038
Fixed mkdocs entry Added `.md` to the liquid bracket handler path
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -23,7 +23,7 @@ pages:\n- Brackets:\n- Items: 'Vanilla/Brackets/Bracket_Item.md'\n- Entities: 'Vanilla/Brackets/Bracket_Entity.md'\n- - Liquids: 'Vanilla/Brackets/Bracket_Liquid'\n+ - Liquids: 'Vanilla/Brackets/Bracket_Liquid.md'\n- Ores: 'Vanilla/Brackets/Bracket_Ore.md'\n- Potions: 'Vanilla/Brackets/Bracket_Potion.md'\n- Game:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fixed mkdocs entry Added `.md` to the liquid bracket handler path
139,040
03.08.2017 09:19:06
-7,200
6d94f2ee7165ccfa6e04553ec1d5f24bb57eb9f8
Updated IGame.md Removed the lock command as no longer present in 1.12. Sorted the Table alphabetically by the zengetter names.
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/IGame.md", "new_path": "docs/Vanilla/Game/IGame.md", "diff": "@@ -7,12 +7,11 @@ Can be accessed using `game`\n| Zengetter | What does it do? | Return Type | Usage |\n|-----------|-----------------------------------------|--------------------------|-----------------|\n-| items | Returns all registered items as list | List<IItemDefinition> | `game.items` |\n-| blocks | Returns all registered blocks as list | List<IBlockDefinition> | `game.blocks` |\n-| liquids | Returns all registered liquids as list | List<ILiquidDefinition> | `game.liquids` |\n| biomes | Returns all registered biomes as list | List<IBiomes> | `game.biomes` |\n+| blocks | Returns all registered blocks as list | List<IBlockDefinition> | `game.blocks` |\n| entities | Returns all registered entities as list | List<IEntitiyDefinition> | `game.entities` |\n-| locked | Retrurns if the skript is locked or not | boolean | `game.locked` |\n+| items | Returns all registered items as list | List<IItemDefinition> | `game.items` |\n+| liquids | Returns all registered liquids as list | List<ILiquidDefinition> | `game.liquids` |\n## Methods\n@@ -37,7 +36,3 @@ All parameters are strings.\nReturns a localized String\n`game.localize(key)`\n`game.localize(key, lang)`\n\\ No newline at end of file\n-\n-### Lock\n-Locks the game, so skripts can no longer be reloaded.\n-Only applicable prior to CT 1.12 as CT 1.12 does no longer support reloads.\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated IGame.md Removed the lock command as no longer present in 1.12. Sorted the Table alphabetically by the zengetter names.
139,040
03.08.2017 09:35:44
-7,200
1aec203bea8cbf51db79569ade3e97fd89a4d3c3
Added IItemDefinition
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Variable_Types/IItemDefinition.md", "diff": "+# IItemDefinition\n+\n+An IItemDefinition object is the direct reference to an item.\n+It is different from an IItemStack as this only refers to the item, it does not include any meta-information or NBT-values!\n+\n+## How to get one\n+The easiest way is from an IItemStack, but you can also get a list of all registered IItemDefinitions in the game and do something with that.\n+\n+```\n+//IItemStack Zengetter \"definition\" -> single IItemDefinition\n+val itemDefinition = <minecraft:stone>.definition;\n+\n+//IGame zengetter \"items\" -> LIST!\n+val itemDefinitionList = game.items;\n+```\n+\n+## What to do with it\n+\n+### ZenGetters\n+\n+| ZenGetter | What does it do | Return Type | Usage |\n+|-----------|------------------------------------------------------------------------------------------------------|---------------------|------------|\n+| id | Returns the item ID | String | `def.id` |\n+| name | Returns the unlocalized item Name | String | `def.name` |\n+| ores | Returns all ore entries containing this item. Can also contain ore entries that refer to a sub-item. | List<IOreDictEntry> | `def.ores` |\n+\n+\n+### ZenMethods\n+\n+`def.makeStack(meta);` Creates an IItemStack with the given metadata. Metadata is an int and OPTIONAL.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -38,6 +38,7 @@ pages:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n- IEntityDefinition: 'Vanilla/Variable_Types/IEntityDefinition.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n+ - IItemDefinition: 'Vanilla/Variable_Types/IItemDefinition.md'\n- IItemStack: 'Vanilla/Variable_Types/IItemStack.md'\n- ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n- IPlayer: 'Vanilla/Variable_Types/IPlayer.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added IItemDefinition
139,040
03.08.2017 10:06:42
-7,200
7d8675eae9932c762d0ed9a3e43b298a08f4c4b6
Started a Tipps and Tricks Section with some Tipps for semi-experienced Tweakers
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -71,6 +71,7 @@ pages:\n- Pulverizer: 'Mods/Modtweaker/ThermalExpansion/Pulverizer.md'\n- Refinery: 'Mods/Modtweaker/ThermalExpansion/Refinery.md'\n- Sawmill: 'Mods/Modtweaker/ThermalExpansion/Sawmill.md'\n+ - Tipps and Tricks:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Started a Tipps and Tricks Section with some Tipps for semi-experienced Tweakers
139,040
03.08.2017 10:07:14
-7,200
77dec2355d775cb462674e6a2bdd090a1aca4941
Added Tip to use ItemDefinitions for meta ranges
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Tipps_Tricks/Items/IItemDefinition_Metas.md", "diff": "+# Using IItemDefinitions to save a lot of time when referring meta-items\n+\n+## Problem\n+Let's say we want to remove the recipes of some specific colors of wool.\n+White wool has the metadata 0, all colors range from meta 1 to meta 16.\n+\n+We want to remove the wools with meta 3 to 12. What do we do?\n+We can't just remove all of them (in other words, use `<minecraft:wool:*>`), but we also don't want to write 10 times the same thing.\n+While in this example this would totally work, in large scale this becomes pretty annoying!\n+\n+## What do we know/need to know\n+\n+- recipes.remove requires an IIngredient Object\n+- An IItemStack can be used as IIngredient as IItemstack extends IIngredient\n+- We can use IItemDefinitions to create IItemStacks\n+\n+## Solution\n+\n+We use IItemDefinitions and an integer Range and iterate through latter.\n+If we can't use an int range we can also use a number array, but that would require you to type in all required numbers.\n+You can also use this to Except some items from being used.\n+\n+```\n+val itemDef = <minecraft:wool>.definition;\n+\n+//does this for <minecraft:wool:3> to <minecraft:wool:12>\n+for i in 3 to 13{\n+ recipes.remove(itemDef.makeStack(i));\n+}\n+\n+\n+val numArray = [3,4,5,6,7,8,9,10,11,12] as int[];\n+\n+\n+//<minecraft:wool:3> to <minecraft:wool:12>\n+for i in numArray{\n+ itemDef.makeStack(i).addTooltip(\"Un-Craftable\");\n+}\n+\n+//<minecraft:wool:3> to <minecraft:wool:12>, but without 5 and 9\n+for i in 3 .. 13{\n+ if(i != 5 & i != 9){\n+ itemDef.makeStack(i).addShiftTooltip(\"Help me!\");\n+ }\n+}\n+\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -72,6 +72,8 @@ pages:\n- Refinery: 'Mods/Modtweaker/ThermalExpansion/Refinery.md'\n- Sawmill: 'Mods/Modtweaker/ThermalExpansion/Sawmill.md'\n- Tipps and Tricks:\n+ - Items:\n+ - Using IItemDefinitions for meta ranges: 'Tipps_Tricks/Items/IItemDefinition_Metas.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Tip to use ItemDefinitions for meta ranges
139,040
03.08.2017 11:55:15
-7,200
b0b655ed846b552c982b665ba3c1453586a59d96
Added Tutorial Foreword and General Tip to use Loops
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Tipps_Tricks/Foreword.md", "diff": "+# Foreword\n+\n+This section will contain Tipps and Tricks from experienced Tweakers.\n+Remember that these are really individual and some can also hinder you from achieving your aims instead of facilitating it.\n+\n+## What this section is for\n+- Show you strategies on how to minimize your scripts.\n+- Show you strategies on how to save time writing the scripts.\n+- Show you strategies on how to make your scripts easier to read.\n+- Show you strategies on how to make your scripts easier to debug.\n+- Show you some often occuring mistakes, so you can spot them more easily in your scripts.\n+\n+\n+\n+## What this section is NOT for\n+\n+- This section is not to be understood as kind of Tutorial for the novice Tweaker.\n+- These tips are just tips, you don't need to implement them in your scripts and some might even be inappropriate for what you are trying to achieve.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Tipps_Tricks/General/Loops_Readability.md", "diff": "+# Use Loops to make your script look better\n+\n+## Problem\n+We all have seen it: Scripts with more than 500 lines where it sais 500 times `recipes.remove(item1);recipes.remove(item2),...`\n+Not only is this a pain to write, but it is possible that you spend hours debugging a little typo when the only exception you get is `error in recipes.zs: null`\n+\n+## Solution\n+My rule of fist:\n+When writing the exactly same command more than 10 times, with only 1 Parameter changing, I'll use a loop.\n+\n+So, instead of always typing out the functions, I declare one array containing all items. and iterate through that one.\n+\n+```\n+import crafttweaker.item.IIngredient;\n+\n+val Array = [\n+ item1,\n+ item2,\n+ item3,\n+ ...\n+] as IIngredient[];\n+\n+\n+for item in Array{\n+ recipes.remove(item);\n+}\n+```\n+\n+## Advantages\n+\n+- Your script becomes (in my opinion) easier to read\n+- You know exactly where your script screws up\n+- Last minute changes are really easy as all you need to do is adding or removing the item from the array.\n+\n+## Disadvantages\n+\n+- Only works when there's only a few parameters changing\n+- You could screw up your script without knowing it, by say, casting the array wrong\n+- One error in the array makes the whole array fail and nothing will be done at all.\n+- You might receive cryptic error messages because of the array being created the wrong way.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -72,8 +72,11 @@ pages:\n- Refinery: 'Mods/Modtweaker/ThermalExpansion/Refinery.md'\n- Sawmill: 'Mods/Modtweaker/ThermalExpansion/Sawmill.md'\n- Tipps and Tricks:\n+ - Foreword: 'Tipps_Tricks/Foreword.md'\n- Items:\n- Using IItemDefinitions for meta ranges: 'Tipps_Tricks/Items/IItemDefinition_Metas.md'\n+ - General Tips:\n+ - Use Loops to make your scripts easier to read: 'Tipps_Tricks/General/Loops_Readability.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Tutorial Foreword and General Tip to use Loops
139,040
03.08.2017 12:06:32
-7,200
7019de8f0b8c23de14790c26ce0630403d2ace94
Added General Tip to split files
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Tipps_Tricks/General/Split_Files.md", "diff": "+# Split your scripts into multiple files\n+\n+It is a good idea to split your script into multiple files\n+\n+## Problem\n+- When writing scripts for bigger modpacks, your script might soon become pretty long and confusing.\n+- Debugging a long script might take really long, especially if you have an error that doesn't point out a specific line in your script.\n+\n+## What we know/need to know\n+- CraftTweaker can load files from multiple script files.\n+- CraftTweaker can even load files in subfolders.\n+- Also, CraftTweaker can load .zip files.\n+\n+## Solution\n+- Split your large scripts into multiple smaller ones.\n+- You could for example create one script for each mod, or each mod handler.\n+\n+## Example\n+```\n+scripts\n+ thermalExpansion\n+ Compactor.zs\n+ Crucible.zs\n+ Vanilla\n+ Recipes\n+ Remove.zs\n+ Shaped.zs\n+ Shapeless.zs\n+ Seeds.zs\n+ oreDict.zs\n+```\n+\n+## Advantages\n+- Your script files become easier to debug.\n+- An error won't stop your whole script from working but instead only a small part of it.\n+- People checking your script files can easier orient themselves\n+\n+## Disadvantages\n+- You need to be careful with the loading order of the scripts (especially if one script removes a recipe and another one adds it).\n+- There are many ways to categorize your scripts after and yours may be confusing for outsiders.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -76,6 +76,7 @@ pages:\n- Items:\n- Using IItemDefinitions for meta ranges: 'Tipps_Tricks/Items/IItemDefinition_Metas.md'\n- General Tips:\n+ - Split your scripts into multiple files: 'Tipps_Tricks/General/Split_Files.md'\n- Use Loops to make your scripts easier to read: 'Tipps_Tricks/General/Loops_Readability.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added General Tip to split files
139,040
03.08.2017 12:39:24
-7,200
852ad93cfa3821ace955c86f380806081002a305
Updated Mods.md Added the contains ZenMethod
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/Mods.md", "new_path": "docs/Vanilla/Game/Mods.md", "diff": "@@ -4,12 +4,18 @@ You can use the keyword `loadedMods` to access all currently loaded mods.\n## Check if a mod is loaded\n-Use the `in`function to check if a mod is loaded:\n+Use the `in` function to check if a mod is loaded;\n+Also you can use the `contains` method:\n```\n//if MinecraftCoderPack is loaded\nif(loadedMods in \"mcp\"){\nprint(\"success!\");\n}\n+\n+//if MinecraftCoderPack is loaded\n+if(loadedMods.contains(\"mcp\")){\n+ print(\"success!!!\");\n+}\n```\n## Retrieve a specific mod\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Mods.md Added the contains ZenMethod
139,040
03.08.2017 12:56:49
-7,200
2ca14c5a898e3e5a95015a59cdf26b748738c399
Added Potions to IGame and Commands IGame -> Added potions ZenGetter Commands -> Added `/ct potions` command
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -165,6 +165,19 @@ Outputs a list of all the OreDict entries in the game to the crafttweaker.log fi\nIf a name is supplied, the names of all the items registered to the oredict will be outputted to the crafttweaker.log file.\n+## Potions\n+\n+Usage:\n+\n+`/craftweaker potions`\n+\n+`/ct potions`\n+\n+Description:\n+\n+Outputs a list of all the potions in the game to the crafttweaker.log file.\n+\n+\n## Recipes\nUsage:\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Game/IGame.md", "new_path": "docs/Vanilla/Game/IGame.md", "diff": "@@ -12,6 +12,7 @@ Can be accessed using `game`\n| entities | Returns all registered entities as list | List<IEntitiyDefinition> | `game.entities` |\n| items | Returns all registered items as list | List<IItemDefinition> | `game.items` |\n| liquids | Returns all registered liquids as list | List<ILiquidDefinition> | `game.liquids` |\n+| potions | Returns all registered potions as list | List<IPotion> | `game.potions` |\n## Methods\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Potions to IGame and Commands IGame -> Added potions ZenGetter Commands -> Added `/ct potions` command
139,040
03.08.2017 14:48:23
-7,200
97d9abda0caa97b321f840c240c4d94b1f30c8e2
Typo (?) in Loops_REadability.md rule of thumb
[ { "change_type": "MODIFY", "old_path": "docs/Tipps_Tricks/General/Loops_Readability.md", "new_path": "docs/Tipps_Tricks/General/Loops_Readability.md", "diff": "@@ -5,7 +5,7 @@ We all have seen it: Scripts with more than 500 lines where it sais 500 times `r\nNot only is this a pain to write, but it is possible that you spend hours debugging a little typo when the only exception you get is `error in recipes.zs: null`\n## Solution\n-My rule of fist:\n+My rule of thumb:\nWhen writing the exactly same command more than 10 times, with only 1 Parameter changing, I'll use a loop.\nSo, instead of always typing out the functions, I declare one array containing all items. and iterate through that one.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Typo (?) in Loops_REadability.md rule of thumb
139,040
03.08.2017 14:53:13
-7,200
d03a6a0f378331079fef23108aa71b1cb6d8cdef
Added Command `/ct Syntax`
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -226,6 +226,19 @@ Description:\nOutputs a list of all the items in the seed registry to the crafttweaker.log file.\n+## Syntax\n+\n+Usage:\n+\n+`/craftweaker syntax`\n+\n+`/ct syntax`\n+\n+Description:\n+\n+Reads through all your scripts and will output all errors it finds in your syntaxes.\n+Note that this won't apply your script changes, you need to restart your game to see them in effect.\n+\n## Wiki\nUsage:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Command `/ct Syntax`
139,040
06.08.2017 12:57:02
-7,200
1ef2beb2af84ef6e0a4b5f89ccc232d0649c4948
Added JEI entry
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/JEI/JEI.md", "diff": "+# JEI\n+\n+CraftTweaker comes with support for JustEnoughItems (JEI).\n+Currently all you can do is hide items from JEI.\n+\n+## Remove\n+You can either just remove the item from JEI or remove it and all of it's crafting table recipes.\n+\n+```\n+//hide(IItemStack item);\n+mods.jei.JEI.hide(<minecraft:diamond>);\n+\n+\n+//removeAndHide(IIngredient output, @optional boolean NBT-Match)\n+mods.jei.JEI.removeAndHide(<minecraft:iron_leggings>);\n+mods.jei.JEI.removeAndHide(<ore:planks>, false);\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -70,6 +70,8 @@ pages:\n- Kiln: 'Mods/Modtweaker/BetterWithMods/Kiln.md'\n- Saw: 'Mods/Modtweaker/BetterWithMods/Saw.md'\n- Turntable: 'Mods/Modtweaker/BetterWithMods/Turntable.md'\n+ - JEI:\n+ - JEI: 'Mods/JEI/JEI.md'\n- Thermal Expansion:\n- Compactor: 'Mods/Modtweaker/ThermalExpansion/Compactor.md'\n- Crucible: 'Mods/Modtweaker/ThermalExpansion/Crucible.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added JEI entry
139,040
06.08.2017 13:03:44
-7,200
767da143c24e9063fe2ad9b9128461e0e1bb4db5
Updated Renaming_Tooltips.md Added clearTolltip()
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Item_Modification/Renaming_Tooltips.md", "new_path": "docs/Vanilla/Item_Modification/Renaming_Tooltips.md", "diff": "@@ -33,8 +33,14 @@ game.setLocalization(tile.chest.name,\"StorageBox Deluxe\")\n# Tooltips\n-Adding a tooltip is really easy:\n-All you need is an item (or oreDict or similar).\n+Adding or removing a tooltip is really easy:\n+All you need is an item (or oreDict or similar), in other words, an IIngredient.\n+\n+## Clearing tooltips\n+This removes ALL tooltips from the `item`\n+```\n+item.clearTooltip();\n+```\n## Normal Tooltips\nThis adds `tT` as tooltip to `item`.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Renaming_Tooltips.md Added clearTolltip()
139,040
08.08.2017 09:37:36
-7,200
5bef781bdb8119f18a1fd9f31779611065cf2dc0
Entity Changes Moved IEntityDefinition Added IentityDrop
[ { "change_type": "RENAME", "old_path": "docs/Vanilla/Variable_Types/IEntityDefinition.md", "new_path": "docs/Vanilla/Entities/IEntityDefinition.md", "diff": "@@ -64,3 +64,14 @@ val entity = <entity:sheep>;\nentity.remove(<minecraft:wool>);\n```\n`item` is the item to be removed from being a drop and an IItemStack.\n+\n+\n+### Get\n+\n+This returns all drops that were added via CT as list\n+```\n+val entity = <entity:sheep>;\n+\n+//getDrops();\n+val dropList = entity.getDrops();\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Entities/IEntityDrop.md", "diff": "+# IEntityDrop\n+\n+An IEntityDrop refers to a drop from an Entity.\n+\n+## ZenGetters\n+\n+You can retrieve this information out of them.\n+\n+| ZenGetter | What does it do | Return type | Usage |\n+|------------|----------------------------------------------------------|--------------|-------------------|\n+| chance | Returns the chance of the drop. | float | `drop.chance` |\n+| max | Returns the maximum Amount of the drop. | int | `drop.max` |\n+| min | Returns the minimum Amount of the drop. | int | `drop.min` |\n+| playerOnly | Returns whether the drop is playerOnly. | boolean | `drop.playerOnly` |\n+| range | Returns the minimum to maximum Amount range of the drop. | IntegerRange | `drop.range` |\n+| stack | Returns the dropped Item. | IItemStack | `drop.stack` |\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -33,6 +33,9 @@ pages:\n- Liquids: 'Vanilla/Brackets/Bracket_Liquid.md'\n- Ores: 'Vanilla/Brackets/Bracket_Ore.md'\n- Potions: 'Vanilla/Brackets/Bracket_Potion.md'\n+ - Entities:\n+ - IEntityDefinition: 'Vanilla/Entites/IEntityDefinition.md'\n+ - IEntityDrop: 'Vanilla/Entities/IEntityDrop.md'\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n@@ -44,7 +47,6 @@ pages:\n- Seed Drops: 'Vanilla/Recipes/Seeds.md'\n- Variable Types:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n- - IEntityDefinition: 'Vanilla/Variable_Types/IEntityDefinition.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- IItemDefinition: 'Vanilla/Variable_Types/IItemDefinition.md'\n- IItemStack: 'Vanilla/Variable_Types/IItemStack.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Entity Changes Moved IEntityDefinition Added IentityDrop
139,040
08.08.2017 09:44:55
-7,200
fc7884bcb3314f0bcd66f48a5739a1cd99155a0a
Updated IEntityDefinition Added the weigted Drop methods
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Entities/IEntityDefinition.md", "new_path": "docs/Vanilla/Entities/IEntityDefinition.md", "diff": "@@ -39,19 +39,27 @@ This adds a normal drop, a drop that can occur whenever the mob is killed by wha\n```\nval entity = <entity:sheep>;\n-//addDrop(item,min,max);\n+//addDrop(item,min,max,chance);\nentity.addDrop(<minecraft:apple>);\n+\n+//addDrop(weightedItem, min, max);\n+entity.addDrop(<minecraft:stone> % 20);\n```\n-`item` is the item to be added as drop and an IItemStack.\n+`item` is the item to be added as drop and an IItemStack or a WeightedItemStack.\n`min` is the minimum amount that is dropped and an Integer. This is optional.\n`max` is the maximum amount that is dropped and an Integer. This is optional.\n+`chance` is the drop chance. This is optional. Not needed if you use a weightedItemStack instead as `item`\n### Add playeronly drop\nSame as normal drops, but only if the entity was killed by a player.\n```\n+//addPlayerOnlyDrop(item,min,max,chance);\nentity.addPlayerOnlyDrop(<minecraft:gold_ingot>, 10,64);\n+\n+//addPlayerOnlyDrop(weightedItem, min, max);\n+entity.addPlayerOnlyDrop(<minecraft:iron_ingot> % 20, 1, 3);\n```\n### Remove\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated IEntityDefinition Added the weigted Drop methods
139,040
08.08.2017 09:45:16
-7,200
5ff7d214ac940c69d0206fe38e249f4ea6648a65
Added potion getter liquidColour
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Variable_Types/IPotion.md", "new_path": "docs/Vanilla/Variable_Types/IPotion.md", "diff": "@@ -14,7 +14,8 @@ You can get such an object through the use of the Potion Bracket handler\nCurrently, all you can do with potions is retrieving some information on them.\n| Zengetter | What does it do | Return Type | Example |\n-|-------------|-------------------------------------|-------------|---------------------------------|\n+|--------------|-------------------------------------|-------------|---------------------------------|\n| name | Returns the potion's internal name | string | `<potion:strength>.name` |\n| badEffect | Returns if the potion effect is bad | bool | `<potion:strength>.badEffect` |\n| liquidColor | Returns the potion's color | int | `<potion:strength>.liquidColor` |\n+| liquidColour | Returns the potion's colour | int | `<potion:strength>.liquidColor` |\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added potion getter liquidColour
139,040
08.08.2017 11:18:45
-7,200
c41cd5d679c9eee952108c45dec4e65d29ee8b18
Added ingredient.ItemArray
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Variable_Types/IIngredient.md", "new_path": "docs/Vanilla/Variable_Types/IIngredient.md", "diff": "@@ -59,7 +59,9 @@ Using the OR methods is not adviced, as JEI does not display these recipes and s\nSometimes an IIngredient represents more than one item, for example if you are using an OreDictEntry or if you OR-ed two Ingredients.\nYou can get all possible items for this IIngredient in an IItemStack List using the first function.\n-Same goes for liquids in the second function, only they return an ILiquidStack List.\n+The second function does the same as the first function but returns a IItemStack[] instead of a list.\n+Same goes for liquids in the third function, only they return an ILiquidStack List.\n+\n```\n//Returns an IItemStack List\n@@ -77,6 +79,11 @@ for item in itemsIngredient.items{\nprint(item.displayName);\n}\n+for item in itemsIngredient.itemArray{\n+ //Prints each possible item's Display name\n+ print(item.displayName);\n+}\n+\nfor liquid in liquidsIngredient.liquids{\n//Prints each possible liquid's Display name\nprint(liquid.displayName);\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added ingredient.ItemArray
139,040
08.08.2017 13:17:12
-7,200
11edf60dc729f3e6b809f0da2a8885c994bfdbfd
Changes to Items Put them in a separate Category Split Renaming_Tooltips into their respective Entries
[ { "change_type": "RENAME", "old_path": "docs/Vanilla/Item_Modification/Item_Conditions.md", "new_path": "docs/Vanilla/Items/Item_Conditions.md", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Items/Renaming.md", "diff": "+# Renaming\n+\n+Always reading 'chest' is annoying, isn't it?\n+\n+That's why there's the possibility to rename stuff.\n+\n+## Changing the display name\n+\n+This is probably the easiest way to achieve a different item or block name.\n+You rename `item` to `newName`:\n+```\n+item.displayName = newName;\n+\n+//Example\n+<minecraft:chest>.displayName = \"Storage Box Deluxe\";\n+```\n+`item` is an IItemStack.\n+`newName` is a String.\n+\n+## Changing the localization\n+\n+If some modded inventories still show the item's old name instead of the new one, you need to change the localization.\n+You can read what that means on the `game` entry.\n+```\n+game.setLocalization(languageCode,unlocalizedName,newName);\n+\n+game.setLocalization(tile.chest.name,\"StorageBox Deluxe\")\n+```\n+`languageCode` is a string and optional. If you omit it, it will apply the localization regardless of the client's set language.\n+`unlocaLizedName` is a string.\n+`newName` is a string.\n\\ No newline at end of file\n" }, { "change_type": "RENAME", "old_path": "docs/Vanilla/Item_Modification/Renaming_Tooltips.md", "new_path": "docs/Vanilla/Items/Tooltips.md", "diff": "-# Renaming\n-\n-Always reading 'chest' is annoying, isn't it?\n-\n-That's why there's the possibility to rename stuff.\n-\n-## Changing the display name\n-\n-This is probably the easiest way to achieve a different item or block name.\n-You rename `item` to `newName`:\n-```\n-item.displayName = newName;\n-\n-//Example\n-<minecraft:chest>.displayName = \"Storage Box Deluxe\";\n-```\n-`item` is an IItemStack.\n-`newName` is a String.\n-\n-## Changing the localization\n-\n-If some modded inventories still show the item's old name instead of the new one, you need to change the localization.\n-You can read what that means on the `game` entry.\n-```\n-game.setLocalization(languageCode,unlocalizedName,newName);\n-\n-game.setLocalization(tile.chest.name,\"StorageBox Deluxe\")\n-```\n-`languageCode` is a string and optional. If you omit it, it will apply the localization regardless of the client's set language.\n-`unlocaLizedName` is a string.\n-`newName` is a string.\n-\n-\n# Tooltips\nAdding or removing a tooltip is really easy:\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -7,9 +7,6 @@ pages:\n- Commands: 'Vanilla/Commands.md'\n- Brackets:\n- Bracket Handlers: 'Brackets/Brackets.md'\n- - Item States:\n- - Item Conditions: 'Vanilla/Item_Modification/Item_Conditions.md'\n- - Renaming items and setting tooltips: 'Vanilla/Item_Modification/Renaming_Tooltips.md'\n- Ore Dictionary:\n- Ore Dictionary: 'Vanilla/OreDict.md'\n- Advanced Functions:\n@@ -41,6 +38,10 @@ pages:\n- IGame: 'Vanilla/Game/IGame.md'\n- IPlayer: 'Vanilla/Game/IPlayer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n+ - Items:\n+ - Item Conditions: 'Vanilla/Items/Item_Conditions.md'\n+ - Tooltips: 'Vanilla/Items/Tooltips.md'\n+ - Renaming: 'Vanilla/Items/Renaming.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n- Furnace Recipes: 'Vanilla/Recipes/Recipes_Furnace.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Changes to Items - Put them in a separate Category - Split Renaming_Tooltips into their respective Entries
139,040
08.08.2017 13:20:04
-7,200
7753030f29bfa5aaa407509f4836758fd5fd63d1
Moved IItemStack and IItemDefinition to Vanilla/Items
[ { "change_type": "RENAME", "old_path": "docs/Vanilla/Variable_Types/IItemDefinition.md", "new_path": "docs/Vanilla/Items/IItemDefinition.md", "diff": "" }, { "change_type": "RENAME", "old_path": "docs/Vanilla/Variable_Types/IItemStack.md", "new_path": "docs/Vanilla/Items/IItemStack.md", "diff": "" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -39,6 +39,8 @@ pages:\n- IPlayer: 'Vanilla/Game/IPlayer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n- Items:\n+ - IItemDefinition: 'Vanilla/Items/IItemDefinition.md'\n+ - IItemStack: 'Vanilla/Items/IItemStack.md'\n- Item Conditions: 'Vanilla/Items/Item_Conditions.md'\n- Tooltips: 'Vanilla/Items/Tooltips.md'\n- Renaming: 'Vanilla/Items/Renaming.md'\n@@ -49,8 +51,6 @@ pages:\n- Variable Types:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- - IItemDefinition: 'Vanilla/Variable_Types/IItemDefinition.md'\n- - IItemStack: 'Vanilla/Variable_Types/IItemStack.md'\n- ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n- IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Moved IItemStack and IItemDefinition to Vanilla/Items
139,040
08.08.2017 13:27:51
-7,200
d213b4d72f080eaffa8fea73ee49d9e2226766fc
Moved Liquids to their own category
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Liquids/ILiquidDefinition.md", "diff": "+# ILiquidDefinition\n+The ILiquidDefinition defines the liquid an ILiquidStack consists of.\n+Unlike the ILiquidStack, this interface allows you to change fluid properties.\n+\n+## Methods\n+So, what can we do with it?\n+\n+### Multiplication\n+Multiplying a ILiquidDefinition results in a new ILiquidStack with the specified amount in millibuckets\n+\n+```\n+val def = <liquid:lava>.definition;\n+\n+//essentially the same\n+val bucketOfLava = def * 1000;\n+val bucketOfLava1 = <liquid:lava> * 1000;\n+```\n+\n+## Get and Set fluid properties\n+\n+As an ILiquidDefinition represents a liquid, you can get, but also set it's properties.\n+Check the table below for further information.\n+\n+Like in the table above, you set the Zengetter/Setter at the end of the ILiquidDefinition.\n+Some ZenGetters have no according ZenSetter, you will need to rely on other means to alter these properties.\n+\n+Be careful with Zensetters though, they only alter the fluid registry and have no effect on fluids in the world.\n+In most cases you will not need them.\n+\n+```\n+val definition = <liquid:lava>.definition;\n+\n+//Zengetter: luminosity\n+val lavaL = definition.luminosity;\n+\n+//Zensetter: luminosity\n+definition.luminosity = 0;\n+```\n+\n+| Zengetter | Zensetter | What is this? | Return/Set Type |\n+|-------------|-------------|----------------------------------------------------------|------------------|\n+| name | | This returns the unlocalized liquid name | string |\n+| displayName | | This returns the localized liquid name | string |\n+| luminosity | luminosity | This returns/sets the luminosity of the referred liquid | int |\n+| density | density | This returns/sets the density of the referred liquid | int |\n+| temperature | temperature | This returns/sets the temperature of the referred liquid | int |\n+| viscosity | viscosity | This returns/sets the viscosity of the referred liquid | int |\n+| gaseous | gaseous | This returns/sets whether the referred liquid is gaseous | boolean |\n+| containers | | This returns all Containers for the referred liquid | List<IItemStack> |\n\\ No newline at end of file\n" }, { "change_type": "RENAME", "old_path": "docs/Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md", "new_path": "docs/Vanilla/Liquids/ILiquidStack.md", "diff": "@@ -34,56 +34,6 @@ Check the table to see what you can retrieve from the ILiquidStack Object using\n| tag | This returns the ILiquidObject's tag | IData | `test = <liquid:lava>.tag;` |\n| definition | This returns the referred liquid's definition (see below) | ILiquidDefinition | `test = <liquid:lava>.definition;` |\n-# ILiquidDefinition\n-The ILiquidDefinition is the earlier mentioned definition an ILiquidStack consists of.\n-Unlike the ILiquidStack, this interface allows you to change fluid properties.\n-\n-## Methods\n-So, what can we do with it?\n-\n-### Multiplication\n-Multiplying a ILiquidDefinition results in a new ILiquidStack with the specified amount in millibuckets\n-\n-```\n-val def = <liquid:lava>.definition;\n-\n-//essentially the same\n-val bucketOfLava = def * 1000;\n-val bucketOfLava1 = <liquid:lava> * 1000;\n-```\n-\n-## Get and Set fluid properties\n-\n-As an ILiquidDefinition represents a liquid, you can get, but also set it's properties.\n-Check the table below for further information.\n-\n-Like in the table above, you set the Zengetter/Setter at the end of the ILiquidDefinition.\n-Some ZenGetters have no according ZenSetter, you will need to rely on other means to alter these properties.\n-\n-Be careful with Zensetters though, they only alter the fluid registry and have no effect on fluids in the world.\n-In most cases you will not need them.\n-\n-```\n-val definition = <liquid:lava>.definition;\n-\n-//Zengetter: luminosity\n-val lavaL = definition.luminosity;\n-\n-//Zensetter: luminosity\n-definition.luminosity = 0;\n-```\n-\n-| Zengetter | Zensetter | What is this? | Return/Set Type |\n-|-------------|-------------|----------------------------------------------------------|------------------|\n-| name | | This returns the unlocalized liquid name | string |\n-| displayName | | This returns the localized liquid name | string |\n-| luminosity | luminosity | This returns/sets the luminosity of the referred liquid | int |\n-| density | density | This returns/sets the density of the referred liquid | int |\n-| temperature | temperature | This returns/sets the temperature of the referred liquid | int |\n-| viscosity | viscosity | This returns/sets the viscosity of the referred liquid | int |\n-| gaseous | gaseous | This returns/sets whether the referred liquid is gaseous | boolean |\n-| containers | | This returns all Containers for the referred liquid | List<IItemStack> |\n-\n# IIngredient Implementaion\nJava Jargon: ILiquidStack implements IIngredient. In other words, all methods that can be used in IIngredients can also be used for ILiquidStacks\nRefer to the IIngredient entry for further information on this.\n@@ -91,6 +41,7 @@ Here are some special cases, as liquids just aren't items\n* You can't mark ILiquidStacks, and you get null of you try to retrieve an ILiquidStack's mark\n* .items returns an empty List\n+* .itemArray returns an empty Array\n* .liquids returns this liquid as ILiquidStack (so, exactly this object)\n* LiquidStacks can't have Transformers and asking for transformers always returns false\n* LiquidStacks can't have Conditions (.only doesn't work)\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -44,6 +44,9 @@ pages:\n- Item Conditions: 'Vanilla/Items/Item_Conditions.md'\n- Tooltips: 'Vanilla/Items/Tooltips.md'\n- Renaming: 'Vanilla/Items/Renaming.md'\n+ - Liquids:\n+ - ILiquidStack: 'Vanilla/Liquids/ILiquidStack.md'\n+ - ILiquidDefinition: 'Vanilla/Liquids/ILiquidDefinition.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n- Furnace Recipes: 'Vanilla/Recipes/Recipes_Furnace.md'\n@@ -51,7 +54,6 @@ pages:\n- Variable Types:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- - ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n- IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Moved Liquids to their own category
139,040
08.08.2017 13:54:34
-7,200
1f3ecff3c27707bc9e79d7e7d733e4c11f701485
Added Item_Transformers entry Yes I know that's already covered in IIngredient, just to be save
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Items/IItemStack.md", "new_path": "docs/Vanilla/Items/IItemStack.md", "diff": "@@ -198,3 +198,6 @@ Returns a List of IOreDictEntries referring to this item.\n### As IBlock\nYou can cast an IItemStack to an IBlock, as long as you are referring to a block, otherwise the cast results in null.\n+\n+## ItemTransformers and ItemConditions\n+You can find how to use these either in the IIngredient page or in their respecive entries in this wiki category `vanilla/Items/Item Transformers`\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Items/Item_Transformers.md", "diff": "+# Item Transformers\n+\n+Item Transformers transform your crafting inputs upon crafting.\n+This can range from damaging the item up to returning a completely different item.\n+\n+```Java\n+\n+val item = <minecraft:apple>;\n+\n+//Item won't be consumed and stays in the crafting slot.\n+var transformedItem = item.reuse();\n+\n+//Item won't be consumed but will be placed in your inventory upon crafting.\n+transformedItem = item.giveBack();\n+\n+//item will be consumed but will return the specified item to your inventory upon crafting.\n+transformedItem = item.giveBack(<minecraft:potato>);\n+\n+//item will be replaced with the specified item, which will instead go to the crafting slot\n+transformedItem = item.transformReplace(<minecraft:potato>);\n+\n+//damages the item by 1\n+transformedItem = item.transformDamage();\n+\n+//damages the item by the given value\n+transformedItem = item.transformDamage(3);\n+\n+//item will be consumed, no matter what.\n+transformedItem = item.noReturn();\n+\n+//Causes multiple items to be consumed.\n+transformedItem = item.transformConsume(3);\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -42,6 +42,7 @@ pages:\n- IItemDefinition: 'Vanilla/Items/IItemDefinition.md'\n- IItemStack: 'Vanilla/Items/IItemStack.md'\n- Item Conditions: 'Vanilla/Items/Item_Conditions.md'\n+ - Item Transformers: 'Vanilla/Items/Item_Transformers.md'\n- Tooltips: 'Vanilla/Items/Tooltips.md'\n- Renaming: 'Vanilla/Items/Renaming.md'\n- Liquids:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Item_Transformers entry Yes I know that's already covered in IIngredient, just to be save
139,040
10.08.2017 11:17:08
-7,200
ad16708f5f49484089658dce506dadd8d9775703
Updated Arrays and Loops Added mod.items example
[ { "change_type": "MODIFY", "old_path": "docs/AdvancedFunctions/Arrays_and_Loops.md", "new_path": "docs/AdvancedFunctions/Arrays_and_Loops.md", "diff": "@@ -107,4 +107,9 @@ for i in 10 .. 20 {\n//defines the variable \"i\" with each number from 10 to 19 (i.e. 10,11,12,...,18,19)\nprint(i);\n}\n+\n+for item in loadedMods[\"minecraft\"].items {\n+ defines the varaible \"item\" with each item added by the mod with the modID \"minecraft\" and removes its crafting recipe\n+ recipes.remove(item);\n+}\n```\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Arrays and Loops Added mod.items example
139,040
14.08.2017 16:35:01
-7,200
50bf40f38013f0c466d61cb6bf1596641049623d
Updated IItemStack Added some more ways how to call an IItemStack object
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Items/IItemStack.md", "new_path": "docs/Vanilla/Items/IItemStack.md", "diff": "@@ -4,8 +4,19 @@ An IItemStack Object consists of an item definition, a meta/damage value and NBT\nIn other words, it refers an item or a block.\n## Calling an IItemStack\n-Usually, the bracket handler returns an IItemStack Object, unless told not to do so.\n-`<minecraft:apple>` returns an IItemStack.\n+There are several methods that return an IItemStack\n+\n+* Using the bracket Handler `<minecraft:apple>`\n+* Using the `makeStack()` method on a IItemDefinition object `<minecraft:stone>.definition.makeStack(0)`\n+* Using the `stack` getter on a IEntityDrop object\n+* Using the `firstItem` getter on a ore Dictionary entry\n+\n+## Calling an IItemStack[] or a IItemStack List\n+If you call these functions, you will most likely do so to iterate through the resulting lists/Arrays\n+\n+* Using the `items` method on an IIngredient returns a IItemStack List: `<ore:ingotGold>.items`\n+* Using the `itemArray` method on an IIngredient returns a IItemStack[]: `<ore:ingotGold>.items`\n+* Using the `items` method on a IMod object returns a IItemStack[]: `loadedMods[\"minecraft\"].items`\n## Functions\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated IItemStack Added some more ways how to call an IItemStack object
139,040
15.08.2017 17:56:53
-7,200
ac4fac8a2338b8f50e25135fb8496f67db47d648
Added Description page for the basic variable functions (such as indexGet/concatentation etc)
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Variable_Types/Basic_Variables_Functions.md", "diff": "+# Basic variable functionality\n+\n+The most basic variable types of ZenScript are Strings, integers and booleans.\n+\n+## Most single types\n+`true == true` You can check if two values are the same.\n+`\"Hello\" != \"World\"` You can also check if two values are unequal.\n+\n+## Strings\n+Strings provide some functionality\n+\n+`\"Hello\".length` Returns the string's length as int.\n+`\"Hello\"[1]` Returns the character at the string's given index as another string.\n+`\"Hello\" in \"Hell\"` checks if the string before `in` contains the string after it as boolean.\n+`\"Hel\" ~ \"lo \" + \"World\"` You also can add/concatenate strings.\n+`string += \"assignAdd\"` you can also use the assignAdd/assignConcatenate operators.\n+\n+## Integers\n+Integers provide some functionality\n+`+-*/%` Basic mathematic operators (check the variable Types page). You can also use the operatorAssign tokens\n+`0 to 10` Returns an integer Range ranging from 0 to 10.\n+`1~10` Concatenates the integers (returns \"110\").\n+\n+\n+## Booleans\n+Booleans provide some functionality\n+`true ~ false` Concatenates the booleans (returns \"truefalse\").\n+`& | ^` Boolean operators (and/or/xor).\n+\n+## Arrays/ArrayLists\n+Arrays and ArrayLists provide common functions\n+`array[1]` returns the item at the given index.\n+`array[1] = \"Hello\"` Sets the item at the given index.\n+`array.length` returns the arrays length\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -54,6 +54,7 @@ pages:\n- Seed Drops: 'Vanilla/Recipes/Seeds.md'\n- Variable Types:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n+ - Basic Variable Functions: 'Vanilla/Variable_Types/Basic_Variables_Functions.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Description page for the basic variable functions (such as indexGet/concatentation etc)
139,040
17.08.2017 01:30:32
-7,200
d201daa78dd9aecc0280398523ecabff2c11b2d1
Potions Update New Potion Syntax Moved Potion to own section
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "new_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "diff": "@@ -5,9 +5,9 @@ The Potion Bracket Handler gives you access to the Potions in the game. It is on\nPotions are referenced in the Potion Bracket Handler like so:\n```\n-<potion:potionname>\n+<potion:modname:potionname>\n-<potion:strength>\n+<potion:minecraft:strength>\n```\nIf the Potion is found, this will return an IPotion Object.\n" }, { "change_type": "RENAME", "old_path": "docs/Vanilla/Variable_Types/IPotion.md", "new_path": "docs/Vanilla/Potions/IPotion.md", "diff": "@@ -6,7 +6,7 @@ An IPotion object refers a potion in the game.\nYou can get such an object through the use of the Potion Bracket handler\n```Java\n-<potion:strength>;\n+<potion:minecraft:strength>;\n```\n## Zengetters\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -48,6 +48,8 @@ pages:\n- Liquids:\n- ILiquidStack: 'Vanilla/Liquids/ILiquidStack.md'\n- ILiquidDefinition: 'Vanilla/Liquids/ILiquidDefinition.md'\n+ - Potions:\n+ - IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n- Furnace Recipes: 'Vanilla/Recipes/Recipes_Furnace.md'\n@@ -56,7 +58,6 @@ pages:\n- Types Overview: 'Vanilla/Variable_Types/Variable_Types.md'\n- Basic Variable Functions: 'Vanilla/Variable_Types/Basic_Variables_Functions.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- - IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Potions Update New Potion Syntax Moved Potion to own section
139,040
17.08.2017 01:31:56
-7,200
9694fda43f3e109d6d5aa2ada4d92165bd386925
Added IItemUtils.md
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Game/IItemUtils.md", "diff": "+# IItemUtils\n+\n+The ItemUtils interface provides various item utils.\n+It can be accessed using the `items` keyword.\n+\n+## Creating Potions\n+The createPotions function allows you to create custom potions.\n+Returns the potion as IItemStack\n+\n+```JAVA\n+//createPotion([[effect,strength,duration],[effect2, strength2,duration2],...]);\n+val potion = itemUtils.createPotion([[<potion:minecraft:strength>, 1, 1]]);\n+```\n+\n+## Get Items by name\n+These two functions both return an IItemStack[] containing all matching items.\n+The first item checks against the registry name, the 2nd the unlocalized name.\n+\n+```Java\n+//getItemsByRegexRegistryName(String Regex)\n+itemUtils.getItemsByRegexRegistryName(\"*\");\n+\n+//getItemsByRegexUnlocalizedName(String Regex)\n+itemUtils.getItemsByRegexUnlocalizedName(\"*\");\n+```\n+\n+## Create Spawn egg\n+The createSpawnEgg function allows you to create custom mod spawn eggs\n+The customNBT is OPTIONAL and can override the entity tag\n+\n+```JAVA\n+//createSpawnEgg(entity, @optional customNBT)\n+//NBT overrides entity (this creates a creeper egg!)\n+val egg = itemUtils.createSpawnEgg(<entity:minecraft:sheep>, {EntityTag:{id:\"minecraft:creeper\",NoAI:1 as byte,PersistenceRequired:1 as byte}});\n+```\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -36,6 +36,7 @@ pages:\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n+ - IItemUtils : 'Vanilla/Game/IItemUtils'\n- IPlayer: 'Vanilla/Game/IPlayer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added IItemUtils.md
139,040
17.08.2017 02:14:41
-7,200
2aa23c5b1c4326185158e6b9f18028bff3e0b71d
Added Preprocessor entries
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/DebugPreprocessor.md", "diff": "+# DebugPreprocessor\n+\n+The debugPreprocessor enables debug mode.\n+\n+## Call\n+You call the debug Preprocessor by adding `#debug` to your script file.\n+\n+## What it does\n+It globally enables debug mode. This mode outputs the parsed script files.\n+You most likely will never need them.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/IgnoreBracketErrorPreprocessor.md", "diff": "+# Ignore Bracket Errors Preprocessor\n+\n+This Preprocessor sets your script to ignore backet errors.\n+This DOES NOT in any way, shape or form magically correct your script, it supresses the error log.\n+\n+## Call\n+You can call the IgnoreBracketErrors Preprocessor by placing `#ignoreBracketErrors` inside your script file.\n+This Preprocessor is file-specific, so calling it on one file doesn't affect the others (at least not for what the processor's concerned.\n+\n+## What it does\n+When the preprocessor is called on a file, all error logging on bracket errors will be supressed.\n+This doesn't change the affected lines in any way, instead the only change is that your log won't contain the regarding lines.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -16,6 +16,10 @@ pages:\n- Custom Functions: 'AdvancedFunctions/Custom_Functions.md'\n- Import: 'AdvancedFunctions/Import.md'\n- Recipe Functions: 'AdvancedFunctions/Recipe_Functions.md'\n+ - Preprocessors:\n+ - On Preprocessors: 'AdvancedFunctions/On_Preprocessors.md'\n+ - Debug: 'AdvancedFunctions/Preprocessors/DebugPreprocessor.md'\n+ - Ignore Bracket Errors: 'AdvancedFunctions/Preprocessors/IgnoreBracketErrorPreprocessor.md'\n- Tips and Tricks:\n- Foreword: 'Tips_Tricks/Foreword.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Preprocessor entries
139,040
17.08.2017 02:53:00
-7,200
35b27b7bb990fd4efe94281a812cb39034766b74
Updated Commands.md Added the categories to the Names command
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -146,13 +146,29 @@ Outputs a list of all the mods and their versions in the game to the crafttweake\nUsage:\n-`/craftweaker names`\n+`/craftweaker names [category]`\n-`/ct names`\n+`/ct names [category]`\nDescription:\nOutputs a list of all the items in the game to the crafttweaker.log file.\n+The `category` argument is optional and will extend the list with the according information:\n+\n+* creativetabs\n+* damageable\n+* display\n+* maxdamage\n+* maxstack\n+* maxuse\n+* modid\n+* rarity\n+* repairable\n+* repaircost\n+* unloc\n+\n+You can also see all the available parameters using the TAB-Key autocompletion feature.\n+\n## OreDict\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated Commands.md Added the categories to the Names command
139,040
17.08.2017 02:58:55
-7,200
6aa47f14368d23397b85781cf85918a4eee70a72
Entities New way to call them
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "new_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "diff": "@@ -5,9 +5,9 @@ The Entity Bracket Handler gives you access to the Entities (e.g. Mobs, tile ent\nEntities are referenced in the Entity handler this way:\n```\n-<entity:entityName>\n+<entity:modID:entityName>\n-<entity:sheep>\n+<entity:minecraft:sheep>\n```\nIf the mob/entity is found, this will return an IEntityDefinition Object.\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Entities/IEntityDefinition.md", "new_path": "docs/Vanilla/Entities/IEntityDefinition.md", "diff": "@@ -4,8 +4,9 @@ This sounds scary, so what does it mean?\nBasically, it is a reference to an entity registered in the game, so it is a reference to, say a mob in the game.\n```\n-//This returns an IEntityDefinition Object\n-val test = <entity:sheep>;\n+//These return an IEntityDefinition Object\n+val test = <entity:minecraft:sheep>;\n+val test2 = game.getEntity(\"sheep\");\n```\n@@ -18,7 +19,7 @@ What can we do with it, now that we created that thing?\nReturns the ID as string\n```\n//returns \"net.minecraft.entity.passive.EntitySheep\"\n-<entity:sheep>.id;\n+<entity:minecraft:sheep>.id;\n```\n### name\n@@ -26,7 +27,7 @@ Returns the ID as string\nReturns the name as string\n```\n//returns \"Sheep\"\n-<entity:sheep>.name;\n+<entity:minecraft:sheep>.name;\n```\n## Drops\n@@ -37,7 +38,7 @@ We can even add and/or remove mob drops, isn't that great?\nThis adds a normal drop, a drop that can occur whenever the mob is killed by whatever means.\n```\n-val entity = <entity:sheep>;\n+val entity = <entity:minecraft:sheep>;\n//addDrop(item,min,max,chance);\nentity.addDrop(<minecraft:apple>);\n@@ -66,7 +67,7 @@ entity.addPlayerOnlyDrop(<minecraft:iron_ingot> % 20, 1, 3);\nThis removes a drop.\n```\n-val entity = <entity:sheep>;\n+val entity = <entity:minecraft:sheep>;\n//remove(item);\nentity.remove(<minecraft:wool>);\n@@ -78,7 +79,7 @@ entity.remove(<minecraft:wool>);\nThis returns all drops that were added via CT as list\n```\n-val entity = <entity:sheep>;\n+val entity = <entity:minecraft:sheep>;\n//getDrops();\nval dropList = entity.getDrops();\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Entities New way to call them
139,040
18.08.2017 19:35:58
-7,200
09eccc5afb3a2905163f4388d35afe0597a0f5ba
Standard and Comment
[ { "change_type": "MODIFY", "old_path": "docs/AdvancedFunctions/Arrays_and_Loops.md", "new_path": "docs/AdvancedFunctions/Arrays_and_Loops.md", "diff": "@@ -109,7 +109,7 @@ for i in 10 .. 20 {\n}\nfor item in loadedMods[\"minecraft\"].items {\n- defines the varaible \"item\" with each item added by the mod with the modID \"minecraft\" and removes its crafting recipe\n+ //defines the varaible \"item\" with each item added by the mod with the modID \"minecraft\" and removes its crafting recipe\nrecipes.remove(item);\n}\n```\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Standard and Comment
139,040
25.08.2017 00:27:05
-7,200
0a101b71ed868d64e4acba227f3ac05f7f6339b3
Added `/ct conflict` Command and made the list alphabetical again
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -68,17 +68,18 @@ Description:\nOpens your browser with the GitHub bug tracker.\n-## Entities\n+\n+## Conflict\nUsage:\n-`/craftweaker entities`\n+`/craftweaker conflict`\n-`/ct entities`\n+`/ct conflict`\nDescription:\n-Outputs a list of all the entities in the game to the crafttweaker.log file.\n+Outputs a list of all conflicting crafting recipes to the crafttweaker.log file.\n## Discord\n@@ -92,6 +93,20 @@ Description:\nOpens your browser with a link to the Discord server.\n+\n+## Entities\n+\n+Usage:\n+\n+`/craftweaker entities`\n+\n+`/ct entities`\n+\n+Description:\n+\n+Outputs a list of all the entities in the game to the crafttweaker.log file.\n+\n+\n## Hand\nUsage:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added `/ct conflict` Command and made the list alphabetical again
139,033
26.08.2017 14:45:00
14,400
2dca964ee3690855246ce5486c8e3761fa79f1aa
Added walkthrough
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/ContentTweaker.md", "diff": "+# ContentTweaker\n+\n+ContentTweaker allows for the Creation of Blocks, Items, Fluids, and other Minecraft Additions through ZenScript!\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/WalkThrough.md", "diff": "+# Walk-Through\n+\n+## After Install\n+First things first, before starting to create Blocks and such, it is suggested you run Minecraft at least once with\n+ContentTweaker installed. This will allow ContentTweaker to create the cot-scripts folder, and the resource folders\n+that it needs.\n+\n+## Important Folders\n+ContentTweaker should create two folders in your minecraft directory: \"cot-scripts\" and \"resources\". \"cot-scripts\"\n+should be the location of all scripts related to ContentTweaker, as in most cases CraftTweaker scripts run too late for\n+ContentTweaker to properly generate the objects. \"resources\" will be where all models, textures, and language files will\n+be found. More on this folder will be explained later.\n+\n+## First Block\n+So for the best example of how ContentTweaker's Objects works, I'll be showing you one of the basic objects you will be\n+creating, a block. There are other objects that can be created, but I won't be including them in this\n+walk-through. So first up, here is the script for the block I will using as example. Explanation of these methods can\n+be found at the Blocks Page.\n+```\n+import mods.contenttweaker.VanillaFactory;\n+import mods.contenttweaker.Block;\n+\n+var antiIceBlock = VanillaFactory.createBlock(\"anti_ice\", <blockmaterial:ice>);\n+antiIceBlock.setLightOpacity(3);\n+antiIceBlock.setLightValue(0);\n+antiIceBlock.setBlockHardness(5.0);\n+antiIceBlock.setBlockResistance(5.0);\n+antiIceBlock.setToolClass(\"pickaxe\");\n+antiIceBlock.setToolLevel(0);\n+antiIceBlock.setBlockSoundType(<soundtype:snow>);\n+antiIceBlock.setSlipperiness(0.3);\n+antiIceBlock.register();\n+```\n+This will create a Block that looks and acts slightly like Minecraft's Ice Block. You will want to put this script in\n+the 'cot-scripts' folder, following the same rules as in CraftTweaker's scripts.\n+\n+## Resources\n+You will also need to take a .png file and put it into 'resources/contenttweaker/textures/blocks' (This folder should be\n+created for you, if you have run ContentTweaker already) The name of the file should match the name you put into\n+createBlock, which in this case is 'anti_ice'. If you are planning on using a default cube shape with the block,\n+ContentTweaker will generate the model jsons needed for it to function correctly.\n+\n+The other part for this will be the language file. ContentTweaker will have already generated the en_us.lang file you\n+will need to a line that will look like `tile.contenttweaker.<block_name>=Block name` or in our case with the AntiIce it\n+will be `tile.contenttweaker.anti_ice=Anti Ice`. With both lang and texture filed in, you should be able to load up the\n+game and see your block which will have a model, texture, and name.\n+\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -51,6 +51,9 @@ pages:\n- ILiquidStack and ILiquidDefinition: 'Vanilla/Variable_Types/ILiquidStack_ILiquidDefinition.md'\n- IPotion: 'Vanilla/Variable_Types/IPotion.md'\n- Mods:\n+ - ContentTweaker:\n+ - ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n+ - WalkThrough: 'Mods/ContentTweaker/WalkThough'\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n- Actually Additions:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added walkthrough
139,033
26.08.2017 15:14:40
14,400
3a3c756c72fcf204be0b1d81d757edb496dfaefe
Added beginning of Block documentation
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/ContentTweaker.md", "new_path": "docs/Mods/ContentTweaker/ContentTweaker.md", "diff": "# ContentTweaker\n-ContentTweaker allows for the Creation of Blocks, Items, Fluids, and other Minecraft Additions through ZenScript!\n\\ No newline at end of file\n+ContentTweaker allows for the Creation of Blocks, Items, Fluids, and other Content through ZenScript!\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "diff": "+# Block\n+\n+## Fields\n+Required Fields will never have a default value, empty defaults means null.\n+\n+All Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\");` and gotten via get<field_name>;\n+\n+|Name|Type|Required|Default Value|Notes|\n+|---|---|---|---|---|\n+|UnlocalizedName|String|Yes||Name, should be all lowercase|\n+|CreativeTab|CreativeTabs|No|Misc|See [[Resources|Resources]] for info|\n+|FullBlock|boolean|No|True|Can you see passed this block to those around it|\n+|LightOpacity|int|No|255 if fullBlock is true or 0|Does Light pass through|\n+|Translucent|boolean|No|false|Is see through|\n+|LightValue|int|No|0|Light level of block, max 15|\n+|BlockHardness|float|No|5.0|How long it takes to break|\n+|BlockResistance|float|No|5.0|Explosion resistance|\n+|ToolClass|String|No|pickaxe|Tool required to Break Block|\n+|ToolLevel|int|No|2|Tool Level required to Break Block\n+|BlockSoundType|SoundType|No|Metal|See [[Resources|Resources]] for info|\n+|BlockMaterial|Material|No|Iron|See [[Resources|Resources]] for info|\n+|EnumBlockRenderType|EnumBlockRenderType|No|\"MODEL\"|See [[Models|Models]] for info|\n+|Slipperiness|float|No|0.6f|Ice blocks are 0.98f|\n+|OnBlockPlace|IBlockAction|No||Called when Block is placed. See [[Functions|Functions]] for more info|\n+|OnBlockBreak|IBlockAction|No||Called when Block is broken. See [[Functions|Functions]] for more info|\n+|BlockLayer|BlockRenderLayer|No|\"SOLID\"|See [[Models|Models]] for info|\n+\n+## Examples\n+\n+# Sample Block\n+```\n+import mods.contenttweaker.VanillaFactory;\n+import mods.contenttweaker.Block;\n+\n+var antiIceBlock = VanillaFactory.createBlock(\"anti_ice\", <blockmaterial:ice>);\n+antiIceBlock.setLightOpacity(3);\n+antiIceBlock.setLightValue(0);\n+antiIceBlock.setBlockHardness(5.0);\n+antiIceBlock.setBlockResistance(5.0);\n+antiIceBlock.setToolClass(\"pickaxe\");\n+antiIceBlock.setToolLevel(0);\n+antiIceBlock.setBlockSoundType(<soundtype:snow>);\n+antiIceBlock.setSlipperiness(0.3);\n+antiIceBlock.register();\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/WalkThrough.md", "new_path": "docs/Mods/ContentTweaker/WalkThrough.md", "diff": "@@ -8,12 +8,12 @@ that it needs.\n## Important Folders\nContentTweaker should create two folders in your minecraft directory: \"cot-scripts\" and \"resources\". \"cot-scripts\"\nshould be the location of all scripts related to ContentTweaker, as in most cases CraftTweaker scripts run too late for\n-ContentTweaker to properly generate the objects. \"resources\" will be where all models, textures, and language files will\n+ContentTweaker to properly generate the content. \"resources\" will be where all models, textures, and language files will\nbe found. More on this folder will be explained later.\n## First Block\n-So for the best example of how ContentTweaker's Objects works, I'll be showing you one of the basic objects you will be\n-creating, a block. There are other objects that can be created, but I won't be including them in this\n+So for the best example of how ContentTweaker's content works, I'll be showing you one of the basic content pieces you\n+will be creating, a block. There is other content that can be created, but I won't be including them in this\nwalk-through. So first up, here is the script for the block I will using as example. Explanation of these methods can\nbe found at the Blocks Page.\n```\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added beginning of Block documentation
139,040
27.08.2017 22:37:53
-7,200
bad22d56f88c4d7f32de390b5af892c74f51f2bf
Now makedocs should work!
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -38,12 +38,12 @@ pages:\n- Ores: 'Vanilla/Brackets/Bracket_Ore.md'\n- Potions: 'Vanilla/Brackets/Bracket_Potion.md'\n- Entities:\n- - IEntityDefinition: 'Vanilla/Entites/IEntityDefinition.md'\n+ - IEntityDefinition: 'Vanilla/Entities/IEntityDefinition.md'\n- IEntityDrop: 'Vanilla/Entities/IEntityDrop.md'\n- Game:\n- IClient: 'Vanilla/Game/IClient.md'\n- IGame: 'Vanilla/Game/IGame.md'\n- - IItemUtils : 'Vanilla/Game/IItemUtils'\n+ - IItemUtils : 'Vanilla/Game/IItemUtils.md'\n- IPlayer: 'Vanilla/Game/IPlayer.md'\n- Mods: 'Vanilla/Game/Mods.md'\n- Items:\n@@ -57,7 +57,7 @@ pages:\n- ILiquidStack: 'Vanilla/Liquids/ILiquidStack.md'\n- ILiquidDefinition: 'Vanilla/Liquids/ILiquidDefinition.md'\n- Potions:\n- - IPotion: 'Vanilla/Variable_Types/IPotion.md'\n+ - IPotion: 'Vanilla/Potions/IPotion.md'\n- Recipes:\n- Crafting Table Recipes: 'Vanilla/Recipes/Recipes_Crafting_Table.md'\n- Furnace Recipes: 'Vanilla/Recipes/Recipes_Furnace.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Now makedocs should work!
139,040
28.08.2017 00:10:52
-7,200
8be556d3e1175a4b81cb66a9bc605b6fd6d5faf9
IBlockPattern Can't test though as there's currently no way of getting these...
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Blocks/IBlock.md", "new_path": "docs/Vanilla/Blocks/IBlock.md", "diff": "@@ -17,3 +17,14 @@ There are multiple ways thet return an IBlock object:\n| definition | Returns the Block's definition | IBlockDefinition |\n| meta | Returns the Block's metadata | int |\n| data | Returns the Block's tileData | IData |\n+\n+\n+\n+# IBlockPattern\n+\n+IBlocks extend IBlockPattern Objects. That means, all functions that are available to IBlockPattern objects can also be used for IBlock objects:\n+\n+* Use the `blocks` ZenGetter\n+* OR'ing\n+* Matching using the `in` keyword\n+* Use the `displayName` ZenGetter\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Blocks/IBlockPattern.md", "diff": "+# IBlockPattern\n+\n+An IBlockPattern is an interface that allows for combining several blocks into one object.\n+It is comparable to what the IIngredient Interface is to IItemStacks.\n+\n+\n+## Calling an IBlockPattern Object\n+\n+Technically, each time you call an IBlock object, you call an IBlockPattern object.\n+But there are cases when you explicitly get an IBlockPattern Object as return.\n+\n+* OR two IBlocks\n+\n+## ZenGetters\n+\n+| ZenGetter | What does it do | Return Type |\n+|-------------|------------------------------------------------|--------------|\n+| blocks | Lists all possible blocks for this object | List<IBlock> |\n+| displayName | Returns the displayNames of the fitting blocks | String |\n+\n+## OR\n+\n+You can OR two IBlockPattern Objects using the OR `|` Operator\n+\n+## Matching\n+You can check if an IBlockPatternObject contains another using the `in` keyword.\n+For example, you could check if a Block is in an IBlockPattern.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -31,6 +31,7 @@ pages:\n- Blocks:\n- IBlock: 'Vanilla/Blocks/IBlock.md'\n- IBlockDefinition: 'Vanilla/Blocks/IBlockDefinition.md'\n+ - IBlockPattern: 'Vanilla/Blocks/IBlockPattern.md'\n- Brackets:\n- Items: 'Vanilla/Brackets/Bracket_Item.md'\n- Entities: 'Vanilla/Brackets/Bracket_Entity.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
IBlockPattern Can't test though as there's currently no way of getting these...
139,040
29.08.2017 13:32:14
-7,200
501fe5918b84606299fe865c374b3b8bfce45c35
Typo in StokedCrucible page
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Modtweaker/BetterWithMods/StokedCrucible.md", "new_path": "docs/Mods/Modtweaker/BetterWithMods/StokedCrucible.md", "diff": "@@ -14,7 +14,9 @@ mods.betterwithmods.StokedCrucible.add(<minecraft:dirt>,[<minecraft:stone>]);\n## Removal\n```\n-mods.betterwithmods.StokedCrucible.remove(IItemStack input, @Optional IIngredient[] inputs);\n+mods.betterwithmods.StokedCrucible.remove(IItemStack output, @Optional IIngredient[] inputs);\n+\n+mods.betterwithmods.StokedCrucible.remove(IItemStack output, @Optional IItemStack secondaryOutput);\nmods.betterwithmods.StokedCrucible.remove(<minecraft:dirt>,[<minecraft:stone>]);\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Typo in StokedCrucible page
139,040
01.09.2017 10:21:03
-7,200
84b8bf9dc20a9e751692c1894f831ba6a82abc91
Loader Preprocessor
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/LoaderPreprocessor.md", "diff": "+# LoaderPreprocessor\n+\n+The loader preprocessor will set the script's loader.\n+\n+## Call\n+You call the loader Preprocessor by adding `#loader loaderName` to your script file with `loaderName` being the name of the loader you want to assign the script to.\n+Example: `#loader contenttweaker`\n+\n+## What it does\n+Scripts with the loader Preprocessor will only be loaded by the loader specified.\n+In the example above, crafttweaker's loader won't touch the file, instead the loader called \"contentTweaker\" will execute that script.\n+If you don't specify that preprocessor, it will default to being \"crafttweaker\".\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -20,6 +20,7 @@ pages:\n- On Preprocessors: 'AdvancedFunctions/Preprocessors/On_Preprocessors.md'\n- Debug: 'AdvancedFunctions/Preprocessors/DebugPreprocessor.md'\n- Ignore Bracket Errors: 'AdvancedFunctions/Preprocessors/IgnoreBracketErrorPreprocessor.md'\n+ - Loader: 'AdvancedFunctions/Preprocessors/LoaderPreprocessor.md'\n- Tips and Tricks:\n- Foreword: 'Tips_Tricks/Foreword.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Loader Preprocessor
139,040
01.09.2017 10:21:25
-7,200
545df746371bcda76a399c56dc7f40b51e368e3e
Mod Loaded Preprocessor
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/ModLoadedPreprocessor.md", "diff": "+# ModLoaderPreprocessor\n+\n+The modLoaded Preprocessor only executes a script, if a certain mod is present.\n+\n+## Call\n+You call the modLoaded Preprocessor by adding `#modloaded modID` to your script file, with `modID` being the modId you want to check for:\n+Example: `#modloaded minecraft`\n+\n+You can also provide multiple modID's:\n+`#modloaded minecraft tconstruct` will only be executed if minecraft AND tconstruct are loaded.\n+\n+## What it does\n+If you added this preprocessor to a script, it will only be executed if the provided modID's are present, in other words if the respecting mods are loaded.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -21,6 +21,7 @@ pages:\n- Debug: 'AdvancedFunctions/Preprocessors/DebugPreprocessor.md'\n- Ignore Bracket Errors: 'AdvancedFunctions/Preprocessors/IgnoreBracketErrorPreprocessor.md'\n- Loader: 'AdvancedFunctions/Preprocessors/LoaderPreprocessor.md'\n+ - Mod Loaded: 'AdvancedFunctions/Preprocessors/ModLoadedPreprocessor.md'\n- Tips and Tricks:\n- Foreword: 'Tips_Tricks/Foreword.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Mod Loaded Preprocessor
139,040
01.09.2017 10:21:52
-7,200
55760804f6277bd05bf7da90c898685b7bb002cf
NoRun Preprocessor
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/NoRunPreprocessor.md", "diff": "+# NoRun Preprocessor\n+\n+The NoRun Preprocessor disables the script from being loaded COMPLETELY.\n+\n+## Call\n+You call the NoRun Preprocessor by adding `#norun` to your script file.\n+\n+## What it does\n+It completely disables the script it's added to from being loaded into the game.\n+Though `/ct syntax` will still show script issues in that file!\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -22,6 +22,7 @@ pages:\n- Ignore Bracket Errors: 'AdvancedFunctions/Preprocessors/IgnoreBracketErrorPreprocessor.md'\n- Loader: 'AdvancedFunctions/Preprocessors/LoaderPreprocessor.md'\n- Mod Loaded: 'AdvancedFunctions/Preprocessors/ModLoadedPreprocessor.md'\n+ - No Run: 'AdvancedFunctions/Preprocessors/NoRunPreprocessor.md'\n- Tips and Tricks:\n- Foreword: 'Tips_Tricks/Foreword.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
NoRun Preprocessor
139,040
01.09.2017 10:22:08
-7,200
b280d349efdc83666b7ea6b8e8c7a098596a3e7f
Priority Preprocessor
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/AdvancedFunctions/Preprocessors/PriorityPreprocessor.md", "diff": "+# PriorityPreprocessor\n+\n+The Priority Preprocessor allows you to give your scripts a loading priority.\n+\n+## Call\n+You call the Priority Preprocessor by adding `#priority number` to your script with `number` being the priority number you want to set.\n+\n+## What it does\n+The higher a script's priority the earlier it is getting executed.\n+Scripts with the same priority will be sorted alphabetically using their pathname.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -23,6 +23,7 @@ pages:\n- Loader: 'AdvancedFunctions/Preprocessors/LoaderPreprocessor.md'\n- Mod Loaded: 'AdvancedFunctions/Preprocessors/ModLoadedPreprocessor.md'\n- No Run: 'AdvancedFunctions/Preprocessors/NoRunPreprocessor.md'\n+ - Priority: 'AdvancedFunctions/Preprocessors/PriorityPreprocessor.md'\n- Tips and Tricks:\n- Foreword: 'Tips_Tricks/Foreword.md'\n- Items:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Priority Preprocessor
139,040
01.09.2017 10:42:11
-7,200
d9e2891eb8cbec2d551a4386b82c3b9731cec84d
DumpZs command
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -94,6 +94,21 @@ Description:\nOpens your browser with a link to the Discord server.\n+## DumpZs\n+\n+Usage:\n+\n+`/craftweaker dumpzs`\n+\n+`/ct dumpzs`\n+\n+\n+Description:\n+\n+Outputs a ZenScript dump to the crafttweaker.log file.\n+This will include all registered Bracket Handlers, ZenTypes, Global Functions, ZenExpansions an all Registered Packages including their methods.\n+Note that not all of these can be used from within the scripts!\n+\n## Entities\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
DumpZs command
139,040
01.09.2017 18:45:43
-7,200
5a92aaeae23e4e0b92b768a2537d3c4960c43044
Crossing fingers that it will work :smile:
[ { "change_type": "ADD", "old_path": "docs/assets/logo.png", "new_path": "docs/assets/logo.png", "diff": "Binary files /dev/null and b/docs/assets/logo.png differ\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -114,3 +114,10 @@ markdown_extensions:\n- sane_lists\ntheme_dir: 'mkdocs_windmill'\n+\n+extra:\n+ logo: 'assets/logo.png'\n+ #version: 0.0\n+ #article_nav_top: true\n+ #artivle_nav_bottom: true\n+ #history_buttons: false\n" }, { "change_type": "MODIFY", "old_path": "mkdocs_windmill/base.html", "new_path": "mkdocs_windmill/base.html", "diff": "@@ -138,7 +138,7 @@ if (is_top_frame) { $('body').addClass('wm-top-page'); }\n<footer class=\"col-md-12 wm-page-content\">\n{%- block footer %}\n- {%- if config.copyright %}<p>{{ config.copyright }}</p>{%- endif %}\n+ <p></p>\n<p>Documentation built with <a href=\"http://www.mkdocs.org/\">MkDocs</a> using <a href=\"https://github.com/gristlabs/mkdocs-windmill\">Windmill</a> theme by Grist Labs.</p>\n{%- endblock %}\n</footer>\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Crossing fingers that it will work :smile:
139,040
01.09.2017 19:00:36
-7,200
eb13ea8bf9435f88cc5fb2ec6b58e1b4987febf9
Should look a bit better that way
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "# If you add a page, you must add it to the index here\npages:\n- Home: 'index.md'\n- - Getting Started:\n- Getting Started With Scripts: 'Getting_Started.md'\n- - Commands:\n- Commands: 'Vanilla/Commands.md'\n- - Brackets:\n- Bracket Handlers: 'Brackets/Brackets.md'\n- - Ore Dictionary:\n- Ore Dictionary: 'Vanilla/OreDict.md'\n- Advanced Functions:\n- Arrays and Loops: 'AdvancedFunctions/Arrays_and_Loops.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Should look a bit better that way
139,040
03.09.2017 00:00:31
-7,200
aeff6e015c091456622242aef4b26aa1d4a609fc
Fixed Typo in mkdocs
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -70,7 +70,7 @@ pages:\n- Mods:\n- ContentTweaker:\n- ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n- - WalkThrough: 'Mods/ContentTweaker/WalkThough'\n+ - WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n- Actually Additions:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fixed Typo in mkdocs
139,040
03.09.2017 00:23:19
-7,200
c570107d0ecf093501e0f203756abae0b53cf270
Contenttweaker Block Bracker Handler
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "diff": "+# Block Bracket Handler\n+\n+The Block Bracket Handler gives you access to the blocks in the game. It is only possible to get blocks registered in the game, so adding or removing mods may cause issues if you reference the mod's blocks in a Block Bracket Handler.\n+\n+Entities are referenced in the Block handler this way:\n+\n+```\n+<block:modID:blockName>\n+\n+<block:minecraft:dirt>\n+```\n+\n+If the block is found, this will return an IBlock Object.\n+Please refer to the [respective Wiki entry](../../../../Vanilla/Blocks/IBlock.md) for further information on what you can do with these.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -71,6 +71,9 @@ pages:\n- ContentTweaker:\n- ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n- WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n+ - Vanilla:\n+ - Brackets:\n+ - Blocks: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md'\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n- Actually Additions:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Contenttweaker Block Bracker Handler
139,040
03.09.2017 00:23:44
-7,200
5ee6f3b8a3dc5c841af9d06b607c0c03cd4a287d
Interlinked Bracket Handlers to their return types
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "new_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "diff": "@@ -11,7 +11,7 @@ Entities are referenced in the Entity handler this way:\n```\nIf the mob/entity is found, this will return an IEntityDefinition Object.\n-Please refer to the respective Wiki entry for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](../Entities/IEntityDefinition) for further information on what you can do with these.\n# Getting all Registered Entities\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Item.md", "new_path": "docs/Vanilla/Brackets/Bracket_Item.md", "diff": "@@ -23,6 +23,9 @@ Usually you will never need this, unless dealing with several custom bracket han\nYou can also use a wildcard `*` to address all meta values.\nAlso optional: If left out it will be 0.\n+Normally, this will return an IItemStack Object.\n+Please refer to [the respective wiki entry](../Items/IItemStack) for further information.\n+\n## Examples\nAn example of the Item Bracket Handler would be:\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "new_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "diff": "@@ -11,7 +11,7 @@ Liquids are referenced in the Liquid Bracket Handler by like so:\n```\nIf the liquid is found, this will return an ILiquidStack Object.\n-Please refer to the respective Wiki entry for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](../Liquids/ILiquidStack) for further information on what you can do with these.\n# Getting all Registered liquids\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Ore.md", "new_path": "docs/Vanilla/Brackets/Bracket_Ore.md", "diff": "@@ -11,7 +11,7 @@ Ore Dictionarys are referenced in the Ore Dictionary Bracket Handler by like so:\nReturns an IOreDictEntry.\nIf the oreDictionary is not yet in the game, will create a new and empty oreDictionary with the given name and return that.\n-Please reger to the Ore Dictionary Entry for further information on what to do with them.\n+Please reger to the [Ore Dictionary](../OreDict) Entry for further information on what to do with them.\n# Getting all Registered ore Dictionaries\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "new_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "diff": "@@ -11,7 +11,7 @@ Potions are referenced in the Potion Bracket Handler like so:\n```\nIf the Potion is found, this will return an IPotion Object.\n-Please refer to the respective Wiki entry for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](../Potions/IPotion) for further information on what you can do with these.\n# Getting all Registered Potions\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Interlinked Bracket Handlers to their return types
139,040
03.09.2017 16:18:20
-7,200
1bd9f9350367ff180171c72ebd5b12f66d841bb9
Added WeightedItemStack
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Vanilla/Items/WeightedItemStack.md", "diff": "+# WeightedItemStack\n+A Weighted Item Stack is like a normal [IItemStack](IItemStack) but has a percentage added to it.\n+You normally use them when dealing with percentage based actions like drops or secondary outputs.\n+\n+## Calling a weightedItemStack\n+You can derive a weightedItemStack from an IItemStack by either using the modulo operator or the weight function on it.\n+\n+```\n+val itemStack = <minecraft:dirt>;\n+\n+//both create a weightedItemstack object with a chance of 20%\n+val wItemStack = itemStack % 20;\n+val wItemStack2 = itemStack.weight(0.2);\n+```\n+\n+\n+\n+## ZenGetters\n+\n+| ZenGetter | What does it do | Return Type |\n+|-----------|------------------------------------------------------|--------------------------|\n+| stack | Returns the associated itemStack | [IItemStack](IItemStack) |\n+| chance | Returns the stack's chance as decimal (e.g. 0.2) | float |\n+| percent | Returns the stack's chance as percentage (e.g. 20.0) | float |\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -54,6 +54,7 @@ pages:\n- Item Transformers: 'Vanilla/Items/Item_Transformers.md'\n- Tooltips: 'Vanilla/Items/Tooltips.md'\n- Renaming: 'Vanilla/Items/Renaming.md'\n+ - Weighted ItemStack: 'Vanilla/Items/WeightedItemStack.md'\n- Liquids:\n- ILiquidStack: 'Vanilla/Liquids/ILiquidStack.md'\n- ILiquidDefinition: 'Vanilla/Liquids/ILiquidDefinition.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added WeightedItemStack
139,040
03.09.2017 17:03:58
-7,200
700dfb25db156f882b6a9fabc0d28857cf153226
Added Interlinks to Blocks group
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Blocks/IBlock.md", "new_path": "docs/Vanilla/Blocks/IBlock.md", "diff": "@@ -6,9 +6,9 @@ It refers to a block in the game.\nThere are multiple ways thet return an IBlock object:\n-* Casting a IItemStack as IBlock (using the `AS` keyword)\n+* Casting a [IItemStack](/Vanilla/Items/IItemStack) as IBlock (using the `AS` keyword)\n* Using the getBlock(x,y,z) on an IBlockGroup or an IDimension Object\n-* Using ContentTweaker's Block bracket handler\n+* Using ContentTweaker's [Block bracket handler](/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks)\n## Zengetters\n@@ -22,7 +22,7 @@ There are multiple ways thet return an IBlock object:\n# IBlockPattern\n-IBlocks extend IBlockPattern Objects. That means, all functions that are available to IBlockPattern objects can also be used for IBlock objects:\n+IBlocks extend [IBlockPattern](IBlockPattern) Objects. That means, all functions that are available to IBlockPattern objects can also be used for IBlock objects:\n* Use the `blocks` ZenGetter\n* OR'ing\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Blocks/IBlockDefinition.md", "new_path": "docs/Vanilla/Blocks/IBlockDefinition.md", "diff": "@@ -4,7 +4,7 @@ The IBlockDefinition objects provide additional information on blocks.\n## Calling an IBlockDefinition object\n-* Using the `definition` ZenGetter on an IBlock object.\n+* Using the `definition` ZenGetter on an [IBlock](IBlock) object.\n## Calling an IBlockDefinition List\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Blocks/IBlockPattern.md", "new_path": "docs/Vanilla/Blocks/IBlockPattern.md", "diff": "@@ -6,7 +6,7 @@ It is comparable to what the IIngredient Interface is to IItemStacks.\n## Calling an IBlockPattern Object\n-Technically, each time you call an IBlock object, you call an IBlockPattern object.\n+Technically, each time you call an [IBlock](IBlock) object, you call an IBlockPattern object.\nBut there are cases when you explicitly get an IBlockPattern Object as return.\n* OR two IBlocks\n@@ -15,7 +15,7 @@ But there are cases when you explicitly get an IBlockPattern Object as return.\n| ZenGetter | What does it do | Return Type |\n|-------------|------------------------------------------------|--------------|\n-| blocks | Lists all possible blocks for this object | List<IBlock> |\n+| blocks | Lists all possible blocks for this object | List<[IBlock](IBlock)> |\n| displayName | Returns the displayNames of the fitting blocks | String |\n## OR\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added Interlinks to Blocks group
139,040
03.09.2017 17:04:26
-7,200
174f62a4b8575ef92f5efc775d60df01a976b501
Changed relative path names to absolute path names for the bracket handlers
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "new_path": "docs/Vanilla/Brackets/Bracket_Entity.md", "diff": "@@ -11,7 +11,7 @@ Entities are referenced in the Entity handler this way:\n```\nIf the mob/entity is found, this will return an IEntityDefinition Object.\n-Please refer to the [respective Wiki entry](../Entities/IEntityDefinition) for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](/Vanilla/Entities/IEntityDefinition) for further information on what you can do with these.\n# Getting all Registered Entities\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Item.md", "new_path": "docs/Vanilla/Brackets/Bracket_Item.md", "diff": "@@ -24,7 +24,7 @@ You can also use a wildcard `*` to address all meta values.\nAlso optional: If left out it will be 0.\nNormally, this will return an IItemStack Object.\n-Please refer to [the respective wiki entry](../Items/IItemStack) for further information.\n+Please refer to [the respective wiki entry](/Vanilla/Items/IItemStack) for further information.\n## Examples\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "new_path": "docs/Vanilla/Brackets/Bracket_Liquid.md", "diff": "@@ -11,7 +11,7 @@ Liquids are referenced in the Liquid Bracket Handler by like so:\n```\nIf the liquid is found, this will return an ILiquidStack Object.\n-Please refer to the [respective Wiki entry](../Liquids/ILiquidStack) for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](/Vanilla/Liquids/ILiquidStack) for further information on what you can do with these.\n# Getting all Registered liquids\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Ore.md", "new_path": "docs/Vanilla/Brackets/Bracket_Ore.md", "diff": "@@ -11,7 +11,7 @@ Ore Dictionarys are referenced in the Ore Dictionary Bracket Handler by like so:\nReturns an IOreDictEntry.\nIf the oreDictionary is not yet in the game, will create a new and empty oreDictionary with the given name and return that.\n-Please reger to the [Ore Dictionary](../OreDict) Entry for further information on what to do with them.\n+Please reger to the [Ore Dictionary](/Vanilla/OreDict) Entry for further information on what to do with them.\n# Getting all Registered ore Dictionaries\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "new_path": "docs/Vanilla/Brackets/Bracket_Potion.md", "diff": "@@ -11,7 +11,7 @@ Potions are referenced in the Potion Bracket Handler like so:\n```\nIf the Potion is found, this will return an IPotion Object.\n-Please refer to the [respective Wiki entry](../Potions/IPotion) for further information on what you can do with these.\n+Please refer to the [respective Wiki entry](/Vanilla/Potions/IPotion) for further information on what you can do with these.\n# Getting all Registered Potions\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "new_path": "docs/Vanilla/Recipes/Recipes_Crafting_Table.md", "diff": "@@ -102,8 +102,8 @@ If an `action` function is added as forth parameter, you can also determine, wha\n`name` is a string and needs to be unique but is also optional\n`output` is an [IItemStack](/Vanilla/Items/IItemStack)\n`inputs` is an [IIngredient](/Vanilla/Variable_Types/IIngredient)[][] (see below)\n-`function` is a IRecipeFunction. Please refer to the [respecting wiki entry](../../AdvancedFunctions/Recipe_Functions#irecipefunction) for more information on functions.\n-`action` is a IRecipeAction. Please refer to the [respecting wiki entry](../../AdvancedFunctions/Recipe_Functions#irecipeaction) for more information on actions.\n+`function` is a IRecipeFunction. Please refer to the [respecting wiki entry](/AdvancedFunctions/Recipe_Functions#irecipefunction) for more information on functions.\n+`action` is a IRecipeAction. Please refer to the [respecting wiki entry](/AdvancedFunctions/Recipe_Functions#irecipeaction) for more information on actions.\n`inputs` is a 2 Dimensional [IIngredient](/Vanilla/Variable_Types/IIngredient) Array.\nSo the recipe for Iron Leggings would be written as `[[iron,iron,iron],[iron,null,iron],[iron,null,iron]]`\n@@ -146,5 +146,5 @@ If an `action` function is added as forth parameter, you can also determine, wha\n`name` is a string and needs to be unique\n`output` is an [IItemStack](/Vanilla/Items/IItemStack)\n`inputs` is an [IIngredient](/Vanilla/Variable_Types/IIngredient)[] (e.g. [<minecraft:dye:1>,<minecraft:dye:2>])\n-`function` is a IRecipeFunction. Please refer to the [respecting wiki entry](../../AdvancedFunctions/Recipe_Functions#irecipefunction) for more information on functions. This is optional.\n-`action` is a IRecipeAction. Please refer to the [respecting wiki entry](../../AdvancedFunctions/Recipe_Functions#irecipeaction) for more information on actions. This is optional.\n+`function` is a IRecipeFunction. Please refer to the [respecting wiki entry](/AdvancedFunctions/Recipe_Functions#irecipefunction) for more information on functions. This is optional.\n+`action` is a IRecipeAction. Please refer to the [respecting wiki entry](/AdvancedFunctions/Recipe_Functions#irecipeaction) for more information on actions. This is optional.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Changed relative path names to absolute path names for the bracket handlers
139,045
13.09.2017 15:36:56
25,200
3546b7f241d04d9d1afc20cf044cc4de1af2c03d
Update Metallurgic_Infuser.md fixed table
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Metallurgic_Infuser.md", "new_path": "docs/Mods/Mekanism/Metallurgic_Infuser.md", "diff": "Infusion Type String\n------\nBoth addition and removal of recipes require an \"infusion type\" string. Default examples from Mekanism are:\n+\n| Infuse Type | Added by |\n-| :------------ | :------- |\n+| ----------- | -------- |\n| \"CARBON\" | Mekanism |\n| \"TIN\" | Mekanism |\n| \"DIAMOND\" | Mekanism |\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Update Metallurgic_Infuser.md fixed table
139,045
14.09.2017 11:22:13
25,200
4e4f5f0f4123454fb780ab918bad6f9d009cc460
Typos and better gas definition hopefully gas is defined well enough
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Gas.md", "new_path": "docs/Mods/Mekanism/Gas.md", "diff": "@@ -4,17 +4,48 @@ Mekanism\nMekanism CraftTweaker support has been integrated directly into Mekanism now ([link](https://github.com/aidancbrady/Mekanism/tree/master/src/main/java/mekanism/common/integration/crafttweaker))\nMekanism adds bracket-handler support to define **gas** -- a special material state differing from forge **liquids**\n+```\n+<gas:oxygen>\n+<gas:water> *\n+```\n+*Noting that <gas:water> is different from <liquid:water>\n+\n+\n+Example\n+------\n+```java\n+import mod.mekanism.gas.IGasStack as IGasStack;\n+\n+var oxygen = <gas:oxygen>.withAmount(500) as IGasStack;\n+```\n+\n+Other features\n+------\n+```java\n+mod.mekanism.gas.IGasStack.definition\n+```\n+Returns an \"IGasDefinition\" object\n+\n+\n+```java\n+mod.mekanism.gas.IGasStack.NAME\n+```\n+Returns a string of the gas' registry name\n+\n+\n+```java\n+mod.mekanism.gas.IGasStack.displayName\n+```\n+Returns a string of the gas' display name\n+\n+\n+```java\n+mod.mekanism.gas.IGasStack.amount\n+```\n+Returns an integer value of how much quantity is defined in the referenced IGasStack object\n+\n```java\n-mod.mekanism.gas\n-mod.mekanism.gas.GasBracketHandler\n-mod.mekanism.gas.IGasDefinition\n-mod.mekanism.gas.IGasStack\n-mod.mekanism.gas.IGasDefinition.getDisplayName()\n-mod.mekanism.gas.IGasDefinition.getName()\n-mod.mekanism.gas.IGasStack.getAmount()\n-mod.mekanism.gas.IGasStack.getDefinition()\n-mod.mekanism.gas.IGasStack.getDisplayName()\n-mod.mekanism.gas.IGasStack.getName()\n-mod.mekanism.gas.IGasStack.withAmount(int)\n+mod.mekanism.gas.IGasStack.withAmount(int amount)\n```\n+Returns an IGasStack of the specified gas with a specified quantity (similar to how fluid stacks millibuckets amount works)\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Pressurised_Reaction_Chamber.md", "new_path": "docs/Mods/Mekanism/Pressurised_Reaction_Chamber.md", "diff": "Addition\n------\n```java\n-mods.mekanism.reactionaddRecipe(IItemStack itemInput, ILiquidStack liquidInput, IGasStack gasInput, IItemStack itemOutput, IGasStack gasOutput, double energy, int duration)\n+mods.mekanism.reaction.addRecipe(IItemStack itemInput, ILiquidStack liquidInput, IGasStack gasInput, IItemStack itemOutput, IGasStack gasOutput, double energy, int duration)\nmods.mekanism.reaction.addRecipe(<mekanism:polyethene>, <liquid:ethene>, <gas:oxygen>, <mekanism:polyethene> * 8, <gas:oxygen>, 50000, 2000);\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Purification_Chamber.md", "new_path": "docs/Mods/Mekanism/Purification_Chamber.md", "diff": "@@ -13,7 +13,7 @@ mods.mekanism.purification.addRecipe(<minecraft:charcoal>, <minecraft:coal>);\nRemoval\n------\n```java\n-mods.mekanism.purificationremoveRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient gasInput)\n+mods.mekanism.purification.removeRecipe(IIngredient itemOutput, @Optional IIngredient itemInput, @Optional IIngredient gasInput)\nmods.mekanism.purification.removeRecipe(<mekanism:clump:2>, <mekanism:shard:2>, <gas:oxygen>);\nmods.mekanism.purification.removeRecipe(<mekanism:clump:1>);\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Typos and better gas definition hopefully gas is defined well enough
139,045
14.09.2017 11:40:07
25,200
0c72ba02e47bf09e7fa40583a1f3c4df239ba595
add mek to mkdocs.yml
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -110,6 +110,26 @@ pages:\n- BioReactor: 'Mods/IndustrialForegoing/BioReactor.md'\n- Laser Drill: 'Mods/IndustrialForegoing/LaserDrill.md'\n- Sludge Refiner: 'Mods/IndustrialForegoing/SludgeRefiner.md'\n+ - Mekanism:\n+ - Chemical Crystallizer: Mods/Mekanism/Chemical_Crystallizer.md'\n+ - Chemical Dissolution Chamber: Mods/Mekanism/Chemical_Dissolution_Chamber.md'\n+ - Chemical Infuser: Mods/Mekanism/Chemical_Infuser.md'\n+ - Chemical Injection Chamber: Mods/Mekanism/Chemical_Injection_Chamber.md'\n+ - Chemical Oxidizer: Mods/Mekanism/Chemical_Oxidizer.md'\n+ - Chemical Washer: Mods/Mekanism/Chemical_Washer.md'\n+ - Combiner: Mods/Mekanism/Combiner.md'\n+ - Crusher: Mods/Mekanism/Crusher.md'\n+ - Electrolytic Separator: Mods/Mekanism/Electrolytic_Separator.md'\n+ - Energized Smelter: Mods/Mekanism/Energized_Smelter.md'\n+ - Enrichment Chamber: Mods/Mekanism/Enrichment_Chamber.md'\n+ - Gas: Mods/Mekanism/Gas.md'\n+ - Metallurgic Infuser: Mods/Mekanism/Metallurgic_Infuser.md'\n+ - Osmium Compressor: Mods/Mekanism/Osmium_Compressor.md'\n+ - Precision Sawmill: Mods/Mekanism/Precision_Sawmill.md'\n+ - Pressurised Reaction Chamber: Mods/Mekanism/Pressurised_Reaction_Chamber.md'\n+ - Purification Chamber: Mods/Mekanism/Purification_Chamber.md'\n+ - Solar Neutron Activator: Mods/Mekanism/Solar_Neutron_Activator.md'\n+ - Thermal Evaporation: Mods/Mekanism/Thermal_Evaporation.md'\n# Do not edit in PRs below here\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
add mek to mkdocs.yml
139,045
14.09.2017 11:55:53
25,200
9adb4560fad6f8c5d9d705b03ba36b3a3bdae37a
fixed copy+paste typos missing quote marks
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -111,25 +111,25 @@ pages:\n- Laser Drill: 'Mods/IndustrialForegoing/LaserDrill.md'\n- Sludge Refiner: 'Mods/IndustrialForegoing/SludgeRefiner.md'\n- Mekanism:\n- - Chemical Crystallizer: Mods/Mekanism/Chemical_Crystallizer.md'\n- - Chemical Dissolution Chamber: Mods/Mekanism/Chemical_Dissolution_Chamber.md'\n- - Chemical Infuser: Mods/Mekanism/Chemical_Infuser.md'\n- - Chemical Injection Chamber: Mods/Mekanism/Chemical_Injection_Chamber.md'\n- - Chemical Oxidizer: Mods/Mekanism/Chemical_Oxidizer.md'\n- - Chemical Washer: Mods/Mekanism/Chemical_Washer.md'\n- - Combiner: Mods/Mekanism/Combiner.md'\n- - Crusher: Mods/Mekanism/Crusher.md'\n- - Electrolytic Separator: Mods/Mekanism/Electrolytic_Separator.md'\n- - Energized Smelter: Mods/Mekanism/Energized_Smelter.md'\n- - Enrichment Chamber: Mods/Mekanism/Enrichment_Chamber.md'\n- - Gas: Mods/Mekanism/Gas.md'\n- - Metallurgic Infuser: Mods/Mekanism/Metallurgic_Infuser.md'\n- - Osmium Compressor: Mods/Mekanism/Osmium_Compressor.md'\n- - Precision Sawmill: Mods/Mekanism/Precision_Sawmill.md'\n- - Pressurised Reaction Chamber: Mods/Mekanism/Pressurised_Reaction_Chamber.md'\n- - Purification Chamber: Mods/Mekanism/Purification_Chamber.md'\n- - Solar Neutron Activator: Mods/Mekanism/Solar_Neutron_Activator.md'\n- - Thermal Evaporation: Mods/Mekanism/Thermal_Evaporation.md'\n+ - Chemical Crystallizer: 'Mods/Mekanism/Chemical_Crystallizer.md'\n+ - Chemical Dissolution Chamber: 'Mods/Mekanism/Chemical_Dissolution_Chamber.md'\n+ - Chemical Infuser: 'Mods/Mekanism/Chemical_Infuser.md'\n+ - Chemical Injection Chamber: 'Mods/Mekanism/Chemical_Injection_Chamber.md'\n+ - Chemical Oxidizer: 'Mods/Mekanism/Chemical_Oxidizer.md'\n+ - Chemical Washer: 'Mods/Mekanism/Chemical_Washer.md'\n+ - Combiner: 'Mods/Mekanism/Combiner.md'\n+ - Crusher: 'Mods/Mekanism/Crusher.md'\n+ - Electrolytic Separator: 'Mods/Mekanism/Electrolytic_Separator.md'\n+ - Energized Smelter: 'Mods/Mekanism/Energized_Smelter.md'\n+ - Enrichment Chamber: 'Mods/Mekanism/Enrichment_Chamber.md'\n+ - Gas: 'Mods/Mekanism/Gas.md'\n+ - Metallurgic Infuser: 'Mods/Mekanism/Metallurgic_Infuser.md'\n+ - Osmium Compressor: 'Mods/Mekanism/Osmium_Compressor.md'\n+ - Precision Sawmill: 'Mods/Mekanism/Precision_Sawmill.md'\n+ - Pressurised Reaction Chamber: 'Mods/Mekanism/Pressurised_Reaction_Chamber.md'\n+ - Purification Chamber: 'Mods/Mekanism/Purification_Chamber.md'\n+ - Solar Neutron Activator: 'Mods/Mekanism/Solar_Neutron_Activator.md'\n+ - Thermal Evaporation: 'Mods/Mekanism/Thermal_Evaporation.md'\n# Do not edit in PRs below here\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
fixed copy+paste typos missing quote marks
139,040
14.09.2017 21:51:44
-7,200
29ac1d1f2b47896a9b66bca1bed16ae8be5dd8e5
Made Gas entry better understandable I believe that way
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Gas.md", "new_path": "docs/Mods/Mekanism/Gas.md", "diff": "@@ -8,44 +8,37 @@ Mekanism adds bracket-handler support to define **gas** -- a special material st\n<gas:oxygen>\n<gas:water> *\n```\n-*Noting that <gas:water> is different from <liquid:water>\n+*Noting that `<gas:water>` is different from `<liquid:water>`\nExample\n------\n```java\n-import mod.mekanism.gas.IGasStack as IGasStack;\n+import mod.mekanism.gas.IGasStack;\nvar oxygen = <gas:oxygen>.withAmount(500) as IGasStack;\n+var oxygen2 = <gas:oxygen> * 500;\n```\n-Other features\n+ZenGetters\n------\n-```java\n-mod.mekanism.gas.IGasStack.definition\n-```\n-Returns an \"IGasDefinition\" object\n+Like LiquidStacks, IGasStacks also support some special ZenGetters.\n+You call the ZenGetters using `gas.Getter` (E.g. `<gas:water>.name`)\n-```java\n-mod.mekanism.gas.IGasStack.NAME\n-```\n-Returns a string of the gas' registry name\n+| ZenGetter | Description | Return Type |\n+|-------------|-----------------------------------------|----------------|\n+| definition | Returns the gas' definition | IGasDefinition |\n+| NAME | Returns the gas' name | String |\n+| displayName | Returns the gas' displayName | String |\n+| amount | Returns the gas' amount in millibuckets | int |\n-```java\n-mod.mekanism.gas.IGasStack.displayName\n-```\n-Returns a string of the gas' display name\n-\n-\n-```java\n-mod.mekanism.gas.IGasStack.amount\n-```\n-Returns an integer value of how much quantity is defined in the referenced IGasStack object\n-\n+Setting the Object's Amount\n+------\n-```java\n-mod.mekanism.gas.IGasStack.withAmount(int amount)\n+You can set the Object's amount (gas volume in Millibuckets) in two ways, which both do exactly the same:\n+```JAVA\n+var gas_amount_multiply = <gas:water> * 500;\n+var gas_amount_zenMethod = <gas:water>.withAmount(500);\n```\n-Returns an IGasStack of the specified gas with a specified quantity (similar to how fluid stacks millibuckets amount works)\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Made Gas entry better understandable I believe that way
139,040
17.09.2017 15:05:48
-7,200
ad87fcf9d9794f8a17b90f9410d6552f03c5d9db
Started with TiConstruct Entries
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Modtweaker/TConstruct/Alloying.md", "diff": "+# Alloying\n+\n+The `Alloy` package allows you to add or remove Alloy recipes.\n+\n+## Calling\n+You can call the Alloy package using `mods.tconstruct.Alloy`\n+\n+## Add Alloy Recipes\n+\n+```JAVA\n+//mods.tconstruct.Alloy.addRecipe(ILiquidStack output, ILiquidStack[] inputs);\n+mods.tconstruct.Alloy.addRecipe(<liquid:water> * 10, [<liquid:lava> * 10, <liquid:molten_iron> * 5]);\n+```\n+\n+## Removing Alloy Recipes\n+\n+```JAVA\n+//mods.tconstruct.Alloy.removeRecipe(ILiquidStack output);\n+mods.tconstruct.Alloy.removeRecipe(<liquid:water>);\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Modtweaker/TConstruct/Casting.md", "diff": "+# Casting\n+\n+The `Casting` package allows you to add or remove Casting recipes.\n+\n+## Calling\n+You can call the Casting package using `mods.tconstruct.Casting`\n+\n+## Add Alloy Recipes\n+\n+You can add recipes for both, casting tables and basins:\n+The methods are equal in their parameters, varying only in their names.\n+\n+```JAVA\n+//mods.tconstruct.Casting.addTableRecipe(IItemStack output, IItemStack cast, ILiquidStack fluid, int amount, @Optional boolean consumeCast);\n+mods.tconstruct.Casting.addTableRecipe(<minecraft:gold_ingot>, <minecraft:iron_ingot>, <liquid:molten_gold>, 30, true);\n+mods.tconstruct.Casting.addTableRecipe(<minecraft:gold_ingot>, <minecraft:gold_ingot>, <liquid:molten_gold>, 140);\n+\n+\n+//mods.tconstruct.Casting.addBasinRecipe(IItemStack output, IItemStack cast, ILiquidStack fluid, int amount, @Optional boolean consumeCast);\n+mods.tconstruct.Casting.addBasinRecipe(<minecraft:gold_ingot>, <minecraft:iron_ingot>, <liquid:molten_gold>, 30, true);\n+mods.tconstruct.Casting.addBasinRecipe(<minecraft:gold_ingot>, <minecraft:gold_ingot>, <liquid:molten_gold>, 140);\n+```\n+\n+\n+## Removing Alloy Recipes\n+\n+Removing Recipes is also possible for Casting Tables and Basins:\n+\n+```JAVA\n+//mods.tconstruct.Casting.removeTableRecipe(IItemStack output);\n+mods.tconstruct.Casting.removeTableRecipe(<minecraft:iron_ingot>);\n+\n+\n+//mods.tconstruct.Casting.removeBasinRecipe(IItemStack output);\n+mods.tconstruct.Casting.removeBasinRecipe(<minecraft:gold_block>);\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Modtweaker/TConstruct/Drying.md", "diff": "+# Drying\n+\n+The `Drying` package allows you to add or remove Drying recipes.\n+\n+## Calling\n+You can call the Drying package using `mods.tconstruct.Drying`\n+\n+## Adding\n+\n+The time is in ticks\n+```\n+//mods.tconstruct.Drying.addRecipe(IItemStack output, IItemStack input, int time);\n+mods.tconstruct.Drying.addRecipe(<minecraft:leather>,<minecraft:rotten_flesh>, 100);\n+```\n+\n+## Removing\n+```\n+//mods.tconstruct.Drying.removeRecipe(IItemStack output);\n+mods.tconstruct.Drying.removeRecipe(<minecraft:leather>);\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Modtweaker/TConstruct/Melting.md", "diff": "+# Melting\n+\n+The `Melting` package allows you to add or remove Melting recipes (item->liquid in the smeltery).\n+\n+## Calling\n+You can call the Melting package using `mods.tconstruct.Melting`\n+\n+## Add Melting Recipes\n+\n+```JAVA\n+//mods.tconstruct.Melting.addRecipe(ILiquidStack output, IItemStack input, @Optional int temp);\n+mods.tconstruct.Melting.addRecipe(<liquid:molten_gold> * 144,<minecraft:gold_ingot>);\n+mods.tconstruct.Melting.addRecipe(<liquid:molten_iron> * 144,<minecraft:iron_ingot>, 500);\n+```\n+\n+## Removing Melting Recipes\n+\n+```JAVA\n+//mods.tconstruct.Melting.removeRecipe(ILiquidStack output);\n+mods.tconstruct.Melting.removeRecipe(<liquid:molten_iron>);\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -97,6 +97,11 @@ pages:\n- HCMovement: 'Mods/Modtweaker/BetterWithMods/HCMovement.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n+ - Tinkers' Construct:\n+ - Alloying: 'Mods/Modtweaker/TConstruct/Alloying.md'\n+ - Casting: 'Mods/Modtweaker/TConstruct/Casting.md'\n+ - Drying: 'Mods/Modtweaker/TConstruct/Drying.md'\n+ - Melting: 'Mods/Modtweaker/TConstruct/Melting.md'\n- Thermal Expansion:\n- Compactor: 'Mods/Modtweaker/ThermalExpansion/Compactor.md'\n- Crucible: 'Mods/Modtweaker/ThermalExpansion/Crucible.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Started with TiConstruct Entries
139,040
17.09.2017 15:06:08
-7,200
266382ab992cb28418b664783b1581c18c6af7aa
Started with Astral Sorcery
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Astral_Sorcery/Altar.md", "diff": "+# Altar Crafting\n+You can add and remove crafting recipes from the AS Altar.\n+\n+\n+## Calling\n+You can call the AltarRecipe package using `mods.astralsorcery.Altar`.\n+\n+\n+## Altar Levels\n+Some recipes require an altar level:\n+\n+|Altar Level | Level Name |\n+|------------|------------------------|\n+|0 |Luminous Crafting Table |\n+|1 |Starlight Crafting Altar|\n+|2 |Celestial Altar |\n+\n+\n+## Remove Altar Recipes\n+\n+This function removes the first recipe it finds that returns provided [IItemStack](/Vanilla/Items/IItemStack) `output` and uses the provided altar level.\n+If there are multiple recipes that return the provided output, you need to call this method multiple times!\n+\n+```JAVA\n+//mods.astralsorcery.Altar.removeAltarRecipe(IItemStack output, int altarLevel);\n+mods.astralsorcery.Altar.removeAltarRecipe(<minecraft:dirt>, 0);\n+```\n+\n+\n+## Add Altar Recipes\n+\n+All Recipe addition Methods require these parameters:\n+[IItemStack](/Vanilla/Items/IItemStack) `output`,\n+int `starlightRequired`,\n+int `craftingTickTime`,\n+[IIngredient](/Vanilla/Variable_Types/IIngredient)[] `inputs`\n+\n+The `inputs` parameter is, unlike in Crafting Table recipes only a 1Dimensional Array.\n+You can use [IItemStacks](/Vanilla/Items/IItemStack), [ILiquidStacks](/Vanilla/Liquids/ILiquidStack), [IOreDictEntries](/Vanilla/OreDict) or `null` as the array's members\n+\n+These recipes cannot be shapeless!\n+\n+\n+### Discovery\n+`inputs` length *has to be* 9\n+\n+`inputs` Order:\n+```\n+[ 0] [ 1] [ 2]\n+[ 3] [ 4] [ 5]\n+[ 6] [ 7] [ 8]\n+```\n+\n+```JAVA\n+mods.astralsorcery.Altar.addDiscoveryAltarRecipe(<minecraft:dirt>, 200, 200, [\n+ <minecraft:grass>, null, <ore:treeLeaves>,\n+ null, <minecraft:grass>, null,\n+ <liquid:astralsorcery.liquidstarlight>, null, <ore:treeLeaves>]);\n+```\n+\n+\n+### Attunement\n+`inputs` length *has to be* 13\n+\n+`inputs` Order:\n+```\n+[ 9] [10]\n+ [ 0] [ 1] [ 2]\n+ [ 3] [ 4] [ 5]\n+ [ 6] [ 7] [ 8]\n+[11] [12]\n+```\n+\n+```JAVA\n+mods.astralsorcery.Altar.addAttunmentAltarRecipe(<minecraft:dirt>, 500, 300, [\n+ null, null, null,\n+ <ore:treeLeaves>, <astralsorcery:blockmarble:2>, <ore:treeLeaves>,\n+ null, <liquid:astralsorcery.liquidstarlight>, null,\n+ <ore:blockMarble>, <ore:blockMarble>, <ore:blockMarble>, <ore:blockMarble>]);\n+```\n+\n+\n+### Constellation\n+`inputs` length *has to be* 21\n+\n+`inputs` Order:\n+```\n+[ 9] [13] [14] [10]\n+[15] [ 0] [ 1] [ 2] [16]\n+ [ 3] [ 4] [ 5]\n+[17] [ 6] [ 7] [ 8] [18]\n+[11] [19] [20] [12]\n+```\n+\n+```JAVA\n+mods.astralsorcery.Altar.addConstellationAltarRecipe(<astralsorcery:itemcraftingcomponent:2>, 2000, 10, [\n+ <ore:blockMarble>, <astralsorcery:blocklens>, <ore:blockMarble>,\n+ <ore:blockMarble>, <astralsorcery:itemcraftingcomponent:2>, <ore:blockMarble>,\n+ <ore:blockMarble>, <minecraft:nether_star>, <ore:blockMarble>,\n+ null, null, <liquid:astralsorcery.liquidstarlight>, <liquid:astralsorcery.liquidstarlight>,\n+ <ore:blockMarble>, <ore:blockMarble>,\n+ <minecraft:nether_star>, <minecraft:nether_star>,\n+ <minecraft:nether_star>, <minecraft:nether_star>,\n+ <ore:blockMarble>, <ore:blockMarble>]);\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Astral_Sorcery/Astral_Sorcery.md", "diff": "+# Astral Sorcery\n+\n+Astral Sorcery is a magic mod focused around harnessing the powers of starlight and the constellations. Explore and discover the world and the sky above you; focus starlight to your will, strengthening yourself or enhancing the world around you.\n+\n+## Crafttweaker integration\n+\n+Astral Sorcery comes with NATIVE crafttweaker integration.\n+This means that issues with the added methods should be discussed at the [Astral sorcery issue tracker](https://github.com/HellFirePvP/AstralSorcery/issues).\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Astral_Sorcery/Infusion.md", "diff": "+# Starlight Infusion Recipes\n+You can add and remove crafting infusions.\n+\n+## Calling\n+You can call the InfusionRecipe package using `mods.astralsorcery.StarlightInfusion`.\n+\n+## Removing\n+This will remove the first infusion it finds that creates the provided [IItemStack](/Vanilla/Items/IItemStack) `output`.\n+If there are multiple recipes that return the provided output, you need to call this method multiple times!\n+```JAVA\n+//mods.astralsorcery.StarlightInfusion.removeInfusion(IItemStack output);\n+mods.astralsorcery.StarlightInfusion.removeInfusion(<minecraft:ice>);\n+```\n+\n+## Addition\n+```JAVA\n+//mods.astralsorcery.StarlightInfusion.addInfusion(IItemStack input, IItemStack output, boolean consumeMultiple, float consumptionChance, int craftingTickTime);\n+mods.astralsorcery.StarlightInfusion.addInfusion(<astralsorcery:itemjournal>, <minecraft:bow>, false, 0.7, 200);\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -69,6 +69,11 @@ pages:\n- Basic Variable Functions: 'Vanilla/Variable_Types/Basic_Variables_Functions.md'\n- IIngredient: 'Vanilla/Variable_Types/IIngredient.md'\n- Mods:\n+ - Astral Sorcery:\n+ - About Astral Sorcery: 'Mods/Astral_Sorcery/Astral_Sorcery.md'\n+ - Crafting:\n+ - Altar: 'Mods/Astral_Sorcery/Altar.md'\n+ - Starlight Infusion: 'Mods/Astral_Sorcery/Infusion.md'\n- ContentTweaker:\n- ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n- WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Started with Astral Sorcery
139,040
17.09.2017 15:55:39
-7,200
d4a0795d6a8fe7ed9c1813bdef0e59f5dab79b78
More work on Astral Sorcery
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Astral_Sorcery/Altar.md", "new_path": "docs/Mods/Astral_Sorcery/Altar.md", "diff": "@@ -11,9 +11,9 @@ Some recipes require an altar level:\n|Altar Level | Level Name |\n|------------|------------------------|\n-|0 |Luminous Crafting Table |\n-|1 |Starlight Crafting Altar|\n-|2 |Celestial Altar |\n+|1 |Luminous Crafting Table |\n+|2 |Starlight Crafting Altar|\n+|3 |Celestial Altar |\n## Remove Altar Recipes\n@@ -60,6 +60,9 @@ mods.astralsorcery.Altar.addDiscoveryAltarRecipe(<minecraft:dirt>, 200, 200, [\n### Attunement\n+\n+Adds a recipe to the Starlight Crafting Table (T2)\n+\n`inputs` length *has to be* 13\n`inputs` Order:\n@@ -81,6 +84,9 @@ mods.astralsorcery.Altar.addAttunmentAltarRecipe(<minecraft:dirt>, 500, 300, [\n### Constellation\n+\n+Adds a recipe to the Celestial Altar (T3)\n+\n`inputs` length *has to be* 21\n`inputs` Order:\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Astral_Sorcery/Ritual_Mineralis.md", "diff": "+# Ritual Mineralis\n+\n+You can add and remove ores that can be spawned with the mineralis ritual.\n+Already registerd oreDict entries can be found [here](https://github.com/HellFirePvP/AstralSorcery/blob/master/src/main/java/hellfirepvp/astralsorcery/common/base/OreTypes.java#L35-L58).\n+\n+\n+## Calling\n+You can call the RitualMineralis package using `mods.astralsorcery.RitualMineralis`.\n+\n+## Remove Ores\n+This function removes an Ore Dictionary from the list of the ores the mineralis ritual can possibly spawn.\n+\n+```JAVA\n+//mods.astralsorcery.RitualMineralis.removeOre(String oreDictOreName);\n+mods.astralsorcery.RitualMineralis.removeOre(\"oreCoal\");\n+```\n+\n+## Addition\n+\n+This function adds an Ore Dictionary to the list of the ores the mineralis ritual can possibly spawn.\n+Make sure that the oreDictName contains at least 1 ore **Block**.\n+GregTech ores are blacklisted for stability reasons!\n+\n+```JAVA\n+//mods.astralsorcery.RitualMineralis.addOre(String oreDictOreName, double weight);\n+mods.astralsorcery.RitualMineralis.addOre(\"blockMarble\", 6000);\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/Astral_Sorcery/Transmutation.md", "diff": "+# Starlight Transmutation\n+\n+You can add and remove Starlight Transmutations\n+\n+\n+## Calling\n+You can call the LightTransmutations package using `mods.astralsorcery.LightTransmutation`.\n+\n+## Removing\n+This function removes the first recipe it finds that returns provided [IItemStack](/Vanilla/Items/IItemStack) `output` and uses `matchStack` to determine whether it should also match Metadata.\n+If there are multiple recipes that return the provided output, you need to call this method multiple times!\n+\n+```JAVA\n+//mods.astralsorcery.LightTransmutation.removeTransmutation(IItemStack stackToRemove, boolean matchMeta);\n+mods.astralsorcery.LightTransmutation.removeTransmutation(<minecraft:end_stone>, false);\n+```\n+\n+## Addition\n+```\n+//mods.astralsorcery.LightTransmutation.addTransmutation(IItemStack stackIn, IItemStack stackOut, double cost);\n+mods.astralsorcery.LightTransmutation.addTransmutation(<minecraft:grass>, <minecraft:gold_ore>, 10);\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -73,7 +73,10 @@ pages:\n- About Astral Sorcery: 'Mods/Astral_Sorcery/Astral_Sorcery.md'\n- Crafting:\n- Altar: 'Mods/Astral_Sorcery/Altar.md'\n+ - Light-Well: 'Mods/Astral_Sorcery/Well.md'\n+ - Ritual Mineralis: 'Mods/Astral_Sorcery/Ritual_Mineralis.md'\n- Starlight Infusion: 'Mods/Astral_Sorcery/Infusion.md'\n+ - Starlight Transmutation: 'Mods/Astral_Sorcery/Transmutation.md'\n- ContentTweaker:\n- ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n- WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
More work on Astral Sorcery
139,033
18.09.2017 15:02:10
14,400
ab98e6d05387b0b3911ee6ca54922b92ef942749
Fix current documentation for script location
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/WalkThrough.md", "new_path": "docs/Mods/ContentTweaker/WalkThrough.md", "diff": "## After Install\nFirst things first, before starting to create Blocks and such, it is suggested you run Minecraft at least once with\n-ContentTweaker installed. This will allow ContentTweaker to create the cot-scripts folder, and the resource folders\n-that it needs.\n+ContentTweaker installed. This will allow ContentTweaker to create the resource folder that it needs.\n## Important Folders\n-ContentTweaker should create two folders in your minecraft directory: \"cot-scripts\" and \"resources\". \"cot-scripts\"\n-should be the location of all scripts related to ContentTweaker, as in most cases CraftTweaker scripts run too late for\n-ContentTweaker to properly generate the content. \"resources\" will be where all models, textures, and language files will\n-be found. More on this folder will be explained later.\n+ContentTweaker should create an extra folder in your minecraft directory: \"resources\". The resources folder will be where\n+all models, textures, and language files will be found. More on this folder will be explained later. The \"scripts\"\n+folder added by CraftTweaker is where you should put all ContentTweaker scripts, however ContentTweaker scripts should\n+begin with ```#loader contenttweaker``` at the top of the file.\n## First Block\nSo for the best example of how ContentTweaker's content works, I'll be showing you one of the basic content pieces you\n@@ -17,6 +16,8 @@ will be creating, a block. There is other content that can be created, but I won\nwalk-through. So first up, here is the script for the block I will using as example. Explanation of these methods can\nbe found at the Blocks Page.\n```\n+#loader contenttweaker\n+\nimport mods.contenttweaker.VanillaFactory;\nimport mods.contenttweaker.Block;\n@@ -32,7 +33,7 @@ antiIceBlock.setSlipperiness(0.3);\nantiIceBlock.register();\n```\nThis will create a Block that looks and acts slightly like Minecraft's Ice Block. You will want to put this script in\n-the 'cot-scripts' folder, following the same rules as in CraftTweaker's scripts.\n+the 'scripts' folder, following the same rules as in CraftTweaker's scripts.\n## Resources\nYou will also need to take a .png file and put it into 'resources/contenttweaker/textures/blocks' (This folder should be\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Fix current documentation for script location
139,040
19.09.2017 20:36:19
-7,200
119e2bd5327efad0913af0c326352d9c4820bf42
Item_Transformers update
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Items/Item_Transformers.md", "new_path": "docs/Vanilla/Items/Item_Transformers.md", "diff": "@@ -7,10 +7,7 @@ This can range from damaging the item up to returning a completely different ite\nval item = <minecraft:apple>;\n-//Item won't be consumed and stays in the crafting slot.\n-var transformedItem = item.reuse();\n-\n-//Item won't be consumed but will be placed in your inventory upon crafting.\n+//Item won't be consumed and will be placed in your inventory upon crafting.\ntransformedItem = item.giveBack();\n//item will be consumed but will return the specified item to your inventory upon crafting.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Item_Transformers update https://github.com/jaredlll08/CraftTweaker/issues/321
139,040
19.09.2017 20:37:21
-7,200
de02df8c4ad586b109550bcfaa0f5d92180c1fbc
Astral Sorcery Altar Images
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Astral_Sorcery/Altar.md", "new_path": "docs/Mods/Astral_Sorcery/Altar.md", "diff": "@@ -23,7 +23,7 @@ If there are multiple recipes that return the provided output, you need to call\n```JAVA\n//mods.astralsorcery.Altar.removeAltarRecipe(IItemStack output, int altarLevel);\n-mods.astralsorcery.Altar.removeAltarRecipe(<minecraft:dirt>, 0);\n+mods.astralsorcery.Altar.removeAltarRecipe(<astralsorcery:blockblackmarble>, 0);\n```\n@@ -45,11 +45,7 @@ These recipes cannot be shapeless!\n`inputs` length *has to be* 9\n`inputs` Order:\n-```\n-[ 0] [ 1] [ 2]\n-[ 3] [ 4] [ 5]\n-[ 6] [ 7] [ 8]\n-```\n+![Inputs Order](Assets/guialtar1.png)\n```JAVA\nmods.astralsorcery.Altar.addDiscoveryAltarRecipe(<minecraft:dirt>, 200, 200, [\n@@ -66,13 +62,7 @@ Adds a recipe to the Starlight Crafting Table (T2)\n`inputs` length *has to be* 13\n`inputs` Order:\n-```\n-[ 9] [10]\n- [ 0] [ 1] [ 2]\n- [ 3] [ 4] [ 5]\n- [ 6] [ 7] [ 8]\n-[11] [12]\n-```\n+![Inputs Order](Assets/guialtar2.png)\n```JAVA\nmods.astralsorcery.Altar.addAttunmentAltarRecipe(<minecraft:dirt>, 500, 300, [\n@@ -90,13 +80,7 @@ Adds a recipe to the Celestial Altar (T3)\n`inputs` length *has to be* 21\n`inputs` Order:\n-```\n-[ 9] [13] [14] [10]\n-[15] [ 0] [ 1] [ 2] [16]\n- [ 3] [ 4] [ 5]\n-[17] [ 6] [ 7] [ 8] [18]\n-[11] [19] [20] [12]\n-```\n+![Inputs Order](Assets/guialtar3.png)\n```JAVA\nmods.astralsorcery.Altar.addConstellationAltarRecipe(<astralsorcery:itemcraftingcomponent:2>, 2000, 10, [\n" }, { "change_type": "ADD", "old_path": "docs/Mods/Astral_Sorcery/Assets/guialtar1.png", "new_path": "docs/Mods/Astral_Sorcery/Assets/guialtar1.png", "diff": "Binary files /dev/null and b/docs/Mods/Astral_Sorcery/Assets/guialtar1.png differ\n" }, { "change_type": "ADD", "old_path": "docs/Mods/Astral_Sorcery/Assets/guialtar2.png", "new_path": "docs/Mods/Astral_Sorcery/Assets/guialtar2.png", "diff": "Binary files /dev/null and b/docs/Mods/Astral_Sorcery/Assets/guialtar2.png differ\n" }, { "change_type": "ADD", "old_path": "docs/Mods/Astral_Sorcery/Assets/guialtar3.png", "new_path": "docs/Mods/Astral_Sorcery/Assets/guialtar3.png", "diff": "Binary files /dev/null and b/docs/Mods/Astral_Sorcery/Assets/guialtar3.png differ\n" }, { "change_type": "ADD", "old_path": "docs/Mods/Astral_Sorcery/Assets/guialtar4.png", "new_path": "docs/Mods/Astral_Sorcery/Assets/guialtar4.png", "diff": "Binary files /dev/null and b/docs/Mods/Astral_Sorcery/Assets/guialtar4.png differ\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Astral Sorcery Altar Images
139,040
24.09.2017 17:48:09
-7,200
1ef6ffdc4056a80883f24d4f7209b537c6aab3d1
Some ContentTweaker documentation. Probably...
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "diff": "@@ -6,7 +6,7 @@ Required Fields will never have a default value, empty defaults means null.\nAll Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\");` and gotten via get<field_name>;\n|Name |Type |Required |Default Value |Notes |\n-|---|---|---|---|---|\n+|--------------------|--------------------|---------|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n|UnlocalizedName |String |Yes | |Name, should be all lowercase |\n|CreativeTab |CreativeTabs |No |Misc |See [[Resources|Resources]] for info |\n|FullBlock |boolean |No |True |Can you see passed this block to those around it |\n@@ -16,17 +16,19 @@ All Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\")\n|BlockHardness |float |No |5.0 |How long it takes to break |\n|BlockResistance |float |No |5.0 |Explosion resistance |\n|ToolClass |String |No |pickaxe |Tool required to Break Block |\n-|ToolLevel|int|No|2|Tool Level required to Break Block\n+|ToolLevel |int |No |2 |Tool Level required to Break Block |\n|BlockSoundType |SoundType |No |Metal |See [[Resources|Resources]] for info |\n|BlockMaterial |Material |No |Iron |See [[Resources|Resources]] for info |\n|EnumBlockRenderType |EnumBlockRenderType |No |\"MODEL\" |See [[Models|Models]] for info |\n|Slipperiness |float |No |0.6f |Ice blocks are 0.98f |\n-|OnBlockPlace|IBlockAction|No||Called when Block is placed. See [[Functions|Functions]] for more info|\n-|OnBlockBreak|IBlockAction|No||Called when Block is broken. See [[Functions|Functions]] for more info|\n+|OnBlockPlace |IBlockAction |No | |Called when Block is placed. See [functions](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) for more info |\n+|OnBlockBreak |IBlockAction |No | |Called when Block is broken. See [functions](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) for more info |\n|BlockLayer |BlockRenderLayer |No |\"SOLID\" |See [[Models|Models]] for info |\n## Examples\n```\n+#loader contenttweaker\n+\nimport mods.contenttweaker.VanillaFactory;\nimport mods.contenttweaker.Block;\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md", "diff": "+# Creative Tab\n+\n+This allows you to add Creative Tabs to the game!\n+\n+## Creating the ICreativeTab object\n+Before you can add the tab, you need to create a representation which will allow you to set the properties of the tab you want to add.\n+This is where the [VanillaFactory](VanillaFactory) comes in:\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, IItemStack iItemStack);\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, ItemRepresentation iItem);\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, BlockRepresentation iBlock);\n+```\n+\n+The String is in each of the three methods the same: It's the unlocalized name the Tab will later have.\n+The second parameter is the symbol your tab will carry later on (e.g. a lava bucket for \"misc\").\n+\n+## Calling an existing ICreativeTab object\n+You can also call an existing creative tab, though you cannot change any of it's properties.\n+Why would you need this, you ask?\n+You will need this if you want to add a newly created block or item to an existing tab!\n+\n+\n+## Properties\n+\n+You can call and set all these properties using the normal ZenGetters and ZenSetters\n+`tab.unlocalizedName = \"hh\";`\n+Note that you will probably hardly ever need the Setters as these Properties are already initialized to your wanted values when you create the ICreativeTab object.\n+Also, you can neither set nor get properties from an existing ICreativeTab(one that you retrieved using the Bracket handler)!\n+\n+| Property Name | Type | Required | Default Value | Description/Notes |\n+|-----------------|------------|----------|---------------|-------------------------|\n+| unlocalizedName | String | YES | | The Creative Tab's name |\n+| iconStack | IItemStack | YES | | The Creative Tab's icon |\n+\n+## Registering the creative tab\n+You need to call this method to register the creative Tab in the game!\n+Otherwise nothing will happen!\n+After you have called this function, you cannot un-register the tab or change any of it's properties!\n+\n+```\n+tab.register();\n+```\n+\n+## Example Script\n+```JAVA\n+#loader contenttweaker\n+import mods.contenttweaker.CreativeTab;\n+import mods.contenttweaker.VanillaFactory;\n+\n+val zsTab = VanillaFactory.createCreativeTab(\"contenttweaker\", <minecraft:dragon_egg>);\n+zsTab.register();\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "diff": "+# Item\n+\n+This allows you to add items to the game!\n+\n+## Create the Item Representation\n+Before you can add the item, you need to create an Item Representation which will allow you to set the properties of the item you want to add.\n+This is where the [VanillaFactory](VanillaFactory) comes in:\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createItem(String unlocalizedName);\n+```\n+\n+## ZenProperties\n+\n+To get/set the properties you can either use the respecting ZenGetters/Setters or the ZenMethods:\n+```\n+//property name: maxStackSize\n+//ZenGetter\n+print(item.maxStackSize);\n+//ZenSetter\n+item.maxStackSize = 16;\n+//ZenMethods\n+item.getMaxStackSize();\n+item.setMaxStackSize(64);\n+```\n+\n+| Property Name | Type | Required | Default Value | Description/Notes |\n+|-----------------|------------------------------|----------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n+| unlocalizedName | String | Yes | | Name, should be all lowercase |\n+| maxStackSize | int | No | 64 | Maximum items allowed in a Stack |\n+| rarity | EnumRarity | No | COMMON | How rare an item is, determines ToolTip color |\n+| creativeTab | [ICreativeTab](Creative_Tab) | No | Misc | The Creative tab the item will be put in |\n+| toolClass | String | No | | What block types the tool can break |\n+| toolLevel | int | No | -1 | The level of blocks can be broken |\n+| beaconPayment | boolean | No | false | Can be given to a beacon to enable bonuses |\n+| itemRightClick | IItemRightClick | No | | Called when the player right clicks with the item. See the [function page](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick) |\n+\n+\n+## Registering the item\n+You need to call this method to register the item in the game!\n+Otherwise nothing will happen!\n+After you have called this function, you cannot un-register the item or change any of it's properties!\n+\n+```\n+item.register();\n+```\n+\n+## Example Script\n+```\n+#loader contenttweaker\n+import mods.contenttweaker.VanillaFactory;\n+import mods.contenttweaker.Item;\n+import mods.contenttweaker.IItemRightClick;\n+import mods.contenttweaker.Commands;\n+\n+var zsItem = VanillaFactory.createItem(\"zs_item\");\n+zsItem.maxStackSize = 8;\n+zsItem.rarity = \"rare\";\n+zsItem.creativeTab = zsCreativeTab;\n+zsItem.smeltingExperience = 10;\n+zsItem.toolClass = \"pickaxe\";\n+zsItem.toolLevel = 5;\n+zsItem.beaconPayment = true;\n+zsItem.itemRightClick = function(stack, world, player, hand) {\n+ Commands.call(\"scoreboard players set @p name 5\", player, world);\n+ return \"Pass\";\n+};\n+zsItem.register();\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md", "diff": "+# Vanilla Factory\n+\n+The Vanilla Factory allows you to create [Blocks](Block), [Items](Item) and [Creative Tabs](CreativeTabs) that you can then add to the game.\n+\n+## Calling\n+You can find the package at `mods.contenttweaker.VanillaFactory`\n+\n+## Creating Content\n+\n+### Create Blocks\n+\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createBlock(String unlocalizedName, IMaterialDefinition material);\n+```\n+Parameters:\n+\n+- String unlocalizedName: The Block's unlocalized name.\n+- IMaterialDefinition material: The base material the block is made of.\n+\n+Returns a BlockRepresentation object. Check the [Block page](Block) for further information and an example script!\n+\n+\n+### Create Items\n+\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createItem(String unlocalizedName);\n+```\n+Parameters:\n+\n+- String unlocalizedName: The item's unlocalized name.\n+\n+Returns an ItemRepresentation object. Check the [Item page](Item) for further information and an example script!\n+\n+\n+### Create Creative Tabs\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, IItemStack iItemStack);\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, ItemRepresentation iItem);\n+mods.contenttweaker.VanillaFactory.createCreativeTab(String unlocalizedName, BlockRepresentation iBlock);\n+```\n+Parameters:\n+\n+- String unlocalizedName: The Tab's unlocalized Name.\n+- Item or Block representation: The Item/Block to be displayed as the Tab's symbol.\n+\n+Returns a ICreativeTab object. Check the [Creative Tab page](Creative_Tab) for further information and an example script!\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -87,6 +87,15 @@ pages:\n- Vanilla:\n- Brackets:\n- Blocks: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md'\n+ - Creatable Content:\n+ - Vanilla Factory: 'Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md'\n+ - Block: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md'\n+ - Creative Tab: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md'\n+ - Item: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md'\n+ - Advanced Functionality:\n+ - Functions:\n+ - IBlockAction: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction.md'\n+ - IItemRightClick: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Some ContentTweaker documentation. Probably...
139,040
24.09.2017 18:16:43
-7,200
085f7d6a4f03a515a3c2789ac34a466d741deb70
Forestry Integration Changes
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Modtweaker/Forestry/Squeezer.md", "new_path": "docs/Mods/Modtweaker/Forestry/Squeezer.md", "diff": "@@ -8,7 +8,7 @@ You can call the package using `mods.forestry.Squeezer`\n## Recipe Removal\n```JAVA\n-//mods.forestry.Squeezer.removeRecipe(IIngredient liquid, @Optional IIngredient[] ingredients);\n+//mods.forestry.Squeezer.removeRecipe(ILiquidStack liquid, @Optional IIngredient[] ingredients);\nmods.forestry.Squeezer.removeRecipe(<liquid:juice>);\nmods.forestry.Squeezer.removeRecipe(<liquid:seed.oil>, [<minecraft:wheat_seeds>]);\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/Modtweaker/Forestry/Still.md", "new_path": "docs/Mods/Modtweaker/Forestry/Still.md", "diff": "@@ -8,7 +8,7 @@ You can call the package using `mods.forestry.Still`\n## Recipe Removal\n```JAVA\n-//mods.forestry.Still.removeRecipe(IIngredient output, @Optional ILiquidStack fluidInput);\n+//mods.forestry.Still.removeRecipe(ILiquidStack output, @Optional ILiquidStack fluidInput);\nmods.forestry.Still.removeRecipe(<liquid:bio.ethanol>);\nmods.forestry.Still.removeRecipe(<liquid:refinedcanolaoil>,<liquid:canolaoil>);\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/Modtweaker/Forestry/Thermionic_Fabricator.md", "new_path": "docs/Mods/Modtweaker/Forestry/Thermionic_Fabricator.md", "diff": "@@ -16,9 +16,9 @@ mods.forestry.ThermionicFabricator.removeCast(<forestry:thermionic_tubes:5>);\n## Recipe/Cast Addition\n```JAVA\n-//mods.forestry.ThermionicFabricator.addCast(IItemStack output, IIngredient[][] ingredients, int fluidInput, @Optional IItemStack plan);\n-mods.forestry.ThermionicFabricator.addCast(<minecraft:glass_pane> * 4, [[<minecraft:dirt>,null,null],[null,null,null],[null,null,null]], 200);\n-mods.forestry.ThermionicFabricator.addCast(<minecraft:stained_glass:3>, [[<ore:dyeLightBlue>,null,null],[null,null,null],[null,null,null]], 144, <forestry:wax_cast>);\n+//mods.forestry.ThermionicFabricator.addCast(IItemStack output, IIngredient[][] ingredients, ILiquidStack liquidStack, @Optional IItemStack plan);\n+mods.forestry.ThermionicFabricator.addCast(<minecraft:glass_pane> * 4, [[<minecraft:dirt>,null,null],[null,null,null],[null,null,null]], <liquid: glass> * 200);\n+mods.forestry.ThermionicFabricator.addCast(<minecraft:stained_glass:3>, [[<ore:dyeLightBlue>,null,null],[null,null,null],[null,null,null]], <liquid: glass> * 144, <forestry:wax_cast>);\n```\n@@ -30,7 +30,9 @@ mods.forestry.ThermionicFabricator.removeSmelting(<minecraft:sand>);\n```\n## Smelting Addition\n+You can add every liquid in the game as the result of the smelting, but currently only `<liquid:glass>` is recommended due to bugs occuring with other liquids.\n+\n```JAVA\n-//mods.forestry.ThermionicFabricator.addSmelting(int fluidOutput, IItemStack itemInput, int meltingPoint);\n-mods.forestry.ThermionicFabricator.addSmelting(120, <minecraft:stone>, 500);\n+//mods.forestry.ThermionicFabricator.addSmelting(ILiquidStack liquidStack, IItemStack itemInput, int meltingPoint);\n+mods.forestry.ThermionicFabricator.addSmelting(<liquid:glass> * 120, <minecraft:stone>, 500);\n```\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Forestry Integration Changes
139,040
26.09.2017 19:10:00
-7,200
fcbd2dcc259591e6ce3479278685609da2887d88
Added info that scripts need to be on client and server
[ { "change_type": "MODIFY", "old_path": "docs/Getting_Started.md", "new_path": "docs/Getting_Started.md", "diff": "@@ -13,7 +13,7 @@ In addition to the core functionality provided to support Vanilla minecraft, mod\n## Scripts\n-Scripts are stored in `<minecraftdir>/scripts` and are loaded in the `PreInitialization` phase of Minecraft, unlike previous versions of Crafttweaker, Scripts cannot be reloaded, this is due to changes that Mojang have made in 1.12 and there is no workaround.\n+Scripts are stored in `<minecraftdir>/scripts` and are loaded in the `PreInitialization` phase of Minecraft, unlike previous versions of Crafttweaker, Scripts cannot be reloaded, this is due to changes that Mojang have made in 1.12 and there is no workaround. Also, Scripts need to be on **both, the server AND the client instance** to work\nScript files have the `.zs` prefix and can be compressed into a `.zip` that will also be read.\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Added info that scripts need to be on client and server
139,040
26.09.2017 19:11:43
-7,200
7cec286f610656ecd7c7dd83e27111d6372e97d1
Some ContentTweaker stuff
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "diff": "+# Block Material Bracket Handler\n+\n+\n+The Block Material Bracket Handler gives you access to the Block Materials in the game.\n+Currently the only Block Materials supported are:\n+\n+<details>\n+ <summary>Click to expand the Material list</summary>\n+ <ul>\n+ <li>Air</li>\n+ <li>Grass</li>\n+ <li>Ground</li>\n+ <li>Wood</li>\n+ <li>Rock</li>\n+ <li>Iron</li>\n+ <li>Anvil</li>\n+ <li>Water</li>\n+ <li>Lava</li>\n+ <li>Leaves</li>\n+ <li>Plants</li>\n+ <li>Vine</li>\n+ <li>Sponge</li>\n+ <li>Cloth</li>\n+ <li>Fire</li>\n+ <li>sand</li>\n+ <li>Circuits</li>\n+ <li>Carpet</li>\n+ <li>Glass</li>\n+ <li>Redstone_Light</li>\n+ <li>TNT</li>\n+ <li>Coral</li>\n+ <li>Ice</li>\n+ <li>Packed_Ice</li>\n+ <li>Crafted_Snow</li>\n+ <li>Cactus</li>\n+ <li>Clay</li>\n+ <li>Gourd</li>\n+ <li>Dragon_Egg</li>\n+ <li>Portal</li>\n+ <li>Cake</li>\n+ <li>Web</li>\n+ </ul>\n+</details>\n+\n+Block Materials are referenced in the Block handler this way:\n+\n+```\n+<material:name>\n+\n+<material:wood>\n+```\n+\n+If the Block Material is found, this will return an [IMaterialDefinition](/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition) Object.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "diff": "@@ -10,5 +10,5 @@ Entities are referenced in the Block handler this way:\n<block:minecraft:dirt>\n```\n-If the block is found, this will return an [IBlock](/Vanilla/Blocks/IBlock) Object.\n-Please refer to the [respective Wiki entry](/Vanilla/Blocks/IBlock) for further information on what you can do with these.\n\\ No newline at end of file\n+If the block is found, this will return an [ICTBlockState](/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState) Object.\n+Please refer to the [respective Wiki entry](/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState) for further information on what you can do with these.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Event.md", "diff": "+# Sound Event Bracket Handler\n+\n+The SoundEvent Bracket Handler gives you access to the SoundEvents in the game.\n+Check [this](https://minecraft.gamepedia.com/Sounds.json) for a list of vanilla sound events!\n+\n+\n+SoundTypes are referenced in the Block handler this way:\n+\n+Vanilla\n+```\n+<soundevent:name>\n+\n+<soundevent:ambient.cave>\n+```\n+\n+Mod Added\n+```\n+<soundevent:modID:name>\n+\n+<soundevent:minecraft:ambient.cave>\n+```\n+\n+If the soundType is found, this will return an [ISoundEventDefinition](/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition) Object.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Type.md", "diff": "+# SoundType Bracket Handler\n+\n+\n+The SoundType Bracket Handler gives you access to the SoundTypes in the game.\n+Currently the only soundTypes supported are:\n+\n+<details>\n+ <summary>Click to expand the type list</summary>\n+ <ul>\n+ <li>Wood</li>\n+ <li>Ground</li>\n+ <li>Plant</li>\n+ <li>Stone</li>\n+ <li>Metal</li>\n+ <li>Glass</li>\n+ <li>Cloth</li>\n+ <li>Sand</li>\n+ <li>Snow</li>\n+ <li>Ladder</li>\n+ <li>Anvil</li>\n+ <li>Slime</li>\n+ </ul>\n+</details>\n+\n+SoundTypes are referenced in the Block handler this way:\n+\n+```\n+<soundtype:name>\n+\n+<soundtype:wood>\n+```\n+\n+If the soundType is found, this will return an [ISoundTypeDefinition](/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundTypeDefinition) Object.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "diff": "@@ -6,7 +6,7 @@ Required Fields will never have a default value, empty defaults means null.\nAll Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\");` and gotten via get<field_name>;\n|Name |Type |Required |Default Value |Notes |\n-|--------------------|--------------------|---------|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n+|--------------------|-------------------------------------------------------------------------------------------|---------|------------------------------|-------------------------------------------------|\n|UnlocalizedName |String |Yes | |Name, should be all lowercase |\n|CreativeTab |CreativeTabs |No |Misc |See [[Resources|Resources]] for info |\n|FullBlock |boolean |No |True |Can you see passed this block to those around it |\n@@ -17,12 +17,12 @@ All Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\")\n|BlockResistance |float |No |5.0 |Explosion resistance |\n|ToolClass |String |No |pickaxe |Tool required to Break Block |\n|ToolLevel |int |No |2 |Tool Level required to Break Block |\n-|BlockSoundType |SoundType |No |Metal |See [[Resources|Resources]] for info |\n+|BlockSoundType |[SoundType](/Mods/Contenttweaker/Vanilla/Types/Sound/ISoundTypeDefinition) |No |Metal |See [[Resources|Resources]] for info |\n|BlockMaterial |Material |No |Iron |See [[Resources|Resources]] for info |\n|EnumBlockRenderType |EnumBlockRenderType |No |\"MODEL\" |See [[Models|Models]] for info |\n|Slipperiness |float |No |0.6f |Ice blocks are 0.98f |\n-|OnBlockPlace |IBlockAction |No | |Called when Block is placed. See [functions](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) for more info |\n-|OnBlockBreak |IBlockAction |No | |Called when Block is broken. See [functions](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) for more info |\n+|OnBlockPlace |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called when Block is placed. |\n+|OnBlockBreak |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called when Block is broken. |\n|BlockLayer |BlockRenderLayer |No |\"SOLID\" |See [[Models|Models]] for info |\n## Examples\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "diff": "@@ -27,12 +27,14 @@ item.setMaxStackSize(64);\n|-----------------|------------------------------|----------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| unlocalizedName | String | Yes | | Name, should be all lowercase |\n| maxStackSize | int | No | 64 | Maximum items allowed in a Stack |\n-| rarity | EnumRarity | No | COMMON | How rare an item is, determines ToolTip color |\n+| rarity | EnumRarity | No | COMMON | How rare an item is, determines ToolTip color (\"COMMON\", \"UNCOMMON\", \"RARE\", \"EPIC\") |\n| creativeTab | [ICreativeTab](Creative_Tab) | No | Misc | The Creative tab the item will be put in |\n| toolClass | String | No | | What block types the tool can break |\n| toolLevel | int | No | -1 | The level of blocks can be broken |\n| beaconPayment | boolean | No | false | Can be given to a beacon to enable bonuses |\n| itemRightClick | IItemRightClick | No | | Called when the player right clicks with the item. See the [function page](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick) |\n+| itemUseAction | EnumUseAction | No | \"NONE\" | What animation the item use will have (\"NONE\", \"EAT\", \"DRINK\", \"BLOCK\", \"BOW\") |\n+| glowing | boolean | No | false | Can be used to give your item the glowing effect (as if it were enchanted). |\n## Registering the item\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos.md", "diff": "+# IBlockPos\n+\n+An IBlockPos object represents a position in the game.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.BlockPos;`\n+\n+## ZenMethods without parameters\n+\n+| ZenMethod | Return Type | Description |\n+|-----------|-------------|--------------------------------|\n+| getX() | int | Returns the position's X value |\n+| getY() | int | Returns the position's Y value |\n+| getZ() | int | Returns the position's Z value |\n+\n+## ZenMethods with parameters\n+\n+### Get Offset\n+Returns a new IBlockPos that is `offset` blocks into the `directionName` direction.\n+\n+`IBlockPos getOffset(String directionName, int offset);`\n+\n+`directionName` can take these values:\n+\n+- \"down\"\n+- \"up\"\n+- \"north\"\n+- \"south\"\n+- \"east\"\n+- \"west\"\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md", "diff": "+# ICTBlockState\n+\n+An ICTBlockState object represents a block's current state.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.BlockState;`\n+\n+## ZenMethods\n+|ZenMethod | Return Type | Description |\n+|-----------|----------------------------------------------------------------|--------------------------------------|\n+|getBlock() | [IBlock](/Mods/ContentTweaker/Vanilla/Creatable_Content/Block) | Returns the refered block |\n+|getMeta() | int | Returns the refered block's metadata |\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition.md", "diff": "+# IMaterialDefinition\n+\n+An IMaterialDefinition object represents a material definition in the game. A Material Definition is needed if you want to create a new block.\n+\n+## Importing the package\n+Currently this class is not a ZenClass, so there is no way for you to import anything!\n+\n+\n+## Calling an IMaterialDefinition object\n+You can get such an object using the [Block Material Bracket Handler](/Mods/Contenttweaker/Vanilla/Brackets/Bracket_Block_Material):\n+`<material:wood>`\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition.md", "diff": "+# ISoundEventDefinition\n+\n+An ISoundEventDefinition object represents a sound event in the game. A sound event is triggered when a sound is about to be played.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.SoundEvent;`\n+\n+## Calling an ISoundEventDefinition object\n+You can get such an object using the [Sound Event Bracket Handler](/Mods/Contenttweaker/Vanilla/Brackets/Bracket_Sound_Event):\n+`<soundevent:ambient.cave>`\n+\n+## ZenMethods without parameters\n+|ZenMethod |Return type |Definition |\n+|---------------|-----------------------------------------------|---------------------------------|\n+|getSoundName() |String |Returns the event's sound's name |\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundTypeDefinition.md", "diff": "+# ISoundTypeDefinition\n+\n+An ISoundTypeDefinition object represents a sound (type) in the game. A sound type is almost always bound to one or multiple blocks.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.SoundType;`\n+\n+## Calling an ISoundTypeDefinition object\n+You can get such an object using the [Sound Type Bracket Handler](/Mods/Contenttweaker/Vanilla/Brackets/Bracket_Sound_Type):\n+`<soundtype:wood>`\n+\n+##ZenMethods without parameters\n+|ZenMethod |Return type |Definition |\n+|----------------|-----------------------------------------------|-------------------------------------------------------------------|\n+|getVolume() |float |Returns the type's volume |\n+|getPitch() |float |Returns the type's pitch |\n+|getBreakSound() |[ISoundEventDefinition](ISoundEventDefinition) |Returns the sound that occurs when the related block is broken |\n+|getStepSound() |[ISoundEventDefinition](ISoundEventDefinition) |Returns the sound that occurs when the related block is stepped on |\n+|getPlaceSound() |[ISoundEventDefinition](ISoundEventDefinition) |Returns the sound that occurs when the related block is placed |\n+|getHitSound() |[ISoundEventDefinition](ISoundEventDefinition) |Returns the sound that occurs when the related block is hit |\n+|getFallSound() |[ISoundEventDefinition](ISoundEventDefinition) |Returns the sound that occurs when the related block is falling |\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/World/IWorld.md", "diff": "+# IWorld\n+\n+An IWorld object represents the world the player is currently in.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.World;`\n+\n+## ZenMethods without parameters\n+\n+|ZenMethod |Return type |Description |\n+|-------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n+|isRemote() |boolean |True if the world is a \"slave\" client; changes will not be saved or propagated from this world. For example, server worlds have this set to false, client worlds have this set to true. |\n+|isRaining() |boolean |Returns true if it is currently raining |\n+|isThundering() |boolean |Returns true if it is currently thundering |\n+|getMoonPhase() |int |Returns the current moon phase |\n+|isDayTime() |boolean |Checks if it is daytime |\n+|getWorldTime() |long |Returns the world's time |\n+|getDimension() |int |Returns the world's dimension |\n+|isSurfaceWorld() |boolean |Returns whether you are in a surface world or not |\n+|getDimensionType() |String |Returns the dimension's type name |\n+\n+## ZenMethods with parameters\n+\n+- [IBiome](/Vanilla/Biomes/IBiome) getBiome([IBlockPos](/Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos) blockPos);\n+- boolean setBlockState([ICTBlockState](/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState) blockState, [IBlockPos](/mods/ContentTweaker/Vanilla/Types/Block/IBlockPos) blockPos);\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -86,7 +86,10 @@ pages:\n- WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n- Vanilla:\n- Brackets:\n+ - Block Material: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md'\n- Blocks: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md'\n+ - SoundType: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Type.md'\n+ - SoundEvent: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Event.md'\n- Creatable Content:\n- Vanilla Factory: 'Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md'\n- Block: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md'\n@@ -96,6 +99,16 @@ pages:\n- Functions:\n- IBlockAction: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction.md'\n- IItemRightClick: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick.md'\n+ - Types:\n+ - Block:\n+ - ICTBlockState: 'Mods/Contenttweaker/Vanilla/Types/Block/ICTBlockState.md'\n+ - IBlockPos: 'Mods/Contenttweaker/Vanilla/Types/Block/IBlockPos.md'\n+ - IMaterialDefinition: 'Mods/Contenttweaker/Vanilla/Types/Block/IMaterialDefinition.md'\n+ - Sound:\n+ - ISoundTypeDefinition: 'Mods/Contenttweaker/Vanilla/Types/Sound/ISoundTypeDefinition.md'\n+ - ISoundEventDefinition: 'Mods/Contenttweaker/Vanilla/Types/Sound/ISoundEventDefinition.md'\n+ - World:\n+ - IWorld: 'Mods/Contenttweaker/Vanilla/Types/World/IWorld.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Some ContentTweaker stuff
139,040
26.09.2017 19:18:30
-7,200
595b1d921b94e609acc471192fa541c1f2c5c4aa
Is RTD really that picky?
[ { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -101,14 +101,14 @@ pages:\n- IItemRightClick: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick.md'\n- Types:\n- Block:\n- - ICTBlockState: 'Mods/Contenttweaker/Vanilla/Types/Block/ICTBlockState.md'\n- - IBlockPos: 'Mods/Contenttweaker/Vanilla/Types/Block/IBlockPos.md'\n- - IMaterialDefinition: 'Mods/Contenttweaker/Vanilla/Types/Block/IMaterialDefinition.md'\n+ - ICTBlockState: 'Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md'\n+ - IBlockPos: 'Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos.md'\n+ - IMaterialDefinition: 'Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition.md'\n- Sound:\n- - ISoundTypeDefinition: 'Mods/Contenttweaker/Vanilla/Types/Sound/ISoundTypeDefinition.md'\n- - ISoundEventDefinition: 'Mods/Contenttweaker/Vanilla/Types/Sound/ISoundEventDefinition.md'\n+ - ISoundTypeDefinition: 'Mods/ContentTweaker/Vanilla/Types/Sound/ISoundTypeDefinition.md'\n+ - ISoundEventDefinition: 'Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition.md'\n- World:\n- - IWorld: 'Mods/Contenttweaker/Vanilla/Types/World/IWorld.md'\n+ - IWorld: 'Mods/ContentTweaker/Vanilla/Types/World/IWorld.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Is RTD really that picky?
139,040
26.09.2017 21:44:01
-7,200
35a03a270418b8671b99e15eaab23ac55d6ffb9e
Even more ContentTweaker Most of the vanilla module should be covered now
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "diff": "@@ -42,7 +42,7 @@ Currently the only Block Materials supported are:\n</ul>\n</details>\n-Block Materials are referenced in the Block handler this way:\n+Block Materials are referenced in the Material Bracket handler this way:\n```\n<material:name>\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "diff": "The Block Bracket Handler gives you access to the blocks in the game. It is only possible to get blocks registered in the game, so adding or removing mods may cause issues if you reference the mod's blocks in a Block Bracket Handler.\n-Entities are referenced in the Block handler this way:\n+Entities are referenced in the Block Bracket handler this way:\n```\n<block:modID:blockName>\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Creative_Tab.md", "diff": "+# Creative Tab Bracket Handler\n+\n+The Creative Tab Bracket Handler gives you access to the Creative Tabs in the game.\n+\n+\n+Creative Tabs are referenced in the creative tabs handler this way:\n+\n+Vanilla\n+```\n+<creativetab:name>\n+\n+<creativetab:misc>\n+```\n+\n+If the creative tab is found, this will return a [creative tab](/Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab) Object.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Event.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Event.md", "diff": "@@ -4,7 +4,7 @@ The SoundEvent Bracket Handler gives you access to the SoundEvents in the game.\nCheck [this](https://minecraft.gamepedia.com/Sounds.json) for a list of vanilla sound events!\n-SoundTypes are referenced in the Block handler this way:\n+SoundTypes are referenced in the Sound Event Bracket handler this way:\nVanilla\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Type.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Type.md", "diff": "@@ -22,7 +22,7 @@ Currently the only soundTypes supported are:\n</ul>\n</details>\n-SoundTypes are referenced in the Block handler this way:\n+SoundTypes are referenced in the SoundType Bracket handler this way:\n```\n<soundtype:name>\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md", "diff": "@@ -15,7 +15,7 @@ The String is in each of the three methods the same: It's the unlocalized name t\nThe second parameter is the symbol your tab will carry later on (e.g. a lava bucket for \"misc\").\n## Calling an existing ICreativeTab object\n-You can also call an existing creative tab, though you cannot change any of it's properties.\n+You can also call an [existing creative](/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Creative_Tab) tab, though you cannot change any of it's properties.\nWhy would you need this, you ask?\nYou will need this if you want to add a newly created block or item to an existing tab!\n@@ -25,12 +25,12 @@ You will need this if you want to add a newly created block or item to an existi\nYou can call and set all these properties using the normal ZenGetters and ZenSetters\n`tab.unlocalizedName = \"hh\";`\nNote that you will probably hardly ever need the Setters as these Properties are already initialized to your wanted values when you create the ICreativeTab object.\n-Also, you can neither set nor get properties from an existing ICreativeTab(one that you retrieved using the Bracket handler)!\n+Also, you can neither set nor get properties from an existing ICreativeTab(one that you retrieved using the [Bracket handler](/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Creative_Tab))!\n| Property Name | Type | Required | Default Value | Description/Notes |\n-|-----------------|------------|----------|---------------|-------------------------|\n+|-----------------|-----------------------------------------|----------|---------------|-------------------------|\n| unlocalizedName | String | YES | | The Creative Tab's name |\n-| iconStack | IItemStack | YES | | The Creative Tab's icon |\n+| iconStack | [IItemStack](/Vanilla/Items/IItemStack) | YES | | The Creative Tab's icon |\n## Registering the creative tab\nYou need to call this method to register the creative Tab in the game!\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "diff": "@@ -24,7 +24,7 @@ item.setMaxStackSize(64);\n```\n| Property Name | Type | Required | Default Value | Description/Notes |\n-|-----------------|------------------------------|----------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n+|-----------------|--------------------------------------------------------------------------------------------------|----------|---------------|--------------------------------------------------------------------------------------|\n| unlocalizedName | String | Yes | | Name, should be all lowercase |\n| maxStackSize | int | No | 64 | Maximum items allowed in a Stack |\n| rarity | EnumRarity | No | COMMON | How rare an item is, determines ToolTip color (\"COMMON\", \"UNCOMMON\", \"RARE\", \"EPIC\") |\n@@ -32,7 +32,7 @@ item.setMaxStackSize(64);\n| toolClass | String | No | | What block types the tool can break |\n| toolLevel | int | No | -1 | The level of blocks can be broken |\n| beaconPayment | boolean | No | false | Can be given to a beacon to enable bonuses |\n-| itemRightClick | IItemRightClick | No | | Called when the player right clicks with the item. See the [function page](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick) |\n+| itemRightClick | [IItemRightClick](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick) | No | | Called when the player right clicks with the item |\n| itemUseAction | EnumUseAction | No | \"NONE\" | What animation the item use will have (\"NONE\", \"EAT\", \"DRINK\", \"BLOCK\", \"BOW\") |\n| glowing | boolean | No | false | Can be used to give your item the glowing effect (as if it were enchanted). |\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md", "diff": "@@ -15,9 +15,9 @@ mods.contenttweaker.VanillaFactory.createBlock(String unlocalizedName, IMaterial\nParameters:\n- String unlocalizedName: The Block's unlocalized name.\n-- IMaterialDefinition material: The base material the block is made of.\n+- [IMaterialDefinition](/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition) material: The base material the block is made of.\n-Returns a BlockRepresentation object. Check the [Block page](Block) for further information and an example script!\n+Returns a [BlockRepresentation](Block) object. Check the [Block page](Block) for further information and an example script!\n### Create Items\n@@ -29,7 +29,7 @@ Parameters:\n- String unlocalizedName: The item's unlocalized name.\n-Returns an ItemRepresentation object. Check the [Item page](Item) for further information and an example script!\n+Returns an [ItemRepresentation](Item) object. Check the [Item page](Item) for further information and an example script!\n### Create Creative Tabs\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md", "diff": "@@ -6,8 +6,13 @@ An ICTBlockState object represents a block's current state.\nIt might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n`import mods.contenttweaker.BlockState;`\n+## Calling an ICTBlockState\n+You can get an ICTBlockState either as a parameter in an [IBlockAction function](/Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) or from the [Block Bracket Handler](/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks)\n+\n+`<block:minecraft:dirt>`\n+\n## ZenMethods\n|ZenMethod | Return Type | Description |\n-|-----------|----------------------------------------------------------------|--------------------------------------|\n-|getBlock() | [IBlock](/Mods/ContentTweaker/Vanilla/Creatable_Content/Block) | Returns the refered block |\n+|-----------|----------------------------------|--------------------------------------|\n+|getBlock() | [IBlock](/Vanilla/Blocks/IBlock) | Returns the refered block |\n|getMeta() | int | Returns the refered block's metadata |\n" }, { "change_type": "MODIFY", "old_path": "docs/Vanilla/Blocks/IBlock.md", "new_path": "docs/Vanilla/Blocks/IBlock.md", "diff": "@@ -8,7 +8,7 @@ There are multiple ways thet return an IBlock object:\n* Casting a [IItemStack](/Vanilla/Items/IItemStack) as IBlock (using the `AS` keyword)\n* Using the getBlock(x,y,z) on an IBlockGroup or an [IDimension](/AdvancedFunctions/Recipe_Functions/#idimension) Object\n-* Using ContentTweaker's [Block bracket handler](/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks)\n+* Using getBlock() on ContentTweaker's [ICTBlockState](/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState)\n## Zengetters\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -88,6 +88,7 @@ pages:\n- Brackets:\n- Block Material: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md'\n- Blocks: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md'\n+ - Creative Tab: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Creative_Tab.md'\n- SoundType: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Type.md'\n- SoundEvent: 'Mods/ContentTweaker/Vanilla/Brackets/Bracket_Sound_Event.md'\n- Creatable Content:\n@@ -96,6 +97,7 @@ pages:\n- Creative Tab: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md'\n- Item: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md'\n- Advanced Functionality:\n+ - Commands: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Commands.md'\n- Functions:\n- IBlockAction: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction.md'\n- IItemRightClick: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/IItemRightClick.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Even more ContentTweaker Most of the vanilla module should be covered now
139,040
30.09.2017 13:54:45
-7,200
8499b178c3f2a057771e1de1bf0bf3bc0e0d871e
Updated dumpzs info
[ { "change_type": "MODIFY", "old_path": "docs/Vanilla/Commands.md", "new_path": "docs/Vanilla/Commands.md", "diff": "@@ -99,13 +99,16 @@ Opens your browser with a link to the Discord server.\nUsage:\n`/craftweaker dumpzs`\n+`/craftweaker dumpzs PATH`\n`/ct dumpzs`\n+`/ct dumpzs PATH`\nDescription:\n-Outputs a ZenScript dump to the crafttweaker.log file.\n+Outputs a ZenScript dump to a crafttweaker_dump folder within your minecraft directory as HTML file.\n+Alternatively, you can provide a filepath to tell CT where to generate the dump. The Path can either be absolute or relative to your Minecraft root folder.\nThis will include all registered Bracket Handlers, ZenTypes, Global Functions, ZenExpansions an all Registered Packages including their methods.\nNote that not all of these can be used from within the scripts!\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Updated dumpzs info
139,040
01.10.2017 10:18:42
-7,200
a1f3f8148bea84d8a5d1f48eb690af194c0964e5
Contenttweaker Fluids
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Fluid.md", "diff": "+# Fluid\n+\n+This allows you to add fluids to the game!\n+\n+## Create the Fluid Representation\n+Before you can add the fluid, you need to create a Fluid Representation which will allow you to set the properties of the fluid you want to add.\n+This is where the [VanillaFactory](VanillaFactory) comes in:\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createFluid(String unlocalizedName, int color);\n+```\n+\n+## Import the representation Package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.Fluid;`\n+\n+## ZenProperties\n+\n+To get/set the properties you can either use the respecting ZenGetters/Setters or the ZenMethods:\n+```\n+//property name: density\n+//ZenGetter\n+print(fluid.density);\n+//ZenSetter\n+fluid.density = 500;\n+//ZenMethods\n+fluid.getDensity();\n+fluid.setDensity(1000);\n+```\n+\n+| Property Name | Type | Required | Default Value | Description/Notes |\n+|-----------------|-----------------------------------------------------------------------------------------|----------|----------------------------------|--------------------------------------------------------------------------------------|\n+| unlocalizedName | String | Yes | | Name, should be all lowercase |\n+| density | int | No | 1000 | How fast you can walk in the fluid |\n+| gaseous | boolean | No | false | Is the fluid gaseous (flows upwards instead of downwards)? |\n+| luminosity | int | No | 0 | The light-level emitted by the fluid |\n+| temperature | int | No | 300 | The Fluid's temperature |\n+| color | int | Yes | | The Fluid's color-code |\n+| colorize | boolean | No | true | Is the fluid's color-code applied? |\n+| rarity | String | No | COMMON | How rare a fluid is, determines ToolTip color (\"COMMON\", \"UNCOMMON\", \"RARE\", \"EPIC\") |\n+| viscosity | int | No | 1000 | How quickly the fluid spreads |\n+| fillSound | [ISoundEventDefinition](/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition) | No | ITEM_BUCKET_FILL | The sound played when the fluid is placed |\n+| emptySound | [ISoundEventDefinition](/Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition) | No | ITEM_BUCKET_EMPTY | The sound played when the fluid is picked up |\n+| vaporize | boolean | No | false | |\n+| stillLocation | String | No | contenttweaker:fluids/fluid | The Location where to find the texture for the still fluid |\n+| flowingLocation | String | No | contenttweaker:fluids/fluid_flow | The Location where to find the texture for the flowing fluid |\n+| material | [IMaterialDefinition](/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition) | No | WATER | The Material the fluid is made of |\n+\n+\n+\n+\n+## Registering the fluid\n+You need to call this method to register the fluid in the game!\n+Otherwise nothing will happen!\n+After you have called this function, you cannot un-register the fluid or change any of it's properties!\n+\n+```\n+fluid.register();\n+```\n+\n+## Example Script\n+```\n+#loader contenttweaker\n+import mods.contenttweaker.VanillaFactory;\n+import mods.contenttweaker.Fluid;\n+\n+var zsFluid = VanillaFactory.createFluid(\"zs_fluid\", 0);\n+zsFluid.fillSound = <soundevent:block.anvil.place>;\n+zsFluid.register();\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md", "diff": "@@ -9,6 +9,10 @@ This is where the [VanillaFactory](VanillaFactory) comes in:\nmods.contenttweaker.VanillaFactory.createItem(String unlocalizedName);\n```\n+## Import the representation Package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.Item;`\n+\n## ZenProperties\nTo get/set the properties you can either use the respecting ZenGetters/Setters or the ZenMethods:\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md", "diff": "@@ -43,4 +43,15 @@ Parameters:\n- String unlocalizedName: The Tab's unlocalized Name.\n- Item or Block representation: The Item/Block to be displayed as the Tab's symbol.\n-Returns a ICreativeTab object. Check the [Creative Tab page](Creative_Tab) for further information and an example script!\n\\ No newline at end of file\n+Returns a [ICreativeTab](Creative_Tab) object. Check the [Creative Tab page](Creative_Tab) for further information and an example script!\n+\n+### Create Fluids\n+```JAVA\n+mods.contenttweaker.VanillaFactory.createFluid(String unlocalizedName, int color);\n+```\n+Parameters:\n+\n+- String unlocalizedName: The Fluid's unlocalized name.\n+- int color: The fluid's color-code.\n+\n+Returns a [FluidRepresentation](Fluid) object. Check the [Fluid page](Fluid) for further information and an example script.\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -95,6 +95,7 @@ pages:\n- Vanilla Factory: 'Mods/ContentTweaker/Vanilla/Creatable_Content/VanillaFactory.md'\n- Block: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md'\n- Creative Tab: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Creative_Tab.md'\n+ - Fluid: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Fluid.md'\n- Item: 'Mods/ContentTweaker/Vanilla/Creatable_Content/Item.md'\n- Advanced Functionality:\n- Commands: 'Mods/ContentTweaker/Vanilla/Advanced_Functionality/Commands.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Contenttweaker Fluids
139,040
04.10.2017 19:11:28
-7,200
e17b5d067f4db5ac35b6d62af3b614394929b252
Starting with ContentTweaker's Material System
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Materials/Material.md", "diff": "+# Material\n+\n+A Material is what an item is made of, for example Platinum.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.Material;`\n+\n+## Retrieving such an object\n+You can either retrieve an existing Material using the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem) or create an entirely new one using the [Material Builder](/Mods/ContentTweaker/Materials/Materials/MaterialBuilder)\n+\n+## Fields\n+You can retrieve the following information from a Material:\n+\n+| ZenMethod | Return Type | Description |\n+|----------------------|-------------|------------------------------------------------|\n+| getName() | String | Returns the Material's name |\n+| getColor() | int | Returns the Material's color |\n+| isHasEffect() | boolean | Returns if the material has the glowing effect |\n+| getUnlocalizedName() | String | Returns the Material's unlocalized name |\n+\n+## Register [Material Parts](MaterialPart)\n+\n+You can either register parts using the [part object](/Mods/ContentTweaker/Materials/Parts/Part) or it's name string.\n+You can also either register a single part or multiple at once.\n+So you got 4 options in total:\n+```JAVA\n+registerParts(String[] partNames);\n+registerParts(IPart[] parts);\n+\n+\n+registerPart(String partName);\n+registerPart(IPart part);\n+```\n+\n+The registerPart Methods return a single [MaterialPart](MaterialPart) object.\n+The registerParts Methods return a [MaterialPart](MaterialPart) list.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Materials/Material_Builder.md", "diff": "+# Material_Builder\n+\n+If you want to build a [material](/Mods/ContentTweaker/Materials/Materials/Material), you will need a Material Builder!\n+Doesn't sound that hard, does it?\n+\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.MaterialBuilder;`\n+\n+## Retrieving such an object\n+You can retrieve a new, clear Builder using the [MaterialSystem Package](/Mods/ContentTweaker/Materials/MaterialSystem):\n+\n+```JAVA\n+var mBuilder = mods.contenttweaker.MaterialSystem.getMaterialBuilder();\n+```\n+\n+## Set the Material's Properties\n+\n+You can set these Properties\n+\n+| ZenMethod | Parameter |\n+|-------------------------|-------------------|\n+| setName(name) | String name |\n+| setColor(color) | int color |\n+| setHasEffect(hasEffect) | boolean hasEffect |\n+\n+All these Methods do 2 things: Firstly, they change the builder's Property, secondly they return the modified builder.\n+You can see in the example scripts below what this means.\n+\n+## Actually build the Material\n+Before you can build your material, you need to build it:\n+```JAVA\n+mBuilder.build();\n+```\n+This returns an [IMaterial](/Mods/ContentTweaker/Materials/Materials/Material) Object.\n+\n+## Example Script\n+```JAVA\n+\n+var builder = MaterialSystem.getMaterialBuilder();\n+builder.setName(\"Urubuntu\");\n+builder.setColor(000151);\n+builder.setHasEffect(false);\n+val urubuntu = builder.build();\n+\n+val arakantara = MaterialSystem.getMaterialBuilder().setName(\"Arakantara\").setColor(15592941).setHasEffect(true).build();\n+```\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "diff": "+Part.md\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -112,6 +112,12 @@ pages:\n- ISoundEventDefinition: 'Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition.md'\n- World:\n- IWorld: 'Mods/ContentTweaker/Vanilla/Types/World/IWorld.md'\n+ - Material System:\n+ - Introduction: 'Mods/ContentTweaker/Materials/Introduction.md'\n+ - MaterialSystem: 'Mods/ContentTweaker/Materials/MaterialSystem.md'\n+ - Materials:\n+ - Material: 'Mods/ContentTweaker/Materials/Materials/Material.md'\n+ - Material Builder: 'Mods/ContentTweaker/Materials/Materials/Material_Builder.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Starting with ContentTweaker's Material System
139,040
05.10.2017 20:59:58
-7,200
3cc676b0883932e8b37852b0cb4e478e9bb066aa
Some more CoT Material System, still WIP
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/Material.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/Material.md", "diff": "@@ -7,7 +7,7 @@ It might be required for you to import the package if you encounter any issues,\n`import mods.contenttweaker.Material;`\n## Retrieving such an object\n-You can either retrieve an existing Material using the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem) or create an entirely new one using the [Material Builder](/Mods/ContentTweaker/Materials/Materials/MaterialBuilder)\n+You can either retrieve an existing Material using the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem) or create an entirely new one using the [Material Builder](/Mods/ContentTweaker/Materials/Materials/Material_Builder)\n## Fields\nYou can retrieve the following information from a Material:\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPart.md", "diff": "+# MaterialPart\n+\n+A MaterialPart Object is, as the name suggests a combination of a [Material](Material) and a [Part](/Mods/ContentTweaker/Materials/Parts/Part), such as `platinum gear`.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.MaterialPart;`\n+\n+## Retrieving such an object\n+There are several ways of retreiving such an object, either as list or as single object.\n+\n+Single Object:\n+- Using the [Material Bracket Handler](/Mods/ContentTweaker/Material/Brackets/Bracket_Material)\n+- Using a [Material's](Material) registerPart Method\n+\n+List:\n+- Using [MaterialSystem's](/Mods/ContentTweaker/Material/MaterialSystem) registerPartsForMaterial Method\n+- Using a [Material's](Material) registerParts Method\n+\n+## Fields\n+\n+You can retrieve the following information from a MaterialPart:\n+\n+| ZenMethod | Return Type |\n+|----------------------|----------------------------------------|\n+| getName() | String |\n+| getLocalizedName() | String |\n+| hasEffect() | boolean |\n+| getMaterial() | [IMaterial](Material) |\n+| getPart() | [IPart](Part) |\n+| getItemStack() | [IItemStack](Vanilla/Items/IItemStack) |\n+| getTextureLocation() | String |\n+| getColor() | int |\n+| isColorized() | boolean |\n+| getData() | [IMaterialPartData](IMaterialPartData) |\n+\n+You can also set the following information of a MaterialPart:\n+\n+| ZenMethod | Parameter | Description |\n+|-------------------------------------|------------------------|-------------------------------------------------------------------------------------------------|\n+| setColorized(colorized) | boolean colorized | Sets if the item's color code is applied |\n+| setTextureLocation(textureLocation) | String textureLocation | Sets the item's texure path. For example, if you want one Gear to look different from the rest. |\n+\n+\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPartData.md", "diff": "+# MaterialPartData\n+\n+Material Part Data is data that can be added to a [MaterialPart](MaterialPart) to give it some more properties.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.MaterialPartData;`\n+\n+## Retrieving such an object\n+You can get a MaterialPartData object by using the `getData()` Method on a [MaterialPart](MaterialPart) object.\n+\n+## Methods\n+All you can do with MaterialPartData is add more Data!\n+You do that like so:\n+```JAVA\n+MPD.addDataValue(String name, String value);\n+```\n+\n+Now, what to put in as name or value?\n+Well, that depends on the parttype of the tool you are using.\n+Below you will find a list for CoT's basic Part Types:\n+\n+<details><summary>Armor</summary>\n+ <table>\n+ <thead>\n+ <th>Name</th><th>Value</th><th>Required?</th></tr>\n+ </thead>\n+ <tbody>\n+ <tr><td>enchantability</td><td>An \"integer\" (e.g. \"10\")</td><td>No</td></tr>\n+ <tr><td>durability</td><td>An \"integer\" (e.g. \"10\")</td><td>No</td></tr>\n+ <tr><td>reduction</td><td>A \"float\" (e.g. \"2.4\")</td><td>No</td></tr>\n+ <tr><td>toughness</td><td>Four \"integers\" (e.g. \"2,3,4,5)</td><td>No</td></tr>\n+ </tbody>\n+ </table>\n+</details>\n+\n+\n+<details><summary>Block</summary>\n+ <table>\n+ <thead>\n+ <tr><th>Name</th><th>Value</th><th>Required?</th></tr>\n+ </thead>\n+ <tbody>\n+ <tr><td>hardness</td><td>An \"integer\" (e.g. \"3\")</td><td>No</td></tr>\n+ <tr><td>resistance</td><td>An \"integer\" (e.g. \"15\")</td><td>No</td></tr>\n+ <tr><td>harvestLevel</td><td>An \"integer\" (e.g. \"1\")</td><td>No</td></tr>\n+ <tr><td>harvestTool</td><td>A \"tool\" (e.g. \"pickaxe\")</td><td>No</td></tr>\n+ </tbody>\n+ </table>\n+</details>\n+\n+\n+<details><summary>Fluid</summary>\n+ <table>\n+ <thead>\n+ <tr><th>Name</th><th>Value</th><th>Required?</th></tr>\n+ </thead>\n+ <tbody>\n+ <tr><td>temperature</td><td>An \"integer\" (e.g. \"300\")</td><td>No</td></tr>\n+ <tr><td>density</td><td>An \"integer\" (e.g. \"1000\")</td><td>No</td></tr>\n+ <tr><td>viscosity</td><td>An \"integer\" (e.g. \"100\")</td><td>No</td></tr>\n+ <tr><td>vaporize</td><td>A \"boolean\" (e.g. \"true\")</td><td>No</td></tr>\n+ </tbody>\n+ </table>\n+</details>\n+\n+\n+<details><summary>Ore</summary>\n+ <table>\n+ <thead>\n+ <tr><th>Name</th><th>Value</th><th>Required?</th></tr>\n+ </thead>\n+ <tbody>\n+ <tr><td>drops</td><td>An \"itemList\" (e.g. \"minecraft:redstone,minecraft:gold_ingot\")</td><td>No</td></tr>\n+ <tr><td>variants</td><td>A \"Block List\" (e.g. \"minecraft:stone,minecraft:end_stone\")</td><td>No</td></tr>\n+ <tr><td>hardness</td><td>An \"integer list\" (e.g. \"3,3\")</td><td>No</td></tr>\n+ <tr><td>resistance</td><td>An \"integer list\" (e.g. \"15,15\")</td><td>No</td></tr>\n+ <tr><td>harvestLevel</td><td>An \"integer list\" (e.g. \"1,1\")</td><td>No</td></tr>\n+ <tr><td>harvestTool</td><td>A \"toolList\" (e.g. \"pickaxe,pickaxe\")</td><td>No</td></tr>\n+ </tbody>\n+ </table>\n+</details>\n+\n+## Example\n+\n+```JAVA\n+import mods.contenttweaker.MaterialSystem;\n+\n+val oreData = MaterialSystem.getMaterialBuilder().setName(\"Lawrencium\").setColor(15426660).build().registerPart(\"ore\").getData();\n+oreData.addDataValue(\"drops\", \"minecraft:redstone,minecraft:gold_ingot\");\n+oreData.addDataValue(\"variants\", \"minecraft:stone,minecraft:end_stone\");\n+oreData.addDataValue(\"hardness\", \"3,3\");\n+oreData.addDataValue(\"resistance\", \"15,15\");\n+oreData.addDataValue(\"harvestLevel\", \"1,1\");\n+oreData.addDataValue(\"harvestTool\", \"pickaxe,shovel\");\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/Material_Builder.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/Material_Builder.md", "diff": "@@ -37,6 +37,7 @@ This returns an [IMaterial](/Mods/ContentTweaker/Materials/Materials/Material) O\n## Example Script\n```JAVA\n+import mods.contentTweaker.MaterialSystem;\nvar builder = MaterialSystem.getMaterialBuilder();\nbuilder.setName(\"Urubuntu\");\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "new_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "diff": "-Part.md\n\\ No newline at end of file\n+# Part\n+\n+A Part is the form an item is in, for example a gear or an ore.\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.Part;`\n+\n+## Retrieving such an object\n+You can either retrieve an existing Part using the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem) or create an entirely new one using the [Part Builder](/Mods/ContentTweaker/Materials/Parts/Part_Builder)\n+\n+<details>\n+ <summary>Following types are pre-registered:</summary>\n+ <ul>\n+ <li>Ingot</li>\n+ <li>Beam</li>\n+ <li>Gear</li>\n+ <li>Bolt</li>\n+ <li>Dust</li>\n+ <li>Nugget</li>\n+ <li>Rod</li>\n+ <li>Plate</li>\n+ <li>Dense Plate</li>\n+ <li>Casing</li>\n+ <li>Block</li>\n+ <li>Ore</li>\n+ <li>Poor Ore</li>\n+ <li>Dense Ore</li>\n+ <li>Molten</li>\n+ <li>Armor</li>\n+ </ul>\n+</details>\n+\n+## Fields\n+You can retrieve the following information from a Part:\n+\n+| ZenMethod | Return Type |\n+|----------------------|----------------------------------------|\n+| getName() | String |\n+| getUnlocalizedName() | String |\n+| getPartType() | [IPartType](IPartType) |\n+| getPartTypeName() | String |\n+| getOreDictPrefix() | String |\n+| getData() | List<[IPartDataPiece](IPartDataPiece)> |\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Parts/Part_Builder.md", "diff": "+# Part Builder\n+If you want to build a [Part](Part), you will need a Part Builder!\n+Doesn't sound that hard, does it?\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.PartBuilder;`\n+\n+\n+## Retrieving such an object\n+You can retrieve a new, clear Builder using the [MaterialSystem Package](/Mods/ContentTweaker/Materials/MaterialSystem):\n+\n+```JAVA\n+var pBuilder = mods.contenttweaker.MaterialSystem.getPartBuilder();\n+```\n+\n+\n+## Set the Part's Properties\n+\n+You can set these Properties\n+\n+| ZenMethod | Parameter |\n+|-----------------------|-------------------------------|\n+| setName(name) | String name |\n+| setPartType(partType) | [PartType](PartType) partType |\n+\n+All these Methods do 2 things: Firstly, they change the builder's Property, secondly they return the modified builder.\n+You can see in the example scripts below what this means.\n+\n+## Actually build the Material\n+Before you can build your material, you need to build it:\n+```JAVA\n+pBuilder.build();\n+```\n+\n+This returns an [Part](Part) Object.\n+\n+## Example Script\n+```JAVA\n+var pBuilder = mods.contenttweaker.MaterialSystem.getPartBuilder();\n+pBuilder.setName(\"dense_gear\");\n+pBuilder.setPartType(MaterialSystem.getPartType(\"item\"));\n+\n+var denseGearPart = pBuilder.build();\n+var denseIngot = mods.contenttweaker.MaterialSystem.getPartBuilder().setName(\"dense_ingot\").getPartType(\"item\");\n+```\n+\n+## Noteworthy information\n+### Localizing the MaterialParts\n+The items you create with your new part will generally be named `contenttweaker.part.partname`\n+If you want your item to include the material name, you will need to localize it, preferably in CoT's language files which can be found at `Resources/contenttweaker/lang`.\n+Instead of the material name you write `%s`, so naming the dense gears ans ingots created above would look like this:\n+```\n+contenttweaker.part.dense_gear=Dense %s Gear\n+contenttweaker.part.dense_ingot=Dense %s Ingot\n+```\n+\n+### Adding a texture\n+The items you create with your new part will look a bit edgy to you.\n+If you want your part to have a specific icon you will need to add a `partname.png` file to `Resources/contenttweaker/textures/items`.\n+So, giving the dense gears a texture would require us to add a file called `gear_dense.png` to that folder.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -118,6 +118,11 @@ pages:\n- Materials:\n- Material: 'Mods/ContentTweaker/Materials/Materials/Material.md'\n- Material Builder: 'Mods/ContentTweaker/Materials/Materials/Material_Builder.md'\n+ - Material Part: 'Mods/ContentTweaker/Materials/Materials/MaterialPart.md'\n+ - Material Part Data: 'Mods/ContentTweaker/Materials/Materials/MaterialPartData.md'\n+ - Parts:\n+ - Part: 'Mods/ContentTweaker/Materials/Parts/Part.md'\n+ - Part Builder: 'Mods/ContentTweaker/Materials/Parts/Part_Builder.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Some more CoT Material System, still WIP
139,040
05.10.2017 22:14:15
-7,200
8e56ae853c59535b22c4a7730532450d51ffa5d9
Latest CoT commits and some more CoT material system
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Commands.md", "diff": "+# Commands\n+\n+ContentTweaker extends the command palette provided by CraftTweaker.\n+To access these commands you do the same as you do for CraftTweaker commands, you use the `/crafttweaker` prefix\n+\n+\n+# List of ContentTweaker Commands\n+\n+## blockmaterial\n+\n+Usage:\n+\n+`/craftweaker blockmaterial`\n+\n+`/ct blockmaterial`\n+\n+Description:\n+\n+Outputs a list of all the block materials in the game to the crafttweaker.log file.\n+\n+\n+## creativetab\n+\n+Usage:\n+\n+`/craftweaker creativetab`\n+\n+`/ct creativetab`\n+\n+Description:\n+\n+Outputs a list of all the creative tabs in the game to the crafttweaker.log file.\n+\n+\n+## soundevent\n+\n+Usage:\n+\n+`/craftweaker soundevent`\n+\n+`/ct soundevent`\n+\n+Description:\n+\n+Outputs a list of all the sound events in the game to the crafttweaker.log file.\n+\n+\n+## soundtype\n+\n+Usage:\n+\n+`/craftweaker soundtype`\n+\n+`/ct soundtype`\n+\n+Description:\n+\n+Outputs a list of all the sound types in the game to the crafttweaker.log file.\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Brackets/Bracket_MaterialPart.md", "diff": "+# Material Part Bracket Handler\n+\n+The Material Part Bracket Handler gives you access to the Material Parts in the game. It is only possible to get Material Parts registered in the game, so you need to be careful of the loading order of scripts.\n+\n+Material Parts are referenced in the Material Part Bracket handler this way:\n+\n+```\n+<materialpart:material:part>\n+\n+<materialpart:platinum:gear>\n+```\n+\n+If the Material Part is found, this will return an [IMaterialPart](/Mods/ContentTweaker/Materials/Materials/MaterialPart) Object.\n+Please refer to the [respective Wiki entry](/Mods/ContentTweaker/Materials/Materials/MaterialPart) for further information on what you can do with these.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPart.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPart.md", "diff": "# MaterialPart\n-A MaterialPart Object is, as the name suggests a combination of a [Material](Material) and a [Part](/Mods/ContentTweaker/Materials/Parts/Part), such as `platinum gear`.\n+A MaterialPart Object is, as the name suggests a combination of a [Material](/Mods/ContentTweaker/Materials/Materials/Material) and a [Part](/Mods/ContentTweaker/Materials/Parts/Part), such as `platinum gear`.\n## Importing the package\nIt might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n@@ -10,29 +10,31 @@ It might be required for you to import the package if you encounter any issues,\nThere are several ways of retreiving such an object, either as list or as single object.\nSingle Object:\n-- Using the [Material Bracket Handler](/Mods/ContentTweaker/Material/Brackets/Bracket_Material)\n-- Using a [Material's](Material) registerPart Method\n+\n+- Using the [Material Part Bracket Handler](/Mods/ContentTweaker/Materials/Brackets/Bracket_MaterialPart)\n+- Using a [Material's](/Mods/ContentTweaker/Materials/Materials/Material) registerPart Method\nList:\n-- Using [MaterialSystem's](/Mods/ContentTweaker/Material/MaterialSystem) registerPartsForMaterial Method\n-- Using a [Material's](Material) registerParts Method\n+\n+- Using [MaterialSystem's](/Mods/ContentTweaker/Materials/MaterialSystem) registerPartsForMaterial Method\n+- Using a [Material's](/Mods/ContentTweaker/Materials/Materials/Material) registerParts Method\n## Fields\nYou can retrieve the following information from a MaterialPart:\n| ZenMethod | Return Type |\n-|----------------------|----------------------------------------|\n+|----------------------|--------------------------------------------------------------------------------|\n| getName() | String |\n| getLocalizedName() | String |\n| hasEffect() | boolean |\n-| getMaterial() | [IMaterial](Material) |\n-| getPart() | [IPart](Part) |\n-| getItemStack() | [IItemStack](Vanilla/Items/IItemStack) |\n+| getMaterial() | [IMaterial](/Mods/ContentTweaker/Materials/Materials/Material) |\n+| getPart() | [IPart](/Mods/ContentTweaker/Materials/Parts/Part) |\n+| getItemStack() | [IItemStack](/Vanilla/Items/IItemStack) |\n| getTextureLocation() | String |\n| getColor() | int |\n| isColorized() | boolean |\n-| getData() | [IMaterialPartData](IMaterialPartData) |\n+| getData() | [IMaterialPartData](/Mods/ContentTweaker/Materials/Materials/MaterialPartData) |\nYou can also set the following information of a MaterialPart:\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Block_Material.md", "diff": "@@ -45,9 +45,9 @@ Currently the only Block Materials supported are:\nBlock Materials are referenced in the Material Bracket handler this way:\n```\n-<material:name>\n+<blockmaterial:name>\n-<material:wood>\n+<blockmaterial:wood>\n```\nIf the Block Material is found, this will return an [IMaterialDefinition](/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition) Object.\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Brackets/Bracket_Blocks.md", "diff": "The Block Bracket Handler gives you access to the blocks in the game. It is only possible to get blocks registered in the game, so adding or removing mods may cause issues if you reference the mod's blocks in a Block Bracket Handler.\n-Entities are referenced in the Block Bracket handler this way:\n+Blocks are referenced in the Block Bracket handler this way:\n```\n<block:modID:blockName>\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Creatable_Content/Block.md", "diff": "## Fields\nRequired Fields will never have a default value, empty defaults means null.\n-All Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\");` and gotten via get<field_name>;\n+All Fields can be set via set`Name` e.g. `block.setUnlocalizedName(\"name\");` and gotten via get`Name`;\n|Name |Type |Required |Default Value |Notes |\n|--------------------|-------------------------------------------------------------------------------------------|---------|------------------------------|-----------------------------------------------------------------------------------------|\n@@ -23,7 +23,10 @@ All Fields can be set via set<field_name> e.g. `block.setUnlocalizedName(\"name\")\n|Slipperiness |float |No |0.6f |Ice blocks are 0.98f |\n|OnBlockPlace |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called when Block is placed. |\n|OnBlockBreak |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called when Block is broken. |\n+|onUpdateTick |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called when Block receives a block update. |\n+|onRandomTick |[IBlockAction](/Mods/Contenttweaker/Vanilla/Advanced_Functionality/Functions/IBlockAction) |No | |Called on a random tick event. |\n|BlockLayer |String |No |\"SOLID\" |\"SOLID\", \"CUTOUT_MIPPED\", \"CUTOUT\", \"TRANSLUCENT\" |\n+|axisAlignedBB |[MCAxisAlignedBB](/Mods/Contenttweaker/Vanilla/Types/Block/MCAxisAlignedBB) |No |Full Block |Lets you set the block's bounding box |\n## Examples\n```\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos.md", "diff": "@@ -8,11 +8,11 @@ It might be required for you to import the package if you encounter any issues,\n## ZenMethods without parameters\n-| ZenMethod | Return Type | Description |\n-|-----------|-------------|--------------------------------|\n-| getX() | int | Returns the position's X value |\n-| getY() | int | Returns the position's Y value |\n-| getZ() | int | Returns the position's Z value |\n+| ZenMethod |ZenGetter | Return Type | Description |\n+|-----------|----------|-------------|--------------------------------|\n+| getX() | x | int | Returns the position's X value |\n+| getY() | y | int | Returns the position's Y value |\n+| getZ() | z | int | Returns the position's Z value |\n## ZenMethods with parameters\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md", "diff": "@@ -11,8 +11,8 @@ You can get an ICTBlockState either as a parameter in an [IBlockAction function]\n`<block:minecraft:dirt>`\n-## ZenMethods\n-|ZenMethod | Return Type | Description |\n-|-----------|----------------------------------|--------------------------------------|\n-|getBlock() | [IBlock](/Vanilla/Blocks/IBlock) | Returns the refered block |\n-|getMeta() | int | Returns the refered block's metadata |\n+## ZenMethods and ZenGetters\n+|ZenMethod |ZenGetter | Return Type | Description |\n+|-----------|----------|----------------------------------|--------------------------------------|\n+|getBlock() |block | [IBlock](/Vanilla/Blocks/IBlock) | Returns the refered block |\n+|getMeta() |meta | int | Returns the refered block's metadata |\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition.md", "diff": "@@ -8,4 +8,4 @@ Currently this class is not a ZenClass, so there is no way for you to import any\n## Calling an IMaterialDefinition object\nYou can get such an object using the [Block Material Bracket Handler](/Mods/Contenttweaker/Vanilla/Brackets/Bracket_Block_Material):\n-`<material:wood>`\n+`<blockmaterial:wood>`\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/World/IWorld.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/World/IWorld.md", "diff": "@@ -6,19 +6,19 @@ An IWorld object represents the world the player is currently in.\nIt might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n`import mods.contenttweaker.World;`\n-## ZenMethods without parameters\n+## ZenMethods without parameters and ZenGetters\n-|ZenMethod |Return type |Description |\n-|-------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n-|isRemote() |boolean |True if the world is a \"slave\" client; changes will not be saved or propagated from this world. For example, server worlds have this set to false, client worlds have this set to true. |\n-|isRaining() |boolean |Returns true if it is currently raining |\n-|isThundering() |boolean |Returns true if it is currently thundering |\n-|getMoonPhase() |int |Returns the current moon phase |\n-|isDayTime() |boolean |Checks if it is daytime |\n-|getWorldTime() |long |Returns the world's time |\n-|getDimension() |int |Returns the world's dimension |\n-|isSurfaceWorld() |boolean |Returns whether you are in a surface world or not |\n-|getDimensionType() |String |Returns the dimension's type name |\n+|ZenMethod |ZenGetter |Return type |Description |\n+|-------------------|--------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n+|isRemote() |remote |boolean |True if the world is a \"slave\" client; changes will not be saved or propagated from this world. For example, server worlds have this set to false, client worlds have this set to true. |\n+|isRaining() |raining |boolean |Returns true if it is currently raining |\n+|isThundering() |thundering |boolean |Returns true if it is currently thundering |\n+|getMoonPhase() |moonPhase |int |Returns the current moon phase |\n+|isDayTime() |dayTime |boolean |Checks if it is daytime |\n+|getWorldTime() |time |long |Returns the world's time |\n+|getDimension() |dimension |int |Returns the world's dimension |\n+|isSurfaceWorld() |surfaceWorld |boolean |Returns whether you are in a surface world or not |\n+|getDimensionType() |dimensionType |String |Returns the dimension's type name |\n## ZenMethods with parameters\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -83,6 +83,7 @@ pages:\n- Starlight Transmutation: 'Mods/Astral_Sorcery/Transmutation.md'\n- ContentTweaker:\n- ContentTweaker: 'Mods/ContentTweaker/ContentTweaker.md'\n+ - Commands: 'Mods/ContentTweaker/Commands.md'\n- WalkThrough: 'Mods/ContentTweaker/WalkThrough.md'\n- Vanilla:\n- Brackets:\n@@ -107,6 +108,7 @@ pages:\n- ICTBlockState: 'Mods/ContentTweaker/Vanilla/Types/Block/ICTBlockState.md'\n- IBlockPos: 'Mods/ContentTweaker/Vanilla/Types/Block/IBlockPos.md'\n- IMaterialDefinition: 'Mods/ContentTweaker/Vanilla/Types/Block/IMaterialDefinition.md'\n+ - MCAxisAlignedBB: 'Mods/ContentTweaker/Vanilla/Types/Block/MCAxisAlignedBB.md'\n- Sound:\n- ISoundTypeDefinition: 'Mods/ContentTweaker/Vanilla/Types/Sound/ISoundTypeDefinition.md'\n- ISoundEventDefinition: 'Mods/ContentTweaker/Vanilla/Types/Sound/ISoundEventDefinition.md'\n@@ -115,6 +117,8 @@ pages:\n- Material System:\n- Introduction: 'Mods/ContentTweaker/Materials/Introduction.md'\n- MaterialSystem: 'Mods/ContentTweaker/Materials/MaterialSystem.md'\n+ - Brackets:\n+ - Material Part Bracket Handler: 'Mods/ContentTweaker/Materials/Brackets/Bracket_MaterialPart.md'\n- Materials:\n- Material: 'Mods/ContentTweaker/Materials/Materials/Material.md'\n- Material Builder: 'Mods/ContentTweaker/Materials/Materials/Material_Builder.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Latest CoT commits and some more CoT material system
139,040
09.10.2017 13:36:07
-7,200
b5163d8a6d3ee167fa5923d79155dd35aafc7d0b
More CoT Material Part
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/MaterialSystem.md", "new_path": "docs/Mods/ContentTweaker/Materials/MaterialSystem.md", "diff": "@@ -30,7 +30,7 @@ For a list of all available part types check [the part type page](PartType).\n## [IMaterial](/Mods/ContentTweaker/Materials/Materials/Material)\n### Create\n-Unlike the PartType, you cannot directly create a Material, instead you need to use a MaterialBuilder. Check the [MaterialBuilder entry](/Mods/ContentTweaker/Materials/Materials/MaterialBuilder) for info on what exactly to do with these.\n+Unlike the PartType, you cannot directly create a Material, instead you need to use a MaterialBuilder. Check the [MaterialBuilder entry](/Mods/ContentTweaker/Materials/Materials/Material_Builder) for info on what exactly to do with these.\n```JAVA\nval MB MaterialSystem.getMaterialBuilder();\nMB.setName(\"Urubuntium\");\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/Material_Builder.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/Material_Builder.md", "diff": "-# Material_Builder\n+# Material Builder\nIf you want to build a [material](/Mods/ContentTweaker/Materials/Materials/Material), you will need a Material Builder!\nDoesn't sound that hard, does it?\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "new_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "diff": "@@ -41,4 +41,4 @@ You can retrieve the following information from a Part:\n| getPartType() | [IPartType](IPartType) |\n| getPartTypeName() | String |\n| getOreDictPrefix() | String |\n-| getData() | List<[IPartDataPiece](IPartDataPiece)> |\n\\ No newline at end of file\n+| getData() | List<[IPartDataPiece](PartDataPiece)> |\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Parts/PartDataPiece.md", "diff": "+# PartDataPiece\n+\n+A part Data piece can be added to a [PartType](PartType) to be able to add some [MaterialPartData](/Mods/ContentTweaker/Materials/Materials/MaterialPartData) to [MaterialParts](/Mods/ContentTweaker/Materials/Materials/MaterialPart) created with [Parts](Part) that are of this [PartType](PartType).\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.PartDataPiece;`\n+\n+## Retrieving such an object\n+\n+You can get a List of a [Parts](Part) DataPieces using `getData()` on a [Part](Part).\n+\n+Alternatively, you can register a new PartDataPiece using the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem):\n+\n+```JAVA\n+mods.contenttweaker.MaterialSystem.createPartDataPiece(String name, boolean required)\n+```\n+\n+Parameters:\n+\n+- String name: The new PartDataPiece's name\n+- boolean required: Is the PartDataPiece required to be present on a [MaterialParts](/Mods/ContentTweaker/Materials/Materials/MaterialPart) in order to register it?\n+\n+\n+## ZenMethods\n+You can retrieve the following information from a PartType:\n+\n+| ZenMethod | Return Type |\n+|--------------|-------------|\n+| getName() | String |\n+| isRequired() | String |\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/Mods/ContentTweaker/Materials/Parts/PartType.md", "diff": "+# PartType\n+\n+A PartType can be seen as a group that several parts fit in, e.g. `items`\n+\n+## Importing the package\n+It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.\n+`import mods.contenttweaker.PartType;`\n+\n+## Retrieving such an object\n+You can use the [MaterialSystem](/Mods/Contenttweaker/Materials/MaterialSystem) to either retrieve an existing PartType object or create an entirely new one.\n+Check out below entry to learn how to create a new PartType.\n+\n+<details>\n+ <summary>Following types are pre-registered:</summary>\n+ <ul>\n+ <li>item</li>\n+ <li>block</li>\n+ <li>ore</li>\n+ <li>fluid</li>\n+ <li>armor</li>\n+ </ul>\n+</details>\n+\n+\n+## ZenMethods\n+You can retrieve the following information from a PartType:\n+\n+| ZenMethod | Return Type |\n+|----------------------|----------------------------------------|\n+| getName() | String |\n+\n+You can set the following information on a PartType:\n+\n+| ZenMethod | Parameter Type |\n+|---------------------------------|----------------------------------------|\n+| setData(IPartDataPiece[] data); | [IPartDataPiece](PartDataPiece)[] data |\n+\n+\n+## Create a new PartType\n+If you, for whatever reason would ever need to register a new PartType, you will need to know two things:\n+\n+- What name the new partType will have\n+- How [MaterialParts](/Mods/Contenttweaker/Materials/Materials/MaterialPart) created from [Parts](Part) that are of this type will be registered\n+\n+The first is simple, it's a string.\n+The second is a bit trickier, it's a function that takes a MaterialPart as input:\n+\n+```JAVA\n+#loader contenttweaker\n+\n+\n+import mods.contenttweaker.MaterialSystem;\n+\n+val ourType = MaterialSystem.createPartType(\"cool_type\", function(materialPart){\n+\n+});\n+\n+//Use the new type to create a Part\n+val ourPart = mods.contenttweaker.MaterialSystem.getPartBuilder().setName(\"cool_part\").setPartType(ourType).build();\n+\n+//Create a new Material and register the newly created part.\n+val ourMaterial = MaterialSystem.getMaterialBuilder().setName(\"Lawrencium\").setColor(15426660).build();\n+ourMaterial.registerPart(ourPart);\n+\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -127,6 +127,8 @@ pages:\n- Parts:\n- Part: 'Mods/ContentTweaker/Materials/Parts/Part.md'\n- Part Builder: 'Mods/ContentTweaker/Materials/Parts/Part_Builder.md'\n+ - PartType: 'Mods/ContentTweaker/Materials/Parts/PartType.md'\n+ - PartDataPiece: 'Mods/ContentTweaker/Materials/Parts/PartDataPiece.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n- Modtweaker:\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
More CoT Material Part
139,040
09.10.2017 13:45:53
-7,200
c4a3430b902edfa1670d106f5ee5ce60895260a4
Moved Mekansim entry
[ { "change_type": "MODIFY", "old_path": "docs/Mods/Mekanism/Gas.md", "new_path": "docs/Mods/Mekanism/Gas.md", "diff": "@@ -3,7 +3,7 @@ Mekanism\nMekanism CraftTweaker support has been integrated directly into Mekanism now ([link](https://github.com/aidancbrady/Mekanism/tree/master/src/main/java/mekanism/common/integration/crafttweaker))\n-Mekanism adds bracket-handler support to define **gas** -- a special material state differing from forge **liquids**\n+Mekanism adds bracket-handler support to define **gas** -- a special material state differing from forge [**liquids**](/Vanilla/Liquids/ILiquidStack)\n```\n<gas:oxygen>\n<gas:water> *\n@@ -42,3 +42,21 @@ You can set the Object's amount (gas volume in Millibuckets) in two ways, which\nvar gas_amount_multiply = <gas:water> * 500;\nvar gas_amount_zenMethod = <gas:water>.withAmount(500);\n```\n+\n+\n+IGasDefinition\n+------\n+\n+An IGasDefinition object contains information on a gas.\n+You can get such an object using `gasStack.definition` (check the table above)\n+\n+| ZenGetter | Description | Return Type |\n+|-------------|-----------------------------------------|----------------|\n+| NAME | Returns the referred gas' name | String |\n+| displayName | Returns the referred gas' display name | String |\n+\n+You can multiply a gasDefinition to return a new IGasStack with the given amount in millibuckets:\n+```JAVA\n+var gas_definition = <gas:water>.definition;\n+var gas_bucket = gas_definition * 1000;\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "mkdocs.yml", "new_path": "mkdocs.yml", "diff": "@@ -131,6 +131,26 @@ pages:\n- PartDataPiece: 'Mods/ContentTweaker/Materials/Parts/PartDataPiece.md'\n- JEI:\n- JEI: 'Mods/JEI/JEI.md'\n+ - Mekanism:\n+ - Chemical Crystallizer: 'Mods/Mekanism/Chemical_Crystallizer.md'\n+ - Chemical Dissolution Chamber: 'Mods/Mekanism/Chemical_Dissolution_Chamber.md'\n+ - Chemical Infuser: 'Mods/Mekanism/Chemical_Infuser.md'\n+ - Chemical Injection Chamber: 'Mods/Mekanism/Chemical_Injection_Chamber.md'\n+ - Chemical Oxidizer: 'Mods/Mekanism/Chemical_Oxidizer.md'\n+ - Chemical Washer: 'Mods/Mekanism/Chemical_Washer.md'\n+ - Combiner: 'Mods/Mekanism/Combiner.md'\n+ - Crusher: 'Mods/Mekanism/Crusher.md'\n+ - Electrolytic Separator: 'Mods/Mekanism/Electrolytic_Separator.md'\n+ - Energized Smelter: 'Mods/Mekanism/Energized_Smelter.md'\n+ - Enrichment Chamber: 'Mods/Mekanism/Enrichment_Chamber.md'\n+ - Gas: 'Mods/Mekanism/Gas.md'\n+ - Metallurgic Infuser: 'Mods/Mekanism/Metallurgic_Infuser.md'\n+ - Osmium Compressor: 'Mods/Mekanism/Osmium_Compressor.md'\n+ - Precision Sawmill: 'Mods/Mekanism/Precision_Sawmill.md'\n+ - Pressurised Reaction Chamber: 'Mods/Mekanism/Pressurised_Reaction_Chamber.md'\n+ - Purification Chamber: 'Mods/Mekanism/Purification_Chamber.md'\n+ - Solar Neutron Activator: 'Mods/Mekanism/Solar_Neutron_Activator.md'\n+ - Thermal Evaporation: 'Mods/Mekanism/Thermal_Evaporation.md'\n- Modtweaker:\n- Modtweaker: 'Mods/Modtweaker/Modtweaker.md'\n- Actually Additions:\n@@ -180,26 +200,6 @@ pages:\n- BioReactor: 'Mods/IndustrialForegoing/BioReactor.md'\n- Laser Drill: 'Mods/IndustrialForegoing/LaserDrill.md'\n- Sludge Refiner: 'Mods/IndustrialForegoing/SludgeRefiner.md'\n- - Mekanism:\n- - Chemical Crystallizer: 'Mods/Mekanism/Chemical_Crystallizer.md'\n- - Chemical Dissolution Chamber: 'Mods/Mekanism/Chemical_Dissolution_Chamber.md'\n- - Chemical Infuser: 'Mods/Mekanism/Chemical_Infuser.md'\n- - Chemical Injection Chamber: 'Mods/Mekanism/Chemical_Injection_Chamber.md'\n- - Chemical Oxidizer: 'Mods/Mekanism/Chemical_Oxidizer.md'\n- - Chemical Washer: 'Mods/Mekanism/Chemical_Washer.md'\n- - Combiner: 'Mods/Mekanism/Combiner.md'\n- - Crusher: 'Mods/Mekanism/Crusher.md'\n- - Electrolytic Separator: 'Mods/Mekanism/Electrolytic_Separator.md'\n- - Energized Smelter: 'Mods/Mekanism/Energized_Smelter.md'\n- - Enrichment Chamber: 'Mods/Mekanism/Enrichment_Chamber.md'\n- - Gas: 'Mods/Mekanism/Gas.md'\n- - Metallurgic Infuser: 'Mods/Mekanism/Metallurgic_Infuser.md'\n- - Osmium Compressor: 'Mods/Mekanism/Osmium_Compressor.md'\n- - Precision Sawmill: 'Mods/Mekanism/Precision_Sawmill.md'\n- - Pressurised Reaction Chamber: 'Mods/Mekanism/Pressurised_Reaction_Chamber.md'\n- - Purification Chamber: 'Mods/Mekanism/Purification_Chamber.md'\n- - Solar Neutron Activator: 'Mods/Mekanism/Solar_Neutron_Activator.md'\n- - Thermal Evaporation: 'Mods/Mekanism/Thermal_Evaporation.md'\n- PackMode:\n- PackMode: 'Mods/Pack_Mode/Packmode.md'\n- Preprocessor: 'Mods/Pack_Mode/Preprocessors/Preprocessor_Packmode.md'\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Moved Mekansim entry
139,040
09.10.2017 13:57:54
-7,200
c16a8bd90b54a324618cab463b7a779df9a3c502
Small mix-up :smile:
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPartData.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPartData.md", "diff": "@@ -26,10 +26,10 @@ Below you will find a list for CoT's basic Part Types:\n<th>Name</th><th>Value</th><th>Required?</th></tr>\n</thead>\n<tbody>\n- <tr><td>enchantability</td><td>An \"integer\" (e.g. \"10\")</td><td>No</td></tr>\n<tr><td>durability</td><td>An \"integer\" (e.g. \"10\")</td><td>No</td></tr>\n- <tr><td>reduction</td><td>A \"float\" (e.g. \"2.4\")</td><td>No</td></tr>\n- <tr><td>toughness</td><td>Four \"integers\" (e.g. \"2,3,4,5)</td><td>No</td></tr>\n+ <tr><td>enchantability</td><td>An \"integer\" (e.g. \"10\")</td><td>No</td></tr>\n+ <tr><td>reduction</td><td>Four \"integers\" (e.g. \"2,3,4,5\")</td><td>No</td></tr>\n+ <tr><td>toughness</td><td>A \"float\" (e.g. \"2.4\")</td><td>No</td></tr>\n</tbody>\n</table>\n</details>\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Small mix-up :smile:
139,040
09.10.2017 20:23:08
-7,200
ec259375ce04e1cd8828f4e89f935e54a7d80535
CoT's updates
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPart.md", "new_path": "docs/Mods/ContentTweaker/Materials/Materials/MaterialPart.md", "diff": "@@ -13,11 +13,13 @@ Single Object:\n- Using the [Material Part Bracket Handler](/Mods/ContentTweaker/Materials/Brackets/Bracket_MaterialPart)\n- Using a [Material's](/Mods/ContentTweaker/Materials/Materials/Material) registerPart Method\n+- Using a [Part's](Mods/ContentTweaker/Materials/Parts/Part) registerToMaterial Method\nList:\n- Using [MaterialSystem's](/Mods/ContentTweaker/Materials/MaterialSystem) registerPartsForMaterial Method\n- Using a [Material's](/Mods/ContentTweaker/Materials/Materials/Material) registerParts Method\n+- Using a [Part's](Mods/ContentTweaker/Materials/Parts/Part) registerToMaterials Method\n## Fields\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "new_path": "docs/Mods/ContentTweaker/Materials/Parts/Part.md", "diff": "@@ -55,3 +55,12 @@ You can retrieve the following information from a Part:\n| getPartTypeName() | String |\n| getOreDictPrefix() | String |\n| getData() | List<[IPartDataPiece](PartDataPiece)> |\n+\n+## Register to Material(s)\n+You can use this to register one or several Materials to this part\n+```\n+part.registerToMaterial(Material material);\n+part.registerToMaterials(Material[] materials);\n+```\n+\n+The function will either return a single [MaterialPart](/Mods/ContentTweaker/Materials/Materials/MaterialPart) object or a List of them, depending on whether you registered one or multiple materials at once.\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
CoT's updates
139,040
09.10.2017 21:21:08
-7,200
93256e1f1ab71600da13379f0622590fffc7451b
Guess I can't count after all...
[ { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/ActionResult.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Advanced_Functionality/Functions/ActionResult.md", "diff": "@@ -7,7 +7,7 @@ It might be required for you to import the package if you encounter any issues,\n`import mods.contenttweaker.ActionResult;`\n## Enumerations\n-Facing can be of those two values:\n+Facing can be of those three values:\n- fail\n- pass\n" }, { "change_type": "MODIFY", "old_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/Facing.md", "new_path": "docs/Mods/ContentTweaker/Vanilla/Types/Block/Facing.md", "diff": "@@ -7,7 +7,7 @@ It might be required for you to import the package if you encounter any issues,\n`import mods.contenttweaker.Facing;`\n## Enumerations\n-Facing can be of those two values:\n+Facing can be of those six values:\n- north\n- east\n" } ]
TypeScript
MIT License
crafttweaker/crafttweaker-documentation
Guess I can't count after all...