mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-04 00:51:04 +02:00
//mix, //replace, //replaceinverse: Update param help
This commit is contained in:
@ -425,7 +425,7 @@ minetest.register_chatcommand("/param2", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("/mix", {
|
minetest.register_chatcommand("/mix", {
|
||||||
params = "<node1> ...",
|
params = "<node1> [<weighting1>] [<node2> [<weighting2>]] ...",
|
||||||
description = "Fill the current WorldEdit region with a random mix of <node1>, ...",
|
description = "Fill the current WorldEdit region with a random mix of <node1>, ...",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
func = safe_region(function(name, param)
|
func = safe_region(function(name, param)
|
||||||
@ -486,7 +486,7 @@ local check_replace = function(name, param)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("/replace", {
|
minetest.register_chatcommand("/replace", {
|
||||||
params = "<search node> <replace node>",
|
params = "<search node> <replace node 1> [<weighting 1>] [<replace node 2> [<weighting 2>]]",
|
||||||
description = "Replace all instances of <search node> with <replace node> in the current WorldEdit region",
|
description = "Replace all instances of <search node> with <replace node> in the current WorldEdit region",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
func = safe_region(function(name, param)
|
func = safe_region(function(name, param)
|
||||||
@ -530,7 +530,7 @@ minetest.register_chatcommand("/replace", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("/replaceinverse", {
|
minetest.register_chatcommand("/replaceinverse", {
|
||||||
params = "<search node> <replace node>",
|
params = "<search node> <replace node 1> [<weighting 1>] [<replace node 2> [<weighting 2>]]",
|
||||||
description = "Replace all nodes other than <search node> with <replace node> in the current WorldEdit region",
|
description = "Replace all nodes other than <search node> with <replace node> in the current WorldEdit region",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
func = safe_region(function(name, param)
|
func = safe_region(function(name, param)
|
||||||
|
Reference in New Issue
Block a user