Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4e57043

Browse filesBrowse files
Updated README.md
Added Info about the "FrameModel" tag just added
1 parent f91f992 commit 4e57043
Copy full SHA for 4e57043

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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 @p dropper{display:{Name:'{"text":"A Name","italic":false}',Lore:['{"text":"A Lore","italic":false,"color":"red"}']},CustomModelData:0000001,CustomModelDataVertical:0000002,BlockEntityTag:{Lock:"CustomBlocks:Block"},BlockProperties:{CustomName:'{"text":"Block"}',SetblockCommand:"setblock ~ ~ ~ stone"}}
11+
give @p dropper{display:{Name:'{"text":"A Name","italic":false}',Lore:['{"text":"A Lore","italic":false,"color":"red"}']},CustomModelData:0000001,CustomModelDataVertical:0000002,BlockEntityTag:{Lock:"CustomBlocks:Block"},BlockProperties:{CustomName:'{"text":"Block"}',FrameModel:0000003,SetblockCommand:"setblock ~ ~ ~ stone"}}
1212
```
1313
<!--<p align="center">You first put your placer block (Must be: Furnace, Dropper, or Dispenser as non rotating block) then spcify its properites like the display name, an option lore, the custom model data value, the lock <b>Must be CustomBlocks:Block</b> which tells the pack that its a custom block, then inside "BlockProperties" you add any extra info<br> to give the armor stand and set the base block for when placed in the world.</p>-->
1414

@@ -25,7 +25,7 @@ This tells the API that your block uses this Custom Blocks API system.
2525

2626
Then add your custom block name and an optional lore for the block. Outside the display tag add your custom blocks CustomModelData value and optionaly the CustomModelDataVertical value too, which is the model for when its placed facing up or down.
2727

28-
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 Glow Item Frame, and the "SetblockCommand" in BlockProperties says what you want your base block to be.
28+
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 Glow Item Frame, the "SetblockCommand" in BlockProperties says what you want your base block to be, and "FrameModel" in BlockProperties says what the item should look like when placed in a item frame by the player.
2929

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.