Data.modify constructor

Data.modify(
  1. dynamic target, {
  2. required String path,
  3. required DataModify? modify,
})

The modify operation is also available, yet a bit more complex.

So this is split up into a seperate class: DataModify

Data.modify(
	Entity.Selected(),
	path: 'my_Custom_Path',
	modify: DataModify.set(
		'hey' // or {'nbt':'here'} or 56
	),
)
⇒ data modify @s my_Custom_Path set value 'hey'

Implementation

Data.modify(this.target, {required this.path, required this.modify})
    : _subcommand = 'modify' {
  handleTarget(target);
}