Data constructor
The Data Widgets allows you to edit nbt data of Entities or Blocks.
Data(
Entity.Selected(),
nbt: {
'Invisible':1,
'NoGravity':1
}
)
⇒ data merge entity @s {'Invisible':1,'NoGravity':1}
Implementation
Data(this.target, {this.nbt = const {}, String type = 'merge'})
: _subcommand = type {
handleTarget(target);
}