Skip to content

Commit 51d0aae

Browse files
committed
de-ansi
1 parent b9284d3 commit 51d0aae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • src/routes/wiki/concepts/resource-locations

src/routes/wiki/concepts/resource-locations/+page.svx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ A resource location is a way of referencing a resource in a datapack (or resourc
1010

1111
## Example
1212
This is an example of a resource location for a function:
13-
```ansi
14-
/function my_namespace:some_folder/my_function
13+
```mcfunction
14+
/function my_namespace:some_folder/my_function
1515
```
1616
This resource location would try and access the function `/data/my_namespace/function/some_folder/my_function.mcfunction`. Notice how we don't need to specify the `function` folder in the resource location, as it is implied by the `/function` command.
1717

1818
## Resource locations for tags
1919
To reference a tag (ie the function tag `#minecraft:load`), you can use the `#` symbol before the tag name. For example:
20-
```ansi
21-
/function #minecraft:load
20+
```mcfunction
21+
/function #minecraft:load
2222
```
2323
This resource location would try and access the tag `/data/minecraft/tags/function/load.json`. In this case, all functions in the tag would be ran.
2424

2525
## Default namespace
2626
If the namespace (`my_namespace`, before the colon) is left out, it will default to the `minecraft` namespace.
2727

28-
```ansi
29-
/function some_folder/my_function
28+
```mcfunction
29+
/function some_folder/my_function
3030
```
3131
This resource location would try and access `/data/minecraft/function/some_folder/my_function.mcfunction`.
3232

0 commit comments

Comments
 (0)