跳到正文

Default commands

作者:imB4

Runs configurable default commands on world creation and player join, or server startup.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Default Commands

Default Commands is a small Fabric mod that automatically runs your configured commands when a world is created, when a player joins, or when a server starts.

It is built for players and server owners who always find themselves typing the same setup commands: gamerules, Carpet defaults, scoreboard setup, datapack initialization, testing helpers, admin utilities, and other world/server bootstrap commands.

Features

  • Run commands automatically when a player joins a world
  • Run commands once when a new world is created
  • Run commands every time a dedicated or integrated server starts
  • Manage commands through Mod Menu on the client
  • Manage server-start commands in-game with /defaultcommands
  • Supports command presets
  • Supports protected/locked entries to avoid accidental edits
  • Works even when cheats are disabled, because commands execute with server-level permissions
  • Stores configuration in config/default_commands.json

Command Triggers

Default Commands supports three trigger types:

On Server Start

Runs when the Minecraft server finishes starting.

Best for server-wide world tests setups, such as:

/function …

/gamerule doDaylightCycle false

/carpet setDefault optimizedTNT true

/scoreboard objectives add deaths deathCount

常见问题

Default commands 支持哪些 Minecraft 版本?

Default commands 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Default commands 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

imB4 的其他作品

查看全部 →