@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
29 lines (28 loc) • 863 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.GravityAffectedBlockTrait = void 0;
const ContentTraits_1 = require("./ContentTraits");
/**
* Gravity affected - falls when unsupported.
*/
class GravityAffectedBlockTrait extends ContentTraits_1.BlockContentTrait {
get id() {
return "gravity_affected";
}
getData(_config) {
return {
id: "gravity_affected",
displayName: "Gravity Affected",
description: "Falls when unsupported",
category: "special",
components: {
"minecraft:on_placed": {
event: "check_fall",
},
},
};
}
}
exports.GravityAffectedBlockTrait = GravityAffectedBlockTrait;