Uberi / Minetest-WorldEdit

The ultimate in-game world editing tool for Minetest! Tons of functionality to help with building, fixing, and more.
https://forum.minetest.net/viewtopic.php?f=11&t=572
GNU Affero General Public License v3.0
162 stars 81 forks source link

Allow to bulk-set param2 of regions #144

Closed Wuzzy2 closed 7 years ago

Wuzzy2 commented 7 years ago

This adds a command /param2 and a function worldedit.set_param2 which allow to bulk-set the param2 value of an entire region.

The nodes appearance is updated immediately. E.g. if a node with facedir gets its param2 changed using this method, it will immediately rotate accordingly.

API docs are updated accordingly.

Use case: Creating and saving tree schematics in MTG. Here, you must force the param2 of the leaves to be 0. Otherwise, leaves with param2=1 will not have leafdecay which is not what you want for normal trees.

Wuzzy2 commented 7 years ago

I still don't like the “second argument” suggestion by HybridDog, see above.

Wuzzy2 commented 7 years ago

Hey! Now what? First I was told I should remove update_map, now I have to keep it? LOL.

Now do you want to keep legacy update_map or not? You're confusing. xD

sfan5 commented 7 years ago

I want to keep legacy update_map(), the one who suggested removing it was @HybridDog.

Wuzzy2 commented 7 years ago

There. I just needed to revert a single commit. Easy.