Skip to content

Commit d1ae42c

Browse files
authored
Merge branch 'main' into mc-version-1_21_5
2 parents 2e12999 + 70dbae3 commit d1ae42c

17 files changed

Lines changed: 963 additions & 1356 deletions

File tree

bun.lock

Lines changed: 670 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bun.lockb

-132 KB
Binary file not shown.

package-lock.json

Lines changed: 106 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"remove-markdown": "^0.6.0",
2323
"string-strip-html": "^13.4.8",
2424
"super-sitemap": "^1.0.3",
25-
"svelte": "^5.19.1",
25+
"svelte": "^5.19.3",
2626
"svelte-check": "^4.1.4",
2727
"tslib": "^2.8.1",
2828
"typescript": "^5.7.3",
@@ -31,20 +31,20 @@
3131
"type": "module",
3232
"dependencies": {
3333
"@formkit/auto-animate": "^0.8.2",
34-
"@iconify-json/tabler": "^1.2.14",
34+
"@iconify-json/tabler": "^1.2.15",
3535
"@sveltejs/adapter-auto": "^4.0.0",
3636
"@tailwindcss/typography": "^0.5.16",
37-
"@tailwindcss/vite": "^4.0.0-beta.10",
37+
"@tailwindcss/vite": "^4.0.0",
3838
"flexsearch": "^0.7.43",
3939
"gray-matter": "^4.0.3",
4040
"nbtify": "^2.2.0",
4141
"rehype-autolink-headings": "^7.1.0",
4242
"rehype-slug": "^6.0.0",
4343
"remark-admonitions": "^1.2.1",
4444
"remark-code-titles": "^0.1.2",
45-
"shiki": "^2.0.3",
45+
"shiki": "^2.1.0",
4646
"sk-seo": "^0.5.3",
47-
"tailwindcss": "^4.0.0-beta.10",
47+
"tailwindcss": "^4.0.0",
4848
"unplugin-icons": "^22.0.0"
4949
}
5050
}

src/lib/sidebar/tabs/WikiPages.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<SidebarCategory name="Datapack Files" icon={IconZip}>
5757
<SidebarPage label="Functions" icon={IconPennant} page="/wiki/files/functions" />
5858
<SidebarPage label="Predicates" icon={IconPredicate} page="/wiki/files/predicates" />
59-
<SidebarPlaceholder label="Advancements" icon={IconStar} />
59+
<SidebarPage label="Advancements" icon={IconStar} page="/wiki/files/advancements" />
6060
<SidebarPlaceholder label="Loot Tables" icon={IconChest} />
6161
<SidebarPage label="Recipes" icon={IconGrid} page="/wiki/files/recipes" />
6262
<SidebarPage label="Tags" icon={IconFilters} page="/wiki/files/tags" />

src/routes/contribute/formatting/+page.svx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {Version, TreeRoot, TreeEntry, Highlight} from '$lib/reusables';
99

1010
# Page Formatting
1111

12-
**Last Updated:** 12-13-2024
12+
**Last Updated:** 1-31-2025
1313

1414
This section goes over how we format wiki pages. We like to be consistent, so please read through this section carefully
1515
and use these features to your advantage:
@@ -34,9 +34,9 @@ their first language!
3434

3535
When writing, **try** to follow these guidelines:
3636

37-
1. Use the active voice. For example, instead of `The player can use the command`, write `Players can use the command`.
37+
1. Use the active voice. For example, instead of `The pig is teleported by the command`, write `The command teleported the pig`.
3838
2. Don't use unnecessary adverbs or adjectives
39-
3. Don't use the words: _obvious, simple, basic, easy, actual, just, clear,_ and _however_
39+
3. Try not to use the words: _obvious, simple, basic, easy, actual, just, clear,_ and _however_
4040
4. Explicitly reference what you are explaining
4141
5. Use `'s` for indicating possession
4242
6. Use the [Oxford comma](https://simple.wikipedia.org/wiki/Serial_comma)
@@ -126,4 +126,4 @@ Highlighting is a way to highlight specific text. It isn't commonly used, but ex
126126
## Standardized Elements
127127

128128
The wiki uses a few elements that are standardized across the entire wiki. Right now this only consists
129-
of command syntax. You can find the command syntax we use in the [commands page](/wiki/concepts/about).
129+
of command syntax. You can find the command syntax we use in the [commands page](/wiki/command/all).

src/routes/contribute/git-practices/+page.svx

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,34 @@ description: "This page is an introduction to our Git practices a page for the w
77

88
**Last Updated:** 12-13-2024
99

10-
This page is an introduction to how we use Git in the wiki repository. In order to keep the wiki consistent and
10+
This page is an introduction to how we use Git in the [wiki repository](https://github.com/Datapack-Hub/wiki). In order to keep the wiki consistent and
1111
reputable, we have a few rules that we follow.
1212

1313
Git provides a lot of features that are great for collaboration, and we try to use them as much as possible.
1414

15-
## Branching and PRs
15+
:::info
16+
This guide assumes you already have experience using Git before.
17+
:::
1618

17-
Branches are a great way to work on the wiki without introducing unfinished pages, changes, etc. Branches allow you to
18-
work on a page without affecting the main (production) branch and allow us to review your changes before they are
19-
merged.
19+
## Forking and PRs
2020

21-
### Branch Naming
21+
Forks are a great way to work on the wiki without introducing unfinished pages, changes, etc. to main.
22+
You can click the ["Fork"](https://github.com/Datapack-Hub/wiki/fork) button in the top right corner of the repository to
23+
create a fork of the repository. This will create a complete copy of the repository that you can work on.
2224

23-
We use `kebab-case` for branch names meaning the branch name should be all lowercase with hyphens to
24-
separate words. For example, if you are working on a page called "Adding New Features", the branch name should be
25-
`adding-new-features`.
26-
27-
### Branch Workflow
28-
29-
When you are ready to merge your changes into the main branch, create a pull request (PR) and assign it to a
30-
reviewer. The reviewer will review your changes and either approve or request changes. Once approved, the changes will
31-
be merged into the main branch.
32-
33-
We recommend deleting the branch after it has been merged into the main branch. This will keep the repository clean and
34-
reduce confusion. An exception to this is if you are working on a very large feature that will take a while to merge, or
35-
if you plan to merge multiple features from one branch.
25+
Once you have forked the repository, you can clone it to your local machine.
3626

37-
## Forking
27+
When it comes time to merge your changes, you can create a pull request, and a wiki contributor will review your contribution.
3828

39-
Forking is another way to work on the wiki without affecting the main branch. This is useful if you are a first-time
40-
contributor and don't have write access. You can click the "Fork" button in the top right corner of the repository to
41-
create a fork of the repository. This will create a copy of the repository that you can work on.
29+
## Branches
4230

43-
Once you have forked the repository, you can clone it to your local machine.
31+
Branches are useful additions to help separate features in your fork. We use `kebab-case` for branch names meaning the branch
32+
name should be all lowercase with hyphens to separate words. For example, if you are working on a page called "Adding New Features",
33+
the branch name should be `adding-new-features`.
4434

45-
When it comes time to merge your changes, you can create a pull request in the same way as you would with a branch, just
46-
replace the branch name with the name of your fork's branch name.
35+
We do not recommend you use branches for the main repository, even if you have permissions to.
36+
Branches in the repository are mainly for upcoming Minecraft versions or huge upcoming reworks, if you believe you
37+
have a reason to add a branch to the main repository, let a wiki admin know.
4738

4839
## Commit Messages
4940

@@ -63,7 +54,7 @@ Whenever you start working on a new branch or features, pull the latest changes
6354
will ensure that you have the most up-to-date changes.
6455

6556
You will likely run into an issue with the `search.json` file, which is used to generate the search index. This file is
66-
generated automatically and should not be manually edited. A solution to this is to remove the `search.json` file and
57+
generated automatically and should not be manually edited. A solution to this is to remove the `search.json` file and optionally
6758
run the search index generation script. This will regenerate the file and you can commit it.
6859

6960
```
@@ -76,8 +67,6 @@ bun ./gen_search_indexes.js
7667

7768
## Other Important Information
7869

79-
- Always use the `main` branch as the base branch for your PRs. This will reduce the chances of conflicts and ensure
80-
that your changes are merged correctly.
8170
- Make a description of your changes in your PR.
8271
- Reviewers: Proofread changes before approving them.
8372
- Reviewers: It's not required, but it's recommended the changes follow American English for consistency sake.

src/routes/credits/+page.svx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ These people have written or edited pages for the wiki or guides.
3030

3131
- Diamond
3232
- HeDeAn
33+
- SuperAnt_
34+
- SwitchedCube
3335

3436
:::note
3537
If you're contributing, feel free to add your username to this page! You can contribute by clicking the Edit

src/routes/guide/getting-started/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ always ran as an entity (or as the Server) and at a position
8282
:::
8383

8484
Let's get started by writing one simple function. In
85-
traditional programming fashion, let's make a function to show you "Hello World" when it is ran.
85+
traditional programming fashion, let's make a function which sends "Hello World" to chat.
8686

8787
1. Create a folder in your datapack called `data`.
8888
2. In the `data` folder, create a new folder. This folder is your **namespace** - it will contain all the data specific
@@ -97,7 +97,7 @@ You should now have a folder structure that looks something like this:
9797
```
9898

9999
:::warning
100-
In versions earlier than 1.21, the function folder should be called functions, due to some pesky name changes
100+
In versions earlier than 1.21, the function folder should be called `functions`, due to some pesky name changes
101101
Mojang introduced in a recent update.
102102
:::
103103

src/routes/guide/misc/raycasts/+page.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ call the raycast function again _(recursion)_.
6565

6666
```mcfunction:raycast.mcfunction
6767
# Remove one from the raycast limit
68-
scoreboard players remove .raycastlimit raycast 1
68+
scoreboard players remove .raycastLimit raycast 1
6969

7070
# Optional: display a particle
7171
particle minecraft:flame
7272

7373
# Check if the raycast has hit an entity's hitbox
74-
execute positioned ~-.99 ~-.99 ~-.99 as @e[dx=0,tag=!raycaster] positioned ~.99 ~.99 ~.99 as @s[dx=0] run return run <namespace>:hit
74+
execute positioned ~-.99 ~-.99 ~-.99 as @e[dx=0,tag=!raycaster] positioned ~.99 ~.99 ~.99 as @s[dx=0] run return run function <namespace>:hit
7575

7676
# If the raycast has not hit a wall, and the limit has not been reached, move the raycast forward and run the function again
7777
execute if block ~ ~ ~ #minecraft:replaceable if score .raycastLimit raycast matches 1.. positioned ^ ^ ^0.1 run function <namespace>:raycast

0 commit comments

Comments
 (0)