UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

30 lines (29 loc) 915 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.UndeadEntityTrait = void 0; const ContentTraits_1 = require("./ContentTraits"); /** * Undead - takes damage from healing, heals from damage potions. */ class UndeadEntityTrait extends ContentTraits_1.EntityContentTrait { get id() { return "undead"; } getData(_config) { return { id: "undead", displayName: "Undead", description: "Takes damage from healing, heals from damage potions", category: "special", components: { "minecraft:type_family": { family: ["undead", "monster"], }, "minecraft:burns_in_daylight": {}, }, }; } } exports.UndeadEntityTrait = UndeadEntityTrait;