Новый моб
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"format_version": "1.17.10",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "imoo:sfw",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
|
||||
"component_groups": {
|
||||
"minecraft:silverfish_calm": {
|
||||
"minecraft:on_target_acquired" : {
|
||||
"event": "minecraft:become_angry",
|
||||
"target": "self"
|
||||
}
|
||||
},
|
||||
"minecraft:silverfish_angry": {
|
||||
"minecraft:angry": {
|
||||
"duration": -1,
|
||||
"broadcast_anger": true,
|
||||
"broadcast_range": 20,
|
||||
"calm_event": {
|
||||
"event": "minecraft:on_calm",
|
||||
"target": "self"
|
||||
}
|
||||
},
|
||||
"minecraft:behavior.melee_attack": {
|
||||
"priority": 1,
|
||||
"track_target": true
|
||||
},
|
||||
"minecraft:behavior.silverfish_wake_up_friends": {
|
||||
"priority": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"components": {
|
||||
"minecraft:is_hidden_when_invisible": {
|
||||
},
|
||||
"minecraft:experience_reward": {
|
||||
"on_death": "query.last_hit_by_player ? 5 : 0"
|
||||
},
|
||||
"minecraft:type_family": {
|
||||
"family":["lightweight", "mob", "arthropod" ]
|
||||
},
|
||||
"minecraft:breathable": {
|
||||
"total_supply": 15,
|
||||
"suffocate_time": 0
|
||||
},
|
||||
"minecraft:nameable": {
|
||||
},
|
||||
"minecraft:loot": {
|
||||
"table": "loot_tables/entities/imoo_sfw.json"
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 4,
|
||||
"max": 4
|
||||
},
|
||||
"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
|
||||
},
|
||||
"minecraft:movement.basic": {
|
||||
},
|
||||
"minecraft:jump.static": {
|
||||
},
|
||||
"minecraft:can_climb": {
|
||||
},
|
||||
"minecraft:attack": {
|
||||
"damage": 1
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.4,
|
||||
"height": 0.3
|
||||
},
|
||||
"minecraft:despawn": {
|
||||
"despawn_from_distance": {}
|
||||
},
|
||||
"minecraft:behavior.float": {
|
||||
"priority": 1
|
||||
},
|
||||
"minecraft:behavior.silverfish_merge_with_stone": {
|
||||
"priority": 5
|
||||
},
|
||||
"minecraft:behavior.nearest_attackable_target": {
|
||||
"priority": 1,
|
||||
"attack_interval": 10,
|
||||
"entity_types": [
|
||||
{
|
||||
"filters": {
|
||||
"any_of": [
|
||||
{ "test" : "is_family", "subject" : "other", "value" : "sheep"}
|
||||
]
|
||||
},
|
||||
"max_dist": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:behavior.hurt_by_target": {
|
||||
"priority": 1,
|
||||
"alert_same_type": true
|
||||
},
|
||||
"minecraft:physics": {
|
||||
},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": true,
|
||||
"is_pushable_by_piston": true
|
||||
},
|
||||
"minecraft:conditional_bandwidth_optimization": {
|
||||
},
|
||||
"minecraft:block_climber": {
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"minecraft:entity_spawned": {
|
||||
"remove": {
|
||||
},
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"minecraft:silverfish_calm"
|
||||
]
|
||||
}
|
||||
},
|
||||
"minecraft:become_angry": {
|
||||
"remove": {
|
||||
"minecraft:silverfish_calm": { }
|
||||
},
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"minecraft:silverfish_angry"
|
||||
]
|
||||
}
|
||||
},
|
||||
"minecraft:on_calm": {
|
||||
"remove": {
|
||||
"minecraft:silverfish_angry": { }
|
||||
},
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"minecraft:silverfish_calm"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "item",
|
||||
"name": "minecraft:string",
|
||||
"weight": 1,
|
||||
"functions": [
|
||||
{
|
||||
"function": "set_count",
|
||||
"count": {
|
||||
"min": 1,
|
||||
"max": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"function": "looting_enchant",
|
||||
"count": {
|
||||
"min": 0,
|
||||
"max": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
"version": [
|
||||
0,
|
||||
5,
|
||||
10
|
||||
15
|
||||
],
|
||||
"min_engine_version": [
|
||||
1,
|
||||
@@ -23,7 +23,7 @@
|
||||
"version": [
|
||||
0,
|
||||
5,
|
||||
10
|
||||
15
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -33,7 +33,7 @@
|
||||
"version": [
|
||||
0,
|
||||
5,
|
||||
10
|
||||
15
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"format_version": "1.8.0",
|
||||
"minecraft:spawn_rules": {
|
||||
"description": {
|
||||
"identifier": "imoo:sfw",
|
||||
"population_control": "animal"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"minecraft:spawns_on_surface": {},
|
||||
"minecraft:spawns_on_block_filter": "minecraft:grass",
|
||||
"minecraft:brightness_filter": {
|
||||
"min": 7,
|
||||
"max": 15,
|
||||
"adjust_for_weather": false
|
||||
},
|
||||
"minecraft:weight": {
|
||||
"default": 8
|
||||
},
|
||||
"minecraft:herd": {
|
||||
"min_size":2,
|
||||
"max_size":3
|
||||
},
|
||||
|
||||
"minecraft:biome_filter": {
|
||||
"test": "has_biome_tag", "operator":"==", "value": "animal"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user