Skip to content

Commit 54f1e98

Browse files
junyaliartemisSystem
authored andcommitted
Update giving-new.md for 1.21.X
1 parent 190ac2b commit 54f1e98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

web/docs/patchouli-basics/giving-new.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Below is a brief example:
1616
Replace `yourbooknamespace` with the namespace part of your book ID (see [Getting
1717
Started](/docs/patchouli-basics/getting-started)) for information about your book ID.
1818

19-
```json title="/data/yourbooknamespace/advancements/grant_book_on_first_join.json"
19+
```json title="/data/yourbooknamespace/advancement/grant_book_on_first_join.json"
2020
{
2121
"criteria": {
2222
"tick": {
@@ -31,7 +31,7 @@ Started](/docs/patchouli-basics/getting-started)) for information about your boo
3131
}
3232
```
3333

34-
```json title="/data/yourbooknamespace/loot_tables/grant_book_on_first_join.json"
34+
```json title="/data/yourbooknamespace/loot_table/grant_book_on_first_join.json"
3535
{
3636
"type": "advancement_reward",
3737
"pools": [
@@ -43,8 +43,10 @@ Started](/docs/patchouli-basics/getting-started)) for information about your boo
4343
"name": "patchouli:guide_book",
4444
"functions": [
4545
{
46-
"function": "set_nbt",
47-
"tag": "{\"patchouli:book\": \"YOURBOOKIDHERE\"}"
46+
"function": "minecraft:set_components",
47+
"components": {
48+
"patchouli:book": "YOURBOOKIDHERE"
49+
}
4850
}
4951
]
5052
}

0 commit comments

Comments
 (0)