@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
39 lines (38 loc) • 1.22 kB
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuadrupedEntityTrait = void 0;
const ContentTraits_1 = require("./ContentTraits");
/**
* Quadruped body type - four-legged animal.
*/
class QuadrupedEntityTrait extends ContentTraits_1.EntityContentTrait {
get id() {
return "quadruped";
}
getData(config) {
return {
id: "quadruped",
displayName: "Quadruped",
description: "Four-legged animal body",
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.quadruped.walk",
idle: "animation.quadruped.idle",
},
},
};
}
}
exports.QuadrupedEntityTrait = QuadrupedEntityTrait;