Skip to content

Commit

Permalink
Update to v1.21.20.22
Browse files Browse the repository at this point in the history
  • Loading branch information
ExDrill committed Jul 11, 2024
1 parent 58eee77 commit 423ce71
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/minecraftBedrock/fileDefinition/gameTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// @minecraft/server
{
"moduleName": "@minecraft/server",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server@1.14.0-beta.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server@1.14.0-beta.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand All @@ -34,7 +34,7 @@
},
{
"moduleName": "@minecraft/server",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server@1.13.0-rc.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server@1.13.0-rc.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand Down Expand Up @@ -234,7 +234,7 @@
// @minecraft/server-gametest
{
"moduleName": "@minecraft/server-gametest",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-gametest@1.0.0-beta.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-gametest@1.0.0-beta.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand All @@ -261,7 +261,7 @@
// @minecraft/server-ui
{
"moduleName": "@minecraft/server-ui",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-ui@1.3.0-beta.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-ui@1.3.0-beta.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand All @@ -275,7 +275,7 @@
},
{
"moduleName": "@minecraft/server-ui",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-ui@1.2.0-rc.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-ui@1.2.0-rc.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand Down Expand Up @@ -327,7 +327,7 @@
// @server-admin
{
"moduleName": "@minecraft/server-admin",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-admin@1.0.0-beta.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-admin@1.0.0-beta.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand Down Expand Up @@ -369,7 +369,7 @@
// @server-editor
{
"moduleName": "@minecraft/server-editor",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-editor@0.1.0-beta.1.21.20-preview.21/index.d.ts",
"definition": "https://cdn.jsdelivr.net/npm/@minecraft/server-editor@0.1.0-beta.1.21.20-preview.22/index.d.ts",
"requires": {
"dependencies": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
"on_ground",
"on_hot_block", // v1.19.60+
"on_ladder",
"owner_distance", // v1.21.20
"random_chance",
"rider_count",
"surface_mob",
Expand Down Expand Up @@ -1484,6 +1485,23 @@
}
}
},
{
"if": {
"properties": {
"test": {
"const": "owner_distance"
}
}
},
"then": {
"properties": {
"value": {
"description": "Tests the distance between the subject and its owner. Returns false if there is no owner.",
"type": "number"
}
}
}
},
{
"if": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,14 @@
"minecraft:behavior.fire_at_target": {
"$ref": "../../v1.20.60/behaviors/behavior.fire_at_target.json"
},
"minecraft:behavior.move_away_from_target": {
"$ref": "../../v1.20.60/behaviors/behavior.move_away_from_target.json"
"minecraft:behavior.move_around_target": {
"$ref": "../../v1.20.60/behaviors/behavior.move_around_target.json"
},
"minecraft:behavior.jump_around_target": {
"$ref": "../../v1.20.60/behaviors/behavior.jump_around_target.json"
},
"minecraft:behavior.teleport_to_owner": {
"$ref": "../../v.1.21.20/behaviors/behavior.teleport_to_owner.json"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Move Around Target",
"type": "object",
"additionalProperties": false,
"properties": {
"priority": { "$ref": "../../general/v1.16.0/behaviorPriority.json" },
"destination_position_range": {
"title": "Destination Position Range",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "number",
"default": 4.0
},
{
"type": "number",
"default": 8.0
}
]
},
"destination_pos_spread_degrees": {
"title": "Destination Pos Spread Degrees",
"$ref": "../../../general/degree.json",
"default": 90
},
"movement_speed": {
"title": "Movement Speed",
"type": "number"
},
"filters": {
"title": "Filters",
"$ref": "../../general/v1.16.0/filter.json"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Teleport to Owner",
"description": "Allows an entity to teleport to its owner.",
"type": "object",
"additionalProperties": false,
"properties": {
"priority": {
"$ref": "../../general/v1.16.0/behaviorPriority.json"
},
"filters": {
"title": "Filters",
"description": "Conditions to be satisfied for the entity to teleport to its owner.",
"$ref": "../../general/v1.16.0/filter.json"
},
"cooldown": {
"title": "Cooldown",
"description": "The time in seconds that must pass for the entity to be able to try to teleport again.",
"type": "number",
"minimum": 0.0,
"default": 1.0
}
}
}

0 comments on commit 423ce71

Please sign in to comment.