#Taming an entity on spawn

1 messages · Page 1 of 1 (latest)

tawny maple
gaunt dagger
#

Hmm. How exactly is it not working? Is it not tamed at all, or is it having some other kind of issues? As I've followed the tutorial issue and it spawns tamed just fine, but has some problems with tracking the owner.

Though one thing that I did notice that its essential to give the projectile that spawns the entity the arrow runtime identjfier

tawny maple
gaunt dagger
gaunt dagger
gaunt dagger
#

Oh, strange. Can you send the entity's file? I guess we're having different issues

tawny maple
gaunt dagger
#

Sure. Here's what I have:```json

{
"format_version": "1.20.40",
"minecraft:entity": {
"description": {
"identifier": "enderquest:ender_ally",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"components": {
"minecraft:is_tamed": {
},
"minecraft:behavior.follow_owner": {
"priority": 6,
"speed_multiplier": 1.0,
"start_distance": 10,
"stop_distance": 2
},

    "minecraft:behavior.owner_hurt_by_target": {
      "priority": 1
    },
    "minecraft:behavior.owner_hurt_target": {
      "priority": 2
    },
    "minecraft:behavior.nearest_attackable_target": {
      "priority": 5,
      "must_see": true,
      "entity_types": [
        {
          "filters": { "test" :  "is_family", "subject" : "other", "value" :  "enderman"},
          "max_dist": 16
        }
      ]
    },
    "minecraft:balloonable": {
      "mass": 0.8
    },
    "minecraft:is_hidden_when_invisible": {
    },
    "minecraft:type_family": {
      "family": [ "endermite", "mob" ]
    },
    "minecraft:breathable": {
      "total_supply": 15,
      "suffocate_time": 0
    },
    "minecraft:collision_box": {
      "width": 0.4,
      "height": 0.3
    },
    "minecraft:health": {
      "value": 8,
      "max": 8
    },
    "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.3
    },
    "minecraft:navigation.walk": {
      "can_path_over_water": true,
      "avoid_damage_blocks": true
    },
    "minecraft:movement.basic": {
    },
    "minecraft:jump.static": {
    },
    "minecraft:can_climb": {
    },
    "minecraft:attack": {
      "damage": 4
    },
    "minecraft:despawn": {
      "despawn_from_distance": {}
    },
    "minecraft:behavior.float": {
      "priority": 0
    },
    "minecraft:behavior.melee_attack": {
      "priority": 5
    },
    "minecraft:behavior.random_stroll": {
      "priority": 8,
      "speed_multiplier": 1.0
    },
    "minecraft:behavior.look_at_player": {
      "priority": 6,
      "target_distance": 6.0,
      "probability": 0.02
    },

    "minecraft:behavior.hurt_by_target": {
      "priority": 3
    },
    "minecraft:physics": {
    },
    "minecraft:pushable": {
      "is_pushable": true,
      "is_pushable_by_piston": true
    },
    "minecraft:conditional_bandwidth_optimization": {
    }
  }
}

}

tawny maple
#

Ok I'll check that out later