summaryrefslogtreecommitdiff
path: root/builtin/game/constants.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game/constants.lua')
-rw-r--r--builtin/game/constants.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/builtin/game/constants.lua b/builtin/game/constants.lua
new file mode 100644
index 000000000..ea3644cfb
--- /dev/null
+++ b/builtin/game/constants.lua
@@ -0,0 +1,12 @@
+-- Minetest: builtin/constants.lua
+
+--
+-- Constants values for use with the Lua API
+--
+
+-- Block emerge status constants (for use with core.emerge_area)
+core.EMERGE_CANCELLED = 0
+core.EMERGE_ERRORED = 1
+core.EMERGE_FROM_MEMORY = 2
+core.EMERGE_FROM_DISK = 3
+core.EMERGE_GENERATED = 4