You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of ways to break blocks, but the Scripting API doesn't offer any direct way to destroy a block.
You surely can just run a command that makes this possible in the API, but adding a Polyfill for this might introduce the needed abstraction.
In my opinion a simple solution would be good enough, such as the following:
Adding a new method to an existing type seems pretty annoying so that the autocomplete doesn't complain about it. It could fit into CommandUtils though.
There are a lot of ways to break blocks, but the Scripting API doesn't offer any direct way to destroy a block.
You surely can just run a command that makes this possible in the API, but adding a Polyfill for this might introduce the needed abstraction.
In my opinion a simple solution would be good enough, such as the following:
Would you consider this as useful/does this even make sense or is it just me being lazy and loving pretty abstractions?
The text was updated successfully, but these errors were encountered: