bergerhealer / TrainCarts

Minecarts redefined
MIT License
205 stars 63 forks source link

allow destroyall to destroy trains/carts with matching tags #436

Closed loftyD closed 2 years ago

loftyD commented 2 years ago

Feature Request

Description

Allow Destroyall to pass in an optional tag selector that destroys all applicable trains that match

Examples

This might be useful when wanting to nuke certain problem trains on a route.

bergerkiller commented 2 years ago

Try /train destroy --train @train[tag=sometag*]

loftyD commented 2 years ago

omg if that works you're my hero . let me try this out and i'll let you know

loftyD commented 2 years ago

yeeeah! hero! cheers! i'll make a note of that!

bergerkiller commented 2 years ago

It's a very new feature, but most properties should work with that selector syntax, including things like destination and name. So try some out besides tag, and if you need some selector in there that's missing, can ask on discord to have it added :)