Skip to content

Commit 269d1a4

Browse files
committed
sr: fix issues with biome and structure tags in conditions
1 parent 4fb6ca1 commit 269d1a4

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

wikis/summoningrituals/docs/recipe/conditions.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,20 @@ Because it's a builder, you can chain all functions. See all available condition
2626

2727
## Biome
2828

29-
The biome check ensures the ritual is only started in the given biomes. If you specify multiple biomes, the ritual can be started in any of them. You can also use biome tags. If you want to specify multiple entries, you have to wrap them in an array via `[]`.
29+
The biome check ensures the ritual is only started in the given biomes. If you specify multiple biomes, the ritual can be started in any of them. If you want to specify multiple entries, you have to wrap them in an array via `[]`.
3030

31-
Function: `biomes(HolderSet<Biome> biomes)`
31+
It's possible to either specify specific biomes or a single biome tag.
32+
33+
Functions:
34+
35+
- `biomes(HolderSet<Biome> biomes)`
36+
- `biomes(TagKey<Biome> biomeTag)`
3237

3338
```js
3439
.conditions(c =>
35-
c.biomes(["minecraft:plains", "minecraft:desert", "#minecraft:is_badlands"]) // [!code focus]
40+
c.biomes(["minecraft:plains", "minecraft:desert"]) // [!code focus: 3]
41+
// or
42+
c.biomes("#minecraft:is_badlands")
3643
)
3744
```
3845

@@ -193,13 +200,20 @@ Function: `setSmoked(Boolean smoked)`
193200

194201
## Structures
195202

196-
The structure check ensures the ritual is only started inside the bounds of the specified structure. If you specify multiple structures, the ritual can be started in any of them. You can also use structure tags. If you want to specify multiple entries, you have to wrap them in an array via `[]`.
203+
The structure check ensures the ritual is only started inside the bounds of the specified structure. If you specify multiple structures, the ritual can be started in any of them. If you want to specify multiple entries, you have to wrap them in an array via `[]`.
197204

198-
Function: `structures(HolderSet<Structure> structures)`
205+
It's possible to either specify specific structures or a single structure tag.
206+
207+
Functions:
208+
209+
- `structures(HolderSet<Structure> structures)`
210+
- `structures(TagKey<Structure> structureTag)`
199211

200212
```js
201213
.conditions(c =>
202-
c.structures(["minecraft:desert_pyramid", "minecraft:pillager_outpost", "#minecraft:mineshaft"]) // [!code focus]
214+
c.structures(["minecraft:desert_pyramid", "minecraft:pillager_outpost"]) // [!code focus:3]
215+
// or
216+
c.structures("#minecraft:mineshaft")
203217
)
204218
```
205219

0 commit comments

Comments
 (0)