Добавлен разборщик турелей

This commit is contained in:
Hell13Cat
2022-02-10 22:08:44 +03:00
parent 10c3636853
commit b6920f53b3
5 changed files with 102 additions and 13 deletions
+56 -6
View File
@@ -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": {
},
+39
View File
@@ -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]"
]
}
}
}
}
}
@@ -5,7 +5,7 @@
"entries": [
{
"type": "item",
"name": "imoo:turel_add",
"name": "imoo:turel_spawn_egg",
"weight": 1,
"functions": [
{
+3 -3
View File
@@ -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
]
}
]