VoxeLibre/mods/CORE/walkover
Wuzzy f746e2a0c6 Fix walkover mod 2017-08-21 05:19:05 +02:00
..
LICENSE Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00
README.md Eliminate crumbly, cracky, snappy and choppy fully 2017-02-27 18:53:17 +01:00
init.lua Fix walkover mod 2017-08-21 05:19:05 +02:00

README.md

WalkOver

Some mode developers have shown an interest in having an on_walk_over event. This is useful for pressure-plates and the like.

See this issue - https://github.com/minetest/minetest/issues/247

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.

Example Usage

minetest.register_node("somemod:someblock", {
       description = "Talking Block",
       tiles = {"somemod_someblock.png"},
       on_walk_over = function(pos, node, player)
             minetest.chat_send_player(player, "Hey! Watch it!")
       end
})