No edit summary Tag: Visual edit: Switched |
m (Protected "Using MineTweaker and Avaritia": Excessive vandalism ([Edit=Allow only autoconfirmed users] (expires 07:06, 15 January 2022 (UTC)) [Move=Allow only autoconfirmed users] (expires 07:06, 15 January 2022 (UTC)))) |
||
(48 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
<!--T:1--> |
||
− | {{About{{L}}|using {{L|MineTweaker}} with {{L|Avaritia}}|using MineTweaker in general|How to Use MineTweaker 3}} |
+ | {{About{{L}}|using {{L|MineTweaker}} with {{L|Avaritia}} '''prior to 1.12'''|using MineTweaker in general|How to Use MineTweaker 3}} |
==ZenScript Classes== <!--T:2--> |
==ZenScript Classes== <!--T:2--> |
||
Line 7: | Line 7: | ||
===mods.avaritia.Compressor=== |
===mods.avaritia.Compressor=== |
||
{|class="wikitable" |
{|class="wikitable" |
||
+ | ! <translate><!--T:3--> Functions</translate> !! <translate><!--T:4--> Parameters</translate> !! <translate><!--T:5--> Returns</translate> |
||
− | ! <translate><!--T:3--> |
||
− | Functions</translate> !! <translate><!--T:4--> |
||
− | Parameters</translate> !! <translate><!--T:5--> |
||
− | Returns</translate> |
||
|- |
|- |
||
− | | add(output, amount, input) || <translate><!--T:6--> |
+ | | add(output, amount, input) || <translate><!--T:6--> {{,}}'''output''': (IItemStack) output of the recipe.<br />{{,}}'''amount''': (int)<br />{{,}}'''input''': (IIngredient)</translate> || |
− | {{,}}'''output''': (IItemStack) output of the recipe.<br />{{,}}'''amount''': (int)<br />{{,}}'''input''': (IIngredient)</translate> || |
||
|- |
|- |
||
⚫ | | add(output, amount, input, exact) || <translate><!--T:7--> {{,}}'''output''': (IItemStack) output of the recipe.<br />{{,}}'''amount''': (int)<br />{{,}}'''input''': (IIngredient)<br />{{,}}'''exact''': (boolean) disables the scaling system. The previous method is the same as this one, but with this parameter set to true.</translate> || |
||
− | | add(output, amount, input, exact) || <translate><!--T:7--> |
||
⚫ | |||
|- |
|- |
||
− | | remove(output) || <translate><!--T:8--> |
+ | | remove(output) || <translate><!--T:8--> {{,}}'''output''': (IItemStack) output of recipe wanted to be removed.</translate> || |
− | {{,}}'''output''': (IItemStack) output of recipe wanted to be removed.</translate> || |
||
|} |
|} |
||
===mods.avaritia.ExtremeCrafting=== |
===mods.avaritia.ExtremeCrafting=== |
||
{|class="wikitable" |
{|class="wikitable" |
||
+ | ! <translate><!--T:9--> Functions</translate> !! <translate><!--T:10--> Parameters</translate> !! <translate><!--T:11--> Returns</translate> |
||
− | ! <translate><!--T:9--> |
||
− | Functions</translate> !! <translate><!--T:10--> |
||
− | Parameters</translate> !! <translate><!--T:11--> |
||
− | Returns</translate> |
||
|- |
|- |
||
− | | addShapeless(output, ingredients) || <translate><!--T:12--> |
+ | | addShapeless("Name", output, ingredients) || <translate><!--T:12--> {{,}}'''output''': (IItemStack) output of the shapeless recipe.<br />{{,}}'''ingredients''': (Ingredient) the components need to create said output.</translate> || |
− | {{,}}'''output''': (IItemStack) output of the shapeless recipe.<br />{{,}}'''ingredients''': (Ingredient) the components need to create said output.</translate> || |
||
|- |
|- |
||
− | | addShaped(output, ingredients) || <translate><!--T:13--> |
+ | | addShaped("Name", output, ingredients) || <translate><!--T:13--> {{,}}'''output''': (IItemStack) output of the shaped recipe.<br />{{,}}'''ingredients''': (Ingredient) the components need to create said output.</translate> || |
− | {{,}}'''output''': (IItemStack) output of the shaped recipe.<br />{{,}}'''ingredients''': (Ingredient) the components need to create said output.</translate> || |
||
|- |
|- |
||
− | | remove(target) || <translate><!--T:14--> |
+ | | remove(target) || <translate><!--T:14--> {{,}}'''target''': (IItemStack) output of recipe wanted to be removed.</translate> || |
− | {{,}}'''target''': (IItemStack) output of recipe wanted to be removed.</translate> || |
||
|} |
|} |
||
<translate> |
<translate> |
||
Line 140: | Line 128: | ||
|I9={{Gc|mod=V|dis=false|Stone}} |
|I9={{Gc|mod=V|dis=false|Stone}} |
||
|O={{Gc|mod=V|dis=false|Glass}} |
|O={{Gc|mod=V|dis=false|Glass}} |
||
− | |O={{Gc|mod=V|link=none|Glass}} |
||
}} |
}} |
||
Latest revision as of 07:06, 15 January 2021
- This page is about using MineTweaker with Avaritia prior to 1.12. For using MineTweaker in general, see How to Use MineTweaker 3.
ZenScript Classes
mods.avaritia.Compressor
Functions | Parameters | Returns |
---|---|---|
add(output, amount, input) | · output: (IItemStack) output of the recipe. · amount: (int) · input: (IIngredient) |
|
add(output, amount, input, exact) | · output: (IItemStack) output of the recipe. · amount: (int) · input: (IIngredient) · exact: (boolean) disables the scaling system. The previous method is the same as this one, but with this parameter set to true. |
|
remove(output) | · output: (IItemStack) output of recipe wanted to be removed. |
mods.avaritia.ExtremeCrafting
Functions | Parameters | Returns |
---|---|---|
addShapeless("Name", output, ingredients) | · output: (IItemStack) output of the shapeless recipe. · ingredients: (Ingredient) the components need to create said output. |
|
addShaped("Name", output, ingredients) | · output: (IItemStack) output of the shaped recipe. · ingredients: (Ingredient) the components need to create said output. |
|
remove(target) | · target: (IItemStack) output of recipe wanted to be removed. |
Example usage
mods.avaritia.ExtremeCrafting.addShaped(<minecraft:glass>, [[<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>], [<minecraft:stone>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>, <minecraft:sand>, <minecraft:stone>, <minecraft:stone>]]);
produces:
|