storeResult method

Group storeResult(
  1. Widget w, {
  2. required String path,
  3. String datatype = 'double',
  4. double scale = 1,
  5. bool useSuccess = false,
})

This stores a result or success of a Widget in the nbt path of a location. Example:

Location.here().storeResult(Command('say hello'),path: 'Items[0].tag.command',useSuccess:true)
⇒ execute store success block ~ ~ ~ Items[0].tag.command run say hello

Implementation

///⇒ execute store success block ~ ~ ~ Items[0].tag.command run say hello
///```
Group storeResult(
  Widget w, {
  required String path,
  String datatype = 'double',
  double scale = 1,
  bool useSuccess = false,
}) {
  assert(path.isEmpty);
  return Execute.internal_store_command(
    'block $location $path $datatype $scale',
    w,
    useSuccess,
  );
}