minetest.delete_area

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.delete_area(pos1, pos2)

Description

Deletes all mapblocks in the area from pos1 to pos2, inclusive.

Example

Re-generate everything but the 8 blocks around the origin (untested; please confirm):

minetest.delete_area({x=-60000, y=-60000, z=-60000}, {x=-81,    y= 60000, z= 60000})
minetest.delete_area({x=-60000, y=-60000, z=-60000}, {x= 60000, y=-81,    z= 60000})
minetest.delete_area({x=-60000, y=-60000, z=-60000}, {x= 60000, y= 60000, z=-81   })
minetest.delete_area({x= 81   , y=-60000, z=-60000}, {x= 60000, y= 60000, z= 60000})
minetest.delete_area({x=-60000, y= 81,    z=-60000}, {x= 60000, y= 60000, z= 60000})
minetest.delete_area({x=-60000, y=-60000, z= 81   }, {x= 60000, y= 60000, z= 60000})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox