techages/mods/MISC/mcl_commands/seed.lua

10 lines
290 B
Lua

local S = minetest.get_translator(minetest.get_current_modname())
minetest.register_chatcommand("seed", {
description = S("Displays the world seed"),
params = "",
privs = {},
func = function(name)
minetest.chat_send_player(name, "Seed: "..minetest.get_mapgen_setting("seed"))
end
})