sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

//harvest #58

Open VorTechnix opened 3 years ago

VorTechnix commented 3 years ago

Runs harvesting/mining operation on targeted nodes in selection volume (or all non-water/non-lava/non-air nodes if no targets are specified). Drops items associated with removed nodes at the removed nodes locations or at player's coordinates if "here" argument is present. Syntax: //harvest [here] [node_name1 [node_name2 [...]]]. Alias //mine.

sbrl commented 3 years ago

Nice idea!

To more formally define the syntax of the here, do you mean this?

//harvest [here [<radius=10>]] [node_name1 [node_name2 [...]]]

Since node names ≠ integers, we can tell the difference between an integer and a node name (I think I've done this before somewhere).

VorTechnix commented 3 years ago

Since node names ≠ integers, we can tell the difference between an integer and a node name (I think I've done this before somewhere).

As per //overlay? //harvest [here [<radius=10>]] [<node_name_a> <node_name_b> ...]

Also having a radius argument is a good idea too.

sbrl commented 3 years ago

Yep, that's the one!