Skip to content

Commit 1c8d110

Browse files
authored
Merge pull request #14 from Xterionix/main
Wrote documentation for error codes I added
2 parents f614b42 + a0d1876 commit 1c8d110

File tree

14 files changed

+198
-4
lines changed

14 files changed

+198
-4
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Block - Components - Fast Break Speed
2+
3+
`item_specific_destroy_speeds`'s speed values cannot be higher than block's destroy time
4+
5+
## Example
6+
7+
```json
8+
{
9+
"minecraft:destructible_by_mining": {
10+
"seconds_to_destroy": 3,
11+
"item_specific_speeds": [
12+
{
13+
"destroy_speed": 10 // Invalid as it must be equal or lesser than 3
14+
}
15+
]
16+
}
17+
}
18+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Block - Components - Texture not found
2+
3+
The block texture shortname you have specificed could not be found in the `terrain_texture.json` file.
4+
5+
For example;
6+
7+
```json
8+
{
9+
"minecraft:material_instances": {
10+
"*": {
11+
"render_method": "opaque",
12+
"texture": "diamond_block"
13+
}
14+
}
15+
}
16+
```
17+
18+
```json
19+
{
20+
"resource_pack_name": "rp",
21+
"texture_name": "atlas.terrain",
22+
"padding": 8,
23+
"num_mip_levels": 4,
24+
"texture_data": {
25+
"diamond_block": {
26+
"textures": "textures/blocks/diamond_block"
27+
}
28+
}
29+
}
30+
```
31+
32+
Ensure the other properties such as `padding`, `num_mip_levels` are also found in the `terrain_texture.json`

behaviorpack/block/deprecated.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
# Block - Deprecated
22

3-
TODO
3+
The feature you are attempting to use as been deprecated
4+
5+
## Example
6+
7+
```json
8+
{
9+
"minecraft:block": {
10+
"events": {
11+
"my_event": {}
12+
}
13+
}
14+
}
15+
```

behaviorpack/entity/aliases.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Entity - Aliases
2+
3+
Entity aliases have been removed in [1.21.20+](https://feedback.minecraft.net/hc/en-us/articles/29110275666957-Minecraft-1-21-20-Bedrock)

behaviorpack/entity/permutations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Entity - Permutations
2+
3+
Entity permutations have been removed in [1.21.20+](https://feedback.minecraft.net/hc/en-us/articles/29110275666957-Minecraft-1-21-20-Bedrock)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Unknown property
2+
3+
The property you are referencing could not be found on the entity
4+
5+
## Valid syntax
6+
7+
```json
8+
{
9+
"minecraft:entity": {
10+
"description": {
11+
"properties": {
12+
"minecraft:has_nectar": {
13+
"type": "bool",
14+
"client_sync": true,
15+
"default": "query.had_component_group('has_nectar')"
16+
}
17+
}
18+
},
19+
"events": {
20+
"minecraft:exited_disturbed_hive": {
21+
"set_property": {
22+
"minecraft:has_nectar": false
23+
}
24+
}
25+
}
26+
}
27+
}
28+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Item - Components - Custom Components Min Version
2+
3+
`behaviorpack.item.components.custom_components_min_version`
4+
5+
To use `minecraft:custom_components` you need a `format_version` of `1.21.10` or higher

behaviorpack/item/components/deprecated.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
The format of minecraft items has changed, and the old format is now marked as deprecated in favor of moving and notify people to the new format.
44

5-
65
[Microsoft documentation](https://learn.microsoft.com/en-us/minecraft/creator/reference/content/itemreference/examples/itemdefinition?view=minecraft-bedrock-stable)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Item - Components - Replace Block IDs Don't Match
2+
3+
`behaviorpack.item.components.replace_block_ids_dont_match`
4+
5+
`minecraft:block_placer`'s block value must match the item's identifier when `replace_block_item` is true
6+
7+
```json
8+
{
9+
"format_version": "1.21.50",
10+
"minecraft:item": {
11+
"description": {
12+
"identifier": "test:block" // Needs to be the same as
13+
},
14+
"components": {
15+
"minecraft:block_placer": {
16+
"block": "test:block", // This value
17+
"replace_block_item": true // When this is true
18+
}
19+
}
20+
}
21+
}
22+
```
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
# Item - Texture not found
22

3-
- TODO
3+
The item texture shortname you have specificed could not be found in the `item_texture.json` file.
4+
5+
For example;
6+
7+
```json
8+
{
9+
"minecraft:icon": "apple"
10+
}
11+
```
12+
13+
```json
14+
{
15+
"resource_pack_name": "rp",
16+
"texture_name": "atlas.items",
17+
"texture_data": {
18+
"apple": {
19+
"textures": "textures/items/apple"
20+
}
21+
}
22+
}
23+
```

behaviorpack/item/deprecated.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# Item - Deprecated
2+
3+
The feature you are attempting to use as been deprecated
4+
5+
## Example
6+
7+
```json
8+
{
9+
"minecraft:item": {
10+
"events": {
11+
"my_event": {}
12+
}
13+
}
14+
}
15+
```

behaviorpack/volumes/deprecated.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Volumes - Deprecated
2+
3+
Volume files have been removed in [1.21.20+](https://feedback.minecraft.net/hc/en-us/articles/29110275666957-Minecraft-1-21-20-Bedrock)

minecraft/manifest/invalid.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
# Manifest - Invalid
22

3-
This article require more work
3+
Accepts an array of 3 integers or a semver string
4+
5+
## Examples
6+
7+
```json
8+
{
9+
"version": [
10+
1,
11+
0,
12+
0
13+
]
14+
}
15+
```
16+
17+
```json
18+
{
19+
"version": "2.14.7"
20+
}
21+
```

resourcepack/animation/name.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Animation - Name
2+
3+
`resourcepack.animation.name`
4+
5+
An animation was found whose name doesn't begin with "animation."
6+
7+
## Example
8+
9+
```jsonc
10+
{
11+
"format_version" : "1.8.0",
12+
"animations" : {
13+
"animation.quadruped.walk" : {}, // Valid
14+
"quadruped.walk" : {} // Invalid
15+
}
16+
}
17+
```

0 commit comments

Comments
 (0)