Orechid
Link to orechid
Allows editing lists of results from the Orechid and Orechid Ignem.
Note that outputs added through this list will not be affected by the priority config option.
To dump the full list of loaded results, run the /ct dump orechidOutputs
command.
This class was added by a mod with mod-id botania
. 因此,如果要使用此功能,则需要安装此mod。
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport mods.botania.Orechid;
Static Properties
Link to static-properties
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 main | 类型 Orechid | 可获得 true | 可设置 false | 描述 The manager for the standard Orechid. |
名称 nether | 类型 Orechid | 可获得 true | 可设置 false | 描述 The manager for the nether variant, Orechid Ignem. |
使用方式
Link to 使用方式
Name: clear
Completely clears the ore list.
Return Type: void
ZenScript Copy// Orechid.clear() as void
Orechid.main.clear();
Name: registerOreWeight
Adds the specified ingredient with the specified weight at the end of the ore list.
As the output is a state ingredient, you can use blocks, blockstates and tags as the output.
Return Type: void
ZenScript Copy// Orechid.registerOreWeight(output as StateIngredient, weight as int) as void
Orechid.main.registerOreWeight(<block:minecraft:coal_ore>, 250);
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 StateIngredient | 描述 The block result |
参数 weight | 类型 int | 描述 The weight of the result |
Name: removeOreWeight
Removes all outputs that contain the specified state.
Return Type: void
ZenScript Copy// Orechid.removeOreWeight(state as MCBlockState) as void
Orechid.main.removeOreWeight(<blockstate:minecraft:diamond_ore>);
参数 | 类型 | 描述 |
---|---|---|
参数 state | 类型 MCBlockState #MC方块状态 | 描述 State to remove |