Move mcl_void_damage to ENVIRONMENT
[MineClone/MineClone2.git] / mods / CORE / walkover / README.md
blob2b78b0b0a22f7cf69e799adb732e856e71f5db06
1 WalkOver
2 --------
4 Some mode developers have shown an interest in having an on_walk_over event. This is useful for pressure-plates and the like.
6 See this issue - https://github.com/minetest/minetest/issues/247
8 I have implemented a server_side version in lua using globalstep which people might find useful. Of course this would better implemented via a client-based "on walk over", but it is sufficient for my needs now.
10 Example Usage
11 -------------
13     minetest.register_node("somemod:someblock", {
14            description = "Talking Block",
15            tiles = {"somemod_someblock.png"},
16            on_walk_over = function(pos, node, player)
17                  minetest.chat_send_player(player, "Hey! Watch it!")
18            end
19     })