Skip to content

Commit 3ff5ac2

Browse files
authored
Fix incorrect or outdated hyperlinks (#107)
1 parent f736319 commit 3ff5ac2

10 files changed

Lines changed: 26 additions & 26 deletions

File tree

src/routes/guide/adding-new-features/custom-items/crafting/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 1.21.8
88

99
There are two ways to add recipes to your custom items, they differentiate based on what Minecraft version you are
1010
developing for. The first one is for the Minecraft version 1.20.5+ (Datapack format 34+), here items can be directly
11-
specified in the output with [item components](/wiki/concepts/item_components). The second method is for all version
11+
specified in the output with [item components](/wiki/concepts/item-components). The second method is for all version
1212
before 1.20.5.
1313

1414
## 1.20.5 and newer

src/routes/wiki/command/data/+page.svx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 1.21.8
55
---
66

77
# /data command
8-
The `/data` command is used to modify and fetch NBT data of [blocks](/wiki/nbt/block-nbt), [entities](/wiki/nbt/entity-nbt) and [storages](/wiki/nbt/storages).
8+
The `/data` command is used to modify and fetch NBT data of [blocks](/wiki/nbt-scoreboards/block-nbt), [entities](/wiki/nbt-scoreboards/entity-nbt) and [storages](/wiki/nbt-scoreboards/nbt#nbt-storages).
99

1010
:::warning
1111
Player data cannot be modified using commands. All subcommands fail when trying to modify player data.
@@ -14,18 +14,18 @@ Player data cannot be modified using commands. All subcommands fail when trying
1414
## Subcommands
1515
### `get <source> [path] [scale]`
1616
Gets the data from a data source, and a `path`, if specified. Multiplies the resulting value by `scale`, if specified.
17-
`source` is a [data source](#data-source), `path` is an [nbt path](/wiki/concepts/nbt_paths) and `scale` is a number.
17+
`source` is a [data source](#data-source), `path` is an [nbt path](/wiki/nbt-scoreboards/nbt#nbt-paths) and `scale` is a number.
1818
If `scale` is set, and the data at that path it not a number, the command fails.
1919

20-
After fetching the NBT at the path, if it exists, it prints the data in [SNBT](/wiki/nbt/snbt) format in the chat. Therefore, its main use is manually inspecting NBT data. However, it also returns the integer representation <!-- TODO: we probably want to explain ths somewhere --> of the fetched data, so it can be used in combination with `execute store` or `return run` to convert NBT into an integer.
20+
After fetching the NBT at the path, if it exists, it prints the data in [SNBT](/wiki/nbt-scoreboards/nbt#snbt-format) format in the chat. Therefore, its main use is manually inspecting NBT data. However, it also returns the integer representation <!-- TODO: we probably want to explain ths somewhere --> of the fetched data, so it can be used in combination with `execute store` or `return run` to convert NBT into an integer.
2121

2222
#### Examples
2323
`data get entity @s SelectedItem.id`
2424
`data get block ~ ~ ~ Items`
2525

2626
### `merge <target> <nbt>`
2727
[Merges](#data-merging) data with the given data source.
28-
`target` is a [data source](#data-source) and `nbt` is an [SNBT compound](/wiki/nbt/snbt#compounds).
28+
`target` is a [data source](#data-source) and `nbt` is an [SNBT compound](/wiki/nbt-scoreboards/nbt#snbt-format).
2929
This command fails if the given entity or block does exist, or if the block is not a block entity and cannot hold NBT data. However, if the data source is a storage, and that storage does no exist yet, the storage is automatically created.
3030

3131
#### Examples
@@ -34,25 +34,25 @@ This command fails if the given entity or block does exist, or if the block is n
3434

3535
### `modify <target> <path> <action> <source>`
3636
Modifies the NBT data at the specified path of the given data source. This gives more fine-grained control that `data merge`.
37-
`target` is the [data source](#data-source) to modify and `path` is an [NBT path](/wiki/concepts/nbt_paths), the specific sub-path of that data source.
37+
`target` is the [data source](#data-source) to modify and `path` is an [NBT path](/wiki/nbt-scoreboards/nbt#nbt-paths), the specific sub-path of that data source.
3838
`action` determines what kind of modification occurs. There are 5 possible actions, as below.
3939
`source` determines the source of the data being used to modify the `target`. See [source](#source) below.
4040

4141
#### `append`
42-
Appends an NBT value to a [list](/wiki/nbt/nbt_format#lists) or a [typed array](/wiki/nbt/nbt_format#typed-arrays), making the value the last element.
42+
Appends an NBT value to a [list or a typed array](/wiki/nbt-scoreboards/nbt#listsarrays), making the value the last element.
4343
If the specified path does not exist in the data source, it is created and initialized as a list containing the value just appended.
4444
This is equivalent to `data modify ... insert 0 ...`.
4545

4646
#### `insert <index>`
47-
Inserts an NBT value into a [list](/wiki/nbt/nbt_format#lists) or [array](/wiki/nbt/nbt_format#typed-arrays) at a specific index, shifting all proceeding elements to the right. Negative indices may be used to indicate inserting values from the end.
47+
Inserts an NBT value into a [list or array](/wiki/nbt-scoreboards/nbt#listsarrays) at a specific index, shifting all proceeding elements to the right. Negative indices may be used to indicate inserting values from the end.
4848
If the index specified would cause the inserted item to be further than one after the first or last element of the list, the command fails.
4949
Inserting creates list if it doesn't exist in the same way as `append`.
5050

5151
#### `merge`
5252
[Merges](#data-merging) `source` into `target` at `path`. This is similar to `data merge`, but allows modifying a sub-path of a data source, and allows merging from more than just hardcoded NBT values.
5353

5454
#### `prepend`
55-
Prepends an NBT value to a [list](/wiki/nbt/nbt_format#lists) or a [typed array](/wiki/nbt/nbt_format#typed-arrays), making the value the first element.
55+
Prepends an NBT value to a [list or a typed array](/wiki/nbt-scoreboards/nbt#listsarrays), making the value the first element.
5656
Lists are created in the same wat as `append`.
5757
This is equivalent to `data modify ... insert -1 ...`.
5858

@@ -68,12 +68,12 @@ The `example:main` storage looks like this: `{a: {b: {c: {d: 10}}}}`.
6868
#### `source`
6969
`source` determines the value modifying `target`. It can be one of:
7070

71-
- `value <value>` - Gets the value from an [SNBT literal](/wiki/nbt/snbt).
72-
- `from <data-source> [path]` - Gets the data from the specified [data source](#data-source) and [path](/wiki/concepts/nbt_paths).
71+
- `value <value>` - Gets the value from an [SNBT literal](/wiki/nbt-scoreboards/nbt#snbt-format).
72+
- `from <data-source> [path]` - Gets the data from the specified [data source](#data-source) and [path](/wiki/nbt-scoreboards/nbt#nbt-paths).
7373
- `string <data-source> [path] [start] [end]` - Gets the data from the specified [data source](#data-source) and ensures that it's a string. If `start` or `end` is specified, truncates the string using those values. `start` is inclusive, while `end` is exclusive. Both numbers are allowed to be negative, counting from the end of the string. For example, the indices `1 -1` remove one character from each end of the string, while `0 1` takes the first character.
7474

7575
### `remove <source> <path>`
76-
Removes the NBT data from `source` at `path`. `source` is a [data source](#data-source) and `path` is an [NBT path](/wiki/concepts/nbt_paths).
76+
Removes the NBT data from `source` at `path`. `source` is a [data source](#data-source) and `path` is an [NBT path](/wiki/nbt-scoreboards/nbt#nbt-paths).
7777
This deletes compound keys, and removes array and list elements, shifting proceeding elements left. It cannot, however, be used to delete an entire storage using the special `{}` path; only single keys of the root storage.
7878

7979
:::tip
@@ -88,9 +88,9 @@ data remove storage example:main temp
8888

8989
## Data source
9090
The place to get data from or store data to. One of:
91-
- `entity <selector>` - The [NBT of an entity](/wiki/nbt/entity_nbt).
92-
- `block <pos>` - The [NBT of a block entity](/wiki/nbt/block_nbt).
93-
- `storage <name>` - The NBT from a [data storage](/wiki/nbt/storages).
91+
- `entity <selector>` - The [NBT of an entity](/wiki/nbt-scoreboards/entity-nbt).
92+
- `block <pos>` - The [NBT of a block entity](/wiki/nbt-scoreboards/block-nbt).
93+
- `storage <name>` - The NBT from a [data storage](/wiki/nbt-scoreboards/nbt#nbt-storages).
9494

9595
## Data merging
9696
Data merging is a process of merging two data values into one another.

src/routes/wiki/command/summon/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ summon <entity> [position] [nbt data]
2020
(`minecraft:`) is omitted, it will default to the `minecraft` namespace.
2121
- `[position]` (optional): the [coordinates](/wiki/concepts/coordinates) at which the entity should be spawned.
2222
(Defaults to the current position).
23-
- `[nbt data]` (optional): a compound containing the NBT (in [SNBT format](/wiki/nbt/snbt)) which the entity should be
23+
- `[nbt data]` (optional): a compound containing the NBT (in [SNBT format](/wiki/nbt-scoreboards/nbt#snbt-format)) which the entity should be
2424
spawned with. For example: `{NoAI:1b}`.
2525

2626
## Examples
@@ -34,7 +34,7 @@ summon <entity> [position] [nbt data]
3434
## Alternatives
3535

3636
The `execute summon <entity>` command can also be used to summon an entity. Using this
37-
[execute subcommand](/wiki/command/execute) will summon an entity at the current position, and then run the specified
37+
[execute subcommand](/wiki/command/execute#execute-summon-ltentitygt-) will summon an entity at the current position, and then run the specified
3838
command as the newly summoned entity.
3939

4040
However, `execute summon` cannot provide any NBT to give the entity upon being spawned. You will have to edit the nbt in

src/routes/wiki/concepts/item-components/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version: 1.21.8
1010

1111
Item components are data structures which can be applied to items in Minecraft to give them special attributes, such as
1212
a name, lore, being able to be eaten, etc. Each item has specific item components by default - for example, all food
13-
items will have the minecraft:consumable` component, which makes the item edible.
13+
items will have the `minecraft:consumable` component, which makes the item edible.
1414

1515
A command such as `/give` or `/item` can be used to create an item which has additional item components, or remove item
1616
components from any item.

src/routes/wiki/concepts/target-selectors/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ argument. (E.g. @e[type=!minecraft:creeper] will select every entity that is NOT
6161
| `type` | `@e[type=minecraft:pig]` | Filters to only include entities of a certain type or entity_type tag. Valid with `@e`, `@s` and `@n`. `type` can be any entity ID or entity_type tag. |
6262
| `name` | `@e[name=Aron]` | Filters to include entities with a specific name. `name` is a string - it cannot be JSON text. |
6363
| `distance` | `@e[distance=6]` | Filters to include entities within a certain distance or range. `..` is used to represent "greater/less than" operations - for example, `..6` means less than 6 and, `8..` means more than 8. |
64-
| `nbt` | `@a[nbt={SelectedItem:{id:"minecraft:stone"}}]` | Filters to include entities with specific [NBT data](/wiki/nbt/nbt). NBT data will be partially matched - as long as the specified data exists on the entity, it doesn't matter what other data it has. |
64+
| `nbt` | `@a[nbt={SelectedItem:{id:"minecraft:stone"}}]` | Filters to include entities with specific [NBT data](/wiki/nbt-scoreboards/nbt). NBT data will be partially matched - as long as the specified data exists on the entity, it doesn't matter what other data it has. |
6565
| `sort` and `limit` | `@e[limit=1,sort=nearest]` | These two arguments are often used together to find entities based on ordering. For example, `limit=5,sort=furthest` selects the 5 entities which are furthest away from the current position. |
6666
| `x`/`y`/`z` | `@e[x=10,y=9,z=-5,distance=..5]` | Specifies a starting position to work from; affecting `distance`, `dx`/`dy`/`dz`, and `sort`/`limit`. If left blank, it defaults to `~ ~ ~`. |
6767
| `dx`/`dy`/`dz` | `@e[x=10,y=13,z=87,dx=10,dy=20,dz=5]` | Creates a selection area (cuboid) which will only select entities if part of their hit box is within the area. The current position or `x`/`y`/`z` is used as the position of the cuboid's corner, where the coordinates are the smallest. If at least one of the `dx`/`dy`/`dz` values are set, the others default to 0 if not set. The checked area is always 1 block bigger in the positive direction than specified, so the smallest checkable area is a 1x1x1 cube with all values at 0. |
@@ -123,7 +123,7 @@ range.
123123
The `nbt=<object>` argument will filter the selection to only include entities which have or do not have specific NBT
124124
data.
125125

126-
`<object>` is an [NBT compound](/wiki/nbt/nbt). The entity must match everything within the compound.
126+
`<object>` is an [NBT compound](/wiki/nbt-scoreboards/nbt). The entity must match everything within the compound.
127127

128128
**Examples**:
129129

src/routes/wiki/concepts/text/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following properties can be used in a text component to add **interactivity*
7979
- `separator`: If the text source returns multiple values (e.g. multiple entities with the `selector` source, or multiple NBT values with the `nbt` source), this can be used to specify the separator between the values. This should be a string value.
8080

8181
## Text component generators
82-
Writing text components manually is tedious - there are numerous generators which can be used to quickly create text components. We reccomend [our Minecraft Text Generator](https://text.datapackhub.net) which has an easy UI, cool features like gradient creators, and is updated for modern versions.
82+
Writing text components manually is tedious - there are numerous generators which can be used to quickly create text components. We recommend [our Minecraft Text Generator](https://text.datapackhub.net) which has an easy UI, cool features like gradient creators, and is updated for modern versions.
8383

8484
If you are a more advanced datapacker and want full control over the output, these let you create text components one component at a time, with support for more advanced features
8585
- [Misode](https://misode.github.io/text-component)

src/routes/wiki/files/functions/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: Functions
33
description:
44
"Functions are files essentially containing a list of Minecraft commands. Function files end in `.mcfunction`, and are
55
located in the `data/<namespace>/function` folder. Functions can be called (ran) using the `function` command. (See
6-
[`/function`](/wiki/command/function) for more information)"
6+
[/function](/wiki/command/function) for more information)"
77
version: 1.21.8
88
---
99

1010
# Functions
1111

1212
Functions are files essentially containing a list of Minecraft commands. Function files end in `.mcfunction`, and are
1313
located in the `data/<namespace>/function` folder. Functions can be called (ran) using the `function` command. (See
14-
[`/function`](/wiki/command/function) for more information)
14+
[/function](/wiki/command/function) for more information)
1515

1616
The `function` folder can contain sub-folders for organisation. This changes their reference accordingly - for example,
1717
a function located at `data/<namespace>/function/sub_folder/my_func.mcfunction` would be called using

src/routes/wiki/files/recipes/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Represents a single item, the result of a recipe. An object containing:
173173
| Field | Format | Description |
174174
| ----------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- |
175175
| `id` | A string | The id of the resulting item |
176-
| `components` (optional) | An object | A map of [component](/wiki/concepts/item_components) names to values, which add to or replace the components of the resulting item |
176+
| `components` (optional) | An object | A map of [component](/wiki/concepts/item-components) names to values, which add to or replace the components of the resulting item |
177177

178178
#### Counted result
179179

src/routes/wiki/files/tags/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 1.21.8
88
---
99

1010
# Tags
11-
Registry tags, not to be confused with [entity tags](/wiki/command/tag), are essentially lists of groups such as blocks,
11+
Registry tags, not to be confused with [entity tags](https://minecraft.wiki/w/Commands/tag), are essentially lists of groups such as blocks,
1212
items, entity types, etc. They use JSON format and are located in the `data/<namespace>/tags/<category>` folder.
1313

1414
## Special tags

src/routes/wiki/info/json/+page.svx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "A rough guide to the JSON format used in Minecraft Datapacks (amon
44
---
55

66
# JSON Format
7-
JSON is a data storage type used by Minecraft Datapacks for files such as [predicates](/wiki/files/predicates) and [tags](/wiki/files/tags), as well as in [JSON Text](/wiki/concepts/text). JSON is a way of storing data, usually used in `.json` files but is also seen in `.mcmeta` files too.
7+
JSON is a data storage type used by Minecraft Datapacks for files such as [predicates](/wiki/files/predicates) and [tags](/wiki/files/tags), as well as in [Styled Text](/wiki/concepts/json-text). JSON is a way of storing data, usually used in `.json` files but is also seen in `.mcmeta` files too.
88

99
## How JSON works
1010
JSON stands for **JavaScript Object Notation**. It was originally created as a way of writing objects in Javascript. These days, JSON is used in almost every programming environment, datapacks included.

0 commit comments

Comments
 (0)