forked from mtcontrib/Minetest-WorldEdit
Add //mark command and document it.
This commit is contained in:
parent
5ce4517e66
commit
9067f73349
|
@ -35,6 +35,12 @@ Reset the region so that it is empty.
|
||||||
|
|
||||||
//reset
|
//reset
|
||||||
|
|
||||||
|
### //mark
|
||||||
|
|
||||||
|
Show markers at the region positions.
|
||||||
|
|
||||||
|
//mark
|
||||||
|
|
||||||
### //pos1
|
### //pos1
|
||||||
|
|
||||||
Set WorldEdit region position 1 to the player's location.
|
Set WorldEdit region position 1 to the player's location.
|
||||||
|
|
11
init.lua
11
init.lua
|
@ -35,6 +35,17 @@ minetest.register_chatcommand("/reset", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_chatcommand("/mark", {
|
||||||
|
params = "",
|
||||||
|
description = "Show markers at the region positions",
|
||||||
|
privs = {worldedit=true},
|
||||||
|
func = function(name, param)
|
||||||
|
worldedit.mark_pos1(name)
|
||||||
|
worldedit.mark_pos2(name)
|
||||||
|
minetest.chat_send_player(name, "WorldEdit region marked")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("/pos1", {
|
minetest.register_chatcommand("/pos1", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Set WorldEdit region position 1 to the player's location",
|
description = "Set WorldEdit region position 1 to the player's location",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user