UNPKG

mdkjs

Version:

mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.

215 lines (214 loc) 7.61 kB
import { int } from 'mdk-nbt'; declare const _default: { announceAdvancements: typeof announceAdvancements; commandBlockOutput: typeof commandBlockOutput; disableElytraMovementCheck: typeof disableElytraMovementCheck; disableRaids: typeof disableRaids; doDaylightCycle: typeof doDaylightCycle; doEntityDrops: typeof doEntityDrops; doFireTick: typeof doFireTick; doInsomnia: typeof doInsomnia; doImmediateRespawn: typeof doImmediateRespawn; doLimitedCrafting: typeof doLimitedCrafting; doMobLoot: typeof doMobLoot; doMobSpawning: typeof doMobSpawning; doPatrolSpawning: typeof doPatrolSpawning; doTileDrops: typeof doTileDrops; doTraderSpawning: typeof doTraderSpawning; doWeatherCycle: typeof doWeatherCycle; drowningdamage: typeof drowningdamage; falldamage: typeof falldamage; firedamage: typeof firedamage; forgiveDeadPlayers: typeof forgiveDeadPlayers; freezeDamage: typeof freezeDamage; keepInventory: typeof keepInventory; logAdminCommands: typeof logAdminCommands; maxCommandChainLength: typeof maxCommandChainLength; maxEntityCramming: typeof maxEntityCramming; mobGriefing: typeof mobGriefing; naturalRegeneration: typeof naturalRegeneration; playersSleepingPercentage: typeof playersSleepingPercentage; randomTickSpeed: typeof randomTickSpeed; reducedDebugInfo: typeof reducedDebugInfo; sendCommandFeedback: typeof sendCommandFeedback; showDeathMessages: typeof showDeathMessages; spawnRadius: typeof spawnRadius; spectatorsGenerateChunks: typeof spectatorsGenerateChunks; universalAnger: typeof universalAnger; }; export default _default; /** * 是否在聊天框中公告玩家进度的达成 * @param active 是否激活 */ declare function announceAdvancements(active: boolean): string; /** * 命令方块执行命令时是否在聊天框中向管理员显示 * @param active 是否激活 */ declare function commandBlockOutput(active: boolean): string; /** * 是否让服务器停止检查使用鞘翅玩家的移动速度。 * @param active 是否激活 */ declare function disableElytraMovementCheck(active: boolean): string; /** * 是否禁用袭击。 * @param active 是否激活 */ declare function disableRaids(active: boolean): string; /** * 是否进行日夜交替和月相变化。 * @param active 是否激活 */ declare function doDaylightCycle(active: boolean): string; /** * 非生物实体是否掉落物品。 * @param active 是否激活 */ declare function doEntityDrops(active: boolean): string; /** * 火是否蔓延及自然熄灭。 * @param active 是否激活 */ declare function doFireTick(active: boolean): string; /** * 幻翼是否在夜晚生成。 * @param active 是否激活 */ declare function doInsomnia(active: boolean): string; /** * 玩家死亡时是否不显示死亡界面直接重生 * @param active 是否激活 */ declare function doImmediateRespawn(active: boolean): string; /** * 玩家的合成配方是否需要解锁才能使用。 * @param active 是否激活 */ declare function doLimitedCrafting(active: boolean): string; /** * 生物在死亡是否掉落物品。 * @param active 是否激活 */ declare function doMobLoot(active: boolean): string; /** * 生物是否自然生成。不影响刷怪箱。 * @param active 是否激活 */ declare function doMobSpawning(active: boolean): string; /** * 控制灾厄巡逻队的生成。 * @param active 是否激活 */ declare function doPatrolSpawning(active: boolean): string; /** * 方块被破坏时是否掉落物品。 * @param active 是否激活 */ declare function doTileDrops(active: boolean): string; /** * 控制流浪商人的生成。 * @param active 是否激活 */ declare function doTraderSpawning(active: boolean): string; /** * 天气是否变化。 * @param active 是否激活 */ declare function doWeatherCycle(active: boolean): string; /** * 玩家是否承受窒息伤害。 * @param active 是否激活 */ declare function drowningdamage(active: boolean): string; /** * 玩家是否承受跌落伤害。 * @param active 是否激活 */ declare function falldamage(active: boolean): string; /** * 玩家是否承受火焰伤害。 * @param active 是否激活 */ declare function firedamage(active: boolean): string; /** * 当被激怒的中立生物的目标玩家死亡时,该生物是否恢复中立状态。 * @param active 是否激活 */ declare function forgiveDeadPlayers(active: boolean): string; /** * 玩家是否承受冰冻伤害 * @param active 是否激活 */ declare function freezeDamage(active: boolean): string; /** * 玩家死亡后是否保留物品栏物品、经验(死亡时物品不掉落、经验不清空)。 * @param active 是否激活 */ declare function keepInventory(active: boolean): string; /** * 是否在服务器日志中记录管理员使用过的命令。 * @param active 是否激活 */ declare function logAdminCommands(active: boolean): string; /** * 决定了连锁型命令方块能“连锁”的总数量。 * @param length 长度 */ declare function maxCommandChainLength(length: int): string; /** * 玩家或生物能同时推动其他可推动实体的数量,超过此数量时将承受每半秒3(Heart.svgHalf Heart.svg)的窒息伤害。设置成0可以停用这个规则。 * @param count 数量 */ declare function maxEntityCramming(count: int): string; /** * 生物是否能放置、修改或破坏方块,以及生物是否能捡拾物品。 * @param active 是否激活 */ declare function mobGriefing(active: boolean): string; /** * 玩家是否能在饥饿值足够时自然恢复生命值(不影响外部治疗效果,如金苹果、生命恢复状态效果等)。 * @param active 是否激活 */ declare function naturalRegeneration(active: boolean): string; /** * 设置跳过夜晚所需的入睡玩家所占百分比 * @param count 百分比 */ declare function playersSleepingPercentage(count: int): string; /** * 每游戏刻每区段中随机的方块刻发生的频率(例如植物生长,树叶腐烂等)。为0时禁用随机刻,较高的数字将增大随机刻频率。 * @param speed 速度 */ declare function randomTickSpeed(speed: int): string; /** * 调试屏幕是否简化而非显示详细信息。 * @param active 是否激活 */ declare function reducedDebugInfo(active: boolean): string; /** * 玩家执行命令的返回信息是否在聊天框中显示。同时影响命令方块是否保存命令输出文本。 * @param active 是否激活 */ declare function sendCommandFeedback(active: boolean): string; /** * 是否在聊天框中显示玩家以及驯养宠物(狼、猫和鹦鹉)的死亡信息。 * @param active 是否激活 */ declare function showDeathMessages(active: boolean): string; /** * 首次进入服务器的玩家和没有重生点的死亡玩家在重生时与世界重生点坐标的距离。 * @param distance 长度 */ declare function spawnRadius(distance: int): string; /** * 是否允许旁观模式的玩家生成区块。 * @param active 是否激活 */ declare function spectatorsGenerateChunks(active: boolean): string; /** * 被激怒的中立生物是否攻击附近任何玩家 * @param active 是否激活 */ declare function universalAnger(active: boolean): string;