Skip to content

Commit 96ffa1b

Browse files
committed
fix: creating block json example
fixes #193 Signed-off-by: ItsNeil17 <neil@willofsteel.me>
1 parent 8a5ee5d commit 96ffa1b

1 file changed

Lines changed: 37 additions & 46 deletions

File tree

content/docs/en/guides/plugin/creating-block.mdx

Lines changed: 37 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -51,54 +51,45 @@ Create `Server/Item/Items/my_new_block.json`:
5151

5252
```json
5353
{
54-
"TranslationProperties": {
55-
"Name": "items.my_new_block.name",
56-
"Description": "items.my_new_block.description"
57-
},
58-
"Id": "MyNewBlock",
59-
"PlayerAnimationsId": "Block",
60-
"MaxStack": 20,
61-
"BlockType": {
62-
"Material": "Solid",
63-
"DrawType": "Cube",
64-
"Opacity": "Transparent",
65-
"Textures": [
66-
{
67-
"All": "BlockTextures/texture.png",
68-
"Weight": 1
69-
}
70-
]
71-
},
72-
"Icon": "Icons/ItemsGenerated/my_new_block.png"
73-
}
74-
```
75-
76-
## Custom Model Block
54+
"TranslationProperties": {
55+
"Name": "items.my_new_block.name",
56+
"Description": "items.my_new_block.description"
57+
},
58+
"Id": "My_New_Block",
59+
"MaxStack": 100,
60+
"Icon": "Icons/ItemsGenerated/my_new_block.png",
61+
"Categories": [
62+
"Blocks.Rocks"
63+
],
7764

78-
For custom models, use `DrawType: "Model"`:
79-
80-
```json
81-
{
82-
"TranslationProperties": {
83-
"Name": "items.my_new_block.name",
84-
"Description": "items.my_new_block.description"
85-
},
86-
"Id": "MyNewBlock",
87-
"PlayerAnimationsId": "Block",
88-
"MaxStack": 20,
89-
"BlockType": {
90-
"Material": "Solid",
91-
"DrawType": "Model",
92-
"Opacity": "Transparent",
93-
"CustomModel": "Blocks/my_new_model.blockymodel",
94-
"CustomModelTexture": [
95-
{
96-
"Texture": "BlockTextures/texture.png",
97-
"Weight": 1
98-
}
99-
]
65+
"PlayerAnimationsId": "Block",
66+
"Set": "Rock_Stone",
67+
"BlockType": {
68+
"Material": "Solid",
69+
"DrawType": "Cube",
70+
"Group": "Stone",
71+
"Flags": {},
72+
"Gathering": {
73+
"Breaking": {
74+
"GatherType": "Rocks",
75+
"ItemId": "my_new_block"
76+
}
10077
},
101-
"Icon": "Icons/ItemsGenerated/my_new_object.png"
78+
"BlockParticleSetId": "Stone",
79+
"Textures": [
80+
{
81+
"All": "BlockTextures/my_new_block.png"
82+
}
83+
],
84+
"ParticleColor": "#aeae8c",
85+
"BlockSoundSetId": "Stone",
86+
"BlockBreakingDecalId": "Breaking_Decals_Rock"
87+
},
88+
"ResourceTypes": [
89+
{
90+
"Id": "Rock"
91+
}
92+
]
10293
}
10394
```
10495

0 commit comments

Comments
 (0)