Add minecraft bedrock server

This commit is contained in:
2024-09-09 13:28:08 -03:00
parent 54e5f3000c
commit 236b4b2960
4640 changed files with 688839 additions and 66 deletions

View File

@ -0,0 +1,261 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:allay",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"pickup_item_delay": {
"minecraft:timer": {
"looping": false,
"time": 3,
"time_down_event": {
"event": "pickup_item_delay_complete"
}
}
},
"pickup_item": {
"minecraft:behavior.pickup_items": {
"priority": 2,
"max_dist": 64,
"search_height": 32,
"goal_radius": 2.2,
"speed_multiplier": 6,
"pickup_based_on_chance": false,
"can_pickup_any_item": false,
"can_pickup_to_hand_or_equipment": false,
"pickup_same_items_as_in_hand": true
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "allay", "mob" ]
},
"minecraft:collision_box": {
"width": 0.35,
"height": 0.6
},
"minecraft:balloonable": {
"mass": 0.5
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:nameable": {
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:health": {
"value": 20
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_owner",
"subject": "other",
"value": true
}
]
}
},
"deals_damage": false
}
]
},
"minecraft:movement": {
"value": 0.1
},
"minecraft:flying_speed": {
"value": 0.1
},
"minecraft:navigation.hover": {
"can_path_over_water": true,
"can_sink": false,
"can_pass_doors": false,
"can_path_from_air": true,
"avoid_water": true,
"avoid_damage_blocks": true,
"avoid_sun": false
},
"minecraft:movement.hover": {},
"minecraft:follow_range": {
"value": 1024
},
"minecraft:ambient_sound_interval": {
"value": 5.0,
"range": 5.0,
"event_name": "ambient",
"event_names": [
{
"event_name": "ambient.tame",
"condition": "query.is_using_item"
},
{
"event_name": "ambient",
"condition": "!query.is_using_item"
}
]
},
"minecraft:jump.static": {},
"minecraft:can_fly": {},
"minecraft:physics": {
"has_gravity": false
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:vibration_listener": {},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:inventory": {
"inventory_size": 1
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
}
},
"give_item": true,
"take_item": true,
"interact_text": "action.interact.allay"
}
]
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 2.0
},
"minecraft:behavior.go_and_give_items_to_noteblock": {
"priority": 3,
"run_speed": 8,
"throw_sound": "item_thrown",
"on_item_throw": [
{
"event": "pickup_item_delay",
"target": "self"
}
]
},
"minecraft:behavior.go_and_give_items_to_owner": {
"priority": 4,
"run_speed": 8,
"throw_sound": "item_thrown",
"on_item_throw": [
{
"event": "pickup_item_delay",
"target": "self"
}
]
},
"minecraft:behavior.stay_near_noteblock": {
"priority": 5,
"speed": 8,
"start_distance": 16,
"stop_distance": 4
},
"minecraft:behavior.follow_owner": {
"priority": 6,
"speed_multiplier": 8,
"start_distance": 16,
"stop_distance": 4,
"can_teleport": false,
"ignore_vibration": false
},
"minecraft:behavior.float": {
"priority": 7
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"target_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 8
},
"minecraft:behavior.random_hover": {
"priority": 9,
"xz_dist": 8,
"y_dist": 8,
"y_offset": -1,
"interval": 1,
"hover_height": [ 1, 4 ]
}
},
"events": {
"pickup_item_delay": {
"remove": {
"component_groups": [
"pickup_item"
]
},
"add": {
"component_groups": [
"pickup_item_delay"
]
}
},
"pickup_item_delay_complete": {
"remove": {
"component_groups": [
"pickup_item_delay"
]
},
"add": {
"component_groups": [
"pickup_item"
]
}
},
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"pickup_item"
]
}
}
}
}
}

View File

@ -0,0 +1,448 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:axolotl",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"attack_cooldown": {
"minecraft:attack_cooldown": {
"attack_cooldown_time": 120.0,
"attack_cooldown_complete_event": {
"event": "attack_cooldown_complete_event",
"target": "self"
}
}
},
"axolotl_lucy": {
"minecraft:variant": { "value": 0 }
},
"axolotl_cyan": {
"minecraft:variant": { "value": 1 }
},
"axolotl_gold": {
"minecraft:variant": { "value": 2 }
},
"axolotl_wild": {
"minecraft:variant": { "value": 3 }
},
"axolotl_blue": {
"minecraft:variant": { "value": 4 }
},
"axolotl_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": "tropical_fish_bucket",
"transform_to_item": "water_bucket:0",
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1.1
}
},
"axolotl_adult": {
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:behavior.breed": {
"priority": 1,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"require_tame": false,
"breed_items": "tropical_fish_bucket",
"transform_to_item": "water_bucket:0",
"breeds_with": {
"mate_type": "minecraft:axolotl",
"baby_type": "minecraft:axolotl",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"mutation_factor": {
"variant": 0.00083 // roughly 1/1200
}
}
},
"axolotl_in_water": {
"minecraft:environment_sensor": {
"triggers": [
{
"filters": { "test": "in_water", "operator": "!=", "value": true },
"event": "start_drying_out"
}
]
}
},
"axolotl_dried": {
"minecraft:damage_over_time": {
"damage_per_hurt": 1,
"time_between_hurt": 0
}
},
"axolotl_on_land": {
"minecraft:drying_out_timer": {
"total_time": 300,
"water_bottle_refill_time": 90,
"dried_out_event": {
"event": "dried_out"
},
"stopped_drying_out_event": {
"event": "stop_drying_out"
},
"recover_after_dried_out_event": {
"event": "recover_after_dried_out"
}
}
},
"axolotl_on_land_in_rain": {
"minecraft:environment_sensor": {
"triggers": [
{
"filters": { "test": "in_water_or_rain", "operator": "!=", "value": true },
"event": "start_drying_out"
},
{
"filters": { "test": "in_water", "operator": "==", "value": true },
"event": "enter_water"
}
]
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "axolotl", "mob" ]
},
"minecraft:collision_box": {
"width": 0.75,
"height": 0.42
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_water": true,
"breathes_air": true,
"generates_bubbles": false
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 14
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "lightning",
"deals_damage": true,
"damage_multiplier": 2000.0
}
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:navigation.generic": {
"is_amphibious": true,
"can_path_over_water": true,
"can_swim": true,
"can_walk": true,
"can_sink": false,
"avoid_damage_blocks": true
},
"minecraft:movement.amphibious": {
"max_turn": 15.0
},
"minecraft:movement": {
"value": 0.1
},
"minecraft:underwater_movement": {
"value": 0.2
},
"minecraft:jump.static": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:attack": {
"damage": 2
},
"minecraft:combat_regeneration": {},
"minecraft:behavior.play_dead": {
"priority": 0,
"duration": 10,
"force_below_health": 8,
"random_start_chance": 0.33,
"random_damage_range": [ 0, 2 ],
"damage_sources": [
"contact",
"entity_attack",
"entity_explosion",
"magic",
"projectile",
"thorns",
"wither"
],
"apply_regeneration": true,
"filters": { "test": "in_water", "operator": "==", "value": true }
},
"minecraft:behavior.tempt": {
"priority": 2,
"speed_multiplier": 1.1,
"can_tempt_vertically": true,
"items": [
"tropical_fish_bucket"
]
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"must_see": true,
"reselect_targets": true,
"within_radius": 20.0,
"must_see_forget_duration": 17.0,
"entity_types": [
{
"filters": {
"all_of": [
{ "test": "in_water", "subject": "other", "value": true },
{ "test": "has_component", "subject": "self", "operator": "!=", "value": "minecraft:attack_cooldown" },
{
"any_of": [
{ "test": "is_family", "subject": "other", "value": "squid" },
{ "test": "is_family", "subject": "other", "value": "fish" },
{ "test": "is_family", "subject": "other", "value": "tadpole" }
]
}
]
},
"max_dist": 8
},
{
"filters": {
"all_of": [
{ "test": "in_water", "subject": "other", "value": true },
{
"any_of": [
{ "test": "is_family", "subject": "other", "value": "drowned" },
{ "test": "is_family", "subject": "other", "value": "guardian" },
{ "test": "is_family", "subject": "other", "value": "guardian_elder" }
]
}
]
},
"max_dist": 8
}
]
},
"minecraft:behavior.melee_attack": {
"priority": 4,
"on_kill": {
"event": "killed_enemy_event",
"target": "self"
}
},
"minecraft:behavior.move_to_water": {
"priority": 6,
"search_range": 16,
"search_height": 5,
"search_count": 1,
"goal_radius": 0.1
},
"minecraft:behavior.swim_idle": {
"priority": 7,
"idle_time": 5.0,
"success_rate": 0.05
},
"minecraft:behavior.random_swim": {
"priority": 8,
"interval": 0,
"xz_dist": 30,
"y_dist": 15
},
"minecraft:behavior.random_stroll": {
"priority": 9,
"interval": 100
},
"minecraft:behavior.look_at_player": {
"priority": 10,
"target_distance": 6.0,
"probability": 0.02
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"add": {
"component_groups": [
"axolotl_adult",
"axolotl_in_water"
]
}
},
{
"randomize": [
{
"weight": 25,
"add": {
"component_groups": [ "axolotl_cyan" ]
}
},
{
"weight": 25,
"add": {
"component_groups": [ "axolotl_gold" ]
}
},
{
"weight": 25,
"add": {
"component_groups": [ "axolotl_lucy" ]
}
},
{
"weight": 25,
"add": {
"component_groups": [ "axolotl_wild" ]
}
}
]
}
]
},
"attack_cooldown_complete_event": {
"remove": {
"component_groups": [
"attack_cooldown"
]
}
},
"killed_enemy_event": {
"add": {
"component_groups": [
"attack_cooldown"
]
}
},
"minecraft:entity_born": {
"sequence": [
{
"remove": {
"component_groups": [
"axolotl_adult"
]
},
"add": {
"component_groups": [
"axolotl_baby",
"axolotl_in_water"
]
}
},
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:variant"
},
"add": { "component_groups": [ "axolotl_blue" ] }
}
]
},
"minecraft:ageable_grow_up": {
"remove": { "component_groups": [ "axolotl_baby" ] },
"add": { "component_groups": [ "axolotl_adult" ] }
},
"stop_drying_out": {
"remove": {
"component_groups": [
"axolotl_on_land",
"axolotl_dried"
]
},
"add": {
"component_groups": [ "axolotl_on_land_in_rain" ]
}
},
"start_drying_out": {
"remove": {
"component_groups": [
"axolotl_on_land_in_rain",
"axolotl_in_water"
]
},
"add": {
"component_groups": [ "axolotl_on_land" ]
}
},
"dried_out": {
"add": {
"component_groups": [ "axolotl_dried" ]
}
},
"recover_after_dried_out": {
"remove": {
"component_groups": [ "axolotl_dried" ]
}
},
"enter_water": {
"remove": {
"component_groups": [
"axolotl_on_land",
"axolotl_on_land_in_rain",
"axolotl_dried"
]
},
"add": {
"component_groups": [
"axolotl_in_water"
]
}
}
}
}
}

View File

@ -0,0 +1,852 @@
{
"format_version": "1.18.20",
"minecraft:entity": {
"description": {
"identifier": "minecraft:bee",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"bee_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": [
"minecraft:red_flower", // All small flowers except Dandelion
"minecraft:yellow_flower", // Dandelion
"minecraft:wither_rose",
"minecraft:double_plant:0", // Sunflower
"minecraft:double_plant:1", // Lilac
"minecraft:double_plant:4", // Rose Bush
"minecraft:double_plant:5", // Peony
"minecraft:flowering_azalea", //Flowering Azalea
"minecraft:azalea_leaves_flowered", //Flowering Azalea leaves
"minecraft:mangrove_propagule"
],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 11, // This has to be lower priority than move to block goal so that bee seek shelter in rain instead of following parents
"speed_multiplier": 1.1
}
},
"bee_adult": {
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:behavior.breed": {
"priority": 4,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"require_tame": false,
"breeds_with": {
"mate_type": "minecraft:bee",
"baby_type": "minecraft:bee",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breed_items": [
"minecraft:red_flower", // All small flowers except Dandelion
"minecraft:yellow_flower", // Dandelion
"minecraft:wither_rose",
"minecraft:double_plant:0", // Sunflower
"minecraft:double_plant:1", // Lilac
"minecraft:double_plant:4", // Rose Bush
"minecraft:double_plant:5", // Peony
"minecraft:flowering_azalea", //Flowering Azalea
"minecraft:azalea_leaves_flowered", //Flowering Azalea leaves
"minecraft:mangrove_propagule"
]
}
},
"track_attacker": {
"minecraft:behavior.hurt_by_target": {
"priority": 1
}
},
"angry_bee": {
"minecraft:angry": {
"duration": 25,
"broadcastAnger": true,
"broadcastRange": 20,
"broadcast_filters": {
"test": "is_family",
"operator": "!=",
"value": "pacified"
},
"calm_event": {
"event": "calmed_down",
"target": "self"
}
},
"minecraft:behavior.melee_attack": {
"priority": 2,
"attack_once": true,
"speed_multiplier": 1.4,
"on_attack": {
"event": "countdown_to_perish_event",
"target": "self"
}
}
},
"escape_fire": {
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.25,
"force": true
},
"minecraft:timer": {
"looping": false,
"time": [20,50],
"randomInterval": true,
"time_down_event": {
"event": "stop_panicking_after_fire",
"target": "self"
}
}
},
"countdown_to_perish": {
"minecraft:mark_variant": {
"value": 1
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.25,
"force": true
},
"minecraft:timer": {
"looping": false,
"time": [10, 60],
"randomInterval": true,
"time_down_event": {
"event": "perish_event",
"target": "self"
}
},
"minecraft:type_family": {
"family": [ "bee", "mob", "arthropod", "pacified" ]
}
},
"perish": {
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"cause": "none",
"damage_per_tick": 999
}
]
}
},
"take_nearest_target": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "player"
},
"max_dist": 10
}
]
},
"minecraft:timer": {
"looping": true,
"time": 5,
"time_down_event": {
"event": "calmed_down",
"target": "self"
}
}
},
"look_for_food": {
"minecraft:behavior.move_to_block": {
"priority": 10,
"tick_interval": 1,
"start_chance": 0.5,
"search_range": 6,
"search_height": 4,
"goal_radius": 1.0,
"stay_duration": 20.0,
"target_selection_method": "random",
"target_offset": [0, 0.25, 0],
"target_block_filters": { "test": "is_waterlogged", "subject": "block", "operator": "==", "value": false },
"target_blocks": [
"minecraft:red_flower", // All small flowers except Dandelion
"minecraft:yellow_flower", // Dandelion
"minecraft:wither_rose",
"minecraft:double_plant:8", // Sunflower top
"minecraft:double_plant:9", // Lilac top
"minecraft:double_plant:12", // Rose Bush top
"minecraft:double_plant:13", // Peony top
"minecraft:flowering_azalea", //Flowering azalea
"minecraft:azalea_leaves_flowered", //Flowering Azalea leaves
"minecraft:mangrove_propagule"
],
"on_stay_completed": [
{
"event": "collected_nectar",
"target": "self"
}
]
},
"minecraft:timer": {
"looping": true,
"time": 180,
"time_down_event": {
"event": "find_flower_timeout"
}
},
"minecraft:ambient_sound_interval" :{
"event_name" : "ambient.pollinate",
"range" : 3.0,
"value" : 2.0
}
},
"has_nectar": {
"minecraft:is_charged": {},
"minecraft:grows_crop": {
"charges": 10,
"chance": 0.03
}
},
"return_to_home": {
"minecraft:behavior.go_home": {
"priority": 4,
"speed_multiplier": 1.0,
"interval": 1,
"goal_radius": 1.2,
"on_home": [
{
"filters": {
"any_of":[
{ "test": "is_block", "subject": "block", "value": "minecraft:bee_nest" },
{ "test": "is_block", "subject": "block", "value": "minecraft:beehive" }
]
},
"event": "minecraft:bee_returned_to_hive",
"target": "block"
},
{
"filters": {
"all_of":[
{ "test": "is_block", "subject": "block", "operator": "!=", "value": "minecraft:bee_nest" },
{ "test": "is_block", "subject": "block", "operator": "!=", "value": "minecraft:beehive" }
]
},
"event": "find_hive_event",
"target": "self"
}
],
"on_failed": [
{
"event": "find_hive_event",
"target": "self"
}
]
}
},
"find_hive": {
"minecraft:behavior.move_to_block": {
"priority": 10,
"search_range": 16,
"search_height": 10,
"tick_interval": 1,
"goal_radius": 0.633, // was tested with 0.4 when the goal radius wasn't squared. sqrt(0.4)~0.633
"target_blocks": [
"bee_nest",
"beehive"
],
"on_reach": [
{
"event": "minecraft:bee_returned_to_hive",
"target": "block"
}
]
},
"minecraft:timer": {
"looping": false,
"time": 180,
"time_down_event": {
"event": "find_hive_timeout",
"target": "self"
}
}
},
"hive_full": {
"minecraft:timer": {
"looping": false,
"time": [5, 20],
"randomInterval": true,
"time_down_event": {
"event": "find_hive_event",
"target": "self"
}
}
},
"shelter_detection": {
"minecraft:environment_sensor": {
"triggers": [
{
"event": "seek_shelter",
"filters": {
"all_of": [
{
"any_of": [
{
"test": "is_daytime",
"value": false
},
{
"test": "weather",
"operator": "==",
"value": "precipitation"
}
]
},
{ // Assume we are already going home if we have nectar
"test": "has_component",
"value": "minecraft:is_charged",
"operator": "!="
},
{ // Assume we are already going home if we have nectar
"test": "has_biome_tag",
"value": "overworld"
}
]
}
}
]
}
},
"abort_shelter_detection": {
"minecraft:environment_sensor": {
"triggers": [
{
"event": "abort_sheltering",
"filters": {
"all_of": [
{
"test": "weather",
"operator": "==",
"value": "clear"
},
{
"test": "is_daytime",
"value": true
}
]
}
}
]
}
},
"easy_attack": {
"minecraft:attack": {
"damage": 2
}
},
"normal_attack": {
"minecraft:attack": {
"damage": 2,
"effect_name": "poison",
"effect_duration": 10
}
},
"hard_attack": {
"minecraft:attack": {
"damage": 2,
"effect_name": "poison",
"effect_duration": 18
}
},
"default_sound" : {
"minecraft:ambient_sound_interval" :{
"event_name" : "ambient",
"range" : 0.0,
"value" : 0.0
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:behavior.tempt": {
"priority": 5,
"speed_multiplier": 1.25,
"within_radius": 8,
"can_tempt_vertically": true,
"items": [
"minecraft:red_flower", // All small flowers except Dandelion
"minecraft:yellow_flower", // Dandelion
"minecraft:wither_rose",
"minecraft:double_plant:0", // Sunflower
"minecraft:double_plant:1", // Lilac
"minecraft:double_plant:4", // Rose Bush
"minecraft:double_plant:5", // Peony
"minecraft:flowering_azalea", //Flowering azalea
"minecraft:azalea_leaves_flowered", //Flowering Azalea leaves
"minecraft:mangrove_propagule"
]
},
"minecraft:behavior.move_towards_home_restriction": {
"priority": 9
},
"minecraft:behavior.random_hover": {
"priority": 12,
"xz_dist": 8,
"y_dist": 8,
"y_offset": -1,
"interval": 1,
"hover_height": [1, 4]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
"mass": 0.5
},
"minecraft:behavior.float": {
"priority": 19
},
"minecraft:type_family": {
"family": [ "bee", "mob", "arthropod" ]
},
"minecraft:on_target_acquired": {
"event": "attacked",
"target": "self"
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:collision_box": {
"width": 0.55,
"height": 0.5
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:home": {
"restriction_radius": 22,
"home_block_list": [
"minecraft:bee_nest",
"minecraft:beehive"
]
},
"minecraft:follow_range": {
"value": 1024
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "fall",
"deals_damage": false
}
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.3
},
"minecraft:flying_speed": {
"value": 0.15
},
"minecraft:navigation.hover": {
"can_path_over_water": true,
"can_sink": false,
"can_pass_doors": false,
"can_path_from_air": true,
"avoid_water": true,
"avoid_damage_blocks": true,
"avoid_sun": false
},
"minecraft:movement.hover": {},
"minecraft:jump.static": {},
"minecraft:can_fly": {},
"minecraft:health": {
"value": 10,
"max": 10
},
"minecraft:nameable": {},
"minecraft:block_sensor": {
"sensor_radius": 16,
"sources" : [
{
"test": "has_silk_touch",
"subject": "other",
"value": false
}
],
"on_break": [
{
"block_list": [
"minecraft:beehive", "minecraft:bee_nest"
],
"on_block_broken": "hive_destroyed"
}
]
},
"minecraft:physics": {},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 95,
"add": {
"component_groups": [
"bee_adult"
]
}
},
{
"weight": 5,
"add": {
"component_groups": [
"bee_baby"
]
}
}
]
},
{
"add": {
"component_groups": [
"track_attacker",
"shelter_detection",
"look_for_food"
]
}
}
]
},
"minecraft:entity_born": {
"add": {
"component_groups": [
"bee_baby",
"shelter_detection",
"track_attacker",
"look_for_food"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"bee_baby"
]
},
"add": {
"component_groups": [
"bee_adult"
]
}
},
"minecraft:exited_disturbed_hive": {
"add": {
"component_groups": [
"take_nearest_target"
]
},
"remove": {
"component_groups": [
"find_hive",
"return_to_home",
"has_nectar",
"abort_shelter_detection",
"shelter_detection",
"escape_fire"
]
}
},
"hive_destroyed": {
"sequence": [
{
"filters": {
"test": "is_family",
"subject": "self",
"operator": "!=",
"value": "pacified"
},
"add": {
"component_groups": [
"take_nearest_target"
]
},
"remove": {
"component_groups": [
"escape_fire"
]
}
}
]
},
"stop_panicking_after_fire" : {
"remove": {
"component_groups": [
"escape_fire"
]
}
},
"minecraft:exited_hive_on_fire": {
"add": {
"component_groups": [
"escape_fire"
]
}
},
"minecraft:exited_hive": {
"add": {
"component_groups": [
"look_for_food",
"shelter_detection"
]
},
"remove": {
"component_groups": [
"find_hive",
"return_to_home",
"has_nectar",
"abort_shelter_detection"
]
}
},
"minecraft:hive_full": {
"add": {
"component_groups": [
"hive_full"
]
},
"remove": {
"component_groups": [
"find_hive",
"return_to_home"
]
}
},
"attacked": {
"sequence": [
{
"add": {
"component_groups": [
"angry_bee"
]
},
"remove": {
"component_groups": [
"take_nearest_target"
]
}
},
{
"filters": { "test" : "is_difficulty", "value" : "easy"},
"remove": {
"component_groups": [ "normal_attack", "hard_attack" ]
},
"add": {
"component_groups": [ "easy_attack" ]
}
},
{
"filters": { "test" : "is_difficulty", "value" : "normal"},
"remove": {
"component_groups": [ "easy_attack", "hard_attack" ]
},
"add": {
"component_groups": [ "normal_attack" ]
}
},
{
"filters": { "test" : "is_difficulty", "value" : "hard"},
"remove": {
"component_groups": [ "easy_attack", "normal_attack" ]
},
"add": {
"component_groups": [ "hard_attack" ]
}
}
]
},
"calmed_down": {
"add" : {
"component_groups": [
"shelter_detection",
"return_to_home"
]
},
"remove": {
"component_groups": [
"angry_bee",
"take_nearest_target"
]
}
},
"collected_nectar": {
"remove": {
"component_groups": [
"look_for_food"
]
},
"add": {
"component_groups": [
"return_to_home",
"has_nectar",
"default_sound"
]
}
},
"find_hive_event": {
"remove": {
"component_groups": [
"return_to_home",
"hive_full"
]
},
"add": {
"component_groups": [
"find_hive"
]
}
},
"find_hive_timeout": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_charged"
},
"remove": {
"component_groups": [
"find_hive",
"escape_fire"
]
},
"add": {
"component_groups": [
"look_for_food"
]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_charged"
},
"remove": {
"component_groups": [
"find_hive"
]
},
"add": {
"component_groups": [
"return_to_home"
]
}
}
]
},
"find_flower_timeout": {
"remove": {
"component_groups": [
"look_for_food"
]
},
"add": {
"component_groups": [
"return_to_home"
]
}
},
"seek_shelter": {
"remove": {
"component_groups": [
"look_for_food",
"collect_nectar",
"shelter_detection"
]
},
"add": {
"component_groups": [
"default_sound",
"return_to_home",
"abort_shelter_detection"
]
}
},
"abort_sheltering": {
"remove": {
"component_groups": [
"abort_shelter_detection",
"return_to_home",
"escape_fire"
]
},
"add": {
"component_groups": [
"shelter_detection",
"look_for_food"
]
}
},
"countdown_to_perish_event" : {
"remove": {
"component_groups": [
"collect_nectar",
"track_attacker",
"take_nearest_target",
"look_for_food",
"angry_bee",
"hive_full",
"find_hive",
"escape_fire"
]
},
"add": {
"component_groups": [
"countdown_to_perish"
]
}
},
"perish_event":{
"add": {
"component_groups": [
"perish"
]
}
}
}
}
}

View File

@ -0,0 +1,261 @@
{
"format_version": "1.18.10",
"minecraft:entity": {
"description": {
"identifier": "minecraft:chest_boat",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:floating": {
"minecraft:buoyant": {
"base_buoyancy": 1.0,
"apply_gravity": true,
"simulate_waves": true,
"big_wave_probability": 0.03,
"big_wave_speed": 10.0,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
]
}
},
"minecraft:can_ride": {
"minecraft:rideable": {
"seat_count": 1,
"interact_text": "action.interact.ride.boat",
"pull_in_entities": true,
"seats": [
{
"position": [ 0.2, -0.2, 0.0 ],
"min_rider_count": 0,
"max_rider_count": 1,
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
"lock_rider_rotation": 90
}
]
}
},
"minecraft:above_bubble_column_down": {
"minecraft:buoyant": {
"base_buoyancy": 1.0,
"apply_gravity": true,
"simulate_waves": false,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
],
"drag_down_on_buoyancy_removed": 0.7
},
"minecraft:timer": {
"looping": false,
"time": 3,
"time_down_event": {
"event": "minecraft:sink",
"target": "self"
}
},
"minecraft:out_of_control": {
}
},
"minecraft:above_bubble_column_up": {
"minecraft:buoyant": {
"base_buoyancy": 1.0,
"apply_gravity": true,
"simulate_waves": false,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
],
"drag_down_on_buoyancy_removed": 0.7
},
"minecraft:out_of_control": {
}
}
},
"components": {
"minecraft:type_family": {
"family": [ "boat", "inanimate" ]
},
"minecraft:collision_box": {
"width": 1.4,
"height": 0.455
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
},
"minecraft:inventory": {
"container_type": "chest_boat",
"inventory_size": 27,
"can_be_siphoned_from": true
},
"minecraft:rideable": {
"seat_count": 1,
"interact_text": "action.interact.ride.boat",
"pull_in_entities": true,
"seats": [
{
"position": [ 0.2, -0.2, 0.0 ],
"min_rider_count": 0,
"max_rider_count": 1,
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
"lock_rider_rotation": 90
}
]
},
"minecraft:is_stackable": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:buoyant": {
"base_buoyancy": 1.0,
"apply_gravity": true,
"simulate_waves": true,
"big_wave_probability": 0.03,
"big_wave_speed": 10.0,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
]
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 60.0,
"max_dropped_ticks": 20,
"use_motion_prediction_hints": true
},
"conditional_values": [
{
"max_optimized_distance": 0.0,
"max_dropped_ticks": 0,
"use_motion_prediction_hints": true,
"conditional_values": [
{
"test": "is_moving",
"subject": "self",
"operator": "==",
"value": true
}
]
}
]
},
"minecraft:inside_block_notifier": {
"block_list": [
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": true
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_down",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
},
{
"block": {
"name": "minecraft:bubble_column",
"states": {
"drag_down": false
}
},
"entered_block_event": {
"event": "minecraft:entered_bubble_column_up",
"target": "self"
},
"exited_block_event": {
"event": "minecraft:exited_bubble_column",
"target": "self"
}
}
]
}
},
"events": {
"minecraft:entered_bubble_column_down": {
"remove": {
"component_groups": [
"minecraft:floating"
]
},
"add": {
"component_groups": [
"minecraft:above_bubble_column_down"
]
}
},
"minecraft:entered_bubble_column_up": {
"remove": {
"component_groups": [
"minecraft:floating"
]
},
"add": {
"component_groups": [
"minecraft:above_bubble_column_up"
]
}
},
"minecraft:exited_bubble_column": {
"remove": {
"component_groups": [
"minecraft:above_bubble_column_down",
"minecraft:above_bubble_column_up"
]
},
"add": {
"component_groups": [
"minecraft:floating",
"minecraft:can_ride"
]
}
},
"minecraft:sink": {
"remove": {
"component_groups": [
"minecraft:floating",
"minecraft:can_ride",
"minecraft:above_bubble_column_down",
"minecraft:above_bubble_column_up"
]
}
}
}
}
}

View File

@ -0,0 +1,319 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:evocation_illager",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:celebrate": {
"minecraft:behavior.celebrate": {
"priority": 5,
"celebration_sound": "celebrate",
"sound_interval": {
"range_min": 2.0,
"range_max": 7.0
},
"jump_interval": {
"range_min": 1.0,
"range_max": 3.5
},
"duration": 30.0,
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
}
}
},
"minecraft:raid_configuration": {
"minecraft:dweller": {
"dwelling_type": "village",
"dweller_role": "hostile",
"update_interval_base": 60,
"update_interval_variant": 40,
"can_find_poi": false,
"can_migrate": true,
"first_founding_reward": 0
},
"minecraft:behavior.move_to_village": {
"priority": 6,
"speed_multiplier": 0.7
},
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient.in.raid"
}
},
"minecraft:raid_persistence": {
"minecraft:persistent": {}
},
"minecraft:raid_despawn": {
"minecraft:despawn": {
"despawn_from_distance": {}
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "10"
},
"minecraft:type_family": {
"family": [ "evocation_illager", "monster", "illager", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:nameable": {
},
"minecraft:loot": {
"table": "loot_tables/entities/evocation_illager.json"
},
"minecraft:health": {
"value": 24,
"max": 24
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.9
},
"minecraft:movement": {
"value": 0.5
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"can_pass_doors": true,
"can_open_doors": true,
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.summon_entity": {
"priority": 2,
"summon_choices": [
{
"min_activation_range": 0.0,
"max_activation_range": 3.0,
"cooldown_time": 5.0,
"weight": 3,
"cast_duration": 2.0,
"particle_color": "#FF664D59",
"start_sound_event": "cast.spell",
"sequence": [
{
"shape": "circle",
"target": "self",
"base_delay": 1.0,
"delay_per_summon": 0.0,
"num_entities_spawned": 5,
"entity_type": "minecraft:evocation_fang",
"size": 1.5,
"entity_lifespan": 1.1,
"sound_event": "prepare.attack"
},
{
"shape": "circle",
"target": "self",
"base_delay": 0.15,
"delay_per_summon": 0.0,
"num_entities_spawned": 8,
"entity_type": "minecraft:evocation_fang",
"size": 2.5,
"entity_lifespan": 1.1
}
]
},
{
"min_activation_range": 3.0,
"weight": 3,
"cooldown_time": 5.0,
"cast_duration": 2.0,
"particle_color": "#FF664D59",
"start_sound_event": "cast.spell",
"sequence": [
{
"shape": "line",
"target": "self",
"base_delay": 1.0,
"delay_per_summon": 0.05,
"num_entities_spawned": 16,
"entity_type": "minecraft:evocation_fang",
"size": 20,
"entity_lifespan": 1.1
}
]
},
{
"weight": 1,
"cooldown_time": 17.0,
"cast_duration": 5.0,
"particle_color": "#FFB3B3CC",
"sequence": [
{
"shape": "circle",
"target": "self",
"base_delay": 5.0,
"num_entities_spawned": 3,
"entity_type": "minecraft:vex",
"summon_cap": 8,
"summon_cap_radius": 16.0,
"size": 1.0,
"sound_event": "prepare.summon"
}
]
}
]
},
"minecraft:behavior.send_event": {
"priority": 3,
"event_choices": [
{
"min_activation_range": 0.0,
"max_activation_range": 16.0,
"cooldown_time": 5.0,
"cast_duration": 3.0,
"particle_color": "#FFB38033",
"weight": 3,
"filters": {
"all_of": [
{ "test" : "is_family", "subject" : "other", "value" : "sheep"},
{ "test" : "is_color", "subject" : "other", "value" : "blue"}
]
},
"start_sound_event": "cast.spell",
"sequence": [
{
"base_delay": 2.0,
"event": "wololo",
"sound_event": "prepare.wololo"
}
]
}
]
},
"minecraft:behavior.avoid_mob_type": {
"priority": 5,
"entity_types": [
{
"filters": { "test" : "is_family", "subject" : "other", "value" : "player"},
"max_dist": 8,
"walk_speed_multiplier": 0.6,
"sprint_speed_multiplier": 1.0
}
]
},
"minecraft:behavior.random_stroll": {
"priority": 8,
"speed_multiplier": 0.6
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
{
"filters": {
"any_of": [
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "is_family", "subject" : "other", "value" : "snowgolem"},
{ "test" : "is_family", "subject" : "other", "value" : "irongolem"},
{ "test" : "is_family", "subject" : "other", "value" : "wandering_trader"}
]
},
"max_dist": 20
},
{
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "villager" },
{ "test": "has_component", "subject": "other", "operator": "!=", "value": "minecraft:is_baby" }
]
},
"max_dist": 20
}
],
"must_see": true
},
"minecraft:behavior.look_at_player": {
"priority": 9,
"look_distance": 3.0,
"probability": 1.0
},
"minecraft:behavior.look_at_entity": {
"priority": 10,
"look_distance": 8.0,
"filters": { "test" : "is_family", "subject" : "other", "value" : "mob" }
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:persistent": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:follow_range": {
"value": 64
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:spawn_for_raid": {
"add": {
"component_groups": [
"minecraft:raid_configuration",
"minecraft:raid_despawn",
"minecraft:raid_persistence"
]
}
},
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
"sequence": [
{
"add": { "component_groups": [ "minecraft:celebrate" ] }
},
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:stop_celebrating": {
"remove": { "component_groups": [ "minecraft:celebrate" ] }
},
"minecraft:raid_expired": {
"sequence": [
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
}
}
}
}

View File

@ -0,0 +1,390 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:frog",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"temperate_frog": {
"minecraft:variant": { "value": 0 }
},
"cold_frog": {
"minecraft:variant": { "value": 1 }
},
"warm_frog": {
"minecraft:variant": { "value": 2 }
},
"pregnant": {
"minecraft:behavior.lay_egg": {
"priority": 2,
"speed_multiplier": 1.0,
"search_range": 10,
"search_height": 3,
"goal_radius": 1.7,
"target_blocks": [ "minecraft:water" ],
"target_materials_above_block": [ "Air" ],
"allow_laying_from_below": true,
"use_default_animation": false,
"lay_seconds": 2,
"egg_type": "minecraft:frog_spawn",
"lay_egg_sound": "lay_spawn",
"on_lay": {
"event": "laid_egg",
"target": "self"
}
},
"minecraft:behavior.move_to_water": {
"priority": 3,
"search_range": 20,
"search_height": 5,
"goal_radius": 1.5
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "frog", "mob" ]
},
"minecraft:collision_box": {
"width": 0.5,
"height": 0.55
},
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_water": true,
"breathes_air": true,
"generates_bubbles": false
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 10
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "fall",
"deals_damage": true,
"damage_modifier": -5
}
},
"minecraft:navigation.generic": {
"is_amphibious": true,
"can_path_over_water": true,
"can_swim": true,
"can_walk": true,
"can_sink": false,
"avoid_damage_blocks": true
},
"minecraft:movement.amphibious": {
},
"minecraft:movement": {
"value": 0.1
},
"minecraft:underwater_movement": {
"value": 0.15
},
"minecraft:jump.static": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
},
"minecraft:leashable": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:breedable": {
"require_tame": false,
"causes_pregnancy": true,
"breeds_with": {
"mate_type": "minecraft:frog",
"baby_type": "minecraft:tadpole",
"breed_event": {
"event": "become_pregnant"
}
},
"breed_items": [ "slime_ball" ]
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 2.0
},
"minecraft:behavior.breed": {
"priority": 4
},
"minecraft:behavior.tempt": {
"priority": 5,
"speed_multiplier": 1.25,
"can_tempt_vertically": true,
"items": [ "slime_ball" ]
},
"minecraft:behavior.move_to_land": {
"priority": 6,
"search_range": 30,
"search_height": 8,
"search_count": 80,
"goal_radius": 2
},
"minecraft:behavior.eat_mob": {
"priority": 7,
"run_speed": 2.0,
"eat_animation_time": 0.30,
"pull_in_force": 0.75,
"reach_mob_distance": 1.75,
"eat_mob_sound": "tongue",
"loot_table": "loot_tables/entities/frog.json"
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 8,
"within_radius": 16,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "slime"
},
{
"test": "is_variant",
"subject": "other",
"operator": "==",
"value": 1
}
]
},
"max_dist": 16
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "magmacube"
},
{
"test": "is_variant",
"subject": "other",
"operator": "==",
"value": 1
}
]
},
"max_dist": 16
}
],
"must_see": true
},
"minecraft:behavior.croak": {
"priority": 9,
"interval": [ 10, 20 ],
"duration": 4.5,
"filters": {
"all_of": [
{
"test": "in_water",
"value": false
},
{
"test": "in_lava",
"value": false
}
]
}
},
"minecraft:behavior.jump_to_block": {
"priority": 10,
"search_width": 8,
"search_height": 4,
"minimum_path_length": 2,
"minimum_distance": 1,
"scale_factor": 0.6,
"max_velocity": 1,
"cooldown_range": [ 5, 7 ],
"preferred_blocks": [
"minecraft:waterlily",
"minecraft:big_dripleaf"
],
"preferred_blocks_chance": 0.5,
"forbidden_blocks": [
"minecraft:water"
]
},
"minecraft:behavior.random_stroll": {
"priority": 11
},
"minecraft:behavior.look_at_player": {
"priority": 12,
"target_distance": 6.0,
"probability": 0.02
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"add": {
"component_groups": [ "temperate_frog" ]
}
},
{
"filters": {
"any_of": [
{ "test": "has_biome_tag", "value": "desert" },
{ "test": "has_biome_tag", "value": "jungle" },
{ "test": "has_biome_tag", "value": "savanna" },
{ "test": "has_biome_tag", "value": "mesa" },
{ "test": "has_biome_tag", "value": "nether" },
{
"all_of": [
{ "test": "has_biome_tag", "value": "warm" },
{ "test": "has_biome_tag", "value": "ocean" }
]
},
{
"all_of": [
{ "test": "has_biome_tag", "value": "lukewarm" },
{ "test": "has_biome_tag", "value": "ocean" }
]
},
{ "test": "has_biome_tag", "value": "mangrove_swamp" }
]
},
"add": {
"component_groups": [ "warm_frog" ]
}
},
{
"filters": {
"any_of": [
{ "test": "has_biome_tag", "value": "mountain" },
{
"all_of": [
{ "test": "has_biome_tag", "value": "mountains" },
{ "test": "has_biome_tag", "operator": "!=", "value": "meadow" }
]
},
{ "test": "has_biome_tag", "value": "ice" },
{ "test": "has_biome_tag", "value": "cold" },
{ "test": "has_biome_tag", "value": "frozen" },
{ "test": "has_biome_tag", "value": "the_end" }
]
},
"add": {
"component_groups": [ "cold_frog" ]
}
}
]
},
"spawn_temperate": {
"add": {
"component_groups": [
"temperate_frog"
]
}
},
"spawn_cold": {
"add": {
"component_groups": [
"cold_frog"
]
}
},
"spawn_warm": {
"add": {
"component_groups": [
"warm_frog"
]
}
},
"minecraft:entity_transformed": {
"sequence": [
{
"add": {
"component_groups": [ "temperate_frog" ]
}
},
{
"filters": {
"any_of": [
{ "test": "has_biome_tag", "value": "desert" },
{ "test": "has_biome_tag", "value": "jungle" },
{ "test": "has_biome_tag", "value": "savanna" },
{ "test": "has_biome_tag", "value": "mesa" },
{ "test": "has_biome_tag", "value": "nether" },
{
"all_of": [
{ "test": "has_biome_tag", "value": "warm" },
{ "test": "has_biome_tag", "value": "ocean" }
]
},
{
"all_of": [
{ "test": "has_biome_tag", "value": "lukewarm" },
{ "test": "has_biome_tag", "value": "ocean" }
]
},
{ "test": "has_biome_tag", "value": "mangrove_swamp" }
]
},
"add": {
"component_groups": [ "warm_frog" ]
}
},
{
"filters": {
"any_of": [
{ "test": "has_biome_tag", "value": "mountain" },
{ "test": "has_biome_tag", "value": "mountains" },
{ "test": "has_biome_tag", "value": "ice" },
{ "test": "has_biome_tag", "value": "cold" },
{ "test": "has_biome_tag", "value": "frozen" },
{ "test": "has_biome_tag", "value": "the_end" }
]
},
"add": {
"component_groups": [ "cold_frog" ]
}
}
]
},
"become_pregnant": {
"add": {
"component_groups": [ "pregnant" ]
}
},
"laid_egg": {
"remove": {
"component_groups": [ "pregnant" ]
}
}
}
}
}

View File

@ -0,0 +1,808 @@
{
"format_version": "1.19.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:llama",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:llama_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": [
{
"item": "wheat",
"growth": 0.1
},
{
"item": "hay_block",
"growth": 0.9
}
],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1.0
}
},
"minecraft:llama_adult": {
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:loot": {
"table": "loot_tables/entities/llama.json"
},
"minecraft:behavior.breed": {
"priority": 4,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"require_tame": true,
"inherit_tamed": false,
"breeds_with": {
"mate_type": "minecraft:llama",
"baby_type": "minecraft:llama",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breed_items": [ "hay_block" ]
}
},
"minecraft:llama_wandering_trader": {
"minecraft:mark_variant": {
"value": 1
},
"minecraft:on_friendly_anger": {
"event": "minecraft:defend_wandering_trader",
"target": "self"
},
"minecraft:environment_sensor": {
"triggers": [
{
// If this is a Wandering Trader's llama and it was just released from its leash, make it tame
"filters": {
"all_of": [
{
"test": "is_leashed",
"subject": "self",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "!=",
"value": "minecraft:is_tamed"
}
]
},
"event": "minecraft:on_tame"
},
{
"filters": {
"all_of": [
{
"test": "is_leashed",
"subject": "self",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "==",
"value": "minecraft:persistent"
}
]
},
"event": "minecraft:remove_persistence"
}
]
}
},
"minecraft:llama_persistence": {
"minecraft:persistent": {
}
},
"minecraft:strength_1": {
"minecraft:strength": {
"value": 1,
"max": 5
}
},
"minecraft:strength_2": {
"minecraft:strength": {
"value": 2,
"max": 5
}
},
"minecraft:strength_3": {
"minecraft:strength": {
"value": 3,
"max": 5
}
},
"minecraft:strength_4": {
"minecraft:strength": {
"value": 4,
"max": 5
}
},
"minecraft:strength_5": {
"minecraft:strength": {
"value": 5,
"max": 5
}
},
"minecraft:llama_creamy": {
"minecraft:variant": {
"value": 0
}
},
"minecraft:llama_white": {
"minecraft:variant": {
"value": 1
}
},
"minecraft:llama_brown": {
"minecraft:variant": {
"value": 2
}
},
"minecraft:llama_gray": {
"minecraft:variant": {
"value": 3
}
},
"minecraft:llama_wild": {
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"player"
],
"interact_text": "action.interact.mount",
"seats": {
"position": [ 0.0, 1.17, -0.3 ]
}
},
"minecraft:tamemount": {
"min_temper": 0,
"max_temper": 30,
"feed_text": "action.interact.feed",
"ride_text": "action.interact.mount",
"feed_items": [
{
"item": "wheat",
"temper_mod": 3
},
{
"item": "hay_block",
"temper_mod": 6
}
],
"auto_reject_items": [
{
"item": "horsearmorleather"
},
{
"item": "horsearmoriron"
},
{
"item": "horsearmorgold"
},
{
"item": "horsearmordiamond"
},
{
"item": "saddle"
}
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
},
"minecraft:llama_tamed": {
"minecraft:is_tamed": {
},
"minecraft:rideable": {
"seat_count": 1,
"crouching_skip_interact": true,
"family_types": [
"player"
],
"interact_text": "action.interact.ride.horse",
"seats": {
"position": [ 0.0, 1.17, -0.3 ]
}
},
"minecraft:inventory": {
"inventory_size": 16,
"container_type": "horse",
"additional_slots_per_strength": 3
},
"minecraft:equippable": {
"slots": [
{
"slot": 1,
"item": "carpet",
"accepted_items": [ "carpet" ]
}
]
}
},
"minecraft:llama_unchested": {
"minecraft:interact": {
"interactions": [
{
"play_sounds": "armor.equip_generic",
"on_interact": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "has_equipment",
"domain": "hand",
"subject": "other",
"value": "chest"
}
]
},
"event": "minecraft:on_chest",
"target": "self"
},
"use_item": true,
"interact_text": "action.interact.attachchest"
}
]
}
},
"minecraft:llama_chested": {
"minecraft:is_chested": {
}
},
"minecraft:llama_angry": {
"minecraft:angry": {
"duration": 4,
"broadcast_anger": false,
"calm_event": {
"event": "minecraft:on_calm",
"target": "self"
}
},
"minecraft:behavior.ranged_attack": {
"priority": 2,
"attack_radius": 64,
"charge_shoot_trigger": 2,
"charge_charged_trigger": 1
}
},
"minecraft:llama_angry_wolf": {
"minecraft:angry": {
"duration": -1,
"broadcast_anger": false,
"calm_event": {
"event": "minecraft:on_calm",
"target": "self"
}
},
"minecraft:behavior.ranged_attack": {
"priority": 2,
"attack_radius": 64,
"charge_shoot_trigger": 2,
"charge_charged_trigger": 1
}
},
"minecraft:llama_defend_trader": {
"minecraft:angry": {
"duration": 10,
"calm_event": {
"event": "minecraft:on_calm",
"target": "self"
}
},
"minecraft:behavior.ranged_attack": {
"priority": 2,
"attack_radius": 64,
"charge_shoot_trigger": 2,
"charge_charged_trigger": 1
}
},
"minecraft:in_caravan": {
"minecraft:damage_sensor": {
"triggers": {
"cause": "all",
"deals_damage": true
}
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "llama", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:nameable": {
},
"minecraft:mark_variant": {
"value": 0
},
"minecraft:health": {
"value": {
"range_min": 15,
"range_max": 30
}
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_damage_blocks": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:follow_range": {
"value": 40,
"max": 40
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0,
"can_be_stolen": true
},
"minecraft:balloonable": {
},
"minecraft:healable": {
"items": [
{
"item": "wheat",
"heal_amount": 2
},
{
"item": "hay_block",
"heal_amount": 10
}
]
},
"minecraft:shooter": {
"def": "minecraft:llama_spit"
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.run_around_like_crazy": {
"priority": 1,
"speed_multiplier": 1.2
},
"minecraft:behavior.follow_caravan": {
"priority": 3,
"speed_multiplier": 2.1,
"entity_count": 10,
"entity_types": {
"filters": {
"test": "is_family",
"subject": "other",
"value": "llama"
}
}
},
"minecraft:behavior.panic": {
"priority": 4,
"speed_multiplier": 1.2
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 0.7
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 8
},
"minecraft:behavior.mount_pathing": {
"priority": 1,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
},
"minecraft:behavior.hurt_by_target": {
"priority": 1,
"hurt_owner": true
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "all",
"deals_damage": true,
"on_damage": {
"filters": {
"test": "in_caravan",
"value": false
},
"event": "minecraft:become_angry"
}
}
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"attack_interval": 16,
"entity_types": [
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "wolf"
},
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_tamed"
}
]
},
"max_dist": 10
}
],
"must_see": false,
"must_reach": true
},
"minecraft:on_target_acquired": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "target",
"value": "wolf"
},
{
"test": "has_component",
"subject": "target",
"operator": "!=",
"value": "minecraft:is_tamed"
}
]
},
"event": "minecraft:mad_at_wolf",
"target": "self"
},
"minecraft:on_target_escape": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "target",
"value": "wolf"
},
{
"test": "has_component",
"subject": "target",
"operator": "!=",
"value": "minecraft:is_tamed"
}
]
},
"event": "minecraft:on_calm",
"target": "self"
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:collision_box": {
"width": 0.9,
"height": 1.87
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 90,
"trigger": "minecraft:spawn_adult"
},
{
"weight": 10,
"trigger": "minecraft:spawn_baby"
}
]
}
]
},
"minecraft:entity_born": {
"add": {
"component_groups": [
"minecraft:llama_baby"
]
}
},
"minecraft:from_wandering_trader": {
"sequence": [
{
"add": {
"component_groups": [
"minecraft:llama_adult",
"minecraft:llama_wandering_trader",
"minecraft:llama_persistence"
]
}
},
{
"trigger": "minecraft:add_attributes"
}
]
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:llama_baby"
]
},
"add": {
"component_groups": [
"minecraft:llama_adult",
"minecraft:llama_wild"
]
}
},
"minecraft:on_tame": {
"remove": {
"component_groups": [
"minecraft:llama_wild"
]
},
"add": {
"component_groups": [
"minecraft:llama_tamed",
"minecraft:llama_unchested"
]
}
},
"minecraft:remove_persistence": {
"remove": {
"component_groups": [
"minecraft:llama_persistence"
]
}
},
"minecraft:join_caravan": {
"add": {
"component_groups": [
"minecraft:in_caravan"
]
}
},
"minecraft:leave_caravan": {
"remove": {
"component_groups": [
"minecraft:in_caravan"
]
}
},
"minecraft:mad_at_wolf": {
"add": {
"component_groups": [
"minecraft:llama_angry_wolf"
]
}
},
"minecraft:defend_wandering_trader": {
"add": {
"component_groups": [
"minecraft:llama_defend_trader"
]
}
},
"minecraft:become_angry": {
"add": {
"component_groups": [
"minecraft:llama_angry"
]
}
},
"minecraft:on_calm": {
"remove": {
"component_groups": [
"minecraft:llama_angry",
"minecraft:llama_angry_wolf",
"minecraft:llama_defend_trader"
]
}
},
"minecraft:on_chest": {
"remove": {
"component_groups": [
"minecraft:llama_unchested"
]
},
"add": {
"component_groups": [
"minecraft:llama_chested"
]
}
},
"minecraft:add_attributes": {
"sequence": [
{
"randomize": [
{
"weight": 32,
"add": {
"component_groups": [
"minecraft:strength_1"
]
}
},
{
"weight": 32,
"add": {
"component_groups": [
"minecraft:strength_2"
]
}
},
{
"weight": 32,
"add": {
"component_groups": [
"minecraft:strength_3"
]
}
},
{
"weight": 2,
"add": {
"component_groups": [
"minecraft:strength_4"
]
}
},
{
"weight": 2,
"add": {
"component_groups": [
"minecraft:strength_5"
]
}
}
]
},
{
"randomize": [
{
"weight": 25,
"add": {
"component_groups": [
"minecraft:llama_creamy"
]
}
},
{
"weight": 25,
"add": {
"component_groups": [
"minecraft:llama_white"
]
}
},
{
"weight": 25,
"add": {
"component_groups": [
"minecraft:llama_brown"
]
}
},
{
"weight": 25,
"add": {
"component_groups": [
"minecraft:llama_gray"
]
}
}
]
}
]
},
"minecraft:spawn_baby": {
"add": {
"component_groups": [
"minecraft:llama_baby"
]
},
"trigger": "minecraft:add_attributes"
},
"minecraft:spawn_adult": {
"add": {
"component_groups": [
"minecraft:llama_adult",
"minecraft:llama_wild"
]
},
"trigger": "minecraft:add_attributes"
}
}
}
}

View File

@ -0,0 +1,762 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:mooshroom",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:mooshroom_become_cow": {
"minecraft:transformation": {
"into": "minecraft:cow"
}
},
"minecraft:cow_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value":0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": "wheat",
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1.1
}
},
"minecraft:cow_adult": {
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:loot": {
"table": "loot_tables/entities/mooshroom.json"
},
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"require_tame": false,
"breed_items": "wheat",
"breeds_with": {
"mate_type": "minecraft:mooshroom",
"baby_type": "minecraft:mooshroom",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"deny_parents_variant": {
"chance": 0.00098, // Roughly 1/1024
"min_variant": 0,
"max_variant": 1
}
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "bowl"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"}
]
},
"event": "minecraft:flowerless",
"target": "self"
},
"add_items": {
"table": "loot_tables/gameplay/entities/mooshroom_milking.json"
},
"use_item": true,
"play_sounds": "milk_suspiciously",
"interact_text": "action.interact.moostew"
},
{
"on_interact": {
"filters": { // allium
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:2"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 7}
]
},
"event": "minecraft:ate_allium",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // bluet
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:3"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 3}
]
},
"event": "minecraft:ate_bluet",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // orchid
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:1"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 6}
]
},
"event": "minecraft:ate_orchid",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // cornflower
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:9"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 1}
]
},
"event": "minecraft:ate_cornflower",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // Dandelion
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "yellow_flower"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 5}
]
},
"event": "minecraft:ate_dandelion",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // lily of the valley
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:10"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 4}
]
},
"event": "minecraft:ate_lily",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // daisy
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:8"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 8}
]
},
"event": "minecraft:ate_daisy",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // poppy
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:0"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 0}
]
},
"event": "minecraft:ate_poppy",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // tulips
"any_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:4"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:5"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:6"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:7"}
],
"all_of": [
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 2}
]
},
"event": "minecraft:ate_tulip",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": { // rose
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "wither_rose"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 9}
]
},
"event": "minecraft:ate_rose",
"target": "self"
},
"use_item": true,
"play_sounds": "eat",
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.feed"
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 0}
]
},
"event": "become_cow",
"target": "self"
},
"use_item": false,
"hurt_item": 1,
"play_sounds": "shear",
"spawn_items": { "table": "loot_tables/entities/mooshroom_shear.json" },
"particle_on_start": { "particle_type": "largeexplode", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.mooshear",
"vibration": "shear"
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"},
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1}
]
},
"event": "become_cow",
"target": "self"
},
"use_item": false,
"hurt_item": 1,
"play_sounds": "shear",
"spawn_items": { "table": "loot_tables/entities/brown_mooshroom_shear.json" },
"particle_on_start": { "particle_type": "largeexplode", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
"interact_text": "action.interact.mooshear",
"vibration": "shear"
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "bucket:0"},
{ "test" : "is_family", "subject" : "other", "value" : "player"}
]
}
},
"use_item": true,
"transform_to_item": "bucket:1",
"play_sounds": "milk",
"interact_text": "action.interact.milk"
}
]
}
},
"minecraft:mooshroom_fed_nothing": {
"minecraft:mark_variant": {
"value": -1
}
},
"minecraft:mooshroom_brown_fed_poppy": {
"minecraft:mark_variant": {
"value": 0
}
},
"minecraft:mooshroom_brown_fed_cornflower": {
"minecraft:mark_variant": {
"value": 1
}
},
"minecraft:mooshroom_brown_fed_tulips": {
"minecraft:mark_variant": {
"value": 2
}
},
"minecraft:mooshroom_brown_fed_azure_bluet": {
"minecraft:mark_variant": {
"value": 3
}
},
"minecraft:mooshroom_brown_fed_lily_of_the_valley": {
"minecraft:mark_variant": {
"value": 4
}
},
"minecraft:mooshroom_brown_fed_dandelion": {
"minecraft:mark_variant": {
"value": 5
}
},
"minecraft:mooshroom_brown_fed_blue_orchid": {
"minecraft:mark_variant": {
"value": 6
}
},
"minecraft:mooshroom_brown_fed_allium": {
"minecraft:mark_variant": {
"value": 7
}
},
"minecraft:mooshroom_brown_fed_oxeye_daisy": {
"minecraft:mark_variant": {
"value": 8
}
},
"minecraft:mooshroom_brown_fed_wither_rose": {
"minecraft:mark_variant": {
"value": 9
}
},
"minecraft:mooshroom_red": {
"minecraft:variant": {
"value": 0
}
},
"minecraft:mooshroom_brown": {
"minecraft:variant": {
"value": 1
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "mushroomcow", "mob" ]
},
"minecraft:mark_variant": {
"value": -1
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:collision_box": {
"width": 0.9,
"height": 1.3
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 10,
"max": 10
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": true,
"avoid_damage_blocks": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 1.105, 0.0 ]
}
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.25
},
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.5,
"target_dist": 0.0,
"track_target": true
},
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 1.0
},
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 1.25,
"items": [
"wheat"
]
},
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1.1
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 0.8
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 9
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage": {
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "lightning" },
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 0 }
]
},
"event": "minecraft:become_brown"
},
"deals_damage": false,
"on_damage_sound_event": "convert_mooshroom"
},
{
"on_damage": {
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "lightning" },
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1 }
]
},
"event": "minecraft:become_red"
},
"deals_damage": false,
"on_damage_sound_event": "convert_mooshroom"
}
]
}
},
"events": {
"become_cow": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:mooshroom_become_cow"
]
}
},
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"remove": {
},
"add": {
"component_groups": [
"minecraft:cow_adult",
"minecraft:mooshroom_red"
]
}
},
{
"weight": 5,
"remove": {
},
"add": {
"component_groups": [
"minecraft:cow_baby",
"minecraft:mooshroom_red"
]
}
}
]
},
"minecraft:entity_born": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:cow_baby"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:cow_baby"
]
},
"add": {
"component_groups": [
"minecraft:cow_adult"
]
}
},
"minecraft:flowerless": {
"add": {
"component_groups": [
"minecraft:mooshroom_fed_nothing"
]
}
},
"minecraft:ate_allium": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_allium"
]
}
},
"minecraft:ate_cornflower": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_cornflower"
]
}
},
"minecraft:ate_lily": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_lily_of_the_valley"
]
}
},
"minecraft:ate_rose": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_wither_rose"
]
}
},
"minecraft:ate_orchid": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_blue_orchid"
]
}
},
"minecraft:ate_daisy": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_oxeye_daisy"
]
}
},
"minecraft:ate_tulip": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_tulips"
]
}
},
"minecraft:ate_bluet": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_azure_bluet"
]
}
},
"minecraft:ate_poppy": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_poppy"
]
}
},
"minecraft:ate_dandelion": {
"add": {
"component_groups": [
"minecraft:mooshroom_brown_fed_dandelion"
]
}
},
"minecraft:become_red": {
"remove": {
"component_groups": [
"minecraft:mooshroom_brown"
]
},
"add": {
"component_groups": [
"minecraft:mooshroom_red",
"minecraft:mooshroom_fed_nothing"
]
}
},
"minecraft:become_brown": {
"remove": {
"component_groups": [
"minecraft:mooshroom_red"
]
},
"add": {
"component_groups": [
"minecraft:mooshroom_brown",
"minecraft:mooshroom_fed_nothing"
]
}
},
"minecraft:become_brown_adult": {
"remove": {
"component_groups": [
"minecraft:mooshroom_red"
]
},
"add": {
"component_groups": [
"minecraft:mooshroom_brown",
"minecraft:cow_adult",
"minecraft:mooshroom_fed_nothing"
]
}
},
"minecraft:become_red_adult": {
"remove": {
"component_groups": [
"minecraft:mooshroom_brown",
"minecraft:cow_baby"
]
},
"add": {
"component_groups": [
"minecraft:mooshroom_red",
"minecraft:cow_adult"
]
}
}
}
}
}

View File

@ -0,0 +1,346 @@
{
"format_version": "1.19.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:parrot",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:parrot_red": {
"minecraft:variant": { "value": 0 }
},
"minecraft:parrot_blue": {
"minecraft:variant": { "value": 1 }
},
"minecraft:parrot_green": {
"minecraft:variant": { "value": 2 }
},
"minecraft:parrot_cyan": {
"minecraft:variant": { "value": 3 }
},
"minecraft:parrot_silver": {
"minecraft:variant": { "value": 4 }
},
"minecraft:parrot_adult": {
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:loot": {
"table": "loot_tables/entities/parrot.json"
}
},
"minecraft:parrot_wild": {
"minecraft:type_family": {
"family": [ "parrot_wild", "mob" ]
},
"minecraft:tameable": {
"probability": 0.33,
"tame_items": [
"wheat_seeds",
"pumpkin_seeds",
"melon_seeds",
"beetroot_seeds"
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
},
"minecraft:behavior.random_fly": {
"priority": 2,
"xz_dist": 15,
"y_dist": 1,
"y_offset": 0,
"speed_multiplier": 1.0,
"can_land_on_trees": true,
"avoid_damage_blocks": true
},
"minecraft:behavior.follow_mob": {
"priority": 3,
"speed_multiplier": 1.0,
"stop_distance": 3,
"search_range": 20
}
},
"minecraft:parrot_tame": {
"minecraft:type_family": {
"family": [ "parrot_tame", "mob" ]
},
"minecraft:is_tamed": {
},
"minecraft:behavior.follow_owner": {
"priority": 2,
"speed_multiplier": 1.0,
"start_distance": 5,
"stop_distance": 1
},
"minecraft:sittable": {
},
"minecraft:behavior.stay_while_sitting": {
"priority": 1
},
"minecraft:behavior.find_mount": {
"priority": 3,
"within_radius": 16,
"avoid_water": true,
"start_delay": 100,
"target_needed": false,
"mount_distance": 2.0
}
},
"minecraft:parrot_not_riding_player": {
"minecraft:entity_sensor": {
"sensor_range": 2.0,
"relative_range": false,
"event_filters": {
"all_of": [
{
"test": "is_riding",
"subject": "self",
"operator": "equals",
"value": true
},
{
"test": "has_component",
"subject": "self",
"operator": "equals",
"value": "minecraft:behavior.look_at_player"
}
]
},
"event": "minecraft:on_riding_player"
},
"minecraft:behavior.look_at_player": {
"priority": 1,
"look_distance": 8.0
}
},
"minecraft:parrot_riding_player": {
"minecraft:entity_sensor": {
"sensor_range": 2.0,
"relative_range": false,
"event_filters": {
"all_of": [
{
"test": "is_riding",
"subject": "self",
"operator": "equals",
"value": false
},
{
"test": "has_component",
"subject": "self",
"operator": "not",
"value": "minecraft:behavior.look_at_player"
}
]
},
"event": "minecraft:on_not_riding_player"
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:collision_box": {
"width": 0.5,
"height": 1
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 6,
"max": 6
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.4
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "fall",
"deals_damage": false
}
},
"minecraft:jump.static": {
},
"minecraft:can_fly": {
},
"minecraft:navigation.fly": {
"can_path_over_water": true,
"can_path_from_air": true
},
"minecraft:movement.fly": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.panic": {
"priority": 0,
"speed_multiplier": 1.25
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:healable": {
"force_use": true,
"filters": {
"test": "is_riding",
"operator": "!=",
"value": true
},
"items": [
{
"item": "cookie",
"heal_amount": 0,
"effects": [
{
"name": "fatal_poison",
"chance": 1.0,
"duration": 1000,
"amplifier": 0
}
]
}
]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 20,
"add": {
"component_groups": [
"minecraft:parrot_red",
"minecraft:parrot_adult",
"minecraft:parrot_wild",
"minecraft:parrot_not_riding_player"
]
}
},
{
"weight": 20,
"add": {
"component_groups": [
"minecraft:parrot_blue",
"minecraft:parrot_adult",
"minecraft:parrot_wild",
"minecraft:parrot_not_riding_player"
]
}
},
{
"weight": 20,
"add": {
"component_groups": [
"minecraft:parrot_green",
"minecraft:parrot_adult",
"minecraft:parrot_wild",
"minecraft:parrot_not_riding_player"
]
}
},
{
"weight": 20,
"add": {
"component_groups": [
"minecraft:parrot_cyan",
"minecraft:parrot_adult",
"minecraft:parrot_wild",
"minecraft:parrot_not_riding_player"
]
}
},
{
"weight": 20,
"add": {
"component_groups": [
"minecraft:parrot_silver",
"minecraft:parrot_adult",
"minecraft:parrot_wild",
"minecraft:parrot_not_riding_player"
]
}
}
]
},
"minecraft:on_tame": {
"remove": {
"component_groups": [
"minecraft:parrot_wild"
]
},
"add": {
"component_groups": [
"minecraft:parrot_tame"
]
}
},
"minecraft:on_riding_player": {
"remove": {
"component_groups": [
"minecraft:parrot_not_riding_player"
]
},
"add": {
"component_groups": [
"minecraft:parrot_riding_player"
]
}
},
"minecraft:on_not_riding_player": {
"remove": {
"component_groups": [
"minecraft:parrot_riding_player"
]
},
"add": {
"component_groups": [
"minecraft:parrot_not_riding_player"
]
}
}
}
}
}

View File

@ -0,0 +1,506 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:pillager",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:celebrate": {
"minecraft:behavior.celebrate": {
"priority": 5,
"celebration_sound": "celebrate",
"sound_interval": {
"range_min": 2.0,
"range_max": 7.0
},
"jump_interval": {
"range_min": 1.0,
"range_max": 3.5
},
"duration": 30.0,
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
}
}
},
"minecraft:ranged_attack": {
"minecraft:behavior.ranged_attack": {
"priority": 4,
"attack_interval_min": 1.0,
"attack_interval_max": 1.0,
"attack_radius": 8.0
},
"minecraft:shooter": {
"def": "minecraft:arrow"
},
"minecraft:environment_sensor": {
"triggers": {
"filters": {
"test": "is_underwater",
"subject": "self",
"operator": "==",
"value": true
},
"event": "minecraft:melee_mode"
}
}
},
"minecraft:melee_attack": {
"minecraft:behavior.melee_attack": {
"priority": 4,
"track_target": true
},
"minecraft:attack": {
"damage": 3
},
"minecraft:environment_sensor": {
"triggers": {
"filters": {
"test": "in_water",
"subject": "self",
"operator": "==",
"value": false
},
"event": "minecraft:ranged_mode"
}
}
},
"minecraft:raid_configuration": {
"minecraft:dweller": {
"dwelling_type": "village",
"dweller_role": "hostile",
"update_interval_base": 60,
"update_interval_variant": 40,
"can_find_poi": false,
"can_migrate": true,
"first_founding_reward": 0
},
"minecraft:behavior.move_to_village": {
"priority": 5,
"speed_multiplier": 1.0,
"goal_radius": 2.0
},
"minecraft:loot": {
"table": "loot_tables/entities/pillager_raid.json"
},
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient.in.raid"
}
},
"minecraft:raid_persistence": {
"minecraft:persistent": {}
},
"minecraft:illager_squad_captain": {
"minecraft:is_illager_captain": {
},
"minecraft:variant": {
"value": 1
},
"minecraft:equipment": {
"table": "loot_tables/entities/pillager_captain_equipment.json",
"slot_drop_chance": [
{
"slot": "slot.armor.chest",
"drop_chance": 1.0
}
]
},
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "minecraft:gain_bad_omen",
"target": "other"
}
}
},
"minecraft:on_hurt": {
"event": "minecraft:ranged_mode",
"target": "self"
},
"minecraft:on_hurt_by_player": {
"event": "minecraft:ranged_mode",
"target": "self"
}
},
"minecraft:patrol_captain": {
"minecraft:is_illager_captain": {
},
"minecraft:variant": {
"value": 1
},
"minecraft:equipment": {
"table": "loot_tables/entities/pillager_captain_equipment.json",
"slot_drop_chance": [
{
"slot": "slot.armor.chest",
"drop_chance": 1.0
}
]
},
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "minecraft:gain_bad_omen",
"target": "other"
}
}
},
"minecraft:on_hurt": {
"event": "minecraft:ranged_mode",
"target": "self"
},
"minecraft:on_hurt_by_player": {
"event": "minecraft:ranged_mode",
"target": "self"
},
"minecraft:on_target_escape": {
"event": "minecraft:calm",
"target": "self"
},
"minecraft:behavior.hold_ground": {
"priority": 5,
"min_radius": 10,
"broadcast": true,
"broadcast_range": 8,
"within_radius_event": {
"event": "minecraft:ranged_mode",
"target": "self"
}
},
"minecraft:behavior.move_to_random_block": {
"priority": 6,
"speed_multiplier": 0.55,
"within_radius": 8,
"block_distance": 512
}
},
"minecraft:patrol_follower": {
"minecraft:behavior.follow_target_captain": {
"priority": 5,
"speed_multiplier": 0.8,
"within_radius": 64,
"follow_distance": 5
},
"minecraft:behavior.hold_ground": {
"priority": 6,
"min_radius": 10,
"broadcast": true,
"broadcast_range": 8,
"within_radius_event": {
"event": "minecraft:ranged_mode",
"target": "self"
}
},
"minecraft:on_hurt": {
"event": "minecraft:ranged_mode",
"target": "self"
},
"minecraft:on_hurt_by_player": {
"event": "minecraft:ranged_mode",
"target": "self"
},
"minecraft:on_target_escape": {
"event": "minecraft:calm",
"target": "self"
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? (query.is_baby ? 12 : 5) + (Math.die_roll(query.equipment_count,1,3)) : 0"
},
"minecraft:equip_item": {
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.9
},
"minecraft:type_family": {
"family": [ "pillager", "monster", "illager", "mob" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:health": {
"value": 24,
"max": 24
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:loot": {
"table": "loot_tables/entities/pillager.json"
},
"minecraft:shareables": {
"items": [
{
"item": "minecraft:banner:15",
"want_amount": 1,
"surplus_amount": 1,
"priority": 0
}
]
},
"minecraft:movement": {
"value": 0.35
},
"minecraft:navigation.walk": {
"can_path_over_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:nameable": {
},
"minecraft:equipment": {
"table": "loot_tables/entities/pillager_gear.json"
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.hurt_by_target": {
"priority": 1,
"entity_types": {
"filters": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "illager"
},
"max_dist": 64
}
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"must_see": true,
"reselect_targets": true,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"value": "irongolem"
},
{
"test": "is_family",
"subject": "other",
"value": "wandering_trader"
}
]
},
"max_dist": 16
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "villager"
},
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
}
]
},
"max_dist": 16
}
]
},
"minecraft:behavior.equip_item": {
"priority": 3
},
"minecraft:behavior.pickup_items": {
"priority": 7,
"max_dist": 3,
"goal_radius": 2,
"speed_multiplier": 1.0
},
"minecraft:behavior.random_stroll": {
"priority": 8,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 9,
"look_distance": 8
},
"minecraft:behavior.random_look_around": {
"priority": 10
},
"minecraft:behavior.charge_held_item": {
"priority": 3,
"items": [
"minecraft:arrow"
]
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:follow_range": {
"value": 64
}
},
"events": {
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"minecraft:ranged_attack"
]
}
},
"minecraft:spawn_for_raid": {
"add": {
"component_groups": [
"minecraft:ranged_attack",
"minecraft:raid_configuration",
"minecraft:raid_persistence"
]
}
},
"minecraft:spawn_as_patrol_follower": {
"add": {
"component_groups": [
"minecraft:patrol_follower"
]
}
},
"minecraft:spawn_as_illager_captain": {
"add": {
"component_groups": [
"minecraft:ranged_attack",
"minecraft:illager_squad_captain"
]
}
},
"minecraft:promote_to_illager_captain": {
"add": {
"component_groups": [
"minecraft:illager_squad_captain"
]
},
"remove": {
"component_groups": [
"minecraft:patrol_follower"
]
}
},
"minecraft:promote_to_patrol_captain": {
"add": {
"component_groups": [
"minecraft:patrol_captain"
]
},
"remove": {
"component_groups": [
"minecraft:patrol_follower"
]
}
},
"minecraft:melee_mode": {
"remove": { "component_groups": [ "minecraft:ranged_attack" ] },
"add": { "component_groups": [ "minecraft:melee_attack" ] }
},
"minecraft:ranged_mode": {
"remove": { "component_groups": [ "minecraft:melee_attack" ] },
"add": { "component_groups": [ "minecraft:ranged_attack" ] }
},
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
"sequence": [
{
"add": { "component_groups": [ "minecraft:celebrate" ] }
},
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:stop_celebrating": {
"remove": { "component_groups": [ "minecraft:celebrate" ] }
},
"minecraft:raid_expired": {
"sequence": [
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:calm": {
"remove": { "component_groups": [ "minecraft:melee_attack", "minecraft:ranged_attack" ] }
}
}
}
}

View File

@ -0,0 +1,497 @@
{
"format_version": "1.17.20",
"minecraft:entity": {
"description": {
"identifier": "minecraft:ravager",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:celebrate": {
"minecraft:behavior.celebrate": {
"priority": 5,
"celebration_sound": "celebrate",
"sound_interval": {
"range_min": 2.0,
"range_max": 7.0
},
"jump_interval": {
"range_min": 1.0,
"range_max": 3.5
},
"duration": 30.0,
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
}
}
},
"minecraft:pillager_rider": {
"minecraft:addrider": {
"entity_type": "minecraft:pillager"
}
},
"minecraft:pillager_rider_for_raid": {
"minecraft:addrider": {
"entity_type": "minecraft:pillager",
"spawn_event": "minecraft:spawn_for_raid"
}
},
"minecraft:evoker_rider_for_raid": {
"minecraft:addrider": {
"entity_type": "minecraft:evocation_illager",
"spawn_event": "minecraft:spawn_for_raid"
}
},
"minecraft:pillager_captain_rider": {
"minecraft:addrider": {
"entity_type": "minecraft:pillager",
"spawn_event": "minecraft:spawn_as_illager_captain"
}
},
"minecraft:vindicator_rider": {
"minecraft:addrider": {
"entity_type": "minecraft:vindicator"
}
},
"minecraft:vindicator_captain_rider": {
"minecraft:addrider": {
"entity_type": "minecraft:vindicator",
"spawn_event": "minecraft:spawn_as_illager_captain"
}
},
"minecraft:raid_configuration": {
"minecraft:dweller": {
"dwelling_type": "village",
"dweller_role": "hostile",
"update_interval_base": 60,
"update_interval_variant": 40,
"can_find_poi": false,
"can_migrate": true,
"first_founding_reward": 0
},
"minecraft:behavior.move_to_village": {
"priority": 5,
"speed_multiplier": 1.0,
"goal_radius": 2.0
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 1.0
},
"minecraft:ambient_sound_interval": {
"value": 4.0,
"range": 8.0,
"event_name": "ambient.in.raid"
}
},
"minecraft:raid_persistence": {
"minecraft:persistent": {}
},
"minecraft:hostile": {
"minecraft:movement": {
"value": 0.3
},
"minecraft:behavior.delayed_attack": {
"priority": 4,
"attack_once": false,
"track_target": true,
"require_complete_path": false,
"random_stop_interval": 0,
"reach_multiplier": 1.5,
"speed_multiplier": 1.0,
"attack_duration": 0.75,
"hit_delay_pct": 0.5
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 0.4
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6,
"angle_of_view_horizontal": 45,
"probability": 1
},
"minecraft:behavior.look_at_entity": {
"priority": 10,
"look_distance": 8,
"angle_of_view_horizontal": 45,
"filters": {
"test": "is_family",
"subject": "other",
"value": "mob"
}
},
"minecraft:behavior.hurt_by_target": {
"priority": 2,
"entity_types": {
"filters": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "illager"
},
"max_dist": 64
}
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"must_see": true,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"any_of": [
{
"subject": "other",
"test": "is_family",
"value": "player"
},
{
"subject": "other",
"test": "is_family",
"value": "irongolem"
},
{
"test": "is_family",
"subject": "other",
"value": "wandering_trader"
}
]
},
"max_dist": 16
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "villager"
},
{
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
}
]
},
"max_dist": 16
}
]
},
"minecraft:behavior.mount_pathing": {
"priority": 5,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
}
},
"stunned": {
"minecraft:is_stunned": {
},
"minecraft:timer": {
"looping": false,
"time": 2,
"time_down_event": {
"event": "minecraft:start_roar"
}
}
},
"roaring": {
"minecraft:behavior.knockback_roar": {
"priority": 1,
"duration": 1,
"attack_time": 0.5,
"knockback_damage": 6,
"knockback_horizontal_strength": 3,
"knockback_vertical_strength": 3,
"knockback_range": 4,
"knockback_filters": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "ravager"
},
"damage_filters": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "illager"
},
"on_roar_end": {
"event": "minecraft:end_roar"
},
"cooldown_time": 0.1
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 20 : 0"
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:ravager_blocked": {
"knockback_strength": 3.0,
"reaction_choices": [
{
"weight": 1,
"value": {
"event": "minecraft:become_stunned",
"target": "self"
}
},
{
// Default, large knockback case
"weight": 1
}
]
},
"minecraft:attack": {
"damage": 12.0
},
"minecraft:breathable": {
"suffocate_time": 0,
"total_supply": 15
},
"minecraft:collision_box": {
"height": 1.9,
"width": 1.2
},
"minecraft:health": {
"max": 100,
"value": 100
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:jump.static": {},
"minecraft:loot": {
"table": "loot_tables/entities/ravager.json"
},
"minecraft:knockback_resistance": {
"value": 0.75
},
"minecraft:movement": {
"value": 0.0
},
"minecraft:movement.basic": {},
"minecraft:nameable": {},
"minecraft:navigation.walk": {
"avoid_damage_blocks": true,
"can_path_over_water": true,
"can_sink": false
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:break_blocks": {
"breakable_blocks": [
"bamboo",
"bamboo_sapling",
"beetroot",
"brown_mushroom",
"carrots",
"carved_pumpkin",
"chorus_flower",
"chorus_plant",
"deadbush",
"double_plant",
"leaves",
"leaves2",
"lit_pumpkin",
"melon_block",
"melon_stem",
"potatoes",
"pumpkin",
"pumpkin_stem",
"red_flower",
"red_mushroom",
"crimson_fungus",
"warped_fungus",
"reeds",
"sapling",
"snow_layer",
"sweet_berry_bush",
"tallgrass",
"turtle_egg",
"vine",
"waterlily",
"wheat",
"yellow_flower"
]
},
"minecraft:follow_range": {
"value": 64
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"pillager",
"vindicator",
"evocation_illager"
],
"seats": {
"position": [ 0.0, 2.1, -0.3 ]
}
},
"minecraft:type_family": {
"family": [
"monster",
"illager",
"ravager",
"mob"
]
}
},
"events": {
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"minecraft:hostile"
]
}
},
"minecraft:spawn_for_raid": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:raid_configuration",
"minecraft:raid_persistence"
]
}
},
"minecraft:spawn_for_raid_with_evoker_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:evoker_rider_for_raid",
"minecraft:raid_configuration",
"minecraft:raid_persistence"
]
}
},
"minecraft:spawn_for_raid_with_pillager_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:pillager_rider_for_raid",
"minecraft:raid_configuration",
"minecraft:raid_persistence"
]
}
},
"minecraft:spawn_with_pillager_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:pillager_rider"
]
}
},
"minecraft:spawn_with_pillager_captain_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:pillager_captain_rider"
]
}
},
"minecraft:spawn_with_vindicator_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:vindicator_rider"
]
}
},
"minecraft:spawn_with_vindicator_captain_rider": {
"add": {
"component_groups": [
"minecraft:hostile",
"minecraft:vindicator_captain_rider"
]
}
},
"minecraft:become_stunned": {
"add": {
"component_groups": [
"stunned"
]
},
"remove": {
"component_groups": [
"minecraft:hostile"
]
}
},
"minecraft:start_roar": {
"add": {
"component_groups": [
"roaring"
]
},
"remove": {
"component_groups": [
"stunned"
]
}
},
"minecraft:end_roar": {
"add": {
"component_groups": [
"minecraft:hostile"
]
},
"remove": {
"component_groups": [
"roaring"
]
}
},
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
"sequence": [
{
"add": { "component_groups": [ "minecraft:celebrate" ] }
},
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:stop_celebrating": {
"remove": { "component_groups": [ "minecraft:celebrate" ] }
},
"minecraft:raid_expired": {
"sequence": [
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
}
}
}
}

View File

@ -0,0 +1,442 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:sheep",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:loot_sheared": {
"minecraft:loot": {
"table": "loot_tables/entities/sheep_sheared.json"
}
},
"minecraft:loot_wooly": {
"minecraft:loot": {
"table": "loot_tables/entities/sheep.json"
}
},
"minecraft:rideable_sheared": {
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 0.9, 0.0 ]
}
}
},
"minecraft:rideable_wooly": {
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 0.975, 0.0 ]
}
}
},
"minecraft:sheep_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": "wheat",
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1.1
}
},
"minecraft:sheep_adult": {
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
},
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"require_tame": false,
"breeds_with": {
"mate_type": "minecraft:sheep",
"baby_type": "minecraft:sheep"
},
"breed_items": "wheat"
}
},
"minecraft:sheep_dyeable": {
"minecraft:is_dyeable": {
"interact_text": "action.interact.dye"
}
},
"minecraft:sheep_sheared": {
"minecraft:is_sheared": {
}
},
"minecraft:sheep_white": {
"minecraft:color": {
"value": 0
}
},
"minecraft:sheep_brown": {
"minecraft:color": {
"value": 12
}
},
"minecraft:sheep_black": {
"minecraft:color": {
"value": 15
}
},
"minecraft:sheep_gray": {
"minecraft:color": {
"value": 8
}
},
"minecraft:sheep_light_gray": {
"minecraft:color": {
"value": 7
}
},
"minecraft:sheep_pink": {
"minecraft:color": {
"value": 6
}
},
"minecraft:sheep_red": {
"minecraft:color": {
"value": 14
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "sheep", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:collision_box": {
"width": 0.9,
"height": 1.3
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 8,
"max": 8
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:interact": {
"interactions": [
{
"cooldown": 2.5,
"use_item": false,
"hurt_item": 1,
"spawn_items": { "table": "loot_tables/entities/sheep_shear.json" },
"play_sounds": "shear",
"interact_text": "action.interact.shear",
"vibration": "shear",
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:is_baby"},
{ "test" : "has_component", "value" : "minecraft:is_dyeable"}
]
},
"event": "minecraft:on_sheared",
"target": "self"
}
}
]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
"mass": 0.75
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.25
},
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.5,
"target_dist": 0.0,
"track_target": true
},
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 1.25,
"items": [
"wheat"
]
},
"minecraft:behavior.follow_parent": {
"priority": 5,
"speed_multiplier": 1.1
},
"minecraft:behavior.eat_block": {
"priority": 6,
"success_chance": "query.is_baby ? 0.02 : 0.001",
"time_until_eat": 1.8,
"eat_and_replace_block_pairs": [
{ "eat_block": "grass", "replace_block": "dirt" },
{ "eat_block": "tallgrass", "replace_block": "air" }
],
"on_eat": {
"event": "minecraft:on_eat_block",
"target": "self"
}
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 0.8
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 9
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 95,
"remove": {
},
"trigger": "spawn_adult"
},
{
"weight": 5,
"remove": {
},
"trigger": "spawn_baby"
}
]
},
{
"randomize": [
{
"weight": 81836,
"add": {
"component_groups": [
"minecraft:sheep_white"
]
}
},
{
"weight": 5000,
"add": {
"component_groups": [
"minecraft:sheep_black"
]
}
},
{
"weight": 5000,
"add": {
"component_groups": [
"minecraft:sheep_light_gray"
]
}
},
{
"weight": 5000,
"add": {
"component_groups": [
"minecraft:sheep_gray"
]
}
},
{
"weight": 3000,
"add": {
"component_groups": [
"minecraft:sheep_brown"
]
}
},
{
"weight": 164,
"add": {
"component_groups": [
"minecraft:sheep_pink"
]
}
}
]
}
]
},
"spawn_adult": {
"add": {
"component_groups": [
"minecraft:sheep_adult",
"minecraft:sheep_dyeable",
"minecraft:rideable_wooly",
"minecraft:loot_wooly"
]
}
},
"spawn_baby": {
"add": {
"component_groups": [
"minecraft:sheep_baby",
"minecraft:sheep_dyeable",
"minecraft:rideable_sheared"
]
}
},
"minecraft:entity_born": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:sheep_baby",
"minecraft:sheep_dyeable",
"minecraft:rideable_sheared"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:sheep_baby"
]
},
"add": {
"component_groups": [
"minecraft:sheep_adult",
"minecraft:rideable_wooly",
"minecraft:loot_wooly"
]
}
},
"minecraft:on_sheared": {
"remove": {
"component_groups": [
"minecraft:sheep_dyeable",
"minecraft:loot_wooly"
]
},
"add": {
"component_groups": [
"minecraft:sheep_sheared",
"minecraft:rideable_sheared",
"minecraft:loot_sheared"
]
}
},
"minecraft:on_eat_block": {
"sequence": [
{
"remove": {
"component_groups": [
"minecraft:sheep_sheared"
]
},
"add": {
"component_groups": [
"minecraft:sheep_dyeable"
]
}
},
{
"filters": {
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"minecraft:rideable_wooly",
"minecraft:loot_wooly"
]
},
"remove": {
"component_groups": [
"minecraft:loot_sheared"
]
}
}
]
},
"wololo": {
"add": {
"component_groups": [
"minecraft:sheep_red"
]
}
}
}
}
}

View File

@ -0,0 +1,542 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:shulker",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:shulker_purple": {
"minecraft:variant": {
"value": 5
}
},
"minecraft:shulker_black": {
"minecraft:variant": {
"value": 0
}
},
"minecraft:shulker_blue": {
"minecraft:variant": {
"value": 4
}
},
"minecraft:shulker_brown": {
"minecraft:variant": {
"value": 3
}
},
"minecraft:shulker_cyan": {
"minecraft:variant": {
"value": 6
}
},
"minecraft:shulker_gray": {
"minecraft:variant": {
"value": 8
}
},
"minecraft:shulker_green": {
"minecraft:variant": {
"value": 2
}
},
"minecraft:shulker_light_blue": {
"minecraft:variant": {
"value": 12
}
},
"minecraft:shulker_lime": {
"minecraft:variant": {
"value": 10
}
},
"minecraft:shulker_magenta": {
"minecraft:variant": {
"value": 13
}
},
"minecraft:shulker_orange": {
"minecraft:variant": {
"value": 14
}
},
"minecraft:shulker_pink": {
"minecraft:variant": {
"value": 9
}
},
"minecraft:shulker_red": {
"minecraft:variant": {
"value": 1
}
},
"minecraft:shulker_silver": {
"minecraft:variant": {
"value": 7
}
},
"minecraft:shulker_undyed": {
"minecraft:variant": {
"value": 16
}
},
"minecraft:shulker_white": {
"minecraft:variant": {
"value": 15
}
},
"minecraft:shulker_yellow": {
"minecraft:variant": {
"value": 11
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 5 : 0"
},
"minecraft:type_family": {
"family": [ "shulker", "monster", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0,
"breathes_lava": false,
"breathes_water": false
},
"minecraft:nameable": {
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 80.0,
"max_dropped_ticks": 10,
"use_motion_prediction_hints": true
}
},
"minecraft:health": {
"value": 30,
"max": 30
},
"minecraft:fire_immune": true,
"minecraft:movement": {
"value": 0.0,
"max": 0.0
},
"minecraft:loot": {
"table": "loot_tables/entities/shulker.json"
},
"minecraft:peek": {
"on_open": {
"event": "minecraft:on_open"
},
"on_close": {
"event": "minecraft:on_close"
},
"on_target_open": {
"event": "minecraft:on_open"
}
},
"minecraft:behavior.look_at_player": {
"priority": 1,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:shooter": {
"def": "minecraft:shulker_bullet"
},
"minecraft:behavior.random_look_around": {
"priority": 8
},
"minecraft:behavior.ranged_attack": {
"attack_interval_min": 1,
"attack_interval_max": 3,
"attack_radius": 15
},
"minecraft:behavior.hurt_by_target": {
"priority": 2,
"entity_types": {
"filters": {
"test": "is_family",
"subject": "other",
"operator": "!=",
"value": "shulker"
}
}
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"entity_types": {
"filters": { "test" : "is_family", "subject" : "other", "value" : "player"},
"max_dist": 16
},
"must_see": true
},
"minecraft:navigation.walk": {
},
"minecraft:movement.basic": {
},
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"all_of": [
{
"any_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:0"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:16"}
]
},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_black"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:8"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_gray"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:7"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_silver"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{
"any_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:15"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:19"}
]
},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_white"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:12"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_light_blue"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:14"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_orange"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:1"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_red"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{
"any_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:4"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:18"}
]
},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_blue"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:5"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_purple"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:13"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_magenta"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:9"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_pink"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{
"any_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:3"},
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:17"}
]
},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_brown"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:11"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_yellow"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:10"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_lime"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:2"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_green"
},
"use_item": true
},
{
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "dye:6"},
{ "test" : "is_family", "subject" : "other", "value" : "player"},
{ "test" : "has_ability","subject" : "other", "value" : "instabuild"}
]
},
"event": "minecraft:turn_cyan"
},
"use_item": true
}
]
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"minecraft:shulker_undyed"
]
}
},
"minecraft:turn_purple": {
"add": {
"component_groups": [
"minecraft:shulker_purple"
]
}
},
"minecraft:turn_black": {
"add": {
"component_groups": [
"minecraft:shulker_black"
]
}
},
"minecraft:turn_blue": {
"add": {
"component_groups": [
"minecraft:shulker_blue"
]
}
},
"minecraft:turn_brown": {
"add": {
"component_groups": [
"minecraft:shulker_brown"
]
}
},
"minecraft:turn_cyan": {
"add": {
"component_groups": [
"minecraft:shulker_cyan"
]
}
},
"minecraft:turn_gray": {
"add": {
"component_groups": [
"minecraft:shulker_gray"
]
}
},
"minecraft:turn_green": {
"add": {
"component_groups": [
"minecraft:shulker_green"
]
}
},
"minecraft:turn_light_blue": {
"add": {
"component_groups": [
"minecraft:shulker_light_blue"
]
}
},
"minecraft:turn_lime": {
"add": {
"component_groups": [
"minecraft:shulker_lime"
]
}
},
"minecraft:turn_magenta": {
"add": {
"component_groups": [
"minecraft:shulker_magenta"
]
}
},
"minecraft:turn_orange": {
"add": {
"component_groups": [
"minecraft:shulker_orange"
]
}
},
"minecraft:turn_pink": {
"add": {
"component_groups": [
"minecraft:shulker_pink"
]
}
},
"minecraft:turn_red": {
"add": {
"component_groups": [
"minecraft:shulker_red"
]
}
},
"minecraft:turn_silver": {
"add": {
"component_groups": [
"minecraft:shulker_silver"
]
}
},
"minecraft:turn_white": {
"add": {
"component_groups": [
"minecraft:shulker_white"
]
}
},
"minecraft:turn_yellow": {
"add": {
"component_groups": [
"minecraft:shulker_yellow"
]
}
}
}
}
}

View File

@ -0,0 +1,169 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:snow_golem",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:snowman_sheared": {
"minecraft:is_sheared": {
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "snowgolem", "mob" ]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:nameable": {
},
"minecraft:collision_box": {
"width": 0.4,
"height": 1.8
},
"minecraft:loot": {
"table": "loot_tables/entities/snowman.json"
},
"minecraft:health": {
"value": 4,
"max": 4
},
"minecraft:movement": {
"value": 0.2
},
"minecraft:navigation.walk": {
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:attack": {
"damage": 2
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "fall",
"deals_damage": false
}
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
},
{
"filters": { "test": "is_temperature_value", "operator": ">", "value": 1.0 },
"cause": "temperature",
"damage_per_tick": 1
},
{
"filters": { "test": "in_contact_with_water", "operator": "==", "value": true },
"cause": "drowning",
"damage_per_tick": 1
}
]
},
"minecraft:interact": {
"interactions": [
{
"cooldown": 2.5,
"use_item": false,
"hurt_item": 1,
"spawn_items": { "table": "loot_tables/entities/snow_golem_shear.json" },
"play_sounds": "shear",
"interact_text": "action.interact.shear",
"vibration": "shear",
"on_interact": {
"filters": {
"all_of": [
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
{ "test": "is_family", "subject": "other", "value": "player"},
{ "test": "has_component", "operator": "!=", "value": "minecraft:is_sheared"}
]
},
"event": "minecraft:on_sheared",
"target": "self"
}
}
]
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0
},
"minecraft:balloonable": {
},
"minecraft:behavior.ranged_attack": {
"priority": 1,
"speed_multiplier": 1.25,
"attack_interval": 1,
"attack_radius": 10
},
"minecraft:shooter": {
"def": "minecraft:snowball"
},
"minecraft:trail": {
"block_type": "minecraft:snow_layer",
"spawn_filter": { "test": "is_temperature_value", "operator": "<", "value": 0.81 }
},
"minecraft:behavior.random_stroll": {
"priority": 2,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 3,
"look_distance": 6.0
},
"minecraft:behavior.random_look_around": {
"priority": 4
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"entity_types": [
{
"filters": { "test" : "is_family", "subject" : "other", "value" : "monster"},
"within_default": 6
}
]
},
"minecraft:persistent": {
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:on_sheared": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:snowman_sheared"
]
}
}
}
}
}

View File

@ -0,0 +1,119 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:tadpole",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"grow_up": {
"minecraft:transformation": {
"into": "minecraft:frog",
"transformation_sound": "convert_to_frog"
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [ "tadpole", "mob" ]
},
"minecraft:collision_box": {
"width": 0.8,
"height": 0.6
},
"minecraft:breathable": {
"total_supply": 8,
"suffocate_time": 0,
"breathes_water": true,
"breathes_air": false,
"generates_bubbles": false
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 6
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": {
"test": "in_lava",
"subject": "self",
"operator": "==",
"value": true
},
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:navigation.generic": {
"can_path_over_water": true,
"can_swim": true,
"can_walk": false,
"can_sink": false,
"avoid_damage_blocks": true
},
"minecraft:movement.sway": { //This is needed to allow the tadpole to swim
"sway_amplitude": 0.0
},
"minecraft:movement": {
"value": 0.1
},
"minecraft:underwater_movement": {
"value": 0.1
},
"minecraft:physics": {
},
"minecraft:pushable": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:is_baby": {
},
"minecraft:ageable": {
"duration": 1200,
"feed_items": [ "slime_ball" ],
"grow_up": {
"event": "ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 2.0
},
"minecraft:behavior.tempt": {
"priority": 5,
"speed_multiplier": 1.25,
"can_tempt_vertically": true,
"items": [ "slime_ball" ]
},
"minecraft:behavior.random_swim": {
"priority": 2,
"interval": 100
},
"minecraft:behavior.look_at_player": {
"priority": 3,
"target_distance": 6.0,
"probability": 0.02
}
},
"events": {
"ageable_grow_up": {
"sequence": [
{
"add": {
"component_groups": [ "grow_up" ]
}
}
]
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,446 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:vindicator",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:celebrate": {
"minecraft:behavior.celebrate": {
"priority": 5,
"celebration_sound": "celebrate",
"sound_interval": {
"range_min": 2.0,
"range_max": 7.0
},
"jump_interval": {
"range_min": 1.0,
"range_max": 3.5
},
"duration": 30.0,
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
}
}
},
"minecraft:vindicator_aggro": {
"minecraft:angry": {
"duration": -1,
"broadcast_anger": false,
"calm_event": {
"event": "minecraft:stop_aggro",
"target": "self"
}
}
},
"minecraft:vindicator_johnny": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"must_see": true,
"within_radius": 12.0,
"must_see_forget_duration": 40.0,
"entity_types": [
{
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "operator": "!=", "value": "illager" }
]
},
"max_dist": 12
}
]
}
},
"minecraft:default_targeting": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"must_see": true,
"within_radius": 12.0,
"must_see_forget_duration": 40.0,
"entity_types": [
{
"filters": {
"any_of": [
{ "test": "is_family", "subject": "other", "value": "player" },
{ "test": "is_family", "subject": "other", "value": "snowgolem" },
{ "test": "is_family", "subject": "other", "value": "irongolem" },
{ "test": "is_family", "subject": "other", "value": "wandering_trader" }
]
},
"max_dist": 12
},
{
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "villager" },
{ "test": "has_component", "subject": "other", "operator": "!=", "value": "minecraft:is_baby" }
]
},
"max_dist": 12
}
]
}
},
"minecraft:raid_configuration": {
"minecraft:dweller": {
"dwelling_type": "village",
"dweller_role": "hostile",
"update_interval_base": 60,
"update_interval_variant": 40,
"can_find_poi": false,
"can_migrate": true,
"first_founding_reward": 0
},
"minecraft:behavior.move_to_village": {
"priority": 4,
"speed_multiplier": 1.0,
"goal_radius": 2.0
},
"minecraft:loot": {
"table": "loot_tables/entities/vindicator_raid.json"
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"can_pass_doors": true,
"can_break_doors": true
},
"minecraft:annotation.break_door": {
"break_time": 30,
"min_difficulty": "normal"
},
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient.in.raid"
}
},
"minecraft:raid_persistence": {
"minecraft:persistent": {}
},
"minecraft:raid_despawn": {
"minecraft:despawn": {
"despawn_from_distance": {}
}
},
"minecraft:illager_squad_captain": {
"minecraft:is_illager_captain": {
},
"minecraft:variant": {
"value": 1
},
"minecraft:equipment": {
"table": "loot_tables/entities/vindicator_captain_equipment.json",
"slot_drop_chance": [
{
"slot": "slot.armor.chest",
"drop_chance": 1.0
}
]
},
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "minecraft:gain_bad_omen",
"target": "other"
}
}
}
},
"minecraft:patrol_captain": {
"minecraft:is_illager_captain": {
},
"minecraft:variant": {
"value": 1
},
"minecraft:equipment": {
"table": "loot_tables/entities/vindicator_captain_equipment.json",
"slot_drop_chance": [
{
"slot": "slot.armor.chest",
"drop_chance": 1.0
}
]
},
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": {
"all_of": [
{
"test": "has_damage",
"value": "fatal"
},
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"event": "minecraft:gain_bad_omen",
"target": "other"
}
}
},
"minecraft:behavior.move_to_random_block": {
"priority": 5,
"speed_multiplier": 0.55,
"within_radius": 8,
"block_distance": 512
}
},
"minecraft:patrol_follower": {
"minecraft:behavior.follow_target_captain": {
"priority": 5,
"speed_multiplier": 0.8,
"within_radius": 64,
"follow_distance": 5
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? (query.is_baby ? 12 : 5) + (Math.die_roll(query.equipment_count,1,3)) : 0"
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:nameable": {
"default_trigger": {
"event": "minecraft:stop_johnny",
"target": "self"
},
"name_actions": [
{
"name_filter": "Johnny",
"on_named": {
"event": "minecraft:start_johnny",
"target": "self"
}
}
]
},
// vindicator Components
"minecraft:type_family": {
"family": [ "vindicator", "monster", "illager", "mob" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.9
},
"minecraft:health": {
"value": 24,
"max": 24
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:attack": {
"damage": 8
},
"minecraft:movement": {
"value": 0.35
},
"minecraft:navigation.walk": {
"can_path_over_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:follow_range": {
"value": 64
},
"minecraft:loot": {
"table": "loot_tables/entities/vindication_illager.json"
},
"minecraft:equipment": {
"table": "loot_tables/entities/vindicator_gear.json"
},
// vindicator Behaviors
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.melee_attack": {
"priority": 3
},
"minecraft:behavior.random_stroll": {
"priority": 9,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 10,
"look_distance": 8,
"probability": 0.02
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:on_target_acquired": {
"event": "minecraft:become_aggro",
"target": "self"
},
"minecraft:on_target_escape": {
"event": "minecraft:stop_aggro",
"target": "self"
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
}
},
"events": {
"minecraft:entity_spawned": {
"add": {
"component_groups": [
"minecraft:default_targeting"
]
}
},
"minecraft:spawn_as_patrol_follower": {
"add": {
"component_groups": [
"minecraft:default_targeting",
"minecraft:patrol_follower"
]
}
},
"minecraft:become_aggro": {
"add": {
"component_groups": [
"minecraft:vindicator_aggro"
]
}
},
"minecraft:stop_aggro": {
"remove": {
"component_groups": [
"minecraft:vindicator_aggro"
]
}
},
"minecraft:start_johnny": {
"add": {
"component_groups": [
"minecraft:vindicator_johnny"
]
}
},
"minecraft:stop_johnny": {
"remove": {
"component_groups": [
"minecraft:vindicator_johnny"
]
},
"add": {
"component_groups": [
"minecraft:default_targeting"
]
}
},
"minecraft:spawn_for_raid": {
"add": {
"component_groups": [
"minecraft:default_targeting",
"minecraft:raid_configuration",
"minecraft:raid_persistence",
"minecraft:raid_despawn"
]
}
},
"minecraft:spawn_as_illager_captain": {
"add": {
"component_groups": [
"minecraft:illager_squad_captain"
]
}
},
"minecraft:promote_to_illager_captain": {
"add": {
"component_groups": [
"minecraft:illager_squad_captain"
]
},
"remove": {
"component_groups": [
"minecraft:patrol_follower"
]
}
},
"minecraft:promote_to_patrol_captain": {
"add": {
"component_groups": [
"minecraft:patrol_captain"
]
},
"remove": {
"component_groups": [
"minecraft:patrol_follower"
]
}
},
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
"sequence": [
{
"add": { "component_groups": [ "minecraft:celebrate" ] }
},
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:stop_celebrating": {
"remove": { "component_groups": [ "minecraft:celebrate" ] }
},
"minecraft:raid_expired": {
"sequence": [
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
}
}
}
}

View File

@ -0,0 +1,297 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:wandering_trader",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"managed": {
"minecraft:managed_wandering_trader": {}
},
"despawning": {
"minecraft:type_family": {
"family": [ "wandering_trader", "wandering_trader_despawning", "mob" ]
}
},
"minecraft:scared": {
"minecraft:angry": {
"duration": 5,
"broadcastAnger": true,
"broadcastRange": 10,
"broadcast_targets": [
"llama"
],
"broadcast_filters": { "test": "is_leashed_to", "subject": "other", "value": true },
"calm_event": {
"event": "minecraft:become_calm",
"target": "self"
}
}
}
},
"components": {
"minecraft:type_family": {
"family": [ "wandering_trader", "mob" ]
},
"minecraft:is_hidden_when_invisible": {
},
"minecraft:timer": {
"looping": false,
"random_time_choices": [
{ "weight": 50, "value": 2400 },
{ "weight": 50, "value": 3600 }
],
"time_down_event": {
"event": "minecraft:start_despawn",
"target": "self"
}
},
"minecraft:spawn_entity": {
"entities": [
{
"min_wait_time": 0,
"max_wait_time": 0,
"spawn_entity": "llama",
"spawn_event": "minecraft:from_wandering_trader",
"single_use": true,
"num_to_spawn": 2,
"should_leash": true
}
]
},
"minecraft:economy_trade_table": {
"display_name": "entity.wandering_trader.name",
"table": "trading/economy_trades/wandering_trader_trades.json",
"new_screen": true
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.9
},
"minecraft:movement": {
"value": 0.5
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"can_pass_doors": true,
"can_open_doors": false,
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:home": {
"restriction_radius": 16
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:despawn": {
"remove_child_entities": true,
"filters": {
"all_of": [
{
"any_of": [
{ "test": "is_family", "subject": "self", "value": "wandering_trader_despawning" },
{ "test": "has_trade_supply", "subject": "self", "value": false }
]
},
{ "test": "distance_to_nearest_player", "operator": ">", "value": 24 }
]
}
},
"minecraft:damage_sensor": {
"triggers": [
{
"cause": "entity_attack",
"deals_damage": true,
"on_damage": {
"event": "minecraft:become_scared"
}
},
{
"cause": "projectile",
"deals_damage": true,
"on_damage": {
"event": "minecraft:become_scared"
}
},
{
"cause": "magic",
"deals_damage": true,
"on_damage": {
"event": "minecraft:become_scared"
}
}
]
},
"minecraft:behavior.trade_with_player": {
"priority": 1
},
"minecraft:behavior.trade_interest": {
"priority": 3,
"within_radius": 6.0,
"interest_time": 45.0,
"remove_item_time": 1.0,
"carried_item_switch_time": 2.0,
"cooldown": 2.0
},
"minecraft:behavior.look_at_trading_player": {
"priority": 4
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 0.6
},
"minecraft:behavior.drink_potion": {
"priority": 1,
"speed_modifier": -0.2,
"potions": [
{
"id": 7, // Short invisibility
"chance": 1.0,
"filters": {
"all_of": [
{
"any_of": [
{ "test": "hourly_clock_time", "operator": ">=", "value": 18000 },
{ "test": "hourly_clock_time", "operator": "<", "value": 12000 }
]
},
{ "test": "is_visible", "subject": "self", "value": true },
{
"any_of": [
{ "test": "is_avoiding_mobs", "subject": "self", "value": true },
{
"all_of": [
{ "test": "has_component", "subject": "self", "value": "minecraft:angry" },
{ "test": "is_family", "subject": "target", "operator": "!=", "value": "player" }
]
}
]
}
]
}
},
{
"id": 8, // Long invisibility
"chance": 1.0,
"filters": {
"all_of": [
{ "test": "hourly_clock_time", "operator": ">=", "value": 12000 },
{ "test": "hourly_clock_time", "operator": "<", "value": 18000 },
{ "test": "is_visible", "subject": "self", "value": true },
{
"any_of": [
{ "test": "is_avoiding_mobs", "subject": "self", "value": true },
{ "test": "has_component", "subject": "self", "value": "minecraft:angry" }
]
}
]
}
}
]
},
"minecraft:behavior.avoid_mob_type": {
"priority": 2,
"entity_types": [
{
"filters": {
"any_of": [
{ "test": "is_family", "subject": "other", "value": "zombie" },
{ "test": "is_family", "subject": "other", "value": "zombie_villager" },
{ "test": "is_family", "subject": "other", "value": "zombie_pigman" },
{ "test": "is_family", "subject": "other", "value": "illager" },
{ "test": "is_family", "subject": "other", "value": "vex" }
]
},
"walk_speed_multiplier": 0.6,
"sprint_speed_multiplier": 0.6
}
],
"max_dist": 6
},
"minecraft:behavior.move_towards_home_restriction": {
"priority": 6,
"speed_multiplier": 0.6
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 0.6
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 8,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 9
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:nameable": {
}
},
"events": {
"minecraft:scheduled": {
"add": {
"component_groups": [
"managed"
]
}
},
"minecraft:start_despawn": {
"add": {
"component_groups": [
"despawning"
]
}
},
"minecraft:become_scared": {
"add": {
"component_groups": [
"minecraft:scared"
]
}
},
"minecraft:become_calm": {
"remove": {
"component_groups": [
"minecraft:scared"
]
}
}
}
}
}

View File

@ -0,0 +1,204 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:warden",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"emerging": {
"minecraft:behavior.emerge": {
"duration": 7.0,
"on_done": {
"event": "minecraft:emerged",
"target": "self"
}
}
}
},
"components": {
"minecraft:movement_sound_distance_offset": {
"value": 0.55
},
"minecraft:experience_reward": {
"on_bred": "Math.Random(1,7)",
"on_death": "query.last_hit_by_player ? 5 : 0"
},
"minecraft:attack": {
"damage": 30
},
"minecraft:vibration_listener": {},
"minecraft:vibration_damper": {},
"minecraft:suspect_tracking": {},
"minecraft:anger_level": {
"max_anger": 150,
"angry_threshold": 80,
"remove_targets_below_angry_threshold": true,
"angry_boost": 20,
"anger_decrement_interval": 1.0,
"default_annoyingness": 35,
"default_projectile_annoyingness": 10,
"on_increase_sounds": [
{ "sound": "listening_angry", "condition" : "query.anger_level(this) >= 40" },
{ "sound": "listening", "condition" : "query.anger_level(this) >= 0" }
],
"nuisance_filter": {
"all_of": [
{ "test": "is_family", "subject": "other", "operator": "not", "value": "warden" },
{ "test": "is_family", "subject": "other", "operator": "not", "value": "inanimate" }
]
}
},
"minecraft:is_hidden_when_invisible": {
},
"minecraft:type_family": {
"family": [
"warden",
"monster",
"mob"
]
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": true,
"avoid_damage_blocks": true
},
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient",
"event_names": [
{
"event_name" : "angry",
"condition" : "query.anger_level(this) >= 80"
},
{
"event_name" : "agitated",
"condition" : "query.anger_level(this) >= 40"
}
]
},
"minecraft:heartbeat": {
"interval": "2.0 - math.clamp(query.anger_level / 80 * 1.5, 0, 1.5)"
},
"minecraft:movement.basic": {},
"minecraft:jump.static": {},
"minecraft:can_climb": {},
"minecraft:collision_box": {
"width": 0.9,
"height": 2.9
},
"minecraft:health": {
"value": 500,
"max": 500
},
"minecraft:movement": {
"value": 0.3
},
"minecraft:knockback_resistance": {
"value": 1.0
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.dig": {
"priority": 1,
"duration": 5.5,
"idle_time": 60.0,
"vibration_is_disturbance": true,
"suspicion_is_disturbance": true,
"digs_in_daylight": false
},
"minecraft:behavior.roar": {
"priority": 2,
"duration": 4.2
},
"minecraft:behavior.sonic_boom": {
"priority": 3,
"duration": 3.0,
"speed_multiplier": 1.2,
"attack_damage": 10,
"attack_range_horizontal": 15,
"attack_range_vertical": 20,
"attack_cooldown": 2,
"knockback_vertical_strength": 0.5,
"knockback_horizontal_strength": 2.5,
"knockback_height_cap": 0.5,
"duration_until_attack_sound": 1.7,
"charge_sound": "sonic_charge",
"attack_sound": "sonic_boom"
},
"minecraft:behavior.melee_attack": {
"priority": 4,
"speed_multiplier": 1.2,
"melee_fov": 360
},
"minecraft:behavior.investigate_suspicious_location": {
"priority": 5,
"speed_multiplier": 0.7
},
"minecraft:behavior.sniff": {
"priority": 6,
"duration": 4.16,
"sniffing_radius": 24.0,
"suspicion_radius_horizontal" : 6.0,
"suspicion_radius_vertical": 20.0,
"cooldown_range": [ 5.0, 10.0 ]
},
"minecraft:behavior.random_stroll": {
"priority": 9,
"speed_multiplier": 0.5
},
"minecraft:behavior.random_look_around": {
"priority": 11
},
"minecraft:physics": {},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:mob_effect": {
"effect_range": 20,
"effect_time": 13,
"mob_effect": "darkness",
"cooldown_time": 6,
"entity_filter": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "player" },
{ "operator": "not", "test": "has_ability", "subject" : "other", "value" : "invulnerable" }
]
}
},
"minecraft:follow_range": 30,
"minecraft:fire_immune": {},
"minecraft:nameable": {},
"minecraft:loot": {
"table": "loot_tables/entities/warden.json"
}
},
"events": {
"minecraft:spawn_emerging": {
"add": {
"component_groups": [
"emerging"
]
}
},
"minecraft:emerged": {
"remove": {
"component_groups": [
"emerging"
]
}
},
"minecraft:entity_spawned": {
}
}
}
}

View File

@ -0,0 +1,204 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:witch",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:celebrate": {
"minecraft:behavior.celebrate": {
"priority": 5,
"celebration_sound": "celebrate",
"sound_interval": {
"range_min": 2.0,
"range_max": 7.0
},
"jump_interval": {
"range_min": 1.0,
"range_max": 3.5
},
"duration": 30.0,
"on_celebration_end_event": {
"event": "minecraft:stop_celebrating",
"target": "self"
}
}
},
"minecraft:raid_configuration": {
"minecraft:dweller": {
"dwelling_type": "village",
"dweller_role": "hostile",
"update_interval_base": 60,
"update_interval_variant": 40,
"can_find_poi": false,
"can_migrate": true,
"first_founding_reward": 0
},
"minecraft:behavior.move_to_village": {
"priority": 3,
"speed_multiplier": 1.2,
"goal_radius": 2.0
},
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient.in.raid"
}
},
"minecraft:raid_persistence": {
"minecraft:persistent": {}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? (query.is_baby ? 12 : 5) + (Math.die_roll(query.equipment_count,1,3)) : 0"
},
"minecraft:breathable": {
"total_supply": 15,
"suffocate_time": 0
},
"minecraft:nameable": {
},
"minecraft:loot": {
"table": "loot_tables/entities/witch.json"
},
"minecraft:health": {
"value": 26,
"max": 26
},
"minecraft:hurt_on_condition": {
"damage_conditions": [
{
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
"cause": "lava",
"damage_per_tick": 4
}
]
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": false
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 1
},
"minecraft:behavior.ranged_attack": {
"priority": 2,
"speed_multiplier": 1.0,
"attack_interval_min": 3,
"attack_interval_max": 3,
"attack_radius": 10.0
},
"minecraft:behavior.random_stroll": {
"priority": 4,
"speed_multiplier": 1.0
},
"minecraft:behavior.look_at_player": {
"priority": 5,
"look_distance": 8.0
},
"minecraft:behavior.random_look_around": {
"priority": 5,
"look_distance": 8.0
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"value": "snowgolem"
},
{
"test": "is_family",
"subject": "other",
"value": "irongolem"
}
]
},
"max_dist": 10
}
],
"must_reach": true
},
"minecraft:type_family": {
"family": [ "witch", "monster", "mob" ]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.9
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:follow_range": {
"value": 64
},
"minecraft:conditional_bandwidth_optimization": {
}
},
"events": {
"minecraft:spawn_for_raid": {
"add": {
"component_groups": [
"minecraft:raid_configuration",
"minecraft:raid_persistence"
]
}
},
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
"sequence": [
{
"add": { "component_groups": [ "minecraft:celebrate" ] }
},
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
},
"minecraft:stop_celebrating": {
"remove": { "component_groups": [ "minecraft:celebrate" ] }
},
"minecraft:raid_expired": {
"sequence": [
{
"filters": { "test": "has_nametag", "value": false },
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
}
]
}
}
}
}

View File

@ -0,0 +1,41 @@
{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:xp_orb",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"components": {
"minecraft:collision_box": {
"width": 0.25,
"height": 0.25
},
"minecraft:type_family": {
"family": [ "inanimate" ]
},
"minecraft:health": {
"value": 5,
"max": 5
},
"minecraft:buoyant":{
"apply_gravity": false,
"liquid_blocks": ["minecraft:flowing_water", "minecraft:water"]
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 80.0,
"max_dropped_ticks": 10,
"use_motion_prediction_hints": true
}
}
}
}
}