1
0
Fork 0
MineClone2/mods/MISC/mcl_commands/seed.lua

10 lines
337 B
Lua
Raw Normal View History

local S = minetest.get_translator(minetest.get_current_modname())
2021-03-05 08:47:48 +00:00
minetest.register_chatcommand("seed", {
description = S("Displays the world seed"),
params = "",
privs = {},
func = function(name)
minetest.chat_send_player(name, "Seed: ["..minetest.colorize(mcl_colors.GREEN, ""..minetest.get_mapgen_setting("seed")).."]")
2021-03-05 08:47:48 +00:00
end
})