summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-10 01:57:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 11:28:14 +0200
commitfa70413c82c78a9624c7d2af5d9c33e12fcde745 (patch)
tree70e1c43aecc3a32848ebaf6df8081b0ef3eea328 /data
parent06d2bc7fbdbed06468537248a0cdb97d541cfb2d (diff)
downloadminetest-fa70413c82c78a9624c7d2af5d9c33e12fcde745.tar.gz
minetest-fa70413c82c78a9624c7d2af5d9c33e12fcde745.tar.bz2
minetest-fa70413c82c78a9624c7d2af5d9c33e12fcde745.zip
Add a small bunch of notes about groups in mods/default/init.lua
Diffstat (limited to 'data')
-rw-r--r--data/mods/default/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index c37f0e815..09648699d 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -429,6 +429,18 @@
-- chance = 1, -- (chance of trigger is 1.0/this)
-- action = func(pos, node, active_object_count, active_object_count_wider),
-- }
+--
+-- Item groups:
+-- - Groups always have a rating associated with them. If there is no
+-- useful meaning for a rating for a given group, it shall be 1.
+-- - When not defined, the rating of a group defaults to 0.
+--
+-- Special groups:
+-- - dig_immediate:
+-- - 2: node is removed without tool wear after 1 second or so
+-- - 3: node is removed without tool wear immediately (like a torch)
+-- - level: Can be used to give an additional sense of progression in the game.
+-- - 0 is something that is directly accessible at the start of gameplay
WATER_ALPHA = 160
WATER_VISC = 1