Skip to content

Function: modify outline

theblackswitch edited this page May 15, 2026 · 1 revision

#mtb-generated:<namespace>/<multiblock_id>/outline/modify {args:{<arguments>}}

This function is used to modify the style of your outline.

Context:

This function needs to run as the root of the multiblock instance that you want to edit.

Note

You can use the selector @e[type=minecraft:block_display,tag=<namespace>-<multiblock_id>,tag=mtb.root] to find the root

arguments:

  • color (optional): one of white, light_gray, gray, black, brown, red, orange, yellow, lime, green, cyan, blue, purple, magenta, pink | Determines the glass color of the outline. Defaults to light_blue
  • glow_color (optional): int | The glow color for your outline (acts the same as the glow_color_override field). Defaults to 3847130
  • glowing (optional): boolean | Whether the outline should glow or not. Defaults to true

Example:

# during placement, make the outline red when the placement is invalid (runs as the multiblock root)
execute if entity @s[tag=!td.valid_placement] run function #mtb-generated:tech_datapack/industrial_furnace/outline/show {args:{color:"red",glow_color:16719680,glowing:true}}

Clone this wiki locally