Programmable Command Blocks (PCB)

Programmable Command Blocks (PCB)

11.7k Downloads

This mod adds a new command block to your game: Programmable Command Block (or PCB for short)!

This block allows you to put your big command block creations in this one small block!

Once placed, it can be used only by server admins that own permission level 4 (or more) and creative mode.

It has its complex GUI:

Buttons on left allow IO:

  • Upload to Pastebin
  • Save to local computer
  • Download PCB from the internet
  • Load PCB from local computer

To create a command, hold SHIFT and click Left Mouse Button in the functional field. Delete is the same, but you have to do it on created command. To create dependent command, hold CTRL+SHIFT and click LMB in the functional field. After that select another command that this depends on.

This mod also adds some useful commands:

  • /calculate [expression] -- Calculates mathematical expression. Ex: abs(2 - 4 * (-2))
  • /cutstr [from] [string] OR /cutstr [from] [to] [string] -- cuts text after 1 or 2 number arguments. Ex: "/cutstr 2 PCOmmandBlocks" -- returns "OmmandBlocks" /cutstr 3 8 Oh Hello There! -- return "Hello"

  • /getpos [entity UUID | entity selector | player name] -- gets position for entity. Ex: /getpos @p -- returns this: "X Y Z"

  • /ifoffline -- can and should be used in vanilla command blocks. Emits comparator signal 1 if this is singleplayer AND it is NOT shared to LAN. 0 Otherwise.

Permissions:

  • You can use this mod in your modpack.
  • You are not allowed to re-publish this mod to other sites without providing a CurseForge download link and my permission (PM to  Zeitheron, or via Discord)
  • You are not allowed to include this (or any other mods of the DragonForge team) in your own mod. Building add-ons, however, is allowed, but a friendly PM would be good.

Note:

  • The only supported version of Minecraft is the latest one that this mod exists for. DO NOT ASK TO DOWNGRADE!

Want to discuss anything? Need help with APIs?

Join the discord server and follow Zeitheron on Twitter!

If you would like to support my work, you can become a patron via  Patreon.