Skip to content

Commit

Permalink
add example for removing all ore veins
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerooni authored Oct 24, 2023
1 parent c523c52 commit 6e5bcf9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/Modpacks/KubeJS/Server-Scripts/Ore-Generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ GTCEuServerEvents.oreVeins(event => {
```


??? example "Removing all ore veins"
If you want to remove **all** predefined ore veins (for example if you want to completely change ore generation
in your modpack), you can use the following code:

```js
GTCEuServerEvents.oreVeins(event => {
GTRegistries.ORE_VEINS.keys().forEach(id => event.remove(id))
})
```


## Modifying Contents of an Existing Vein

```js title="ore_vein_modify_contents.js"
Expand Down

0 comments on commit 6e5bcf9

Please sign in to comment.