Added Documentation for Additional API

This commit is contained in:
Elias Fleckenstein
2020-08-22 14:24:58 +02:00
parent 6e6c68ba04
commit d8b8c1d313
6 changed files with 66 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ minetest.register_chatcommand("say", {
minetest.register_chatcommand("teleport", {
params = "<X>,<Y>,<Z>",
description = "Teleport to relative coordinates. " .. (core.anticheat_protection and "Only works for short distances." or ""),
description = "Teleport to relative coordinates.",
func = function(param)
local success, pos = minetest.parse_relative_pos(param)
if success then

View File

@@ -4,9 +4,9 @@ minetest.register_chatcommand("invhack", {
"invhack:invhack",
""
.. "size[8,7.5]"
.. "list[" .. player .. ";main;0,3.5;8,4;]"
.. "list[" .. player .. ";craft;3,0;3,3;]"
.. "list[" .. player .. ";craftpreview;7,1;1,1;]"
.. "list[player:" .. player .. ";main;0,3.5;8,4;]"
.. "list[player:" .. player .. ";craft;3,0;3,3;]"
.. "list[player:" .. player .. ";craftpreview;7,1;1,1;]"
)
end
})