#Entity attack like player? :D

1 messages ยท Page 1 of 1 (latest)

viscid peak
#

Title! I wanna make my entity attack like a normal player and not like a zombie

cedar light
#

u can use this but you need to replace the identifiers into your mob's identifier

#

also the

#

model

viscid peak
#

I see, like for example.. Gura, use her entity id
vtber:gura?

viscid peak
#

Gotcha, thanks bro!

#

I'll do this at the weekend ๐Ÿ™

viscid peak
#

This is in its animation behaviour

{
  "format_version": "1.8.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "vtber:greek_gura",
      "materials": {
        "default": "skeleton"
      },
      "textures": {
        "default": "textures/entity/pamobile/vtber_greek_gura"
      },
      "geometry": {
        "default": "geometry.vtber_greek_gura"
      },
      "scripts": {
        "pre_animation": [
          "variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;"
        ]
      },
      "animations": {
        "look_at_target_default": "animation.humanoid.look_at_target.default",
        "look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
        "look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
        "move": "animation.humanoid.move",
        "riding.arms": "animation.humanoid.riding.arms",
        "riding.legs": "animation.humanoid.riding.legs",
        "holding": "animation.humanoid.holding",
        "brandish_spear": "animation.humanoid.brandish_spear",
        "charging": "animation.humanoid.charging",
        "attack.rotations": "animation.humanoid.attack.rotations",
        "sneaking": "animation.humanoid.sneaking",
        "bob": "animation.humanoid.bob",
        "damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
        "bow_and_arrow": "animation.humanoid.bow_and_arrow",
        "swimming": "animation.humanoid.swimming",
#
"use_item_progress": "animation.humanoid.use_item_progress",
        "skeleton_attack": "animation.skeleton.attack"
      },
      "animation_controllers": [
        {
          "look_at_target": "controller.animation.humanoid.look_at_target"
        },
        {
          "move": "controller.animation.humanoid.move"
        },
        {
          "riding": "controller.animation.humanoid.riding"
        },
        {
          "holding": "controller.animation.humanoid.holding"
        },
        {
          "brandish_spear": "controller.animation.humanoid.brandish_spear"
        },
        {
          "charging": "controller.animation.humanoid.charging"
        },
        {
#
          "attack": "controller.animation.humanoid.attack"
        },
        {
          "sneaking": "controller.animation.humanoid.sneaking"
        },
        {
          "bob": "controller.animation.humanoid.bob"
        },
        {
          "damage_nearby_mobs": "controller.animation.humanoid.damage_nearby_mobs"
        },
        {
          "bow_and_arrow": "controller.animation.humanoid.bow_and_arrow"
        },
        {
          "swimming": "controller.animation.humanoid.swimming"
        },
        {
          "use_item_progress": "controller.animation.humanoid.use_item_progress"
        },
        {
          "skeleton_attack": "controller.animation.skeleton.attack"
        }
      ],
      "spawn_egg": {
        "texture": "vtber:greek_gura_spawn_egg",
        "texture_index": 0
      },
      "render_controllers": [
        "controller.render.skeleton"
      ],
      "enable_attachables": true
    }
  }
}
viscid peak
#

The last few bits has this tidbit, I think I need to remove the skeleton stuff?

"skeleton_attack": "controller.animation.skeleton.attack"
        }
      ],
      "spawn_egg": {
        "texture": "vtber:greek_gura_spawn_egg",
        "texture_index": 0
      },
      "render_controllers": [
        "controller.render.skeleton"
      ],
      "enable_attachables": true
    }
  }
}
cedar light
#

thats the thing

#

that makes your mob attack like a zombie.

viscid peak
#

Yeah I noticed. So I can just remove while replacing with the reference right?

cedar light
bleak patio
cedar light
bleak patio
#

thank you

cedar light
bleak patio
#

oh i just wanted a mob that attacks like a player lol

cedar light
#

the bob anim is like the arms swaying for a bit.

bleak patio
#

ohh loll