@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
34 lines (33 loc) • 1.15 kB
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuadrupedSmallEntityTrait = void 0;
const ContentTraits_1 = require("./ContentTraits");
/**
* Small quadruped body type - rabbit, cat sized.
*/
class QuadrupedSmallEntityTrait extends ContentTraits_1.EntityContentTrait {
get id() {
return "quadruped_small";
}
getData(config) {
return {
id: "quadruped_small",
displayName: "Small Quadruped",
description: "Small four-legged animal (rabbit, cat size)",
category: "body_type",
components: {
"minecraft:can_climb": {},
"minecraft:jump.static": { jump_power: 0.6 },
"minecraft:movement.basic": {},
"minecraft:navigation.walk": {
can_path_over_water: true,
avoid_damage_blocks: true,
},
"minecraft:scale": { value: 0.5 },
},
};
}
}
exports.QuadrupedSmallEntityTrait = QuadrupedSmallEntityTrait;