Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
it has been done
Browse files Browse the repository at this point in the history
  • Loading branch information
ANightDazingZoroark committed Apr 22, 2021
1 parent 43e6ca0 commit 6a12649
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 90 deletions.
6 changes: 6 additions & 0 deletions behaviors/entities/apatosaurus.json
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,12 @@
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_baby"
}
]
},
Expand Down
3 changes: 1 addition & 2 deletions behaviors/entities/parasaurolophus.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"reselect_targets": true,
"within_radius": 5,
"must_see": true,
"within_radius": 16,
"entity_types": [
{
"filters": {
Expand Down
121 changes: 86 additions & 35 deletions behaviors/entities/stegosaurus.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,7 @@
"rift:default_targets": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"reselect_targets": true,
"within_radius": 25.0,
"must_see": true,
"entity_types": [
{
"filters": {
Expand All @@ -323,7 +321,7 @@
]
}
},
"rift:attack_forced_attack_entity": {
"rift:attack_forced_attack_entity_adult": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
Expand All @@ -338,7 +336,26 @@
]
},
"minecraft:on_target_escape": {
"event": "rift:no_force_attacked",
"event": "rift:no_force_attacked_adult",
"target": "self"
}
},
"rift:attack_forced_attack_entity_baby": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "isForcedAttacking"
},
"max_dist": 25
}
]
},
"minecraft:on_target_escape": {
"event": "rift:no_force_attacked_baby",
"target": "self"
}
},
Expand Down Expand Up @@ -655,10 +672,47 @@
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_baby"
}
]
},
"event": "rift:on_force_attacked",
"event": "rift:on_force_attacked_adult",
"target": "self"
}
},
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "forcedAttack"
},
{
"test": "has_target",
"subject": "self",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
},
{
"test": "has_component",
"subject": "self",
"value": "minecraft:is_baby"
}
]
},
"event": "rift:on_force_attacked_baby",
"target": "self"
}
}
Expand Down Expand Up @@ -1254,10 +1308,10 @@
]
}
},
"rift:on_force_attacked": {
"rift:on_force_attacked_adult": {
"add": {
"component_groups": [
"rift:attack_forced_attack_entity"
"rift:attack_forced_attack_entity_adult"
]
},
"remove": {
Expand All @@ -1266,34 +1320,31 @@
]
}
},
"rift:no_force_attacked": {
"sequence": [
{
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity"
]
}
},
{
"filters": {
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"rift:default_targets"
]
},
"run_command": {
"command": [
"say test"
]
}
}
]
"rift:no_force_attacked_adult": {
"add": {
"component_groups": [
"rift:default_targets"
]
},
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity_adult"
]
}
},
"rift:on_force_attacked_baby": {
"add": {
"component_groups": [
"rift:attack_forced_attack_entity_baby"
]
}
},
"rift:no_force_attacked_baby": {
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity_baby"
]
}
}
}
}
Expand Down
117 changes: 89 additions & 28 deletions behaviors/entities/triceratops.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@
]
}
},
"rift:attack_forced_attack_entity": {
"rift:attack_forced_attack_entity_adult": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"within_radius": 35,
"entity_types": [
{
"filters": {
Expand All @@ -393,7 +394,27 @@
]
},
"minecraft:on_target_escape": {
"event": "rift:no_force_attacked",
"event": "rift:no_force_attacked_adult",
"target": "self"
}
},
"rift:attack_forced_attack_entity_baby": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"within_radius": 35,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "isForcedAttacking"
},
"max_dist": 35
}
]
},
"minecraft:on_target_escape": {
"event": "rift:no_force_attacked_baby",
"target": "self"
}
},
Expand Down Expand Up @@ -1070,10 +1091,47 @@
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_baby"
}
]
},
"event": "rift:on_force_attacked_adult",
"target": "self"
}
},
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "forcedAttack"
},
{
"test": "has_target",
"subject": "self",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
},
{
"test": "has_component",
"subject": "self",
"value": "minecraft:is_baby"
}
]
},
"event": "rift:on_force_attacked",
"event": "rift:on_force_attacked_baby",
"target": "self"
}
}
Expand Down Expand Up @@ -1463,7 +1521,7 @@
"rift:triceratops_adult_wild",
"rift:triceratops_adult_calm",
"rift:default_targets",
"rift:attack_forced_attack_entity"
"rift:attack_forced_attack_entity_adult"
]
}
},
Expand Down Expand Up @@ -1746,10 +1804,10 @@
]
}
},
"rift:on_force_attacked": {
"rift:on_force_attacked_adult": {
"add": {
"component_groups": [
"rift:attack_forced_attack_entity"
"rift:attack_forced_attack_entity_adult"
]
},
"remove": {
Expand All @@ -1758,28 +1816,31 @@
]
}
},
"rift:no_force_attacked": {
"sequence": [
{
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity"
]
}
},
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"rift:default_targets"
]
}
}
]
"rift:no_force_attacked_adult": {
"add": {
"component_groups": [
"rift:default_targets"
]
},
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity_adult"
]
}
},
"rift:on_force_attacked_baby": {
"add": {
"component_groups": [
"rift:attack_forced_attack_entity_baby"
]
}
},
"rift:no_force_attacked_baby": {
"remove": {
"component_groups": [
"rift:attack_forced_attack_entity_baby"
]
}
}
}
}
Expand Down
Loading

0 comments on commit 6a12649

Please sign in to comment.