Command Executor Block

Command Executor Block

50 Downloads

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.