-
Notifications
You must be signed in to change notification settings - Fork 3
Brush paremeters via command arguments #18
Comments
either your syntax of so your brushes would look something like:
|
SyntaxSide question that could affect this matter:
Yep, you loose the semantic to which the parameter is belonging but this is the price to pay for clarity. BehaviorShould command arguments change the sniper's attributes (I think in code it is called aliases?), or should it just be a modification of parameters for the very command? |
A brush can have multiple shapes, effects, and masks so the arguments really need to follow the brush part they are applying to directly, since you could have two of the same brush part that you want to configure differently, or two brush parts that use the same key. |
This is a prime example for what I like to call the "trap of generics & complexity". I experienced it a lot in my coding... but often the easier way is the best way for the end-user in terms of usability & complexity and for the developer(s) in terms of coding and maintainability.
If you still want to rock the multi way then keep in mind that the minecraft command in chat is limited to a certain length. Because of the limited command space, it would need a new command structure to create, modify and delete custom brush commands. Much like the alias command but with a command structure like PermissionsEx is using. Divide the brush commands into:
So you see to really go the usability of the generic brushs to the end there needs a lot more effort in the command structure. Keep it simple and think of usability first. ^^ |
Since
/vs set <parameter> = <value>
is way to complex, it would be nice to be able to set them directly in each/b ...
command like it is common in the command-line.Syntax:
/b <shape> <mask> <effect> [-parameter=value] ...
The parameter starts with a
-
and will be set with=
. This should be very good parsable with a Regex Expression, e.g.:\s-([a-zA-Z]+)=([a-zA-Z0-9\+-\.]+)
-> https://regex101.com/r/lN3xD1/1Example:
/b d m -face=true -height=5
The text was updated successfully, but these errors were encountered: