跳到正文

Command Executor Block

作者:Keerdm

Adds a block that allows you to execute commands without logging them in chat. Perfect for structures.

收藏

介绍

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

Command Executor Block

This mod allows you to easily integrate and trigger custom commands within structures, making it simple to add special features or mechanics to your structures. This mod adds a new block that executes commands, enabling you to place it in your structures for automatic command execution. This block could work in world gen to but i have not tested.

Features:

  • Command Execution: Execute any command with the command_executor_block through the BlockEntityTag.
     
    /give @p command_executor_block:command_executor_block{BlockEntityTag:{Command:'summon minecraft:item_frame ~ ~ ~ {Item:{id:"minecraft:iron_sword",Count:1b},Facing:1b,Rotation:0b,Tags:["randomRotation"]}'}}

    This command will summon an item frame with a random rotating iron sword.

  • Random Commands: Pair it with my RandomCommand mod to make randomization possible.
  • Developer Mode Support: To add these command blocks to structures, you will need Developer Mode enabled. This is in the config file!

Important Notes:

  • Requires the RandomCommand mod for random item functionality.
  • I recommend using ChatGPT for creating long or complex commands, as they can get a bit confusing.
  • Feel free to use this mod in any of your modpacks or as a dependency. I also encourage you to make reviews or videos about the mod, but you would need to include a link or mention the mod’s name in the video.

常见问题

Command Executor Block 支持哪些 Minecraft 版本?

Command Executor Block 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Command Executor Block 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Keerdm 的其他作品

查看全部 →