Skip to content

Creating regions API 7

Bartłomiej Stępień edited this page Dec 24, 2022 · 1 revision

Creating/Deleting Regions

To create a region that will rebuild itself you firstly need to grab a WorldRebuilder wand. To get it simply use /wr wand command.

After getting the wand, you need to mark the desired region by using your left and right mouse buttons.

Simply select first corner of the region with left click and second corner of the region with right click.

After that, use /wr create_region <name> command to create the region. Note that you must specify the region's name.

At this moment, your region is complete and will rebuild all destroyed blocks after 10 seconds.

To remove a region simply run /wr delete_region <name>.

Marking regions as active or not active

Because regions rebuild themselves after being destroyed, it may be hard for you to edit them. You may want to delete a region and then create it again, but there is a better way for doing that.

Instead of deleting a region you can also mark is as not active. You can do it by using the following command /wr region <name> active <true|false>.

Not active regions will not rebuild their blocks and thus you will be able to edit them (build in them) how you want.

It is useful if you want to edit blocks inside a region you don't want to delete it and then create it again.

Change region rebuild time

It is possible to change the time after which the region will be rebuilt.

Simply run /wr region <name> restore_time <time> to change region's rebuild time. <name> is the name of the region you want to update and <time> is the new rebuild time.

Change block drop in region

By default blocks inside region are being dropped on the ground after being destroyed.

You can change this behaviour by using following command /wr region <name> drop_blocks <true|false>

Clone this wiki locally