GnaspGames / Smelt

A CLI tool for Minecraft map makers
http://smelt.gnasp.com
MIT License
19 stars 4 forks source link

'Aliases' rather than commands #52

Closed ckwakman closed 8 years ago

ckwakman commented 8 years ago

Not sure if I'm using proper terminology, but anyway…

Rather than having /scoreboard players tag <entity> <add/remove> <tag> <NBT data> Smelt could have <entity> + <tag> <NBT data>

Likewise: /execute <entity> ~ ~ ~ /execute <entity> ~ ~ ~ to /<entity> <entity> /scoreboard players operation <entity 1> <objective> <operation> <entity 2> <objective> to <entity 1> <objective> <operation> <entity 2> <objective>

It'd make code easier (and nicer) to read, and less prone to being 'read' wrong by Smelt and minecraft (e.g. forgetting to add a space between and the next tilda)

JBartelsson commented 8 years ago

You could create a custom FileParser.js for yourself and publish it. Basically you create a extension pack so Gnasp can assess it.

GnaspGames commented 8 years ago

I would recommend looking into how the plugins system works; it would not be hard to implement:

!tag <entity> + <tag> <NBT data>

All sorts of commands could be shortened using bang commands.

GnaspGames commented 8 years ago

I'm closing this because the solution is plugins/bang commands. If you want to open a request for specific built in bang commands, please do!