UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

38 lines (37 loc) 1.14 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.FlyingEntityTrait = void 0; const ContentTraits_1 = require("./ContentTraits"); /** * Flying body type - bird, bat, phantom. */ class FlyingEntityTrait extends ContentTraits_1.EntityContentTrait { get id() { return "flying"; } getData(config) { return { id: "flying", displayName: "Flying", description: "Can fly through the air", category: "body_type", components: { "minecraft:navigation.fly": { can_path_over_water: true, can_path_over_lava: false, }, "minecraft:can_fly": {}, "minecraft:movement.fly": {}, }, resources: { animations: { fly: "animation.flying.fly", glide: "animation.flying.glide", }, }, }; } } exports.FlyingEntityTrait = FlyingEntityTrait;