2024-01-02 16:31:30 +00:00
--- WorldEditAdditions Lua API
--
-- This is the documentation for the Lua API of WorldEditAdditions. It was generated automatically from comments spread across the codebase with [moondoc](https://github.com/sbrl/moondoc).
--
2024-10-07 18:51:33 +00:00
-- You can save this documentation to your local device by pressing Ctrl + S on your keyboard.
--
2024-01-02 16:31:30 +00:00
-- **Current version:** 1.15-dev
--
-- These docs are a work-in-progress. **Not all functions are documented here yet.** If anything is unclear, please [open an issue](https://github.com/sbrl/Minetest-WorldEditAdditions/issues/new).
--
-- © 2023 Starbeamrainbowlabs and contributors. Licenced under the Mozilla Public License 2.0.
2023-07-04 21:45:02 +00:00
-- @namespace worldeditadditions
2023-07-31 23:34:35 +00:00
-- @release 1.14.5
2024-01-02 16:31:30 +00:00
-- @copyright 2023 Starbeamrainbowlabs and contributors
2018-05-20 10:52:16 +00:00
-- @license Mozilla Public License, 2.0
-- @author Starbeamrainbowlabs
2018-05-20 13:19:43 +00:00
worldeditadditions = { }
2021-07-17 20:31:31 +00:00
local wea = worldeditadditions
wea.modpath = minetest.get_modpath ( " worldeditadditions " )
dofile ( wea.modpath .. " /lib/compat/saplingnames.lua " )
dofile ( wea.modpath .. " /lib/floodfill.lua " )
dofile ( wea.modpath .. " /lib/overlay.lua " )
dofile ( wea.modpath .. " /lib/layers.lua " )
dofile ( wea.modpath .. " /lib/fillcaves.lua " )
dofile ( wea.modpath .. " /lib/ellipsoid.lua " )
2021-10-14 00:50:27 +00:00
dofile ( wea.modpath .. " /lib/ellipsoid2.lua " )
2021-07-17 20:31:31 +00:00
dofile ( wea.modpath .. " /lib/torus.lua " )
dofile ( wea.modpath .. " /lib/line.lua " )
dofile ( wea.modpath .. " /lib/walls.lua " )
dofile ( wea.modpath .. " /lib/replacemix.lua " )
dofile ( wea.modpath .. " /lib/maze2d.lua " )
dofile ( wea.modpath .. " /lib/maze3d.lua " )
dofile ( wea.modpath .. " /lib/hollow.lua " )
dofile ( wea.modpath .. " /lib/scale_up.lua " )
dofile ( wea.modpath .. " /lib/scale_down.lua " )
dofile ( wea.modpath .. " /lib/scale.lua " )
2021-10-30 01:47:19 +00:00
dofile ( wea.modpath .. " /lib/spiral_square.lua " )
2021-10-31 16:59:52 +00:00
dofile ( wea.modpath .. " /lib/spiral_circle.lua " )
2022-05-15 14:27:43 +00:00
dofile ( wea.modpath .. " /lib/dome.lua " )
2022-09-25 14:30:16 +00:00
dofile ( wea.modpath .. " /lib/spline.lua " )
2023-02-12 01:40:29 +00:00
dofile ( wea.modpath .. " /lib/revolve.lua " )
2023-12-13 23:05:00 +00:00
dofile ( wea.modpath .. " /lib/rotate.lua " )
2024-06-04 21:49:41 +00:00
dofile ( wea.modpath .. " /lib/orient.lua " )
2024-05-25 13:45:56 +00:00
dofile ( wea.modpath .. " /lib/set.lua " )
2021-07-17 20:31:31 +00:00
dofile ( wea.modpath .. " /lib/conv/conv.lua " )
dofile ( wea.modpath .. " /lib/erode/erode.lua " )
dofile ( wea.modpath .. " /lib/noise/init.lua " )
2022-05-16 00:01:01 +00:00
wea.sculpt = dofile ( wea.modpath .. " /lib/sculpt/init.lua " )
2022-05-16 00:21:09 +00:00
wea.metaballs = dofile ( wea.modpath .. " /lib/metaballs/init.lua " )
2021-07-17 20:31:31 +00:00
2021-10-11 01:41:45 +00:00
dofile ( wea.modpath .. " /lib/copy.lua " )
2021-11-13 12:36:10 +00:00
dofile ( wea.modpath .. " /lib/move.lua " )
2021-10-11 01:41:45 +00:00
2021-07-17 20:31:31 +00:00
dofile ( wea.modpath .. " /lib/count.lua " )
dofile ( wea.modpath .. " /lib/bonemeal.lua " )
dofile ( wea.modpath .. " /lib/forest.lua " )
dofile ( wea.modpath .. " /lib/ellipsoidapply.lua " )
dofile ( wea.modpath .. " /lib/airapply.lua " )
2023-11-26 22:20:05 +00:00
dofile ( wea.modpath .. " /lib/nodeapply.lua " )
2021-08-07 22:01:15 +00:00
dofile ( wea.modpath .. " /lib/noiseapply2d.lua " )
2021-07-17 20:31:31 +00:00
dofile ( wea.modpath .. " /lib/subdivide.lua " )
2021-08-02 20:29:55 +00:00
dofile ( wea.modpath .. " /lib/selection/init.lua " ) -- Helpers for selections
2021-07-19 02:29:17 +00:00
dofile ( wea.modpath .. " /lib/wireframe/corner_set.lua " )
2021-07-23 19:09:40 +00:00
dofile ( wea.modpath .. " /lib/wireframe/make_compass.lua " )
2021-07-19 02:29:17 +00:00
dofile ( wea.modpath .. " /lib/wireframe/wire_box.lua " )
2021-12-31 01:39:04 +00:00
---
-- Post-setup tasks
---
--- 1: Scan for an import static brushes
-- Static brushes live in lib/sculpt/brushes (relative to this file), and have
-- the file extension ".brush.tsv" (without quotes, of course).
wea.sculpt . scan_static ( wea.modpath .. " /lib/sculpt/brushes " )