Добавлен разборщик турелей
This commit is contained in:
@@ -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": {
|
||||
},
|
||||
|
||||
@@ -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": [
|
||||
{
|
||||
|
||||
@@ -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
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user