Skip to content

Commit 93d31d5

Browse files
committed
Changed minimum Minecraft version to 1.21 and made example give command multi-lined and fixed error with custom_model_data value
1 parent 1548469 commit 93d31d5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ To use the Custom Blocks API simply include it alongside your datapack and ensur
88
### Give Command
99
If your pack includes a custom give command this is what the function should look like with this API:
1010
```mcfunction
11-
give @s dropper[item_name='{"text":"A Name"}',lore=['{"text":"A Lore","italic":false,"color":"red"}'],custom_model_data="0000001",lock="custom_blocks:block",custom_data={block_properties:{Tags:["some_tag_for_this_block"],base_block:{value:"stone"}}}]
11+
give @s dropper[item_name='{"text":"A Name"}',\
12+
lore=['{"text":"A Lore","italic":false,"color":"red"}'],\
13+
custom_model_data=1,\
14+
lock="custom_blocks:block",\
15+
custom_data={\
16+
block_properties:{\
17+
Tags:["some_tag_for_this_block"],\
18+
base_block:{value:"stone"}\
19+
}\
20+
}\
21+
]
1222
```
1323

1424
To set up your custom blocks with this API simple add the custom models to one of the following blocks with "custom_model_data":
@@ -30,7 +40,7 @@ For help on how to set these up see the above give command for an example.
3040

3141
## Minimum Minecraft Version
3242

33-
* 1.20.5
43+
* 1.21
3444

3545
## About This Project
3646

0 commit comments

Comments
 (0)