From 553b9766a1766c759308e12e2bea32d8838a2645 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 27 May 2026 01:31:58 -0400 Subject: [PATCH 1/6] MatterOverdrive GRS --- .../mods/matteroverdrive/android.md | 127 ++++++++++++++++ .../mods/matteroverdrive/index.md | 18 +++ .../mods/matteroverdrive/inscriber.md | 138 ++++++++++++++++++ .../mods/matteroverdrive/matter.md | 100 +++++++++++++ .../mods/matteroverdrive/replicator.md | 49 +++++++ 5 files changed, 432 insertions(+) create mode 100644 docs/groovy-script/mods/matteroverdrive/android.md create mode 100644 docs/groovy-script/mods/matteroverdrive/index.md create mode 100644 docs/groovy-script/mods/matteroverdrive/inscriber.md create mode 100644 docs/groovy-script/mods/matteroverdrive/matter.md create mode 100644 docs/groovy-script/mods/matteroverdrive/replicator.md diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md new file mode 100644 index 0000000..ccab63a --- /dev/null +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -0,0 +1,127 @@ +--- +title: "Android Biotic Stats" +titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" +description: "Tweak Android biotic stats: xp cost, required items, enable/disable." +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/AndroidCompat.java" +--- + +# Android Biotic Stats + +## Description + +Controls Matter Overdrive's Android biotic stat tree. Existing +stats can be enabled, disabled, re-priced, or have their unlock requirements +changed. + +:::::::::: details Note {open id="note"} +Only stats that extend `matteroverdrive.data.biostats.AbstractBioticStat` +can be mutated through this compat. Most built-in stats qualify; mods adding +fully custom `IBioticStat` implementations may not be patchable here. +:::::::::: + +## Identifier + +The identifier `mods.matteroverdrive.android` will be used as the default on this page. + +:::::::::: details All Identifiers {open id="quote"} + +Any of these can be used to refer to this compat: + +```groovy:no-line-numbers {1} +mods.matteroverdrive.android/* Used as page default */ // [!code focus] +``` + +:::::::::: + +## Tweaking Stats + +- Sets the xp cost to unlock or level up the given stat: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.setXp(IBioticStat, int xp) + ``` + +- Forces the stat enabled or disabled regardless of blacklist; pass `null` to + clear the override: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.setEnabled(IBioticStat, Boolean enabled) + mods.matteroverdrive.android.enable(IBioticStat) + mods.matteroverdrive.android.disable(IBioticStat) + ``` + +- Adds or clears the required items list for a stat: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.addRequiredItem(IBioticStat, ItemStack) + mods.matteroverdrive.android.clearRequiredItems(IBioticStat) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +def shield = androidStat('shield') +mods.matteroverdrive.android.setXp(shield, 50) +mods.matteroverdrive.android.clearRequiredItems(shield) +mods.matteroverdrive.android.addRequiredItem(shield, item('minecraft:iron_ingot') * 8) +mods.matteroverdrive.android.disable(androidStat('cloak')) +``` + +:::::::::: + +## Unregistering Stats + +- Removes a stat from the registry. This will gray out the ability, and pass through dependants of the stat, if you want the full chain to be removed, unregister all stats individually. + + ```groovy:no-line-numbers + mods.matteroverdrive.android.unregister(String unlocalizedName) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.android.unregister('cloak') +``` + +:::::::::: + +## Object Mapper + +The `androidStat` bracket handler resolves an unlocalized name to its +`IBioticStat`: + +```groovy:no-line-numbers +androidStat('shield') +androidStat('nightvision') +``` + +### All Built-in Stat Names + +| Name | Description | +|---|---| +| `teleport` | Short-range teleport | +| `nanobots` | Nanobot healing | +| `nano_armor` | Nano-scale armor plating | +| `floatation` | Water/lava flotation | +| `speed` | Movement speed boost | +| `high_jump` | Increased jump height | +| `inertial_dampers` | Fall damage reduction | +| `equalizer` | Spacetime equalizer ability | +| `shield` | Energy shield | +| `auto_shield` | Automatic shield activation | +| `cloak` | Optical cloaking | +| `attack` | Melee damage boost | +| `flash_cooling` | Flash cooling / fire immunity | +| `shockwave` | Melee shockwave burst | +| `nightvision` | Night vision | +| `minimap` | Minimap overlay | +| `step_assist` | Step-up assist | +| `zero_calories` | Zero caloric consumption | +| `oxygen` | Underwater oxygen supply | +| `wireless_charger` | Wireless energy charging | +| `item_magnet` | Item attraction magnet | +| `air_dash` | Mid-air dash | +| `tan_temperature` | Temperature regulation *(Requires Tough As Nails or Simple Difficulty)* | + +:::::::::: details Note {open id="note"} +`tan_temperature` is always registered, however it only has an effect when [Tough As Nails](https://www.curseforge.com/minecraft/mc-mods/tough-as-nails) +or [Simple Difficulty](https://www.curseforge.com/minecraft/mc-mods/simple-difficulty) is installed. +:::::::::: diff --git a/docs/groovy-script/mods/matteroverdrive/index.md b/docs/groovy-script/mods/matteroverdrive/index.md new file mode 100644 index 0000000..3a63d77 --- /dev/null +++ b/docs/groovy-script/mods/matteroverdrive/index.md @@ -0,0 +1,18 @@ +--- +aside: false +--- + + +# MatterOverdrive: Refitted + +## Categories + +Has 4 subcategories. + +* [Matter Registry](./matter.md) + +* [Inscriber](./inscriber.md) + +* [Android Biotic Stats](./android.md) + +* [Replicator Blacklist](./replicator.md) diff --git a/docs/groovy-script/mods/matteroverdrive/inscriber.md b/docs/groovy-script/mods/matteroverdrive/inscriber.md new file mode 100644 index 0000000..cfb2c2c --- /dev/null +++ b/docs/groovy-script/mods/matteroverdrive/inscriber.md @@ -0,0 +1,138 @@ +--- +title: "Inscriber" +titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" +description: "Add or remove recipes for the Inscriber: two item inputs, one item output, plus energy and time costs." +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/InscriberCompat.java" +--- + +# Inscriber (MatterOverdrive: Refitted) + +## Description + +Add or remove inscriber recipes. + +## Identifier + +The identifier `mods.matteroverdrive.inscriber` will be used as the default on this page. + +:::::::::: details All Identifiers {open id="quote"} + +Any of these can be used to refer to this compat: + +```groovy:no-line-numbers {1} +mods.matteroverdrive.inscriber/* Used as page default */ // [!code focus] +``` + +:::::::::: + +## Adding Recipes + +### Recipe Builder + +Just like other recipe types, the Inscriber uses a recipe builder. + +Don't know what a builder is? Check [the builder info page](../../getting_started/builder.md) out. + +:::::::::: details Recipe Builder {open id="abstract"} + +--- + +- Create the Recipe Builder. + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.recipeBuilder() + ``` + +--- + +- `IngredientList`. Sets the item inputs of the recipe. Requires + exactly 2. The first is treated as the primary input, the second as the + secondary input. + + ```groovy:no-line-numbers + input(IIngredient) + input(IIngredient...) + input(Collection) + ``` + +- `ItemStackList`. Sets the item outputs of the recipe. Requires exactly 1. + + ```groovy:no-line-numbers + output(ItemStack) + ``` + +- `int`. Sets the FE cost. Must be greater than 0. (Default `1000`). + + ```groovy:no-line-numbers + energy(int) + ``` + +- `int`. Sets the processing time in ticks. Must be greater than 0. (Default `60`). + + ```groovy:no-line-numbers + time(int) + ``` + +--- + +- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `matteroverdrive.data.recipes.InscriberRecipe`). + + ```groovy:no-line-numbers + register() + ``` + +--- + +::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.inscriber.recipeBuilder() + .input(item('minecraft:redstone')) + .input(item('minecraft:gold_ingot')) + .output(item('matteroverdrive:circuit_basic')) + .energy(1000) + .time(80) + .register() +``` + +::::::::: + +:::::::::: + +## Removing Recipes + +- Removes any Inscriber recipe whose output matches the given stack: + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.removeByOutput(ItemStack) + ``` + +- Removes any Inscriber recipe whose primary and secondary input pair match + the given stacks (order matters): + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.removeByInputs(ItemStack main, ItemStack sec) + ``` + +- Removes all registered Inscriber recipes: + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.removeAll() + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.inscriber.removeByOutput(item('matteroverdrive:circuit_basic')) +mods.matteroverdrive.inscriber.removeByInputs(item('minecraft:redstone'), item('minecraft:gold_ingot')) +mods.matteroverdrive.inscriber.removeAll() +``` + +:::::::::: + +## Getting the value of recipes + +- Iterates through every entry in the registry, with the ability to call + remove on any element to remove it: + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.streamRecipes() + ``` diff --git a/docs/groovy-script/mods/matteroverdrive/matter.md b/docs/groovy-script/mods/matteroverdrive/matter.md new file mode 100644 index 0000000..baa0649 --- /dev/null +++ b/docs/groovy-script/mods/matteroverdrive/matter.md @@ -0,0 +1,100 @@ +--- +title: "Matter Registry" +titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" +description: "Add, remove, or replace the matter value of items and ore-dictionary entries used by the Matter Scanner and Replicator." +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/MatterCompat.java" +--- + +# Matter Registry (MatterOverdrive: Refitted) + +## Description + +Controls the matter value assigned to each item and ore-dictionary entry, plus +the per-mod matter calculation blacklist. Matter values determine how much +"matter" the Decomposer extracts from an item and how much it costs to +replicate. + +## Identifier + +The identifier `mods.matteroverdrive.matter` will be used as the default on this page. + +:::::::::: details All Identifiers {open id="quote"} + +Any of these can be used to refer to this compat: + +```groovy:no-line-numbers {1} +mods.matteroverdrive.matter/* Used as page default */ // [!code focus] +``` + +:::::::::: + +## Adding Entries + +- Sets the matter value of an item (overwriting any existing value): + + ```groovy:no-line-numbers + mods.matteroverdrive.matter.add(String itemId, int matter) + mods.matteroverdrive.matter.add(Item item, int matter) + mods.matteroverdrive.matter.add(Item item, IMatterEntryHandler handler) + ``` + +- Sets the matter value of an ore-dictionary entry: + + ```groovy:no-line-numbers + mods.matteroverdrive.matter.addOre(String oreName, int matter) + mods.matteroverdrive.matter.addOre(String oreName, IMatterEntryHandler handler) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.matter.add('minecraft:gold_ingot', 256) +mods.matteroverdrive.matter.addOre('oreCopper', 32) +``` + +:::::::::: + +## Removing Entries + +- Removes the matter value for an item or ore-dictionary entry: + + ```groovy:no-line-numbers + mods.matteroverdrive.matter.remove(String itemId) + mods.matteroverdrive.matter.remove(Item item) + mods.matteroverdrive.matter.removeOre(String oreName) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.matter.remove('minecraft:apple') +mods.matteroverdrive.matter.removeOre('oreTin') +``` + +:::::::::: + +## Mod Blacklist + +The mod blacklist prevents Matter Overdrive from auto-calculating matter +values for items belonging to the listed mods. Explicit `add()` calls still +work regardless of blacklist status. + +- Adds a mod to the matter calculation blacklist: + + ```groovy:no-line-numbers + mods.matteroverdrive.matter.blacklistMod(String modId) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.matter.blacklistMod('thaumcraft') +``` + +:::::::::: + +## Object Mapper + +The `matter` bracket handler resolves an item id to its existing +`MatterEntryItem`: + +```groovy:no-line-numbers +matter('minecraft:gold_ingot') +``` diff --git a/docs/groovy-script/mods/matteroverdrive/replicator.md b/docs/groovy-script/mods/matteroverdrive/replicator.md new file mode 100644 index 0000000..cd21907 --- /dev/null +++ b/docs/groovy-script/mods/matteroverdrive/replicator.md @@ -0,0 +1,49 @@ +--- +title: "Replicator Blacklist" +titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" +description: "Prevent specific items from being replicated regardless of their matter value." +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/ReplicatorCompat.java" +--- + +# Replicator Blacklist (MatterOverdrive: Refitted) + +## Description + +Maintains the per-item replicator blacklist. Items on this list will be +rejected by the Replicator's pattern task even if they have a non-zero matter +value; this is the recommended way to forbid replication of unbalanced or +exploit-prone items without zeroing their matter value (which would also +prevent the Matter Scanner from extracting matter from them). + +## Identifier + +The identifier `mods.matteroverdrive.replicator` will be used as the default on this page. + +:::::::::: details All Identifiers {open id="quote"} + +Any of these can be used to refer to this compat: + +```groovy:no-line-numbers {1} +mods.matteroverdrive.replicator/* Used as page default */ // [!code focus] +``` + +:::::::::: + +## Adding Entries + +- Adds an item to the replicator blacklist: + + ```groovy:no-line-numbers + mods.matteroverdrive.replicator.add(String itemId) + mods.matteroverdrive.replicator.add(Item) + mods.matteroverdrive.replicator.add(ItemStack) + mods.matteroverdrive.replicator.add(IIngredient) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +mods.matteroverdrive.replicator.add('minecraft:nether_star') +mods.matteroverdrive.replicator.add(ore('gemDiamond')) +``` + +:::::::::: From 0d63c8245ffa3806dc7b07f300c05e83c9403ce4 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 27 May 2026 01:55:26 -0400 Subject: [PATCH 2/6] Dropped setEnabled override method. Was kind of stupid. --- docs/groovy-script/mods/matteroverdrive/android.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md index ccab63a..b150116 100644 --- a/docs/groovy-script/mods/matteroverdrive/android.md +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -15,7 +15,7 @@ changed. :::::::::: details Note {open id="note"} Only stats that extend `matteroverdrive.data.biostats.AbstractBioticStat` -can be mutated through this compat. Most built-in stats qualify; mods adding +can be mutated through this compat. Mods adding fully custom `IBioticStat` implementations may not be patchable here. :::::::::: @@ -41,11 +41,9 @@ mods.matteroverdrive.android/* Used as page default */ // [!code focus] mods.matteroverdrive.android.setXp(IBioticStat, int xp) ``` -- Forces the stat enabled or disabled regardless of blacklist; pass `null` to - clear the override: +- Forces the stat enabled or disabled, overriding config-based rules: ```groovy:no-line-numbers - mods.matteroverdrive.android.setEnabled(IBioticStat, Boolean enabled) mods.matteroverdrive.android.enable(IBioticStat) mods.matteroverdrive.android.disable(IBioticStat) ``` From 44079a862ebaa0e110703b7e9382b2c411b2475f Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 28 May 2026 01:02:31 -0400 Subject: [PATCH 3/6] Redo using /gs generateWiki --- .../mods/matteroverdrive/android.md | 107 +++++++----------- .../mods/matteroverdrive/index.md | 5 +- .../mods/matteroverdrive/inscriber.md | 54 +++++---- .../mods/matteroverdrive/matter.md | 74 ++++++------ .../mods/matteroverdrive/replicator.md | 27 +++-- 5 files changed, 127 insertions(+), 140 deletions(-) diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md index b150116..f76c1b7 100644 --- a/docs/groovy-script/mods/matteroverdrive/android.md +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -1,22 +1,22 @@ --- title: "Android Biotic Stats" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" -description: "Tweak Android biotic stats: xp cost, required items, enable/disable." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/AndroidCompat.java" +description: "Tweak Android biotic stat parameters such as XP cost, required items, and enabled state." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Android.java" --- -# Android Biotic Stats +# Android Biotic Stats (MatterOverdrive: Refitted) ## Description -Controls Matter Overdrive's Android biotic stat tree. Existing -stats can be enabled, disabled, re-priced, or have their unlock requirements -changed. +Tweak Android biotic stat parameters such as XP cost, required items, and enabled state. -:::::::::: details Note {open id="note"} -Only stats that extend `matteroverdrive.data.biostats.AbstractBioticStat` -can be mutated through this compat. Mods adding -fully custom `IBioticStat` implementations may not be patchable here. +:::::::::: details Info {open id="info"} +Use the `androidStat(name)` bracket handler to obtain an IBioticStat. +:::::::::: + +:::::::::: details Tip {open id="tip"} +Use the command `/android list` to print all registered biotic stat names to chat. :::::::::: ## Identifier @@ -29,97 +29,78 @@ Any of these can be used to refer to this compat: ```groovy:no-line-numbers {1} mods.matteroverdrive.android/* Used as page default */ // [!code focus] +mods.matteroverdrive.Android ``` :::::::::: -## Tweaking Stats +## Editing Values -- Sets the xp cost to unlock or level up the given stat: +- Set the XP cost in levels required for the given biotic stat: ```groovy:no-line-numbers - mods.matteroverdrive.android.setXp(IBioticStat, int xp) + mods.matteroverdrive.android.setXp(IBioticStat, int) ``` -- Forces the stat enabled or disabled, overriding config-based rules: +- Force the given biotic stat to be enabled, overriding config-based rules: ```groovy:no-line-numbers mods.matteroverdrive.android.enable(IBioticStat) - mods.matteroverdrive.android.disable(IBioticStat) ``` -- Adds or clears the required items list for a stat: +- Force the given biotic stat to be disabled, overriding config-based rules: ```groovy:no-line-numbers - mods.matteroverdrive.android.addRequiredItem(IBioticStat, ItemStack) - mods.matteroverdrive.android.clearRequiredItems(IBioticStat) + mods.matteroverdrive.android.disable(IBioticStat) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -def shield = androidStat('shield') -mods.matteroverdrive.android.setXp(shield, 50) -mods.matteroverdrive.android.clearRequiredItems(shield) -mods.matteroverdrive.android.addRequiredItem(shield, item('minecraft:iron_ingot') * 8) -mods.matteroverdrive.android.disable(androidStat('cloak')) +mods.matteroverdrive.android.setXp(androidStat('shield'), 25) ``` :::::::::: -## Unregistering Stats +## Adding Entries -- Removes a stat from the registry. This will gray out the ability, and pass through dependants of the stat, if you want the full chain to be removed, unregister all stats individually. +- Add an item that must be present in the player's inventory to install the given biotic stat: ```groovy:no-line-numbers - mods.matteroverdrive.android.unregister(String unlocalizedName) + mods.matteroverdrive.android.addRequiredItem(IBioticStat, ItemStack) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.android.unregister('cloak') +mods.matteroverdrive.android.addRequiredItem(androidStat('shield'), item('minecraft:iron_ingot') * 5) ``` :::::::::: -## Object Mapper +## Removing Entries + +- Unregister a biotic stat entirely, preventing it from appearing or functioning: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.unregister(IBioticStat) + ``` -The `androidStat` bracket handler resolves an unlocalized name to its -`IBioticStat`: +- Remove all required installation items from the given biotic stat: + ```groovy:no-line-numbers + mods.matteroverdrive.android.clearRequiredItems(IBioticStat) + ``` + +:::::::::: details Example {open id="example"} ```groovy:no-line-numbers -androidStat('shield') -androidStat('nightvision') +mods.matteroverdrive.android.unregister(androidStat('cloak')) ``` -### All Built-in Stat Names - -| Name | Description | -|---|---| -| `teleport` | Short-range teleport | -| `nanobots` | Nanobot healing | -| `nano_armor` | Nano-scale armor plating | -| `floatation` | Water/lava flotation | -| `speed` | Movement speed boost | -| `high_jump` | Increased jump height | -| `inertial_dampers` | Fall damage reduction | -| `equalizer` | Spacetime equalizer ability | -| `shield` | Energy shield | -| `auto_shield` | Automatic shield activation | -| `cloak` | Optical cloaking | -| `attack` | Melee damage boost | -| `flash_cooling` | Flash cooling / fire immunity | -| `shockwave` | Melee shockwave burst | -| `nightvision` | Night vision | -| `minimap` | Minimap overlay | -| `step_assist` | Step-up assist | -| `zero_calories` | Zero caloric consumption | -| `oxygen` | Underwater oxygen supply | -| `wireless_charger` | Wireless energy charging | -| `item_magnet` | Item attraction magnet | -| `air_dash` | Mid-air dash | -| `tan_temperature` | Temperature regulation *(Requires Tough As Nails or Simple Difficulty)* | - -:::::::::: details Note {open id="note"} -`tan_temperature` is always registered, however it only has an effect when [Tough As Nails](https://www.curseforge.com/minecraft/mc-mods/tough-as-nails) -or [Simple Difficulty](https://www.curseforge.com/minecraft/mc-mods/simple-difficulty) is installed. :::::::::: + +## Getting the value of entries + +- Returns a sorted list of all currently registered biotic stat unlocalized names: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.getStatNames() + ``` diff --git a/docs/groovy-script/mods/matteroverdrive/index.md b/docs/groovy-script/mods/matteroverdrive/index.md index 3a63d77..b3221b6 100644 --- a/docs/groovy-script/mods/matteroverdrive/index.md +++ b/docs/groovy-script/mods/matteroverdrive/index.md @@ -9,10 +9,11 @@ aside: false Has 4 subcategories. -* [Matter Registry](./matter.md) +* [Android Biotic Stats](./android.md) * [Inscriber](./inscriber.md) -* [Android Biotic Stats](./android.md) +* [Matter Registry](./matter.md) * [Replicator Blacklist](./replicator.md) + diff --git a/docs/groovy-script/mods/matteroverdrive/inscriber.md b/docs/groovy-script/mods/matteroverdrive/inscriber.md index cfb2c2c..b2e0f2f 100644 --- a/docs/groovy-script/mods/matteroverdrive/inscriber.md +++ b/docs/groovy-script/mods/matteroverdrive/inscriber.md @@ -1,15 +1,15 @@ --- title: "Inscriber" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" -description: "Add or remove recipes for the Inscriber: two item inputs, one item output, plus energy and time costs." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/InscriberCompat.java" +description: "Add or remove recipes from the Inscriber." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Inscriber.java" --- # Inscriber (MatterOverdrive: Refitted) ## Description -Add or remove inscriber recipes. +Add or remove recipes from the Inscriber. ## Identifier @@ -21,15 +21,22 @@ Any of these can be used to refer to this compat: ```groovy:no-line-numbers {1} mods.matteroverdrive.inscriber/* Used as page default */ // [!code focus] +mods.matteroverdrive.Inscriber ``` :::::::::: ## Adding Recipes +- Add the given recipe to the recipe list: + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.add(InscriberRecipe) + ``` + ### Recipe Builder -Just like other recipe types, the Inscriber uses a recipe builder. +Just like other recipe types, the Inscriber also uses a recipe builder. Don't know what a builder is? Check [the builder info page](../../getting_started/builder.md) out. @@ -37,7 +44,7 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte --- -- Create the Recipe Builder. +- Build and register a new Inscriber recipe with two inputs, one output, an energy cost, and a processing time. ```groovy:no-line-numbers mods.matteroverdrive.inscriber.recipeBuilder() @@ -45,9 +52,7 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte --- -- `IngredientList`. Sets the item inputs of the recipe. Requires - exactly 2. The first is treated as the primary input, the second as the - secondary input. +- `IngredientList`. Sets the item inputs of the recipe. Requires exactly 2. ```groovy:no-line-numbers input(IIngredient) @@ -59,18 +64,20 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte ```groovy:no-line-numbers output(ItemStack) + output(ItemStack...) + output(Collection) ``` -- `int`. Sets the FE cost. Must be greater than 0. (Default `1000`). +- `int`. Ticks required to complete the recipe. Must be greater than 0. Default: 60. (Default `60`). ```groovy:no-line-numbers - energy(int) + time(int) ``` -- `int`. Sets the processing time in ticks. Must be greater than 0. (Default `60`). +- `int`. Energy consumed per recipe in RF. Must be greater than 0. Default: 1000. (Default `1000`). ```groovy:no-line-numbers - time(int) + energy(int) ``` --- @@ -100,20 +107,25 @@ mods.matteroverdrive.inscriber.recipeBuilder() ## Removing Recipes -- Removes any Inscriber recipe whose output matches the given stack: +- Removes the given recipe from the recipe list: + + ```groovy:no-line-numbers + mods.matteroverdrive.inscriber.remove(InscriberRecipe) + ``` + +- Remove all Inscriber recipes whose main and secondary inputs match the given ingredients: ```groovy:no-line-numbers - mods.matteroverdrive.inscriber.removeByOutput(ItemStack) + mods.matteroverdrive.inscriber.removeByInputs(IIngredient, IIngredient) ``` -- Removes any Inscriber recipe whose primary and secondary input pair match - the given stacks (order matters): +- Remove all Inscriber recipes whose output matches the given ingredient: ```groovy:no-line-numbers - mods.matteroverdrive.inscriber.removeByInputs(ItemStack main, ItemStack sec) + mods.matteroverdrive.inscriber.removeByOutput(IIngredient) ``` -- Removes all registered Inscriber recipes: +- Removes all registered recipes: ```groovy:no-line-numbers mods.matteroverdrive.inscriber.removeAll() @@ -121,8 +133,7 @@ mods.matteroverdrive.inscriber.recipeBuilder() :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.inscriber.removeByOutput(item('matteroverdrive:circuit_basic')) -mods.matteroverdrive.inscriber.removeByInputs(item('minecraft:redstone'), item('minecraft:gold_ingot')) +mods.matteroverdrive.inscriber.removeByInputs(item('matteroverdrive:isolinear_circuit'), item('minecraft:gold_ingot')) mods.matteroverdrive.inscriber.removeAll() ``` @@ -130,8 +141,7 @@ mods.matteroverdrive.inscriber.removeAll() ## Getting the value of recipes -- Iterates through every entry in the registry, with the ability to call - remove on any element to remove it: +- Iterates through every entry in the registry, with the ability to call remove on any element to remove it: ```groovy:no-line-numbers mods.matteroverdrive.inscriber.streamRecipes() diff --git a/docs/groovy-script/mods/matteroverdrive/matter.md b/docs/groovy-script/mods/matteroverdrive/matter.md index baa0649..00440a8 100644 --- a/docs/groovy-script/mods/matteroverdrive/matter.md +++ b/docs/groovy-script/mods/matteroverdrive/matter.md @@ -1,18 +1,15 @@ --- title: "Matter Registry" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" -description: "Add, remove, or replace the matter value of items and ore-dictionary entries used by the Matter Scanner and Replicator." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/MatterCompat.java" +description: "Modify the matter value table used by Matter Overdrive's scanner, replicator, and decomposer. Supports individual items, ore dictionary, or entire modIDs." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Matter.java" --- # Matter Registry (MatterOverdrive: Refitted) ## Description -Controls the matter value assigned to each item and ore-dictionary entry, plus -the per-mod matter calculation blacklist. Matter values determine how much -"matter" the Decomposer extracts from an item and how much it costs to -replicate. +Modify the matter value table used by Matter Overdrive's scanner, replicator, and decomposer. Supports individual items, ore dictionary, or entire modIDs. ## Identifier @@ -24,77 +21,70 @@ Any of these can be used to refer to this compat: ```groovy:no-line-numbers {1} mods.matteroverdrive.matter/* Used as page default */ // [!code focus] +mods.matteroverdrive.Matter ``` :::::::::: ## Adding Entries -- Sets the matter value of an item (overwriting any existing value): +- Set the matter value for an item, replacing any existing entry: ```groovy:no-line-numbers - mods.matteroverdrive.matter.add(String itemId, int matter) - mods.matteroverdrive.matter.add(Item item, int matter) - mods.matteroverdrive.matter.add(Item item, IMatterEntryHandler handler) + mods.matteroverdrive.matter.add(Item, int) ``` -- Sets the matter value of an ore-dictionary entry: +- Set the matter value for an item, replacing any existing entry: ```groovy:no-line-numbers - mods.matteroverdrive.matter.addOre(String oreName, int matter) - mods.matteroverdrive.matter.addOre(String oreName, IMatterEntryHandler handler) + mods.matteroverdrive.matter.add(Item, IMatterEntryHandler) ``` -:::::::::: details Example {open id="example"} -```groovy:no-line-numbers -mods.matteroverdrive.matter.add('minecraft:gold_ingot', 256) -mods.matteroverdrive.matter.addOre('oreCopper', 32) -``` +- Set the matter value for all items matching an ore dictionary name, replacing any existing ore entry: -:::::::::: + ```groovy:no-line-numbers + mods.matteroverdrive.matter.addOre(String, int) + ``` -## Removing Entries +- Set the matter value for all items matching an ore dictionary name, replacing any existing ore entry: -- Removes the matter value for an item or ore-dictionary entry: + ```groovy:no-line-numbers + mods.matteroverdrive.matter.addOre(String, IMatterEntryHandler) + ``` + +- Prevent a mod's items from being automatically assigned matter values during scanning. Use modID: ```groovy:no-line-numbers - mods.matteroverdrive.matter.remove(String itemId) - mods.matteroverdrive.matter.remove(Item item) - mods.matteroverdrive.matter.removeOre(String oreName) + mods.matteroverdrive.matter.blacklistMod(String) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.matter.remove('minecraft:apple') -mods.matteroverdrive.matter.removeOre('oreTin') +mods.matteroverdrive.matter.add(item('minecraft:gold_ingot'), 256) +mods.matteroverdrive.matter.addOre('oreGold', 256) +mods.matteroverdrive.matter.blacklistMod('thaumcraft') ``` :::::::::: -## Mod Blacklist +## Removing Entries -The mod blacklist prevents Matter Overdrive from auto-calculating matter -values for items belonging to the listed mods. Explicit `add()` calls still -work regardless of blacklist status. +- Remove the matter entry for an item: -- Adds a mod to the matter calculation blacklist: + ```groovy:no-line-numbers + mods.matteroverdrive.matter.remove(Item) + ``` + +- Remove the matter entry for an ore dictionary name: ```groovy:no-line-numbers - mods.matteroverdrive.matter.blacklistMod(String modId) + mods.matteroverdrive.matter.removeOre(String) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.matter.blacklistMod('thaumcraft') +mods.matteroverdrive.matter.remove(item('minecraft:apple').getItem()) +mods.matteroverdrive.matter.removeOre('oreCopper') ``` :::::::::: - -## Object Mapper - -The `matter` bracket handler resolves an item id to its existing -`MatterEntryItem`: - -```groovy:no-line-numbers -matter('minecraft:gold_ingot') -``` diff --git a/docs/groovy-script/mods/matteroverdrive/replicator.md b/docs/groovy-script/mods/matteroverdrive/replicator.md index cd21907..1089c98 100644 --- a/docs/groovy-script/mods/matteroverdrive/replicator.md +++ b/docs/groovy-script/mods/matteroverdrive/replicator.md @@ -1,19 +1,15 @@ --- title: "Replicator Blacklist" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" -description: "Prevent specific items from being replicated regardless of their matter value." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/ReplicatorCompat.java" +description: "Add items to the replicator blacklist. Blacklisted items cannot be replicated even if they have a matter value assigned." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Replicator.java" --- # Replicator Blacklist (MatterOverdrive: Refitted) ## Description -Maintains the per-item replicator blacklist. Items on this list will be -rejected by the Replicator's pattern task even if they have a non-zero matter -value; this is the recommended way to forbid replication of unbalanced or -exploit-prone items without zeroing their matter value (which would also -prevent the Matter Scanner from extracting matter from them). +Add items to the replicator blacklist. Blacklisted items cannot be replicated even if they have a matter value assigned. ## Identifier @@ -25,25 +21,34 @@ Any of these can be used to refer to this compat: ```groovy:no-line-numbers {1} mods.matteroverdrive.replicator/* Used as page default */ // [!code focus] +mods.matteroverdrive.Replicator ``` :::::::::: ## Adding Entries -- Adds an item to the replicator blacklist: +- Add an item, item stack, or ingredient to the replicator blacklist: ```groovy:no-line-numbers - mods.matteroverdrive.replicator.add(String itemId) mods.matteroverdrive.replicator.add(Item) + ``` + +- Add an item, item stack, or ingredient to the replicator blacklist: + + ```groovy:no-line-numbers mods.matteroverdrive.replicator.add(ItemStack) + ``` + +- Add an item, item stack, or ingredient to the replicator blacklist: + + ```groovy:no-line-numbers mods.matteroverdrive.replicator.add(IIngredient) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.replicator.add('minecraft:nether_star') -mods.matteroverdrive.replicator.add(ore('gemDiamond')) +mods.matteroverdrive.replicator.add(item('matteroverdrive:matter_dust').getItem()) ``` :::::::::: From b732ffeeeea965ef39a1c65617a60f0e4e3d7eed Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 28 May 2026 03:45:08 -0400 Subject: [PATCH 4/6] Fix URL - dupe default - blacklist to removal --- .../mods/matteroverdrive/android.md | 2 +- .../mods/matteroverdrive/inscriber.md | 6 +++--- .../groovy-script/mods/matteroverdrive/matter.md | 16 ++++++++-------- .../mods/matteroverdrive/replicator.md | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md index f76c1b7..35a3fc1 100644 --- a/docs/groovy-script/mods/matteroverdrive/android.md +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -2,7 +2,7 @@ title: "Android Biotic Stats" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Tweak Android biotic stat parameters such as XP cost, required items, and enabled state." -source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Android.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Android.java" --- # Android Biotic Stats (MatterOverdrive: Refitted) diff --git a/docs/groovy-script/mods/matteroverdrive/inscriber.md b/docs/groovy-script/mods/matteroverdrive/inscriber.md index b2e0f2f..7e8f6cb 100644 --- a/docs/groovy-script/mods/matteroverdrive/inscriber.md +++ b/docs/groovy-script/mods/matteroverdrive/inscriber.md @@ -2,7 +2,7 @@ title: "Inscriber" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Add or remove recipes from the Inscriber." -source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Inscriber.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Inscriber.java" --- # Inscriber (MatterOverdrive: Refitted) @@ -68,13 +68,13 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte output(Collection) ``` -- `int`. Ticks required to complete the recipe. Must be greater than 0. Default: 60. (Default `60`). +- `int`. Ticks required to complete the recipe. Must be greater than 0. (Default `60`). ```groovy:no-line-numbers time(int) ``` -- `int`. Energy consumed per recipe in RF. Must be greater than 0. Default: 1000. (Default `1000`). +- `int`. Energy consumed per recipe in RF. Must be greater than 0. (Default `1000`). ```groovy:no-line-numbers energy(int) diff --git a/docs/groovy-script/mods/matteroverdrive/matter.md b/docs/groovy-script/mods/matteroverdrive/matter.md index 00440a8..babe417 100644 --- a/docs/groovy-script/mods/matteroverdrive/matter.md +++ b/docs/groovy-script/mods/matteroverdrive/matter.md @@ -2,7 +2,7 @@ title: "Matter Registry" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Modify the matter value table used by Matter Overdrive's scanner, replicator, and decomposer. Supports individual items, ore dictionary, or entire modIDs." -source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Matter.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Matter.java" --- # Matter Registry (MatterOverdrive: Refitted) @@ -52,17 +52,10 @@ mods.matteroverdrive.Matter mods.matteroverdrive.matter.addOre(String, IMatterEntryHandler) ``` -- Prevent a mod's items from being automatically assigned matter values during scanning. Use modID: - - ```groovy:no-line-numbers - mods.matteroverdrive.matter.blacklistMod(String) - ``` - :::::::::: details Example {open id="example"} ```groovy:no-line-numbers mods.matteroverdrive.matter.add(item('minecraft:gold_ingot'), 256) mods.matteroverdrive.matter.addOre('oreGold', 256) -mods.matteroverdrive.matter.blacklistMod('thaumcraft') ``` :::::::::: @@ -81,10 +74,17 @@ mods.matteroverdrive.matter.blacklistMod('thaumcraft') mods.matteroverdrive.matter.removeOre(String) ``` +- Prevent a mod's items from being automatically assigned matter values during scanning. Use modID: + + ```groovy:no-line-numbers + mods.matteroverdrive.matter.blacklistMod(String) + ``` + :::::::::: details Example {open id="example"} ```groovy:no-line-numbers mods.matteroverdrive.matter.remove(item('minecraft:apple').getItem()) mods.matteroverdrive.matter.removeOre('oreCopper') +mods.matteroverdrive.matter.blacklistMod('thaumcraft') ``` :::::::::: diff --git a/docs/groovy-script/mods/matteroverdrive/replicator.md b/docs/groovy-script/mods/matteroverdrive/replicator.md index 1089c98..adbc063 100644 --- a/docs/groovy-script/mods/matteroverdrive/replicator.md +++ b/docs/groovy-script/mods/matteroverdrive/replicator.md @@ -2,7 +2,7 @@ title: "Replicator Blacklist" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Add items to the replicator blacklist. Blacklisted items cannot be replicated even if they have a matter value assigned." -source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Replicator.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Replicator.java" --- # Replicator Blacklist (MatterOverdrive: Refitted) From 6bc6cca4c18dc67795058fff320a77dbcb8a4970 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 29 May 2026 01:15:11 -0400 Subject: [PATCH 5/6] Method updates, more examples, and rewording. --- .../mods/matteroverdrive/android.md | 6 ++-- .../mods/matteroverdrive/inscriber.md | 8 ++--- .../mods/matteroverdrive/matter.md | 36 +++++-------------- .../mods/matteroverdrive/replicator.md | 15 ++------ 4 files changed, 18 insertions(+), 47 deletions(-) diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md index 35a3fc1..0ce5bde 100644 --- a/docs/groovy-script/mods/matteroverdrive/android.md +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -42,13 +42,13 @@ mods.matteroverdrive.Android mods.matteroverdrive.android.setXp(IBioticStat, int) ``` -- Force the given biotic stat to be enabled, overriding config-based rules: +- Set the given biotic stat to be enabled, overriding config-based rules: ```groovy:no-line-numbers mods.matteroverdrive.android.enable(IBioticStat) ``` -- Force the given biotic stat to be disabled, overriding config-based rules: +- Set the given biotic stat to be disabled, overriding config-based rules, disabling the stat features: ```groovy:no-line-numbers mods.matteroverdrive.android.disable(IBioticStat) @@ -78,7 +78,7 @@ mods.matteroverdrive.android.addRequiredItem(androidStat('shield'), item('minecr ## Removing Entries -- Unregister a biotic stat entirely, preventing it from appearing or functioning: +- Set the given biotic stat to be delisted. Cannot be installed from the Android Station, but current installs continue to function: ```groovy:no-line-numbers mods.matteroverdrive.android.unregister(IBioticStat) diff --git a/docs/groovy-script/mods/matteroverdrive/inscriber.md b/docs/groovy-script/mods/matteroverdrive/inscriber.md index 7e8f6cb..0e59e7a 100644 --- a/docs/groovy-script/mods/matteroverdrive/inscriber.md +++ b/docs/groovy-script/mods/matteroverdrive/inscriber.md @@ -68,13 +68,13 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte output(Collection) ``` -- `int`. Ticks required to complete the recipe. Must be greater than 0. (Default `60`). +- `int`. Ticks required to complete the recipe. Must be greater than 0. (Default `300`). ```groovy:no-line-numbers time(int) ``` -- `int`. Energy consumed per recipe in RF. Must be greater than 0. (Default `1000`). +- `int`. Energy consumed per recipe in RF. Must be greater than 0. (Default `64000`). ```groovy:no-line-numbers energy(int) @@ -96,8 +96,8 @@ mods.matteroverdrive.inscriber.recipeBuilder() .input(item('minecraft:redstone')) .input(item('minecraft:gold_ingot')) .output(item('matteroverdrive:circuit_basic')) - .energy(1000) - .time(80) + .energy(32000) + .time(120) .register() ``` diff --git a/docs/groovy-script/mods/matteroverdrive/matter.md b/docs/groovy-script/mods/matteroverdrive/matter.md index babe417..6a629cd 100644 --- a/docs/groovy-script/mods/matteroverdrive/matter.md +++ b/docs/groovy-script/mods/matteroverdrive/matter.md @@ -28,50 +28,32 @@ mods.matteroverdrive.Matter ## Adding Entries -- Set the matter value for an item, replacing any existing entry: +- Set the matter value for an item or ore dictionary group, replacing any existing entry: ```groovy:no-line-numbers - mods.matteroverdrive.matter.add(Item, int) + mods.matteroverdrive.matter.add(IIngredient, int) ``` -- Set the matter value for an item, replacing any existing entry: +- Set the matter value for an item or ore dictionary group, replacing any existing entry: ```groovy:no-line-numbers - mods.matteroverdrive.matter.add(Item, IMatterEntryHandler) - ``` - -- Set the matter value for all items matching an ore dictionary name, replacing any existing ore entry: - - ```groovy:no-line-numbers - mods.matteroverdrive.matter.addOre(String, int) - ``` - -- Set the matter value for all items matching an ore dictionary name, replacing any existing ore entry: - - ```groovy:no-line-numbers - mods.matteroverdrive.matter.addOre(String, IMatterEntryHandler) + mods.matteroverdrive.matter.add(IIngredient, IMatterEntryHandler) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers mods.matteroverdrive.matter.add(item('minecraft:gold_ingot'), 256) -mods.matteroverdrive.matter.addOre('oreGold', 256) +mods.matteroverdrive.matter.add(ore('blockGold'), 256) ``` :::::::::: ## Removing Entries -- Remove the matter entry for an item: - - ```groovy:no-line-numbers - mods.matteroverdrive.matter.remove(Item) - ``` - -- Remove the matter entry for an ore dictionary name: +- Remove the matter entry for an item or ore dictionary group: ```groovy:no-line-numbers - mods.matteroverdrive.matter.removeOre(String) + mods.matteroverdrive.matter.remove(IIngredient) ``` - Prevent a mod's items from being automatically assigned matter values during scanning. Use modID: @@ -82,8 +64,8 @@ mods.matteroverdrive.matter.addOre('oreGold', 256) :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.matter.remove(item('minecraft:apple').getItem()) -mods.matteroverdrive.matter.removeOre('oreCopper') +mods.matteroverdrive.matter.remove(item('minecraft:apple')) +mods.matteroverdrive.matter.remove(ore('ingotCopper')) mods.matteroverdrive.matter.blacklistMod('thaumcraft') ``` diff --git a/docs/groovy-script/mods/matteroverdrive/replicator.md b/docs/groovy-script/mods/matteroverdrive/replicator.md index adbc063..107ceb1 100644 --- a/docs/groovy-script/mods/matteroverdrive/replicator.md +++ b/docs/groovy-script/mods/matteroverdrive/replicator.md @@ -28,18 +28,6 @@ mods.matteroverdrive.Replicator ## Adding Entries -- Add an item, item stack, or ingredient to the replicator blacklist: - - ```groovy:no-line-numbers - mods.matteroverdrive.replicator.add(Item) - ``` - -- Add an item, item stack, or ingredient to the replicator blacklist: - - ```groovy:no-line-numbers - mods.matteroverdrive.replicator.add(ItemStack) - ``` - - Add an item, item stack, or ingredient to the replicator blacklist: ```groovy:no-line-numbers @@ -48,7 +36,8 @@ mods.matteroverdrive.Replicator :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.replicator.add(item('matteroverdrive:matter_dust').getItem()) +mods.matteroverdrive.replicator.add(item('matteroverdrive:matter_dust')) +mods.matteroverdrive.replicator.add(ore('blockGold')) ``` :::::::::: From 927e3c821c8dca9f756276ad3b3558ea1a0353e0 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 30 May 2026 22:55:40 -0400 Subject: [PATCH 6/6] Fix source url. add -> addBlacklist. Reorder android wiki. --- .../mods/matteroverdrive/android.md | 45 ++++++++++--------- .../mods/matteroverdrive/inscriber.md | 2 +- .../mods/matteroverdrive/matter.md | 2 +- .../mods/matteroverdrive/replicator.md | 8 ++-- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/docs/groovy-script/mods/matteroverdrive/android.md b/docs/groovy-script/mods/matteroverdrive/android.md index 0ce5bde..43dbb71 100644 --- a/docs/groovy-script/mods/matteroverdrive/android.md +++ b/docs/groovy-script/mods/matteroverdrive/android.md @@ -2,7 +2,7 @@ title: "Android Biotic Stats" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Tweak Android biotic stat parameters such as XP cost, required items, and enabled state." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Android.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/Android.java" --- # Android Biotic Stats (MatterOverdrive: Refitted) @@ -12,7 +12,7 @@ source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src Tweak Android biotic stat parameters such as XP cost, required items, and enabled state. :::::::::: details Info {open id="info"} -Use the `androidStat(name)` bracket handler to obtain an IBioticStat. +Use the `androidStat(name)` bracket handler to obtain an AbstractBioticStat. :::::::::: :::::::::: details Tip {open id="tip"} @@ -34,70 +34,71 @@ mods.matteroverdrive.Android :::::::::: -## Editing Values +## Modify Stat State -- Set the XP cost in levels required for the given biotic stat: +- Set the given biotic stat to be enabled, overriding config-based rules: ```groovy:no-line-numbers - mods.matteroverdrive.android.setXp(IBioticStat, int) + mods.matteroverdrive.android.enable(AbstractBioticStat) ``` -- Set the given biotic stat to be enabled, overriding config-based rules: +- Set the given biotic stat to be disabled, overriding config-based rules, disabling the stat features: ```groovy:no-line-numbers - mods.matteroverdrive.android.enable(IBioticStat) + mods.matteroverdrive.android.disable(AbstractBioticStat) ``` -- Set the given biotic stat to be disabled, overriding config-based rules, disabling the stat features: +- Set the given biotic stat to be delisted. Cannot be installed from the Android Station, but current installs continue to function: ```groovy:no-line-numbers - mods.matteroverdrive.android.disable(IBioticStat) + mods.matteroverdrive.android.unregister(AbstractBioticStat) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.android.setXp(androidStat('shield'), 25) +mods.matteroverdrive.android.unregister(androidStat('cloak')) ``` :::::::::: -## Adding Entries +## Modify Stat Requirements + +- Set the XP cost in levels required for the given biotic stat: + + ```groovy:no-line-numbers + mods.matteroverdrive.android.setXp(AbstractBioticStat, int) + ``` - Add an item that must be present in the player's inventory to install the given biotic stat: ```groovy:no-line-numbers - mods.matteroverdrive.android.addRequiredItem(IBioticStat, ItemStack) + mods.matteroverdrive.android.addRequiredItem(AbstractBioticStat, ItemStack) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers +mods.matteroverdrive.android.setXp(androidStat('shield'), 25) mods.matteroverdrive.android.addRequiredItem(androidStat('shield'), item('minecraft:iron_ingot') * 5) ``` :::::::::: -## Removing Entries - -- Set the given biotic stat to be delisted. Cannot be installed from the Android Station, but current installs continue to function: - - ```groovy:no-line-numbers - mods.matteroverdrive.android.unregister(IBioticStat) - ``` +## Remove Stat Requirements - Remove all required installation items from the given biotic stat: ```groovy:no-line-numbers - mods.matteroverdrive.android.clearRequiredItems(IBioticStat) + mods.matteroverdrive.android.clearRequiredItems(AbstractBioticStat) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.android.unregister(androidStat('cloak')) +mods.matteroverdrive.android.clearRequiredItems(androidStat('shield')) ``` :::::::::: -## Getting the value of entries +## Query Biotic Stats - Returns a sorted list of all currently registered biotic stat unlocalized names: diff --git a/docs/groovy-script/mods/matteroverdrive/inscriber.md b/docs/groovy-script/mods/matteroverdrive/inscriber.md index 0e59e7a..b7756be 100644 --- a/docs/groovy-script/mods/matteroverdrive/inscriber.md +++ b/docs/groovy-script/mods/matteroverdrive/inscriber.md @@ -2,7 +2,7 @@ title: "Inscriber" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Add or remove recipes from the Inscriber." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Inscriber.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/Inscriber.java" --- # Inscriber (MatterOverdrive: Refitted) diff --git a/docs/groovy-script/mods/matteroverdrive/matter.md b/docs/groovy-script/mods/matteroverdrive/matter.md index 6a629cd..71b543d 100644 --- a/docs/groovy-script/mods/matteroverdrive/matter.md +++ b/docs/groovy-script/mods/matteroverdrive/matter.md @@ -2,7 +2,7 @@ title: "Matter Registry" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Modify the matter value table used by Matter Overdrive's scanner, replicator, and decomposer. Supports individual items, ore dictionary, or entire modIDs." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Matter.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/Matter.java" --- # Matter Registry (MatterOverdrive: Refitted) diff --git a/docs/groovy-script/mods/matteroverdrive/replicator.md b/docs/groovy-script/mods/matteroverdrive/replicator.md index 107ceb1..2b6538a 100644 --- a/docs/groovy-script/mods/matteroverdrive/replicator.md +++ b/docs/groovy-script/mods/matteroverdrive/replicator.md @@ -2,7 +2,7 @@ title: "Replicator Blacklist" titleTemplate: "MatterOverdrive: Refitted | CleanroomMC" description: "Add items to the replicator blacklist. Blacklisted items cannot be replicated even if they have a matter value assigned." -source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/v1.4.3/src/main/java/matteroverdrive/compat/modules/groovyscript/Replicator.java" +source_code_link: "https://github.com/Refitbench/MatterOverdrive/blob/master/src/main/java/matteroverdrive/compat/modules/groovyscript/Replicator.java" --- # Replicator Blacklist (MatterOverdrive: Refitted) @@ -31,13 +31,13 @@ mods.matteroverdrive.Replicator - Add an item, item stack, or ingredient to the replicator blacklist: ```groovy:no-line-numbers - mods.matteroverdrive.replicator.add(IIngredient) + mods.matteroverdrive.replicator.addBlacklist(IIngredient) ``` :::::::::: details Example {open id="example"} ```groovy:no-line-numbers -mods.matteroverdrive.replicator.add(item('matteroverdrive:matter_dust')) -mods.matteroverdrive.replicator.add(ore('blockGold')) +mods.matteroverdrive.replicator.addBlacklist(item('matteroverdrive:matter_dust')) +mods.matteroverdrive.replicator.addBlacklist(ore('blockGold')) ``` ::::::::::