{config?.brand_name ?? 'SCOPENET'} ยท Official Server & Launcher
{#if config} {#each config.blocks.filter((b) => b.enabled) as block (block.id)}
{#if block.type === 'hero'}
{#if config.hero_bg_type === 'video' && mediaUrl(config.hero_bg_url) && (!block.options?.background || block.options.background === 'default')}{/if}
{block.options?.badge_text || `${totalOnline} Players Online Now`}

{block.options?.headline || config.hero_title}

{block.options?.subtitle || config.hero_subtitle}

{#if block.options?.cta_url}
{block.options?.cta_text || config.hero_cta_text}
{:else if primaryDownload}
{block.options?.cta_text || config.hero_cta_text} for {primaryDownload.label} ({formatBytes(primaryDownload.size)})
{:else if config.external_download_url}
{block.options?.cta_text || config.hero_cta_text} Download Latest Release
{:else} {/if} {#if block.options?.show_ip_copy !== false && config.server_ip} {/if}
{#if mediaUrl(block.options?.image_url)}{/if}
{:else if block.type === 'download'}

{block.title || 'Get the Launcher'}

{block.subtitle || 'Custom modpack synchronisation, fast Java auto-updates, and HD skin wardrobe.'}

{#if block.options?.badge_note}
{block.options.badge_note}
{/if}
{#each config.hosted_downloads as d}
{#if d.platform === detectedOS} Your Operating System {/if}

{d.label}

{d.filename} ยท {formatBytes(d.size)}

Download
{:else} {#if config.external_download_url}

Download SCOPENET Launcher

Get the latest launcher package directly from our release repository.

Download from Repository
{:else}

No downloads currently configured. Check back soon!

{/if} {/each}
{:else if block.type === 'servers'}

{block.title || 'Live Game Servers'}

{block.subtitle || 'Connect to our high-performance Minecraft worlds.'}

{#if publicServers.filter((s) => (block.options?.show_offline === false ? s.online : true)).length}
{#each publicServers.filter((s) => (block.options?.show_offline === false ? s.online : true)) as s}
{s.online ? `${s.players_online} / ${s.players_max} Online` : 'Offline'}
{#if block.options?.show_badges !== false && s.mc_version} {s.mc_version} {/if}

{s.name}

{/each}
{:else}

No public servers listed yet.

{/if}
{:else if block.type === 'leaderboard'}

{block.title || 'Community Leaderboards'}

{block.subtitle || 'Top players and champions across our Minecraft network.'}

{#each [ { id: 'playtime_secs', label: 'Playtime', icon: Clock }, { id: 'global_level', label: 'Global Level', icon: Crown }, { id: 'player_kills', label: 'Player Kills', icon: Swords }, { id: 'mob_kills', label: 'Mob Kills', icon: Flame }, { id: 'blocks_broken', label: 'Blocks Mined', icon: Pickaxe }, ] as opt} {@const Icon = opt.icon} {/each}
{#if lbSort === 'global_level' && globalLevels.length}
Rank Player Global Level Total XP Title
{#each globalLevels.slice(0, 10) as row (row.uuid)}
#{row.rank} {row.username} Lvl {row.global_level} {row.global_xp.toLocaleString()} XP {row.title || 'โ€”'}
{/each}
{:else if leaderboard.length} {#if top3.length > 0}
{#if top3[1]}
๐Ÿฅˆ {top3[1].name} {lbSort === 'playtime_secs' ? formatTime(top3[1].playtime_secs) : formatNumber(top3[1][lbSort as keyof typeof top3[1]] as number)}
{/if} {#if top3[0]}
๐Ÿ‘‘ {top3[0].name} {lbSort === 'playtime_secs' ? formatTime(top3[0].playtime_secs) : formatNumber(top3[0][lbSort as keyof typeof top3[0]] as number)}
{/if} {#if top3[2]}
๐Ÿฅ‰ {top3[2].name} {lbSort === 'playtime_secs' ? formatTime(top3[2].playtime_secs) : formatNumber(top3[2][lbSort as keyof typeof top3[2]] as number)}
{/if}
{/if}
Rank Player Score Playtime Kills
{#each restLb as row, i (row.uuid)}
#{i + 4} {row.name} {lbSort === 'playtime_secs' ? formatTime(row.playtime_secs) : formatNumber(row[lbSort as keyof typeof row] as number)} {formatTime(row.playtime_secs)} {row.player_kills}
{/each}
{:else}

No leaderboard data recorded yet.

{/if} {#if publicGuilds.length > 0}

Top Guilds & Claimed Territories

Form parties, recruit allies, and protect your faction's chunks.

{#each publicGuilds as g}
{#if g.icon_url} {:else}
{/if}
{g.name} [{g.tag}]
{g.member_count} members {g.claims_count} chunks
{/each}
{/if}
{:else if block.type === 'stats'}

{block.title || 'Network Highlights'}

{block.subtitle || 'Live statistics computed across all connected servers.'}

{#if block.options?.show_players !== false}
{formatNumber(totalPlayers)} Total Players
{/if} {#if block.options?.show_playtime !== false}
{formatTime(totalPlaytime)} Time Explored
{/if} {#if block.options?.show_guilds !== false && publicGuilds.length > 0}
{publicGuilds.length} Active Guilds
{/if}
{publicServers.length} Connected Servers
{#if block.options?.custom_stat1_label && block.options?.custom_stat1_value}
{block.options.custom_stat1_value} {block.options.custom_stat1_label}
{/if}
{:else if block.type === 'instances'} {#if instances.length}

{block.title || 'Available Instances'}

{block.subtitle || 'Optimized modpacks ready to play through our custom launcher.'}

{#each instances.slice(0, Math.max(1, Number(block.options?.limit) || 6)) as inst}
{inst.mc_version} {inst.loader}

{inst.name}

{inst.description || 'Pre-configured instance with automated mod updates.'}

{/each}
{/if} {:else if block.type === 'news'} {#if news.length}

{block.title || 'Latest News'}

{block.subtitle || 'Community events, server updates, and patch notes.'}

{#each news.slice(0, Math.max(1, Number(block.options?.limit) || 3)) as item}
{#if item.tag}{item.tag}{/if}

{item.title}

{item.body}

{#if item.date}{item.date}{/if}
{/each}
{/if} {:else if block.type === 'faq'}

{block.title || 'Frequently Asked Questions'}

{block.subtitle || 'Got questions? We have answers.'}

{#each config.faqs as faq} {@const isOpen = !!openFaq[faq.id]}
{#if isOpen}

{faq.answer}

{/if}
{/each}
{:else if block.type === 'socials'}

{block.title || 'Join Our Community'}

{block.subtitle || 'Connect with players, join our Discord, and follow news.'}

{#if block.options?.discord_url} {/if} {#if block.options?.store_url} {/if} {#if block.options?.video_url || block.options?.media_url} {/if} {#if block.options?.social_url} {/if}
{:else if block.type === 'text'}
{#if block.options?.eyebrow}{block.options.eyebrow}{/if}

{block.title}

{#if block.subtitle}

{block.subtitle}

{/if}

{block.options?.body}

{:else if block.type === 'image'}
{#if block.title}

{block.title}

{/if} {#if mediaUrl(block.options?.url)} {#if block.options?.link}{block.options?.alt {:else}{block.options?.alt{/if} {#if block.options?.caption}

{block.options.caption}

{/if} {/if}
{:else if block.type === 'split'}

{block.title}

{#if block.subtitle}

{block.subtitle}

{/if}

{block.options?.body}

{#if block.options?.button_text && block.options?.button_url}{block.options.button_text}{/if}
{#if mediaUrl(block.options?.image_url)}{block.options?.image_alt{/if}
{:else if block.type === 'features'}

{block.title}

{block.subtitle}

{#each block.options?.items ?? [] as item}
{item.icon}

{item.title}

{item.body}

{/each}
{:else if block.type === 'gallery'}

{block.title}

{block.subtitle}

{:else if block.type === 'cta'}

{block.title}

{block.options?.body || block.subtitle}

{#if block.options?.button_text && block.options?.button_url}{block.options.button_text}{/if} {#if block.options?.secondary_text && block.options?.secondary_url}{block.options.secondary_text}{/if}
{:else if block.type === 'divider'}
{#if block.options?.style !== 'space'}{/if}
{:else if block.type === 'testimonials'}

{block.title}

{block.subtitle}

{#each block.options?.items ?? [] as item}

โ€œ{item.quote}โ€

{item.name}{#if item.role} ยท {item.role}{/if}
{/each}
{:else if block.type === 'video'}

{block.title}

{block.subtitle}

{#if videoEmbed(block.options?.url ?? '')} {:else if mediaUrl(block.options?.url)}{/if} {#if block.options?.caption}

{block.options.caption}

{/if}
{:else if block.type === 'buttons'}

{block.title}

{block.subtitle}

{#each block.options?.items ?? [] as item}{#if item.label && item.url}{item.label}{/if}{/each}
{/if}
{/each} {/if}