storeResult method
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,
);
}