UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

40 lines (39 loc) 1.29 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.HumanoidEntityTrait = void 0; const ContentTraits_1 = require("./ContentTraits"); /** * Humanoid body type - bipedal, can climb and jump. */ class HumanoidEntityTrait extends ContentTraits_1.EntityContentTrait { get id() { return "humanoid"; } getData(config) { return { id: "humanoid", displayName: "Humanoid", description: "Bipedal humanoid body with arms and legs", category: "body_type", components: { "minecraft:can_climb": {}, "minecraft:jump.static": {}, "minecraft:movement.basic": {}, "minecraft:navigation.walk": { can_path_over_water: true, avoid_damage_blocks: true, }, }, resources: { animations: { walk: "animation.humanoid.walk", idle: "animation.humanoid.idle", attack: "animation.humanoid.attack", }, }, }; } } exports.HumanoidEntityTrait = HumanoidEntityTrait;