diff --git a/behavior_pack/entities/imoo_turel.json b/behavior_pack/entities/imoo_turel.json index 996302f..35b912b 100644 --- a/behavior_pack/entities/imoo_turel.json +++ b/behavior_pack/entities/imoo_turel.json @@ -33,9 +33,9 @@ "burst_interval": 0.3, "charge_charged_trigger": 0.0, "charge_shoot_trigger": 4.0, - "attack_interval_min": 3.0, - "attack_interval_max": 5.0, - "attack_radius": 16.0 + "attack_interval_min": 2.0, + "attack_interval_max": 4.0, + "attack_radius": 40.0 } }, "melee_mode": { @@ -102,9 +102,25 @@ "minecraft:behavior.hurt_by_target": { "priority": 1 }, + "minecraft:behavior.target_when_pushed": { + "priority": 1, + "percent_chance": 5.0, + "entity_types": [ + { + "filters": { + "all_of": [ + { "test" : "is_family", "subject" : "other", "value" : "monster" }, + { "test" : "is_family", "subject" : "other", "operator": "!=", "value" : "creeper" } + ] + } + } + ] + }, "minecraft:behavior.nearest_attackable_target": { - "priority": 2, + "priority": 3, + "must_reach": true, "must_see": true, + "entity_types": [ { "filters": { @@ -122,7 +138,41 @@ } ] }, - "max_dist": 48.0 + "within_default": 50 + }, + { + "filters": { + "all_of": [ + { + "test": "is_family", + "subject": "other", + "value": "hoglin" + }, + { + "test": "is_difficulty", + "operator": "!=", + "value": "peaceful" + } + ] + }, + "max_dist": 50 + }, + { + "filters": { + "all_of": [ + { + "test": "is_family", + "subject": "other", + "value": "zoglin" + }, + { + "test": "is_difficulty", + "operator": "!=", + "value": "peaceful" + } + ] + }, + "max_dist": 50 } ] }, @@ -134,7 +184,7 @@ "priority": 5 }, "minecraft:type_family": { - "family": [ "blaze", "monster", "mob" ] + "family": [ "turel", "mob" ] }, "minecraft:physics": { }, diff --git a/behavior_pack/items/imoo_turel_del.json b/behavior_pack/items/imoo_turel_del.json new file mode 100644 index 0000000..f46b5d4 --- /dev/null +++ b/behavior_pack/items/imoo_turel_del.json @@ -0,0 +1,39 @@ +{ + "format_version": "1.17.0", + "minecraft:item": { + "description": { + "identifier": "imoo:turel_del", + "category": "construction" + }, + "components": { + "minecraft:icon": { + "texture": "mw_item", + "frame": 4 + }, + "minecraft:use_animation": "drink", + "minecraft:hand_equipped": false, + "minecraft:max_stack_size": 64, + "minecraft:foil": false, + "minecraft:food": { + "saturation_modifier": "low", + "nutrition": 4, + "can_always_eat": true, + "remove_effects": [], + "on_consume": { + "event": "imoo:turel_del" + }, + "using_converts_to": "mw_alko:bottle" + }, + "minecraft:use_duration": 0.1 + }, + "events": { + "imoo:turel_dell": { + "run_command": { + "command": [ + "kill @e[type=imoo:turel, r=2]" + ] + } + } + } + } +} \ No newline at end of file diff --git a/behavior_pack/loot_tables/entities/imoo_turel.json b/behavior_pack/loot_tables/entities/imoo_turel.json index fcdcbc1..bc8c97c 100644 --- a/behavior_pack/loot_tables/entities/imoo_turel.json +++ b/behavior_pack/loot_tables/entities/imoo_turel.json @@ -5,7 +5,7 @@ "entries": [ { "type": "item", - "name": "imoo:turel_add", + "name": "imoo:turel_spawn_egg", "weight": 1, "functions": [ { diff --git a/behavior_pack/manifest.json b/behavior_pack/manifest.json index d425562..42a91a5 100644 --- a/behavior_pack/manifest.json +++ b/behavior_pack/manifest.json @@ -7,7 +7,7 @@ "version": [ 0, 5, - 18 + 21 ], "min_engine_version": [ 1, @@ -23,7 +23,7 @@ "version": [ 0, 5, - 18 + 21 ] } ], @@ -33,7 +33,7 @@ "version": [ 0, 5, - 18 + 21 ] } ] diff --git a/resource_pack/manifest.json b/resource_pack/manifest.json index 1bb2c3d..0167420 100644 --- a/resource_pack/manifest.json +++ b/resource_pack/manifest.json @@ -7,7 +7,7 @@ "version": [ 0, 5, - 18 + 21 ], "min_engine_version": [ 1, @@ -23,7 +23,7 @@ "version": [ 0, 5, - 18 + 21 ] } ], @@ -33,7 +33,7 @@ "version": [ 0, 5, - 18 + 21 ] } ]