Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ hyperate-api-key.txt

# Internal concept draft, not part of the public repo
HypeBlock_Konzept.pdf

# ElevenLabs API key for the trailer voice-over (secret)
elevenlabs-api-key.txt
16 changes: 16 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ The user speaks German; answer in German.
- Check API names with `javap` against the jars in `.gradle/loom-cache/minecraftMaven/` and the
Fabric API module jars in `~/.gradle/caches/modules-2/files-2.1/net.fabricmc.fabric-api/`.

## Trailer (`tools/trailer/`)

- `HYPEBLOCK_TRAILER=1 ./gradlew runClientGameTest` runs `TrailerRecorder`: camera flights through the
sample world at 30 fps (1920x1080), one shot per mp4 in `build/run/trailer/shots/`
(`HYPEBLOCK_TRAILER_SHOTS=bridge,...` redoes single shots). The server is frozen and stepped one tick
per recorded tick (`/tick freeze` + `/tick step 1`) and the BPM is refreshed server-side every tick,
otherwise countdowns run ~4x too fast and `HeartRates` (wall-clock ageing) goes OFFLINE.
PNG frames are piped straight into ffmpeg (little free disk space on this Mac).
- Python (numpy, pillow, scipy; a venv is enough): `render.py --lang en|de` (edit, Minecraft-style
transitions, tooltips/toasts in the game font from the client jar), `voiceover.py --lang en|de`
(ElevenLabs, voice Laura `5Aahq892EEb6MdNwMM3p` via `ELEVEN_VOICE_ID`, `ELEVEN_MODEL=eleven_v4`,
free tier: mp3_44100_128 only), `mix.py --lang en|de` (synthesised score, SFX, VO, ducking, mux) →
`build/trailer/HypeBlock-Trailer[-de].mp4`. VO lines and cue times: `script.py`; event times in
the footage (door/bridge open): constants at the top of `render.py`.
- ElevenLabs key: `elevenlabs-api-key.txt` in the repo root (git-ignored, starts with `sk_`).

## HypeRate API key (secret)

- Never commit it. Locally: `hyperate-api-key.txt` in the repo root (git-ignored); CI: secret
Expand Down
130 changes: 130 additions & 0 deletions CURSEFORGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# CurseForge listing

Texts and settings for https://www.curseforge.com/minecraft (Mods). Create the project on
https://authors.curseforge.com/ → **Create Project** → Minecraft → Mods. Upload the jar from the
GitHub release (built by CI with the API key from the repository secret), not a local build without
`hyperate-api-key.txt`.

## Project settings

| Field | Value |
| --- | --- |
| Name | HypeBlock – Real Heart Rate Redstone |
| Summary (max. ~200 chars) | Your real heart rate in Minecraft: a pulse in your HUD and a HypeBlock that turns heart rates into redstone. Doors that open when you're calm, traps when you panic. Powered by HypeRate. |
| Main category | Redstone |
| Further categories | Utility & QoL (not "Miscellaneous": CurseForge rejects it for mods, "425 is not a valid Game Category For ClassId 6") |
| License | MIT |
| Source | https://github.com/HypeRate/HypeBlock |
| Issues | https://github.com/HypeRate/HypeBlock/issues |
| Website | https://minecraft.hyperate.io/ |
| Logo | `site/assets/logo.png` (400×400, the HypeBlock face) |
| Screenshots | `docs/screenshots/` in this order: `heartbeat`, `strength`, `calm-door`, `bridge-warning`, `bridge-open`, `command-block`, `settings` (captions: see below) |
| Video | the trailer on YouTube, once it is uploaded |

## File upload

| Field | Value |
| --- | --- |
| File | `hypeblock-0.1.0.jar` from https://github.com/HypeRate/HypeBlock/releases/tag/v0.1.0 |
| Display name | `HypeBlock 0.1.0 (Fabric 26.3)` |
| Release type | Beta for 0.x, Release from 1.0 |
| Game version | 26.3 |
| Mod loader | Fabric |
| Java | 25 |
| Environment | Client and Server (both sides need it for the HypeBlock; the HUD works on its own) |
| Related projects | Fabric API: **Required dependency** |
| Additional file | `HypeBlock-Showcase-world.zip` (sample world), as an additional file of the jar |

Changelog for 0.1.0:

```
First beta.
• Heart rate tile in the HUD, live from HypeRate (/hr <your ID>)
• The HypeBlock: threshold, signal strength and heartbeat outputs, owner or group (average/highest), delay
• Join/leave per block, owner and operators manage settings and participants
• /hypeblock bpm <player> and /hypeblock value <pos> for command blocks and data packs
• English and German
```

## Screenshot captions

| File | Caption |
| --- | --- |
| heartbeat | A heart of redstone lamps beating with your real pulse |
| strength | Signal strength: the higher your pulse, the more lamps light up |
| calm-door | The calm door only opens after five seconds below 80 BPM |
| bridge-warning | HypeBridge: over 110 BPM the warning lamp goes on … |
| bridge-open | … and after five seconds over 110 the bridge opens above the lava |
| command-block | For map makers: every player's BPM in the scoreboard |
| settings | Settings: source, group value, output, threshold, delay, participants |

## Description

```
❤️ HypeBlock brings your REAL heart rate into Minecraft.

Your pulse beats in your HUD. Place a HypeBlock and it turns heart rates into redstone:
lamps that blink with your heartbeat, doors that only open when you're calm,
traps that go off when the whole group panics.

━━━━━━━━━━━━━━━━━━━━
✨ FEATURES
━━━━━━━━━━━━━━━━━━━━
❤️ Heart rate HUD: a beating heart with your live BPM in any corner of the screen
🟥 The HypeBlock: right-click it, choose a rule, done. No redstone knowledge needed
🎚️ Three outputs:
• Threshold: power 15 when the pulse is above or below a value (optional delay in seconds)
• Signal strength: power 1-15 across a BPM range (e.g. 60-160)
• Heartbeat: a redstone pulse on every beat
👥 Owner only, or a group: everyone who joins the block counts (average or highest pulse)
🔒 Nobody can sign you up: players join and leave a HypeBlock themselves
🛠️ For map makers: /hypeblock bpm <player> and /hypeblock value <x y z> return the BPM as a command result
🌍 Sample world with five stations to try everything (heartbeat heart, signal bar, calm door, HypeBridge, scoreboard)
🇬🇧 🇩🇪 English and German

━━━━━━━━━━━━━━━━━━━━
🛠️ INSTALL
━━━━━━━━━━━━━━━━━━━━
1. Install with the CurseForge app (Fabric API comes along automatically)
or put the jar and Fabric API into your mods folder
2. Start HypeRate on your smartwatch, phone or chest strap
3. In Minecraft press T and type: /hr YOUR-HYPERATE-ID
Your heart rate appears in the top left corner. That's it.
4. Craft a HypeBlock (iron ingots in the corners, redstone on the sides, a comparator in the middle)
or take it from the Redstone Blocks tab in creative, then right-click it

⚠️ Multiplayer: the server needs HypeBlock too, and every player who wants to share a heart rate.
Same network: open your world to LAN and your friends join under Multiplayer.

❤️ HypeRate: https://www.hyperate.io/
🌐 Website: https://minecraft.hyperate.io/
💻 Source code: https://github.com/HypeRate/HypeBlock

━━━━━━━━━━━━━━━━━━━━
⌨️ COMMANDS
━━━━━━━━━━━━━━━━━━━━
• /hr YOUR-ID: connect (saved for next time) • /hr: status • /hr off: disconnect
• /hr fake 120 / /hr fake off: test value without a sensor
• /hr share on|off: share your heart rate with the server (default: on)
• /hr hud on|off|top_left|top_right|bottom_left|bottom_right
• /hypeblock list: who shares a heart rate right now

━━━━━━━━━━━━━━━━━━━━
🧩 COMPATIBILITY
━━━━━━━━━━━━━━━━━━━━
Minecraft Java 26.3, Fabric Loader 0.20.1+, Fabric API, Java 25.
Heart rates are only kept in memory while you're online, nothing is saved to disk.

HypeBlock is a fan-made mod and not affiliated with or endorsed by Mojang Studios or Microsoft.
```

## Upload checklist

1. Raise `version` in `gradle.properties` (first upload: 0.1.0 as is)
2. Tag `v<version>` on `main` and push it; CI builds the jar with the API key from the repository
secret `HYPERATE_API_KEY` and attaches it to the GitHub release. Upload that jar.
3. Raise the version on the website: `grep -rn 0.1.0 site/` lists every place
4. Test the jar once in a clean CurseForge profile (26.3, Fabric)
5. Upload it with the changelog, game version 26.3, loader Fabric, release type Beta,
Fabric API as required dependency, the sample world as additional file
6. CurseForge reviews new projects by hand (usually a few days) before the page goes live
2 changes: 1 addition & 1 deletion site/ai/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
],
"pricing": "free",
"license": "MIT",
"download": "https://github.com/HypeRate/HypeBlock/releases/latest",
"download": "https://github.com/HypeRate/HypeBlock/releases",
"source": "https://github.com/HypeRate/HypeBlock"
}
2 changes: 1 addition & 1 deletion site/ai/summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"de"
],
"links": {
"download": "https://github.com/HypeRate/HypeBlock/releases/latest",
"download": "https://github.com/HypeRate/HypeBlock/releases",
"source": "https://github.com/HypeRate/HypeBlock",
"llms": "https://minecraft.hyperate.io/llms.txt"
}
Expand Down
Binary file added site/assets/trailer-de.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/trailer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 72 additions & 6 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"operatingSystem": "Windows, macOS, Linux (Minecraft Java Edition)",
"softwareVersion": "0.1.0",
"license": "https://opensource.org/licenses/MIT",
"downloadUrl": "https://github.com/HypeRate/HypeBlock/releases/latest",
"downloadUrl": "https://github.com/HypeRate/HypeBlock/releases",
"codeRepository": "https://github.com/HypeRate/HypeBlock",
"softwareRequirements": "Minecraft Java Edition 26.3, Fabric Loader 0.20.1 or newer, Fabric API, HypeRate app on a smartwatch, phone or chest strap",
"featureList": [
Expand All @@ -90,7 +90,20 @@
"author": { "@id": "https://www.hyperate.io/#organization" },
"publisher": { "@id": "https://www.hyperate.io/#organization" },
"isAccessibleForFree": true,
"sameAs": ["https://github.com/HypeRate/HypeBlock"]
"sameAs": ["https://github.com/HypeRate/HypeBlock"],
"subjectOf": { "@id": "https://minecraft.hyperate.io/#trailer" }
},
{
"@type": "VideoObject",
"@id": "https://minecraft.hyperate.io/#trailer",
"name": "HypeBlock – Your REAL Heart Rate in Minecraft | Fabric Mod Trailer",
"description": "Trailer of the HypeBlock mod: the real heart rate from HypeRate in the Minecraft HUD and as redstone (heartbeat, signal strength, calm door, HypeBridge, command blocks), recorded in the HypeBlock Showcase sample world.",
"thumbnailUrl": "https://minecraft.hyperate.io/assets/trailer.jpg",
"uploadDate": "2026-12-01",
"duration": "PT2M18S",
"contentUrl": "https://youtu.be/t0Yt1Q8s9jE",
"embedUrl": "https://www.youtube-nocookie.com/embed/t0Yt1Q8s9jE",
"inLanguage": "en"
},
{
"@type": "FAQPage",
Expand Down Expand Up @@ -308,6 +321,22 @@
.btn.soon:hover { transform: none; }
.hero-note { margin-top: 18px; color: var(--dim); font-size: 15px; }

/* ---------- Trailer (YouTube loads only after a click) ---------- */
.video { padding: 8px; max-width: 960px; margin: 0 auto; }
.yt { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.02); }
.yt .play {
position: absolute; left: 50%; top: 83%; font-size: clamp(9px, 1.5vw, 16px); width: 7em; height: 4.9em; transform: translate(-50%, -50%);
background: var(--redstone); border: 3px solid #000;
box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -4px 0 rgba(0,0,0,.35), 0 5px 0 #000;
}
.yt .play::after { content: ""; position: absolute; left: 2.6em; top: 1.3em; border-style: solid; border-width: .95em 0 .95em 1.6em; border-color: transparent transparent transparent #fff; }
.yt:hover .play { background: #ff5566; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { text-align: center; color: var(--dim); font-size: 14px; margin: 10px 0 2px; }
.yt-note a { color: var(--soft); }

/* ---------- Sections ---------- */
section { padding: 90px 18px; position: relative; }
section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.035)); border-top: 3px solid #000; border-bottom: 3px solid #000; }
Expand Down Expand Up @@ -561,7 +590,8 @@
<h1 class="toon"><span class="brand">HypeBlock</span><span data-i18n="hero.title1">Your heartbeat</span><br><span class="red" data-i18n="hero.title2">runs Minecraft.</span></h1>
<p class="lead" data-i18n="hero.lead">A free mod by HypeRate: see your real heart rate in the game and turn it into redstone. Lamps that beat with you, doors that only open when you're calm, bridges that drop when your squad panics.</p>
<div class="buttons">
<a class="btn btn-red" href="https://github.com/HypeRate/HypeBlock/releases/latest"><span data-i18n="hero.download">Download</span> <small>.jar</small></a>
<a class="btn btn-red" href="https://github.com/HypeRate/HypeBlock/releases"><span data-i18n="hero.download">Download</span> <small>.jar</small></a>
<a class="btn btn-dark" href="#trailer">&#9654; <span data-i18n="hero.trailer">Trailer</span></a>
<a class="btn btn-grass" href="#world"><span data-i18n="hero.world">Sample world</span></a>
<span class="btn soon" aria-disabled="true"><span>CurseForge</span> <small data-i18n="hero.soon">soon</small></span>
</div>
Expand All @@ -577,6 +607,20 @@ <h1 class="toon"><span class="brand">HypeBlock</span><span data-i18n="hero.title
<div class="panel stat reveal"><b class="toon">0 €</b><span data-i18n="n5">free and open source (MIT)</span></div>
</div>

<section class="alt" id="trailer">
<div class="wrap">
<h2 class="section-title toon reveal" data-i18n="trailer.title">See it in action</h2>
<p class="section-lead reveal" data-i18n="trailer.lead">Two minutes in the HypeBlock Showcase world: the heart rate HUD, every output, the calm door and the HypeBridge with a real countdown.</p>
<div class="panel video reveal">
<button type="button" class="yt" id="ytPlay" aria-label="Play the HypeBlock trailer">
<img src="assets/trailer.jpg" alt="HypeBlock trailer: your heart = redstone" width="1280" height="720" loading="lazy">
<span class="play" aria-hidden="true"></span>
</button>
</div>
<p class="yt-note reveal"><span data-i18n="trailer.note">The video loads from YouTube (privacy-enhanced mode) when you click play.</span> <a href="https://youtu.be/t0Yt1Q8s9jE" target="_blank" rel="noopener" data-i18n="trailer.open">Watch on YouTube</a></p>
</div>
</section>

<section id="demo">
<div class="wrap">
<h2 class="section-title toon reveal" data-i18n="demo.title">Wire up your heart</h2>
Expand Down Expand Up @@ -766,7 +810,7 @@ <h2 class="section-title toon" style="text-align:left" data-i18n="world.t">HypeB
<li data-i18n="world.l5">Command block scoreboard</li>
</ul>
<div class="buttons" style="justify-content:flex-start">
<a class="btn btn-grass" href="https://github.com/HypeRate/HypeBlock/releases/latest"><span data-i18n="world.btn">Download world</span> <small>.zip</small></a>
<a class="btn btn-grass" href="https://github.com/HypeRate/HypeBlock/releases"><span data-i18n="world.btn">Download world</span> <small>.zip</small></a>
</div>
<p style="color:var(--dim);font-size:14px;margin-top:12px" data-i18n="world.note">Unpack the ZIP into your saves folder.</p>
</div>
Expand Down Expand Up @@ -794,7 +838,7 @@ <h2 class="section-title toon reveal" data-i18n="faq.title">Questions</h2>
<img class="big px" src="assets/logo.png" alt="">
<h2 class="section-title toon" data-i18n="cta.title">Build something that feels you.</h2>
<div class="buttons">
<a class="btn btn-red" href="https://github.com/HypeRate/HypeBlock/releases/latest"><span data-i18n="hero.download">Download</span> <small>.jar</small></a>
<a class="btn btn-red" href="https://github.com/HypeRate/HypeBlock/releases"><span data-i18n="hero.download">Download</span> <small>.jar</small></a>
<a class="btn btn-dark" href="https://github.com/HypeRate/HypeBlock" target="_blank" rel="noopener">GitHub</a>
</div>
</div>
Expand Down Expand Up @@ -840,7 +884,11 @@ <h2 class="section-title toon" data-i18n="about.title">About HypeBlock</h2>
"nav.expert": "Experten-Modus", "nav.about": "Über uns",
"hero.title1": "Dein Herzschlag", "hero.title2": "steuert Minecraft.",
"hero.lead": "Eine kostenlose Mod von HypeRate: Sieh deinen echten Puls im Spiel und mach Redstone daraus. Lampen, die mit dir schlagen, Türen, die nur aufgehen, wenn du ruhig bist, Brücken, die nachgeben, wenn dein Team in Panik gerät.",
"hero.download": "Download", "hero.world": "Beispielwelt", "hero.soon": "bald",
"hero.download": "Download", "hero.world": "Beispielwelt", "hero.soon": "bald", "hero.trailer": "Trailer",
"trailer.title": "So sieht es aus",
"trailer.lead": "Zwei Minuten in der Beispielwelt HypeBlock Showcase: Puls im HUD, alle Ausgaben, die Ruhe-Tür und die HypeBridge mit echtem Countdown.",
"trailer.note": "Das Video wird erst beim Klick auf Play von YouTube geladen (erweiterter Datenschutzmodus).",
"trailer.open": "Auf YouTube ansehen",
"hero.note": "Kostenlos · Minecraft Java 26.3 · Fabric · Einzelspieler &amp; Multiplayer",
"n1": "Ausgaben: Schwellwert, Signalstärke, Herzschlag",
"n2": "Redstone-Signal, direkt aus deinem Puls",
Expand Down Expand Up @@ -966,6 +1014,8 @@ <h2 class="section-title toon" data-i18n="about.title">About HypeBlock</h2>
function setLang(l) {
lang = l;
document.documentElement.lang = l;
var thumb = document.querySelector("#ytPlay img");
if (thumb) thumb.src = l === "de" ? "assets/trailer-de.jpg" : "assets/trailer.jpg";
document.querySelectorAll("[data-i18n]").forEach(function (el) {
var key = el.getAttribute("data-i18n");
var text = l === "en" ? original[key] : T.de[key];
Expand Down Expand Up @@ -1184,6 +1234,22 @@ <h2 class="section-title toon" data-i18n="about.title">About HypeBlock</h2>
addEventListener("scroll", function () { tile.classList.toggle("show", scrollY > innerHeight * 0.6); }, { passive: true });

// ---------- Reveal on scroll ----------
// ---------- Trailer: load the YouTube player only after a click ----------
var yt = document.getElementById("ytPlay");
if (yt) yt.addEventListener("click", function () {
var f = document.createElement("iframe");
f.src = "https://www.youtube-nocookie.com/embed/t0Yt1Q8s9jE?autoplay=1&rel=0&playsinline=1";
f.title = "HypeBlock trailer";
f.allow = "autoplay; encrypted-media; picture-in-picture; fullscreen";
f.allowFullscreen = true;
yt.replaceChildren(f);
yt.style.cursor = "default";
// If a consent blocker swallowed the player, open YouTube instead
setTimeout(function () {
if (!/youtube/.test(f.getAttribute("src") || "")) window.open("https://youtu.be/t0Yt1Q8s9jE", "_blank", "noopener");
}, 1500);
}, { once: true });

if ("IntersectionObserver" in window && !reduce) {
var io = new IntersectionObserver(function (es) { es.forEach(function (e) { if (e.isIntersecting) { e.target.classList.add("in"); io.unobserve(e.target); } }); }, { threshold: 0.12 });
document.querySelectorAll(".reveal").forEach(function (n) { io.observe(n); });
Expand Down
Loading
Loading