Skip to content

Commit ad0162a

Browse files
committed
Update guide example
1 parent d610fe7 commit ad0162a

File tree

17 files changed

+333
-201
lines changed

17 files changed

+333
-201
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"format_version": "1.21.90",
3+
"minecraft:entity": {
4+
"description": {
5+
"identifier": "wiki:ghost",
6+
"spawn_category": "monster",
7+
"is_summonable": true,
8+
"is_spawnable": true
9+
},
10+
"components": {
11+
"minecraft:type_family": {
12+
"family": ["ghost", "monster"]
13+
},
14+
"minecraft:jump.static": {},
15+
"minecraft:can_climb": {},
16+
"minecraft:physics": {},
17+
"minecraft:movement.basic": {},
18+
"minecraft:loot": {
19+
"table": "loot_tables/entities/ghost.json"
20+
},
21+
"minecraft:health": {
22+
"value": 20,
23+
"max": 20
24+
},
25+
"minecraft:collision_box": { "width": 1, "height": 2 },
26+
"minecraft:movement": { "value": 0.2 },
27+
"minecraft:behavior.delayed_attack": {
28+
"priority": 0,
29+
"attack_once": false,
30+
"track_target": true,
31+
"require_complete_path": false,
32+
"random_stop_interval": 0,
33+
"reach_multiplier": 1.5,
34+
"speed_multiplier": 1,
35+
"attack_duration": 0.75,
36+
"hit_delay_pct": 0.5
37+
},
38+
"minecraft:navigation.walk": {
39+
"can_walk": true,
40+
"avoid_sun": true,
41+
"can_pass_doors": true,
42+
"can_open_doors": true
43+
},
44+
"minecraft:attack": {
45+
"damage": 3
46+
},
47+
"minecraft:behavior.random_look_around": {
48+
"priority": 7
49+
},
50+
"minecraft:behavior.hurt_by_target": {
51+
"priority": 1
52+
},
53+
"minecraft:behavior.nearest_attackable_target": {
54+
"priority": 2,
55+
"within_radius": 25,
56+
"reselect_targets": true,
57+
"entity_types": [
58+
{
59+
"filters": {
60+
"any_of": [
61+
{
62+
"test": "is_family",
63+
"subject": "other",
64+
"value": "player"
65+
}
66+
]
67+
},
68+
"max_dist": 35
69+
}
70+
]
71+
},
72+
"minecraft:behavior.random_stroll": {
73+
"priority": 6,
74+
"speed_multiplier": 1
75+
},
76+
"minecraft:behavior.look_at_player": {
77+
"priority": 7,
78+
"look_distance": 6,
79+
"probability": 0.02
80+
}
81+
}
82+
}
83+
}

resources/guide/bp/entities/ghost.se.json

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"format_version": "1.10",
2+
"format_version": "1.21.90",
33
"minecraft:item": {
4-
"description": {
5-
"identifier": "wiki:ectoplasm"
6-
},
7-
"components": {
8-
"minecraft:max_stack_size": 16
9-
}
4+
"description": {
5+
"identifier": "wiki:ectoplasm",
6+
"menu_category": {
7+
"category": "items"
8+
}
9+
},
10+
"components": {
11+
"minecraft:max_stack_size": 16,
12+
"minecraft:icon": "wiki:ectoplasm"
13+
}
1014
}
11-
}
15+
}

resources/guide/bp/loot_tables/entities/ghost.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
]
2121
}
2222
]
23-
}
23+
}

resources/guide/bp/manifest.json

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
{
22
"format_version": 2,
33
"header": {
4-
"name": "pack.name",
5-
"description": "pack.description",
6-
"uuid": "1990a121-3ee2-4c1d-ba25-d8454911c4be",
7-
"version": [
8-
1,
9-
0,
10-
0
11-
],
12-
"min_engine_version": [
13-
1,
14-
16,
15-
0
16-
]
4+
"name": "pack.name",
5+
"description": "pack.description",
6+
"uuid": "1990a121-3ee2-4c1d-ba25-d8454911c4be",
7+
"version": "1.1.0",
8+
"min_engine_version": [1, 21, 90]
9+
},
10+
"metadata": {
11+
"authors": ["Bedrock OSS"],
12+
"url": "https://wiki.bedrock.dev/guide/introduction"
1713
},
1814
"modules": [
19-
{
20-
"type": "data",
21-
"uuid": "9d8e18e1-d179-4d42-ace6-2e1d07c6dea5",
22-
"version": [
23-
1,
24-
0,
25-
0
26-
]
27-
}
15+
{
16+
"type": "data",
17+
"uuid": "9d8e18e1-d179-4d42-ace6-2e1d07c6dea5",
18+
"version": "1.1.0"
19+
}
2820
],
2921
"dependencies": [
30-
{
31-
"uuid": "71a0724b-655e-410b-a8de-7e21ae1735e3",
32-
"version": [
33-
1,
34-
0,
35-
0
36-
]
37-
}
22+
{
23+
"uuid": "71a0724b-655e-410b-a8de-7e21ae1735e3",
24+
"version": "1.1.0"
25+
}
3826
]
39-
}
27+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
[
2-
"en_US"
3-
]
1+
["en_US"]

resources/guide/rp/animation_controllers/ghost.ac.json

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@
55
"states": {
66
"default": {
77
"transitions": [
8-
{
9-
"attacking": "query.is_delayed_attacking"
10-
}
8+
{ "attacking": "query.is_delayed_attacking" }
119
]
1210
},
1311
"attacking": {
1412
"blend_transition": 0.2,
15-
"animations": [
16-
"attack"
17-
],
13+
"animations": ["attack"],
1814
"transitions": [
19-
{
20-
"default": "!query.is_delayed_attacking"
21-
}
15+
{ "default": "!query.is_delayed_attacking" }
2216
]
2317
}
2418
}
@@ -28,27 +22,19 @@
2822
"states": {
2923
"standing": {
3024
"blend_transition": 0.2,
31-
"animations": [
32-
"idle"
33-
],
25+
"animations": ["idle"],
3426
"transitions": [
35-
{
36-
"moving": "query.modified_move_speed > 0.1"
37-
}
27+
{ "moving": "query.modified_move_speed > 0.1" }
3828
]
3929
},
4030
"moving": {
4131
"blend_transition": 0.2,
42-
"animations": [
43-
"move"
44-
],
32+
"animations": ["move"],
4533
"transitions": [
46-
{
47-
"standing": "query.modified_move_speed < 0.1"
48-
}
34+
{ "standing": "query.modified_move_speed < 0.1" }
4935
]
5036
}
5137
}
5238
}
5339
}
54-
}
40+
}

resources/guide/rp/animations/ghost.a.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)