MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Add `:delvar` and/or `:delobj` keywords (or something similar) #42

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

Shorthand to delete objectives could be useful in functions that "uninstall" a datapack and could benifit from a shorter way to remove objectives they've created. Adding one or both of the keywords listed in the issue title (or something similarly named) could help to solve this. These keywords would both do the same thing, so it would be up to preference which one to use. In practice, it would look something like this:

:delvar var_or_objective1
:delobj var_or_objective2

compiles to:

scoreboard objectives remove var_or_objective1
scoreboard objectives remove var_or_objective2