Skip to content

Commit 235b3c6

Browse files
chore: add missing registry keys from 1.21.5 in Brigadier section (#593)
* Add missing registry keys from 1.21.5 * Remove 7 and add version front matter * Fix typo * fix: bring version tag before the TOC --------- Co-authored-by: Matouš Kučera <mk@kcra.me>
1 parent 6f952d7 commit 235b3c6

8 files changed

Lines changed: 28 additions & 6 deletions

File tree

src/components/Version.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const { version, inline } = Astro.props;
1919

2020
<style>
2121
.icon {
22-
font-size: var(--sl-text-3xl);
22+
font-size: var(--sl-text-4xl);
2323
}
2424

2525
.notice {
@@ -28,10 +28,10 @@ const { version, inline } = Astro.props;
2828
gap: 1rem;
2929
align-items: center;
3030
font-size: var(--sl-text-xs);
31-
padding: 1rem 1.5rem;
31+
padding: 1rem 1.25rem;
3232
border-radius: 0.5rem;
3333
background-color: rgba(var(--sl-color-accent-raw), 0.125);
34-
margin: 1rem 0;
34+
margin-bottom: 1rem;
3535
}
3636

3737
.notice span {
@@ -48,6 +48,7 @@ const { version, inline } = Astro.props;
4848
display: flex;
4949
margin: 0;
5050
border-radius: 0;
51+
padding: 1rem var(--sl-content-pad-x);
5152
font-size: var(--sl-text-sm);
5253
}
5354

src/components/overrides/TableOfContents.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import Version from "../Version.astro";
55
const { version } = Astro.locals.starlightRoute.entry.data;
66
---
77

8-
<Default><slot /></Default>
98
{version && <Version {version} />}
9+
<Default><slot /></Default>

src/content/docs/paper/dev/api/command-api/arguments/registry.mdx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
title: Registry
33
description: Documentation for arguments retrieving registry values.
44
slug: paper/dev/command-api/arguments/registry
5+
version: 1.21.5
56
---
67

78
import ResourceAttributes from "./assets/registry-arguments/resource-attributes.mp4";
89
import ResourceBannerPattern from "./assets/registry-arguments/resource-banner-pattern.mp4";
910
import ResourceBiome from "./assets/registry-arguments/resource-biome.mp4";
1011
import ResourceBlock from "./assets/registry-arguments/resource-block.mp4";
1112
import ResourceCatVariant from "./assets/registry-arguments/resource-cat-variant.mp4";
13+
import ResourceChickenVariant from "./assets/registry-arguments/resource-chicken-variant.mp4";
14+
import ResourceCowVariant from "./assets/registry-arguments/resource-cow-variant.mp4";
1215
import ResourceDamageType from "./assets/registry-arguments/resource-damage-type.mp4";
1316
import ResourceDataComponentType from "./assets/registry-arguments/resource-data-component-type.mp4";
1417
import ResourceEnchantment from "./assets/registry-arguments/resource-enchantment.mp4";
@@ -25,13 +28,15 @@ import ResourceMenu from "./assets/registry-arguments/resource-menu.mp4";
2528
import ResourceMobEffect from "./assets/registry-arguments/resource-mob-effect.mp4";
2629
import ResourcePaintingVariant from "./assets/registry-arguments/resource-painting-variant.mp4";
2730
import ResourceParticleType from "./assets/registry-arguments/resource-particle-type.mp4";
31+
import ResourcePigVariant from "./assets/registry-arguments/resource-pig-variant.mp4";
2832
import ResourcePotion from "./assets/registry-arguments/resource-potion.mp4";
2933
import ResourceSoundEvent from "./assets/registry-arguments/resource-sound-event.mp4";
3034
import ResourceStructureType from "./assets/registry-arguments/resource-structure-type.mp4";
3135
import ResourceTrimMaterial from "./assets/registry-arguments/resource-trim-material.mp4";
3236
import ResourceTrimPattern from "./assets/registry-arguments/resource-trim-pattern.mp4";
3337
import ResourceVillagerProfession from "./assets/registry-arguments/resource-villager-profession.mp4";
3438
import ResourceVillagerType from "./assets/registry-arguments/resource-villager-type.mp4";
39+
import ResourceWolfSoundVariant from "./assets/registry-arguments/resource-wolf-sound-variant.mp4";
3540
import ResourceWolfVariant from "./assets/registry-arguments/resource-wolf-variant.mp4";
3641

3742
import ResourceKeyItem from "./assets/registry-arguments/resourcekey-item.mp4";
@@ -190,7 +195,7 @@ input and be able to retrieve the backed instance without much trouble, that is
190195

191196
## Registry key previews
192197

193-
At the time of writing, the following RegistryKeys exist:
198+
The following `RegistryKeys` exist:
194199

195200
| RegistryKeys Field | Return Value | Preview Video |
196201
|------------------------|------------------------|---------------------------------------------|
@@ -199,6 +204,8 @@ At the time of writing, the following RegistryKeys exist:
199204
| BIOME | Biome | [Biome](#biome) |
200205
| BLOCK | BlockType | [Block](#block) |
201206
| CAT_VARIANT | Cat.Type | [Cat Variant](#cat-variant) |
207+
| CHICKEN_VARIANT | Chicken.Variant | [Chicken Variant](#chicken-variant) |
208+
| COW_VARIANT | Cow.Variant | [Cow Variant](#cow-variant) |
202209
| DAMAGE_TYPE | DamageType | [Damage Type](#damage-type) |
203210
| DATA_COMPONENT_TYPE | DataComponentType | [Data Component Type](#data-component-type) |
204211
| ENCHANTMENT | Enchantment | [Enchantment](#enchantment) |
@@ -215,6 +222,7 @@ At the time of writing, the following RegistryKeys exist:
215222
| MOB_EFFECT | PotionEffectType | [Mob effect](#mob-effect) |
216223
| PAINTING_VARIANT | Art | [Painting variant](#painting-variant) |
217224
| PARTICLE_TYPE | Particle | [Particle](#particle) |
225+
| PIG_VARIANT | Pig.Variant | [Pig Variant](#pig-variant) |
218226
| POTION | PotionType | [Potion](#potion) |
219227
| SOUND_EVENT | Sound | [Sound](#sound) |
220228
| STRUCTURE | Structure | [Structure](#structure) |
@@ -223,12 +231,13 @@ At the time of writing, the following RegistryKeys exist:
223231
| TRIM_PATTERN | TrimPattern | [Trim Pattern](#trim-pattern) |
224232
| VILLAGER_PROFESSION | Villager.Profession | [Villager Profession](#villager-profession) |
225233
| VILLAGER_TYPE | Villager.Type | [Villager Type](#villager-type) |
234+
| WOLF_SOUND_VARIANT | Wolf.SoundVariant | [Wolf Sound Variant](#wolf-sound-variant) |
226235
| WOLF_VARIANT | Wolf.Variant | [Wolf Variant](#wolf-variant) |
227236

228237
### Attribute
229238
<Video src={ResourceAttributes} />
230239

231-
### Banner Pattern
240+
### Banner pattern
232241
<Video src={ResourceBannerPattern} />
233242

234243
### Biome
@@ -240,6 +249,12 @@ At the time of writing, the following RegistryKeys exist:
240249
### Cat variant
241250
<Video src={ResourceCatVariant} />
242251

252+
### Chicken variant
253+
<Video src={ResourceChickenVariant} />
254+
255+
### Cow variant
256+
<Video src={ResourceCowVariant} />
257+
243258
### Damage type
244259
<Video src={ResourceDamageType} />
245260

@@ -288,6 +303,9 @@ At the time of writing, the following RegistryKeys exist:
288303
### Particle
289304
<Video src={ResourceParticleType} />
290305

306+
### Pig variant
307+
<Video src={ResourcePigVariant} />
308+
291309
### Potion
292310
<Video src={ResourcePotion} />
293311

@@ -312,5 +330,8 @@ This argument kicks the client, so no preview for this one ¯\\\_(ツ)\_/¯
312330
### Villager type
313331
<Video src={ResourceVillagerType} />
314332

333+
### Wolf sound variant
334+
<Video src={ResourceWolfSoundVariant} />
335+
315336
### Wolf variant
316337
<Video src={ResourceWolfVariant} />

0 commit comments

Comments
 (0)