UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

35 lines (34 loc) 1.36 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.GameMode = void 0; /** * Represents a game mode for the current world experience. */ var GameMode; (function (GameMode) { /** * World is in a survival mode, where players can take damage * and entities may not be peaceful. Survival mode is where the * player must collect resources, build structures while * surviving in their generated world. Activities can, over * time, chip away at player health and hunger bar. */ GameMode[GameMode["survival"] = 0] = "survival"; /** * World is in a full creative mode. In creative mode, the * player has all the resources available in the item selection * tabs and the survival selection tab. They can also destroy * blocks instantly including those which would normally be * indestructible. Command and structure blocks can also be * used in creative mode. Items also do not lose durability or * disappear. */ GameMode[GameMode["creative"] = 1] = "creative"; /** * World is in a more locked-down experience, where blocks may * not be manipulated. */ GameMode[GameMode["adventure"] = 2] = "adventure"; })(GameMode || (exports.GameMode = GameMode = {}));