
# -> Update text
$execute on passengers \
    if entity @s[type=text_display,tag=OverlyRealistic.Block.HeatedWroughtIron_Text] run \
        data modify entity @s text.extra[$(text_position)] set value {text:"$(text)","color":"black"}

# -> Update data
$data modify entity @s data.wrought_iron_shape.shape_$(shape_position) set value $(shape_value)b

#function overly_realistic:general/custom_blocks/heated_wrought_iron/method_operations/set_shape \
    {\
        text_position: 1, \
        text: "...", \
        shape_position: 0, \
        shape_value: 3 \
    }
