@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
34 lines (33 loc) • 1.08 kB
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArthropodEntityTrait = void 0;
const ContentTraits_1 = require("./ContentTraits");
/**
* Arthropod body type - spider, silverfish.
*/
class ArthropodEntityTrait extends ContentTraits_1.EntityContentTrait {
get id() {
return "arthropod";
}
getData(config) {
return {
id: "arthropod",
displayName: "Arthropod",
description: "Insect or spider-like body",
category: "body_type",
components: {
"minecraft:can_climb": {},
"minecraft:mark_variant": { value: 0 },
"minecraft:movement.basic": {},
"minecraft:navigation.walk": {
can_path_over_water: true,
avoid_damage_blocks: true,
can_walk_in_lava: false,
},
},
};
}
}
exports.ArthropodEntityTrait = ArthropodEntityTrait;