Judge whether it is single-player survival mode
local result=World:isSurviveMode() if result==0 then--If it is single-player survival mode Chat:sendSystemMsg("Currently single-player survival mode!") else--If it is not single-player survival mode Chat:sendSystemMsg("Currently not single-player survival mode!") end
If you have any questions about Developer Tools, feel free to join our official discord server Mini World Global DEV discord