UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

27 lines (26 loc) 760 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.NonStackableItemTrait = void 0; const ContentTraits_1 = require("./ContentTraits"); /** * Non-stackable - cannot stack. */ class NonStackableItemTrait extends ContentTraits_1.ItemContentTrait { get id() { return "non_stackable"; } getData(_config) { return { id: "non_stackable", displayName: "Non-Stackable", description: "Cannot stack", category: "special", components: { "minecraft:max_stack_size": 1, }, }; } } exports.NonStackableItemTrait = NonStackableItemTrait;