Skip to content

Commit 51e4d2a

Browse files
committed
Updated Info
1 parent 65ea98c commit 51e4d2a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
<h1 align="center">Custom Blocks API</h1>
22

3-
Allows you to create custom blocks in Minecraft Easier with great performance!
3+
Allows you to create custom blocks in Minecraft easier with great performance!
44

55
## How To Use
66
To use the Custom Blocks API simply include it alongside your datapack and ensure to use the following for your custom blocks.
77

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 @p dropper{display:{Name:'{"text":"A Name","italic":false}',Lore:['{"text":"A Lore","italic":false,"color":"red"}']},CustomModelData:0000001,BlockEntityTag:{Lock:"CustomBlocks:Block"},BlockProperties:{CustomName:'{"text":"Block"}',SetblockCommand:"setblock ~ ~ ~ stone"}}
11+
give @s dropper{display:{Name:'{"text":"A Name","italic":false}',Lore:['{"text":"A Lore","italic":false,"color":"red"}']},CustomModelData:0000001,BlockEntityTag:{Lock:"CustomBlocks:Block"},BlockProperties:{Tags:["some_tag_for_this_block"],BaseBlock:{"value":"stone"}}}
1212
```
1313

1414
To set up your custom blocks with this API simple add the custom models to one of the following blocks with "custom_model_data":
1515

1616
* Dispenser = Your custom block has no rotation.
1717
* Furnace = Your custom block can face in the 4 cardinal directions.
18-
* Dropper = Your custom block can face in all 6 directions. (Requires 3 models)
18+
* Dropper = Your custom block can face in all 6 directions.
1919

2020
<hr>
2121

2222
<b>Make Sure To Include</b> the Lock in the BlockEntityTag and set its value to <b>"CustomBlocks:Block"</b><br>
2323
This tells the API that your block uses this Custom Blocks API system.
2424

25-
Then add your custom block name and an optional lore for the block. Outside the display tag add your custom blocks CustomModelData value, optionally if your block can be placed in all 6 directions make sure your other 2 models for up and down directions have the correct id (Up = Base CustomModelData ID + 1, Down = Base CustomModelData ID + 2).
25+
Then add your custom block name and an optional lore for the block. Outside the display tag add your custom blocks CustomModelData value.
2626

27-
Finally, add any extra information about the block for when it's placed in the "BlockProperties" tag. All the information in this tag will be copied to the Item Display, the "SetblockCommand" in BlockProperties says what you want your base block to be.
27+
Finally, add any extra information about the block for when it's placed in the "BlockProperties" tag. All the information in this tag will be copied to the Item Display, the "BaseBlock" in BlockProperties says what you want your base block to be, the value must be a valid block id.
2828

2929
For help on how to set these up see the above give command for an example.
3030

3131
## Minimum Minecraft Version
3232

33-
* 1.19.4
33+
* 1.20.3
3434

3535
## About This Project
3636

0 commit comments

Comments
 (0)