今天看看cat.json有啥东西
分析见代码
{
"format_version": "1.8.0", 不解释
"minecraft:entity": {
"description": {
"identifier": "minecraft:cat",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},一直到这里不懂得看我的第一个分
"component_groups": { 团体?说明是群居动物
"minecraft:cat_baby": { 猫宝宝
"minecraft:is_baby": {}, 是否是宝宝的判断
"minecraft:scale": { 比例?
"value": 0.4 价格?什么东西啊。。。
},
"minecraft:ageable": { 可疑的?
"duration": 1200, 持续时间1200ms?
"feedItems": [ 吃的东西,懂
"fish", 鱼
"salmon"也是鱼
],
"grow_up": {长大的毛
"event": "minecraft:ageable_grow_up",长大的猫
"target": "self"目标是独立?意思就是说小时候跟家人,长大自己浪?
}
}
},
"minecraft:cat_adult": { 成年猫
"minecraft:loot": { 掉落物
"table": "loot_tables/entities/cat.json" 掉落物列表
},
"minecraft:scale": {
"value": 0.8
},解释过了
"minecraft:behavior.breed": {生小猫的行为
"priority": 3, 优先权
"speed_multiplier": 1.0 多个小猫
},也许是驯养小猫
"minecraft:breedable": { 驯服后的获得物品
"requireTame": true, 驯服状态
"allowSitting": true, 跟随效果
"breedsWith": { 驯养行为
"mateType": "minecraft:cat", 配对
"babyType": "minecraft:cat", 孩子
"breed_event": { 时间
"event": "minecraft:entity_born", 也不知道啥意思
"target": "baby" 不需要解释吧
}
},
"breedItems": [ 驯养东西
"fish",
"salmon"
]
}
},
"minecraft:cat_wild": { 没有驯服的猫
"minecraft:health": { 生命
"value": 10, 初始
"max": 10 最大
},
"minecraft:behavior.tempt": { 吸引?
"priority": 4,
"speed_multiplier": 0.5,
"within_radius": 16,
"can_get_scared": true,
"items": [
"fish",
"salmon"
]
},然后这里你们都可以自己百度了解了
"minecraft:tameable": {
"probability": 0.33,
"tameItems": [
"fish",
"salmon"
],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
},
"minecraft:behavior.avoid_mob_type": {
"priority": 5,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "player"
},
"max_dist": 10,
"walk_speed_multiplier": 0.8,
"sprint_speed_multiplier": 1.33
}
]
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"attack_interval": 10,
"reselect_targets": true,
"within_radius": 16.0,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "rabbit"
},
"max_dist": 8
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "baby_turtle"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
}
]
},
"max_dist": 8
}
]
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [
0.0,
0.35,
0.0
]
}
}
},
"minecraft:cat_tame": {
"minecraft:is_tamed": {},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:color": {
"value": 14
},
"minecraft:sittable": {},
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 0.5,
"within_radius": 16,
"items": [
"fish",
"salmon"
]
},
"minecraft:is_dyeable": {
"interact_text": "action.interact.dye"
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0,
"on_leash": {
"event": "minecraft:on_leash",
"target": "self"
},
"on_unleash": {
"event": "minecraft:on_unleash",
"target": "self"
}
},
"minecraft:behavior.follow_owner": {
"priority": 4,
"speed_multiplier": 1.0,
"start_distance": 10,
"stop_distance": 2
},
"minecraft:behavior.stay_while_sitting": {
"priority": 3
},
"minecraft:behavior.ocelot_sit_on_block": {
"priority": 6,
"speed_multiplier": 1.0
},
"minecraft:behavior.pet_sleep_with_owner": {
"priority": 2,
"speed_multiplier": 1.2,
"search_radius": 10,
"search_height": 10,
"goal_radius": 1.0
},
"minecraft:on_wake_with_owner": {
"event": "minecraft:pet_slept_with_owner",
"target": "self"
}
},
"minecraft:cat_gift_for_owner": {
"minecraft:behavior.drop_item_for": {
"priority": 1,
"speed_multiplier": 1.0,
"search_range": 5,
"search_height": 2,
"search_count": 0,
"goal_radius": 1.0,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "player"
},
"max_dist": 6
}
],
"max_dist": 5,
"drop_item_chance": 0.7,
"offering_distance": 5,
"loot_table": "loot_tables/entities/cat_gift.json",
"time_of_day_range": [
0.74999,
0.8
],
"on_drop_attempt": {
"event": "minecraft:cat_gifted_owner",
"target": "self"
}
}
},
"minecraft:cat_leashed": {
"minecraft:behavior.move_towards_restriction": {
"priority": 2,
"speed_multiplier": 1.0
}
},
"minecraft:cat_white": {
"minecraft:variant": {
"value": 0
}
},
"minecraft:cat_tuxedo": {
"minecraft:variant": {
"value": 1
}
},
"minecraft:cat_red": {
"minecraft:variant": {
"value": 2
}
},
"minecraft:cat_siamese": {
"minecraft:variant": {
"value": 3
}
},
"minecraft:cat_british": {
"minecraft:variant": {
"value": 4
}
},
"minecraft:cat_calico": {
"minecraft:variant": {
"value": 5
}
},
"minecraft:cat_persian": {
"minecraft:variant": {
"value": 6
}
},
"minecraft:cat_ragdoll": {
"minecraft:variant": {
"value": 7
}
},
"minecraft:cat_tabby": {
"minecraft:variant": {
"value": 8
}
},
"minecraft:cat_black": {
"minecraft:variant": {
"value": 9
}
}
},
"components": {
"minecraft:attack_damage": {
"value": 4
},
"minecraft:nameable": {},
"minecraft:type_family": {
"family": [
"cat"
]
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:collision_box": {
"width": 0.6,
"height": 0.7
},
"minecraft:movement": {
"value": 0.3
},
"minecraft:navigation.walk": {
"can_float": true,
"avoid_water": true,
"avoid_damage_blocks": true
},
"minecraft:movement.basic": {},
"minecraft:jump.static": {},
"minecraft:can_climb": {},
"minecraft:fall_damage": {
"value": 0.0
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.25
},
"minecraft:behavior.mount_pathing": {
"priority": 1,
"speed_multiplier": 1.25,
"target_dist": 0,
"track_target": true
},
"minecraft:behavior.leap_at_target": {
"priority": 3,
"target_dist": 0.3
},
"minecraft:behavior.ocelotattack": {
"priority": 4,
"walk_speed_multiplier": 0.8,
"sprint_speed_multiplier": 1.33,
"sneak_speed_multiplier": 0.6
},
"minecraft:behavior.random_stroll": {
"priority": 8,
"speed_multiplier": 0.8
},
"minecraft:behavior.look_at_player": {
"priority": 9
},
"minecraft:physics": {}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 3,
"remove": {},
"add": {
"component_groups": [
"minecraft:cat_adult",
"minecraft:cat_wild"
]
}
},
{
"weight": 1,
"remove": {},
"add": {
"component_groups": [
"minecraft:cat_baby",
"minecraft:cat_wild"
]
}
}
]
},
{
"randomize": [
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_white"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_tuxedo"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_red"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_siamese"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_british"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_calico"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_persian"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_ragdoll"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_tabby"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_black"
]
}
}
]
}
]
},
"minecraft:spawn_from_village": {
"sequence": [
{
"randomize": [
{
"weight": 3,
"remove": {},
"add": {
"component_groups": [
"minecraft:cat_adult",
"minecraft:cat_wild"
]
}
},
{
"weight": 1,
"remove": {},
"add": {
"component_groups": [
"minecraft:cat_baby",
"minecraft:cat_wild"
]
}
}
]
},
{
"randomize": [
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_tuxedo"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_red"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_siamese"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_white"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_british"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_calico"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_persian"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_ragdoll"
]
}
},
{
"weight": 15,
"add": {
"component_groups": [
"minecraft:cat_tabby"
]
}
}
]
}
]
},
"minecraft:spawn_midnight_cat": {
"sequence": [
{
"add": {
"component_groups": [
"minecraft:cat_adult",
"minecraft:cat_wild",
"minecraft:cat_black"
]
}
}
]
},
"minecraft:entity_born": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
"remove": {},
"add": {
"component_groups": [
"minecraft:cat_baby",
"minecraft:cat_tame"
]
}
}
]
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:cat_baby"
]
},
"add": {
"component_groups": [
"minecraft:cat_adult"
]
}
},
"minecraft:on_tame": {
"sequence": [
{
"remove": {
"component_groups": [
"minecraft:cat_wild"
]
}
},
{
"add": {
"component_groups": [
"minecraft:cat_tame"
]
}
}
]
},
"minecraft:on_leash": {
"add": {
"component_groups": [
"minecraft:cat_leashed"
]
}
},
"minecraft:on_unleash": {
"remove": {
"component_groups": [
"minecraft:cat_leashed"
]
}
},
"minecraft:pet_slept_with_owner": {
"add": {
"component_groups": [
"minecraft:cat_gift_for_owner"
]
}
},
"minecraft:cat_gifted_owner": {
"remove": {
"component_groups": [
"minecraft:cat_gift_for_owner"
]
}
}
}
}
}
以上的也都是大同小异,自己百度一下英文(然后套)即可