UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

35 lines (34 loc) 1.03 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.ButtonBlockTrait = void 0; const ContentTraits_1 = require("./ContentTraits"); /** * Button - momentary switch. */ class ButtonBlockTrait extends ContentTraits_1.BlockContentTrait { get id() { return "button"; } getData(_config) { return { id: "button", displayName: "Button", description: "Momentary switch", category: "interactive", components: { "minecraft:on_interact": { event: "pressed", }, "minecraft:geometry": "geometry.button", "minecraft:collision_box": false, "minecraft:selection_box": { origin: [-2, 0, -3], size: [4, 2, 6], }, }, }; } } exports.ButtonBlockTrait = ButtonBlockTrait;