Skip to content

Commit

Permalink
update docs for GroovyScript 1.2.0 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaitingIdly authored Oct 6, 2024
1 parent c9f1c74 commit e6f31de
Show file tree
Hide file tree
Showing 233 changed files with 11,699 additions and 118 deletions.
2 changes: 1 addition & 1 deletion docs/groovy-script/minecraft/loot.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
This is not a mod compat. It is a powerful standalone implementation to edit any loot tables.

Documentation is not yet available for tweaking loot tables.
In the meantime have a look at some examples [here](https://github.com/CleanroomMC/GroovyScript/blob/master/examples/loot.groovy).
In the meantime have a look at some examples [here](https://github.com/CleanroomMC/GroovyScript/blob/master/examples/postInit/custom/loottables.groovy).
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.AtomicReconstructor

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.atomic_reconstructor.add(LensConversionRecipe)
```
### Recipe Builder
Just like other recipe types, the Atomic Reconstructor also uses a recipe builder.
Expand All @@ -52,7 +59,7 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
output(Collection<ItemStack>)
```
- `Lens`. groovyscript.wiki.actuallyadditions.atomic_reconstructor.type.value. Requires not null. (Default `ActuallyAdditionsAPI.lensDefaultConversion`).
- `Lens`. Sets the type of Lens used for the recipe. Requires not null. (Default `ActuallyAdditionsAPI.lensDefaultConversion`).
```groovy:no-line-numbers
type(Lens)
Expand Down Expand Up @@ -97,6 +104,12 @@ mods.actuallyadditions.atomic_reconstructor.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.atomic_reconstructor.remove(LensConversionRecipe)
```
- Removes all recipes that match the given ore:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/ball_of_fur.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.BallOfFur

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.ball_of_fur.add(BallOfFurReturn)
```
### Recipe Builder
Just like other recipe types, the Ball of Fur also uses a recipe builder.
Expand Down Expand Up @@ -70,6 +77,12 @@ mods.actuallyadditions.ball_of_fur.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.ball_of_fur.remove(BallOfFurReturn)
```
- Removes all recipes that match the given output:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/compost.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ mods.actuallyadditions.Compost

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.compost.add(CompostRecipe)
```
### Recipe Builder
Just like other recipe types, the Compost also uses a recipe builder.
Expand Down Expand Up @@ -82,6 +89,12 @@ mods.actuallyadditions.compost.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.compost.remove(CompostRecipe)
```
- Removes all recipes that match the given input:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/crusher.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ mods.actuallyadditions.Crusher

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.crusher.add(CrusherRecipe)
```
### Recipe Builder
Just like other recipe types, the Crusher also uses a recipe builder.
Expand Down Expand Up @@ -80,6 +87,12 @@ mods.actuallyadditions.crusher.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.crusher.remove(CrusherRecipe)
```
- Removes all recipes that match the given input:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/empowerer.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ mods.actuallyadditions.Empowerer

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.empowerer.add(EmpowererRecipe)
```
### Recipe Builder
Just like other recipe types, the Empowerer also uses a recipe builder.
Expand Down Expand Up @@ -145,6 +152,12 @@ mods.actuallyadditions.empowerer.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.empowerer.remove(EmpowererRecipe)
```
- Removes all recipes that match the given input:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/nether_mining_lens.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.NetherMiningLens

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.nether_mining_lens.add(WeightedOre)
```
### Recipe Builder
Just like other recipe types, the Nether Mining Lens also uses a recipe builder.
Expand Down Expand Up @@ -74,6 +81,12 @@ mods.actuallyadditions.nether_mining_lens.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.nether_mining_lens.remove(WeightedOre)
```
- Removes all recipes that match the given ore:
```groovy:no-line-numbers
Expand Down
17 changes: 15 additions & 2 deletions docs/groovy-script/mods/actuallyadditions/oil_gen.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.OilGen

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.oil_gen.add(OilGenRecipe)
```
### Recipe Builder
Just like other recipe types, the Oil Gen also uses a recipe builder.
Expand All @@ -54,7 +61,6 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
```groovy:no-line-numbers
amount(int)
fluidInput(FluidStack)
```
- 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 `de.ellpeck.actuallyadditions.api.recipe.OilGenRecipe`).
Expand All @@ -72,7 +78,8 @@ mods.actuallyadditions.oil_gen.recipeBuilder()
.register()
mods.actuallyadditions.oil_gen.recipeBuilder()
.fluidInput(fluid('lava') * 50)
.fluidInput(fluid('lava'))
.amount(50)
.time(100)
.register()
```
Expand All @@ -83,6 +90,12 @@ mods.actuallyadditions.oil_gen.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.oil_gen.remove(OilGenRecipe)
```
- Removes all recipes that match the given input:
```groovy:no-line-numbers
Expand Down
13 changes: 13 additions & 0 deletions docs/groovy-script/mods/actuallyadditions/stone_mining_lens.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.StoneMiningLens

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.stone_mining_lens.add(WeightedOre)
```
### Recipe Builder
Just like other recipe types, the Stone Mining Lens also uses a recipe builder.
Expand Down Expand Up @@ -74,6 +81,12 @@ mods.actuallyadditions.stone_mining_lens.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.stone_mining_lens.remove(WeightedOre)
```
- Removes all recipes that match the given ore:
```groovy:no-line-numbers
Expand Down
17 changes: 15 additions & 2 deletions docs/groovy-script/mods/actuallyadditions/treasure_chest.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ mods.actuallyadditions.TreasureChest

## Adding Recipes

- Add the given recipe to the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.treasure_chest.add(TreasureChestLoot)
```
### Recipe Builder
Just like other recipe types, the Treasure Chest also uses a recipe builder.
Expand All @@ -44,13 +51,13 @@ Don't know what a builder is? Check [the builder info page](../../getting_starte
output(Collection<ItemStack>)
```
- `int`. Sets the maximum stack size given when rolled. Requires greater than or equal to 0 and greater than or equal to min. (Default `0`).
- `int`. Sets the maximum stack size given when rolled. Requires greater than or equal to 0 and greater than or equal to the size of min. (Default `0`).
```groovy:no-line-numbers
max(int)
```
- `int`. Sets the minimum stack size given when rolled. Requires greater than or equal to 0 and less than or equal to max. (Default `0`).
- `int`. Sets the minimum stack size given when rolled. Requires greater than or equal to 0 and less than or equal to the size of max. (Default `0`).
```groovy:no-line-numbers
min(int)
Expand Down Expand Up @@ -84,6 +91,12 @@ mods.actuallyadditions.treasure_chest.recipeBuilder()

## Removing Recipes

- Removes the given recipe from the recipe list:

```groovy:no-line-numbers
mods.actuallyadditions.treasure_chest.remove(TreasureChestLoot)
```
- Removes all recipes that match the given output:
```groovy:no-line-numbers
Expand Down
Loading

0 comments on commit e6f31de

Please sign in to comment.