@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
31 lines (30 loc) • 899 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.LeasableEntityTrait = void 0;
const ContentTraits_1 = require("./ContentTraits");
/**
* Leasable - can be leashed with a lead.
*/
class LeasableEntityTrait extends ContentTraits_1.EntityContentTrait {
get id() {
return "leasable";
}
getData(_config) {
return {
id: "leasable",
displayName: "Leasable",
description: "Can be leashed with a lead",
category: "interaction",
components: {
"minecraft:leashable": {
soft_distance: 4.0,
hard_distance: 6.0,
max_distance: 10.0,
},
},
};
}
}
exports.LeasableEntityTrait = LeasableEntityTrait;