Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add /tellme command to command block.
- Loading branch information
Showing
with
8 additions
and
0 deletions.
-
+8
−0
mesecons_commandblock/init.lua
|
@@ -20,6 +20,14 @@ minetest.register_chatcommand("tell", { |
|
|
end |
|
|
}) |
|
|
|
|
|
minetest.register_chatcommand("tellme", { |
|
|
params = "<text>", |
|
|
description = "Say <text> to yourself", |
|
|
func = function(name, param) |
|
|
minetest.chat_send_player(name, param) |
|
|
end |
|
|
}) |
|
|
|
|
|
minetest.register_chatcommand("hp", { |
|
|
params = "<name> <value>", |
|
|
description = "Set health of <name> to <value> hitpoints", |
|
|