Skip to content

Commit b79f694

Browse files
committed
Updating filters and behaviors
1 parent 96d0654 commit b79f694

25 files changed

+496
-16
lines changed

source/behavior/entities/filters/filters.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
}
8181
},
8282
"allOf": [
83+
{ "if": { "properties": { "test": { "const": "actor_health" } } }, "then": { "$ref": "./filters/actor_health.json" } },
84+
{ "if": { "properties": { "test": { "const": "all_slots_empty" } } }, "then": { "$ref": "./filters/all_slots_empty.json" } },
85+
{ "if": { "properties": { "test": { "const": "any_slots_empty" } } }, "then": { "$ref": "./filters/any_slots_empty.json" } },
8386
{ "if": { "properties": { "test": { "const": "bool_property" } } }, "then": { "$ref": "./filters/bool_property.json" } },
8487
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "./filters/clock_time.json" } },
8588
{ "if": { "properties": { "test": { "const": "distance_to_nearest_player" } } }, "then": { "$ref": "./filters/distance_to_nearest_player.json" } },
@@ -106,6 +109,7 @@
106109
{ "if": { "properties": { "test": { "const": "in_contact_with_water" } } }, "then": { "$ref": "./filters/in_contact_with_water.json" } },
107110
{ "if": { "properties": { "test": { "const": "in_lava" } } }, "then": { "$ref": "./filters/in_lava.json" } },
108111
{ "if": { "properties": { "test": { "const": "in_nether" } } }, "then": { "$ref": "./filters/in_nether.json" } },
112+
{ "if": { "properties": { "test": { "const": "in_overworld" } } }, "then": { "$ref": "./filters/in_overworld.json" } },
109113
{ "if": { "properties": { "test": { "const": "in_water_or_rain" } } }, "then": { "$ref": "./filters/in_water_or_rain.json" } },
110114
{ "if": { "properties": { "test": { "const": "in_water" } } }, "then": { "$ref": "./filters/in_water.json" } },
111115
{ "if": { "properties": { "test": { "const": "inactivity_timer" } } }, "then": { "$ref": "./filters/inactivity_timer.json" } },
@@ -134,6 +138,7 @@
134138
{ "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "./filters/is_riding.json" } },
135139
{ "if": { "properties": { "test": { "const": "is_skin_id" } } }, "then": { "$ref": "./filters/is_skin_id.json" } },
136140
{ "if": { "properties": { "test": { "const": "is_sleeping" } } }, "then": { "$ref": "./filters/is_sleeping.json" } },
141+
{ "if": { "properties": { "test": { "const": "is_sneak_held" } } }, "then": { "$ref": "./filters/is_sneak_held.json" } },
137142
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "./filters/is_sneaking.json" } },
138143
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "./filters/is_snow_covered.json" } },
139144
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "./filters/is_target.json" } },
@@ -152,6 +157,8 @@
152157
{ "if": { "properties": { "test": { "const": "random_chance" } } }, "then": { "$ref": "./filters/random_chance.json" } },
153158
{ "if": { "properties": { "test": { "const": "rider_count" } } }, "then": { "$ref": "./filters/rider_count.json" } },
154159
{ "if": { "properties": { "test": { "const": "surface_mob" } } }, "then": { "$ref": "./filters/surface_mob.json" } },
160+
{ "if": { "properties": { "test": { "const": "taking_fire_damage" } } }, "then": { "$ref": "./filters/taking_fire_damage.json" } },
161+
{ "if": { "properties": { "test": { "const": "target_distance" } } }, "then": { "$ref": "./filters/target_distance.json" } },
155162
{ "if": { "properties": { "test": { "const": "trusts" } } }, "then": { "$ref": "./filters/trusts.json" } },
156163
{ "if": { "properties": { "test": { "const": "weather_at_position" } } }, "then": { "$ref": "./filters/weather_at_position.json" } },
157164
{ "if": { "properties": { "test": { "const": "weather" } } }, "then": { "$ref": "./filters/weather.json" } },
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.actor_health",
3+
"type": "object",
4+
"title": "Actor Health",
5+
"description": "Tests the health of the subject.",
6+
"required": ["value"],
7+
"examples": [{ "test": "actor_health", "value": 10 }],
8+
"properties": {
9+
"test": {
10+
"type": "string",
11+
"title": "Test Property",
12+
"description": "Tests the health of the subject."
13+
},
14+
"operator": {
15+
"$ref": "./types/operator.json",
16+
"description": "(Optional) The comparison to apply with `value`.",
17+
"default": "equals",
18+
"title": "Operator"
19+
},
20+
"subject": {
21+
"$ref": "./types/subject.json",
22+
"description": "(Optional) The subject of this filter test.",
23+
"default": "self",
24+
"title": "Subject"
25+
},
26+
"value": {
27+
"type": "integer",
28+
"description": "(Required) A integer value.",
29+
"title": "Value",
30+
"examples": [0, 1]
31+
}
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.all_slots_empty",
3+
"type": "object",
4+
"title": "All Slots Empty",
5+
"description": "Returns true when the designated equipment location for the subject entity is completely empty.",
6+
"required": ["value"],
7+
"examples": [{ "test": "all_slots_empty", "subject": "self", "operator": "equals", "value": "any" }, { "test": "all_slots_empty" }],
8+
"properties": {
9+
"test": {
10+
"type": "string",
11+
"title": "Test Property",
12+
"description": "Returns true when the designated equipment location for the subject entity is completely empty."
13+
},
14+
"operator": {
15+
"$ref": "./types/operator.json",
16+
"description": "(Optional) The comparison to apply with `value`.",
17+
"default": "equals",
18+
"title": "Operator"
19+
},
20+
"subject": {
21+
"$ref": "./types/subject.json",
22+
"description": "(Optional) The subject of this filter test.",
23+
"default": "self",
24+
"title": "Subject"
25+
},
26+
"value": {
27+
"title": "Value",
28+
"description": "The equipment location to test.",
29+
"type": "integer",
30+
"$ref": "./types/equipment_location.json"
31+
}
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.any_slots_empty",
3+
"type": "object",
4+
"title": "Any Slots Empty",
5+
"description": "Returns true when the designated equipment location for the subject entity has any empty slot.",
6+
"required": ["value"],
7+
"examples": [{ "test": "any_slots_empty", "subject": "self", "operator": "equals", "value": "any" }, { "test": "Any_slots_empty" }],
8+
"properties": {
9+
"test": {
10+
"type": "string",
11+
"title": "Test Property",
12+
"description": "Returns true when the designated equipment location for the subject entity has any empty slot."
13+
},
14+
"operator": {
15+
"$ref": "./types/operator.json",
16+
"description": "(Optional) The comparison to apply with `value`.",
17+
"default": "equals",
18+
"title": "Operator"
19+
},
20+
"subject": {
21+
"$ref": "./types/subject.json",
22+
"description": "(Optional) The subject of this filter test.",
23+
"default": "self",
24+
"title": "Subject"
25+
},
26+
"value": {
27+
"title": "Value",
28+
"description": "The equipment location to test.",
29+
"type": "integer",
30+
"$ref": "./types/equipment_location.json"
31+
}
32+
}
33+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.in_overworld",
3+
"type": "object",
4+
"title": "In Overworld",
5+
"description": "Returns true when the subject entity is in Overworld.",
6+
"properties": {
7+
"test": {
8+
"type": "string",
9+
"title": "Test",
10+
"description": "The test property."
11+
},
12+
"operator": {
13+
"$ref": "./types/operator.json"
14+
},
15+
"subject": {
16+
"$ref": "./types/subject.json"
17+
},
18+
"value": {
19+
"description": "True or false.",
20+
"type": "boolean",
21+
"default": true,
22+
"title": "Value"
23+
}
24+
},
25+
"examples": [
26+
{
27+
"test": "in_overworld",
28+
"value": true
29+
},
30+
{ "test": "in_overworld" }
31+
]
32+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.is_sneak_held",
3+
"type": "object",
4+
"title": "Is Sneak Held",
5+
"description": "Returns true if the subject entity has the sneak input held.",
6+
"properties": {
7+
"test": {
8+
"type": "string",
9+
"title": "Test Property",
10+
"description": "The test property."
11+
},
12+
"operator": {
13+
"$ref": "./types/operator.json"
14+
},
15+
"subject": {
16+
"$ref": "./types/subject.json"
17+
},
18+
"value": {
19+
"title": "Value",
20+
"description": "True or false.",
21+
"type": "boolean",
22+
"default": true
23+
}
24+
},
25+
"examples": [
26+
{
27+
"test": "is_sneak_held",
28+
"value": true
29+
}
30+
]
31+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.taking_fire_damage",
3+
"type": "object",
4+
"title": "Taking Fire Damage",
5+
"description": "Tests if the subject is taking fire damage. Requires the damage_sensor component",
6+
"properties": {
7+
"test": {
8+
"type": "string",
9+
"title": "Test",
10+
"description": "Tests if the subject is taking fire damage. Requires the damage_sensor component"
11+
},
12+
"operator": {
13+
"$ref": "./types/operator.json"
14+
},
15+
"subject": {
16+
"$ref": "./types/subject.json"
17+
},
18+
"value": {
19+
"description": "True or false.",
20+
"type": "boolean",
21+
"default": true,
22+
"title": "Value"
23+
}
24+
},
25+
"examples": [
26+
{
27+
"test": "taking_fire_damage",
28+
"value": true
29+
},
30+
{ "test": "taking_fire_damage" }
31+
]
32+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.target_distance",
3+
"type": "object",
4+
"title": "Target Distance",
5+
"description": "Tests the distance between the calling entity and its target.",
6+
"required": ["value"],
7+
"properties": {
8+
"test": {
9+
"type": "string",
10+
"title": "Test",
11+
"description": "The test property."
12+
},
13+
"operator": {
14+
"$ref": "./types/operator.json"
15+
},
16+
"subject": {
17+
"$ref": "./types/subject.json"
18+
},
19+
"value": {
20+
"description": "(Required) A floating point value.",
21+
"type": "number",
22+
"default": true,
23+
"title": "Value"
24+
}
25+
}
26+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$id": "blockception.minecraft.behavior.entities.filters.equipment_location",
3+
"title": "Equipment Location",
4+
"type": "string",
5+
"description": "The equipment location to test.",
6+
"default": "self",
7+
"enum": ["any", "armor", "feet", "hand", "head", "inventory", "leg", "torse"]
8+
}

source/behavior/entities/format/behaviors/delayed_attack.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
"default": "N/A",
2626
"description": "Defines the entity types this entity will attack."
2727
},
28+
"can_spread_on_fire": {
29+
"title": "Can Spread On Fire",
30+
"type": "boolean",
31+
"default": false,
32+
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hi"
33+
},
2834
"cooldown_time": {
2935
"title": "Cooldown Time",
3036
"type": "number",

0 commit comments

Comments
 (0)