Difference between revisions of "v0.13:CraftTweaker"
(Added info for custom Pages.) |
(Added TOC.) |
||
Line 1: | Line 1: | ||
''CraftTweaker'' is a mod that allows certain aspects of specific mods to be edited through the use of scripts. ''Mystcraft'' includes ''CraftTweaker'' integration for the creation of custom Pages, but there are also other uses. ''CraftTweaker'' scripts are files with a ".zs" extension that are placed in the "scripts" folder of a ''Minecraft'' instance. The same file must also be present on a server if playing online. The scripts are only loaded during startup, so ''Minecraft'' must be restarted to see changes made to a script. | ''CraftTweaker'' is a mod that allows certain aspects of specific mods to be edited through the use of scripts. ''Mystcraft'' includes ''CraftTweaker'' integration for the creation of custom Pages, but there are also other uses. ''CraftTweaker'' scripts are files with a ".zs" extension that are placed in the "scripts" folder of a ''Minecraft'' instance. The same file must also be present on a server if playing online. The scripts are only loaded during startup, so ''Minecraft'' must be restarted to see changes made to a script. | ||
+ | |||
+ | __TOC__ | ||
== Custom Block Pages == | == Custom Block Pages == |
Revision as of 21:47, 2 September 2018
CraftTweaker is a mod that allows certain aspects of specific mods to be edited through the use of scripts. Mystcraft includes CraftTweaker integration for the creation of custom Pages, but there are also other uses. CraftTweaker scripts are files with a ".zs" extension that are placed in the "scripts" folder of a Minecraft instance. The same file must also be present on a server if playing online. The scripts are only loaded during startup, so Minecraft must be restarted to see changes made to a script.
Custom Block Pages
Mystcraft supports adding new block Pages through CraftTweaker. There are several blocks, even in vanilla Minecraft, that do not have corresponding Pages by default. A short script will allow you to add support for as many of these blocks as you would like. Mod blocks are also supported.
import mods.mystcraft.CTAgeSymbol; import mods.mystcraft.symbol.CTBlockSymbol; static newBlockSymbol as CTBlockSymbol = CTAgeSymbol.createBlockSymbol("Balance", <minecraft:diamond_block>.asBlock().definition.defaultState, 4); newBlockSymbol.addCategory("mystcraft", "BlockTerrain", 2); newBlockSymbol.register();
There are several variables here that need to be replaced:
- "Balance" can be any known Narayani word. For a complete list of canonical Narayni words, see http://isomerica.net/~mlah/narayan/symbols.html.
- <minecraft:diamond_block> can be any block. Remember to use the appropriate Mod ID for the mod that adds the block.
- "BlockTerrain" can be any block category that Mystcraft currently supports. Your options are:
- BlockAny
- BlockSolid
- BlockFluid
- BlockGas
- BlockTerrain
- BlockStructure
- BlockOrganic
- BlockCrystal
- BlockSea
Bottling Machine (Immersive Engineering)
Immersive Engineering includes a Bottling Machine that can bottle liquids automatically so long as fluid is inputted to the machine. To add support for bottling Black Ink into Ink Vials, use this script:
import mods.immersiveengineering.BottlingMachine; BottlingMachine.addRecipe(<mystcraft:vial>, <minecraft:glass_bottle>, <liquid:myst.ink.black> * 250);
The "250" will yield four Ink Vials for every 1000mb of Black Ink (or four Ink Vials for every Black Ink Block). It may be changed to any positive integer for different yields.