mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-02-22 14:20:22 +01:00
doc updated
This commit is contained in:
parent
73b9cd1776
commit
ea05043273
@ -229,7 +229,7 @@ Contained in code.lua, this module allows arbitrary Lua code to be used with Wor
|
|||||||
|
|
||||||
### error = worldedit.lua(code, name)
|
### error = worldedit.lua(code, name)
|
||||||
|
|
||||||
the given code gets encapsulated into a function with parameters `name`, `player`, pos`
|
the given code gets encapsulated into a function with parameters `name`, `player`, `pos`
|
||||||
where
|
where
|
||||||
* `name` is a playername or `nil`
|
* `name` is a playername or `nil`
|
||||||
* `player` is the player object of the above player if applicable, otherwise `nil`
|
* `player` is the player object of the above player if applicable, otherwise `nil`
|
||||||
@ -237,7 +237,9 @@ where
|
|||||||
|
|
||||||
the resulting function is then executed as a Lua chunk in the global namespace.
|
the resulting function is then executed as a Lua chunk in the global namespace.
|
||||||
|
|
||||||
The return is a tuple of success and return of the function converted to a string, which in turn serves as an error messsage in case of a failure
|
The return is
|
||||||
|
* a string in case of an error
|
||||||
|
* a tuple of `nil` and return of the function converted to a string in case of success
|
||||||
|
|
||||||
### error = worldedit.luatransform(pos1, pos2, code)
|
### error = worldedit.luatransform(pos1, pos2, code)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user